openglfx icon indicating copy to clipboard operation
openglfx copied to clipboard

Crashes with version 4.2.2 on Linux

Open streamingdv opened this issue 11 months ago • 11 comments

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

hs_err_pid322414.log

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

streamingdv avatar May 21 '25 11:05 streamingdv

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.

streamingdv avatar May 21 '25 11:05 streamingdv

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.

husker-dev avatar May 21 '25 12:05 husker-dev

Got it

husker-dev avatar May 21 '25 12:05 husker-dev

@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.

streamingdv avatar May 21 '25 12:05 streamingdv

Are you using Wayland? If so, have you disabled X11 support?

husker-dev avatar May 21 '25 12:05 husker-dev

Also, try calling this function at the beginning of the program launch: GLManager.setPreferGLX(false);

husker-dev avatar May 21 '25 12:05 husker-dev

Also try to install glxinfo (from mesa-utils) and launch it in terminal. And show what it prints please.

Image

husker-dev avatar May 21 '25 12:05 husker-dev

@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

streamingdv avatar May 21 '25 13:05 streamingdv

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 avatar May 21 '25 13:05 husker-dev

@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

streamingdv avatar May 21 '25 13:05 streamingdv

@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.

streamingdv avatar May 23 '25 06:05 streamingdv