Crashes with version 4.2.2 on Linux
Describe the bug After my previous bug report on Windows I encounter another crash on my Linux laptop. It worked in the previous version 4.0.5. And it seems to happend at the very beginning of starting my stream and initiaizing the OpenGLFX stuff. Please looke at the attached crashlog
Environment:
- OS:
NAME="TUXEDO OS"
VERSION="3 22.04.5"
ID=tuxedo
ID_LIKE="ubuntu debian"
PRETTY_NAME="TUXEDO OS 3"
VERSION_ID="22.04"
HOME_URL="https://tuxedocomputers.com/"
SUPPORT_URL="https://support.tuxedocomputers.com/"
BUG_REPORT_URL="https://gitlab.com/tuxedocomputers/development/tuxedo_os/os"
PRIVACY_POLICY_URL="https://www.tuxedocomputers.com/en/Privacy-policy.tuxedo"
VERSION_CODENAME=jammy
UBUNTU_CODENAME=jammy
- openglfx version: 4.2.2
For context, this crashes my application
canvas = new GLCanvas(
LWJGLExecutor.LWJGL_MODULE, // executor
false, // flipY
0, // msaa
0.0, // fps
1, // swapBuffers
GLInteropType.Companion.getAuto(), // interopType
GLProfile.CORE, // profile
false, // glDebug
null, // shareWith
-1, // majorVersion (Defaults.MAJOR_VERSION)
-1, // minorVersion (Defaults.MINOR_VERSION)
false // externalWindow
);
Tried GLProfile.COMPATIBILITY and swapBuffers 2 but it did not work.
Have you tried 4.2.2?
There were changes right in this place.
It also let you use GLCanvas.Builder instead of constructor in Java.
Got it
@husker-dev sorry my mistake, I'm already using version 4.2.2 but same crash occurs on 4.2.0 and 4.2.1 I just tried. It crashes immediately when creating the Canvas.
Are you using Wayland? If so, have you disabled X11 support?
Also, try calling this function at the beginning of the program launch: GLManager.setPreferGLX(false);
Also try to install glxinfo (from mesa-utils) and launch it in terminal.
And show what it prints please.
@husker-dev Yes I use wayland, what do you mean by disabling X11 support? You mean falling back to X11 Window manager?
Called this GLManager.setPreferGLX(false); in my main method it crashed again but with a different error and crash log
Here is the glxinfo information
Wayland has a module for backwards compatibility with X11 (it also includes GLX). I'm not sure, but some people may disable it. If you haven't done anything, then it's probably on.
As I understand it, you have some kind of integrated Intel graphics, right?
@husker-dev yes I have an integrated Intel GPU but i my notebook also has a Nvidia GPU. On the Nvidia GPU it works more or less in certain conditions but I need to check it in more details. I have to force the Nvidia GPU via command line, it's just something which worked in 4.0.5 without any such modifications
@husker-dev just experimented a bit and downgrading to version 4.0.5 on Linux fixes the crash. It works fine without crashing on both my Intel and Nvidea GPU.