World Machine on Linux fails to find OpenGL on launch when I can confirm that a version newer than 3.3 is supported

Your bug report should include:

  1. Fails to detect OpenGL 3.3 when a newer version is definitely supported
  2. It happens every time on launch

Hi there,

Thanks for the bug report. Version 0.0 detected means somehow WM is not finding OpenGL present at all.

Can you provide a few more details? What linux distro and version are you running? I suspect this is an environment issue; I can’t repro it locally but with more info I might be able to track down what’s happening.

Edit:
Since it seems like an opengl environment issue, try the following command from the terminal in the folder where you have the WM Basic appimage, and then paste the results here:

QT_LOGGING_RULES=“qt.qpa.gl=true” ./WorldMachine-basic-current-x64.AppImage --log

This is the output from the command

On Arch Linux using the build 4069 of World Machine

Try launching with the following command:

QT_QPA_PLATFORM=xcb QT_LOGGING_RULES="qt.qpa.gl=true" ./WorldMachine-4069-basic-current-x64.AppImage --log

It should either work, or provide additional diagostic info for us.

Here is the output from the log

[Info ] Failed to register with host portal QDBusError(“org.freedesktop.portal.Error.Failed”, “Could not register app ID: App info not found for ‘worldmachine-basic’”)
[Info ] World Machine Program Log
[Info ] Startup: Resources located in folder ‘/tmp/.mount_WorldMpIPkNk/opt/worldmachine/variants/sse’
[Info ] Found world.ini at preferred path : /home/winter/.config/WorldMachineCurrent/
[Info ] Loading config file /home/winter/.config/WorldMachineCurrent/world.ini
[Info ] Startup: Removing residual files from temp folder (/home/winter/.cache/WorldMachineCurrent/temp/)
[Info ] Startup: Initialize license manager (path /home/winter/.config/WorldMachineCurrent/)
[Info ] License Manager.Checkout: No license control needed for Basic Edition
[Info ] Startup: License manager checkout (LICENSE_RESULT 1)
[Info ] Memory: large pages: transparent huge pages (2048 KB, enabled=always)
[Info ] Memory: bandwidth-bound threads: 4 (auto, 12 physical cores, large pages)
[Info ] Configured OpenCL compute support
[Info ] Vulkan compute backend initialized: NVIDIA GeForce RTX 4070 SUPER (maxPushConstants=256)
[Info ] GPU compute backend: NVIDIA GeForce RTX 4070 SUPER (Vulkan)
[Info ] Slang: Initialized compilation session (target: glsl_450)
[Info ] Configured Slang compute support via Vulkan
[Info ] Using built-in asset database: /tmp/.mount_WorldMpIPkNk/opt/worldmachine/variants/sse/resources/assets.db (schema 101)
[Info ] Startup: Registering device plugins in (/tmp/.mount_WorldMpIPkNk/opt/worldmachine/variants/sse/plugins/devices/). Plugin header #217 and architecture 1
[Info ] Found LTE plugin (libDevicesCustomGUI64.so). Build version 4069 with plugin header #217
[Info ] Found LTE plugin (libDevicesStandard64.so). Build version 4069 with plugin header #217
[Info ] Startup: 138 Device plugins loaded.
[Info ] Startup: Loading custom devices from resource database
[Info ] Startup: Loading custom devices from user paths [/tmp/.mount_WorldMpIPkNk/opt/worldmachine/variants/sse/macros/] [/home/winter/Documents/WorldMachine/Macros/]
[Info ] Startup: 34 custom device entities loaded.
[Info ] Startup: Loading blueprints from resource database
[Info ] Startup: Loading blueprints from user paths [/tmp/.mount_WorldMpIPkNk/opt/worldmachine/variants/sse/Blueprints/] [/home/winter/Documents/WorldMachine/Blueprints/]
[Info ] Startup: Blueprint entities loaded.
[Info ] Restoring favorites and usage data
[Warning ] Console: Shortcut ‘build’ shadows built-in group name and will be ignored
[Info ] Startup: Basic initialization finished.
[Info ] Startup: Parsing command line options
[Info ] Choosing xcb gl-integration based on following priority
QList(“xcb_glx”, “xcb_egl”)
[Info ] Xcb GLX gl-integration created
[Info ] Xcb GLX gl-integration successfully initialized
[Info ] Core Initialization Finished
[Info ] Starting GUI
[Info ] Creating primary application window
[Info ] MainWindow: Creating Actions
[Info ] MainWindow: Creating Controllers
[Info ] MainWindow: Creating Dynamic Menus
[Info ] MainWindow: Creating sidebars and views
[Info ] MainWindow: Creating Views
[Info ] MainWindow: Creating tool,statusbar, and search
[Info ] MainWindow: Connecting signals
[Info ] MainWindow: Completed. Show window
[Info ] Requested format before FBConfig/Visual selection: QSurfaceFormat(version 3.3, options QFlagsQSurfaceFormat::FormatOption(), depthBufferSize 24, redBufferSize 8, greenBufferSize 8, blueBufferSize 8, alphaBufferSize -1, stencilBufferSize 8, samples 0, swapBehavior QSurfaceFormat::DefaultSwapBehavior, swapInterval 0, colorSpace QColorSpace(), profile QSurfaceFormat::CoreProfile)
[Info ] Available GLX extensions: GLX_ARB_get_proc_address GLX_ARB_multisample GLX_EXT_visual_info GLX_EXT_visual_rating GLX_SGIX_fbconfig GLX_SGIX_pbuffer GLX_SGI_swap_control GLX_EXT_swap_control GLX_EXT_buffer_age GLX_ARB_create_context GLX_ARB_create_context_profile GLX_ARB_fbconfig_float GLX_EXT_fbconfig_packed_float GLX_EXT_framebuffer_sRGB GLX_NV_copy_image GLX_NV_copy_buffer GLX_EXT_create_context_es_profile GLX_EXT_create_context_es2_profile GLX_ARB_create_context_no_error GLX_ARB_create_context_robustness GLX_ARB_context_flush_control
[Info ] Got format: QSurfaceFormat(version 3.3, options QFlagsQSurfaceFormat::FormatOption(), depthBufferSize 24, redBufferSize 8, greenBufferSize 8, blueBufferSize 8, alphaBufferSize 0, stencilBufferSize 8, samples 0, swapBehavior QSurfaceFormat::DefaultSwapBehavior, swapInterval 0, colorSpace QColorSpace(), profile QSurfaceFormat::CoreProfile)
[Info ] QRhiGles2: Failed to make context current. Expect bad things to happen.
[Info ] Failed to create QRhi for QBackingStoreRhiSupport
[Info ] GL compute shaders available
[Info ] Running post-startup tasks
[Info ] Checking for session and autosave files
[Info ] Opening startup project: -
[Info ] Open Project from file
[Info ] Startup: Completed. Transferring control into event loop.
[Info ] Shutdown: Beginning shutdown procedures
[Info ] Saving config file /home/winter/.config/WorldMachineCurrent/world.ini
[Info ] Saving favorites and usage data
[Info ] Shutdown: Close all projects
[Info ] Shutdown: Removing autosave files on nominal exit
[Info ] Shutdown: Completed. The program will now exit

That log is helpful, thank you. I think I’ve found a potential workaround to the context creation issue.

What happens with the app during the run that produced that log? Did it open with the viewports visible, or did it have issues?

This particular opengl context init error has been a constant problem between QT and Wayland, since forever. KDE folks have extensive conversations about this topic somewhere within their ecosystem. Bypass command Stephen posted should have worked.

If bypassing wayland didn’t work, perhaps this time the problem has to do with the user’s custom and specific Arch Linux install. Also, on AMD platform, you also have to install mesa drivers for the bypass to work reliably.
(EDIT: I saw the earlier post in this thread where it shows that the platform is Nvidia. Ignore the AMD bit)

Disclaimer: I have a very vague recollection of the original bug thread I came across with a friend’s kde plasma install last year (feb 2025). I don’t know what to do on newer environments people have on their PCs. You guys may have to dig into specifics on your own.

Earlier it opened to a black screen but running a system update seems to have fixed it (I saw there was an Nvidia driver update in there). I’ll check real quick to make sure there are no other issues and I’ll also provide a log of what has happened in case that information is useful for determining the nature of the bug unless others run into it.

edit:
okay here is the output from starting it up this time

[Info ] Failed to register with host portal QDBusError(“org.freedesktop.portal.Error.Failed”, “Could not register app ID: App info not found for ‘worldmachine-basic’”)
[Info ] World Machine Program Log
[Info ] Startup: Resources located in folder ‘/tmp/.mount_WorldMhcCJaJ/opt/worldmachine/variants/sse’
[Info ] Found world.ini at preferred path : /home/winter/.config/WorldMachineCurrent/
[Info ] Loading config file /home/winter/.config/WorldMachineCurrent/world.ini
[Info ] Startup: Removing residual files from temp folder (/home/winter/.cache/WorldMachineCurrent/temp/)
[Info ] Startup: Initialize license manager (path /home/winter/.config/WorldMachineCurrent/)
[Info ] License Manager.Checkout: No license control needed for Basic Edition
[Info ] Startup: License manager checkout (LICENSE_RESULT 1)
[Info ] Memory: large pages: transparent huge pages (2048 KB, enabled=always)
[Info ] Memory: bandwidth-bound threads: 4 (auto, 12 physical cores, large pages)
[Info ] Configured OpenCL compute support
[Info ] Vulkan compute backend initialized: NVIDIA GeForce RTX 4070 SUPER (maxPushConstants=256)
[Info ] GPU compute backend: NVIDIA GeForce RTX 4070 SUPER (Vulkan)
[Info ] Slang: Initialized compilation session (target: glsl_450)
[Info ] Configured Slang compute support via Vulkan
[Info ] Using built-in asset database: /tmp/.mount_WorldMhcCJaJ/opt/worldmachine/variants/sse/resources/assets.db (schema 101)
[Info ] Startup: Registering device plugins in (/tmp/.mount_WorldMhcCJaJ/opt/worldmachine/variants/sse/plugins/devices/). Plugin header #217 and architecture 1
[Info ] Found LTE plugin (libDevicesCustomGUI64.so). Build version 4069 with plugin header #217
[Info ] Found LTE plugin (libDevicesStandard64.so). Build version 4069 with plugin header #217
[Info ] Startup: 138 Device plugins loaded.
[Info ] Startup: Loading custom devices from resource database
[Info ] Startup: Loading custom devices from user paths [/tmp/.mount_WorldMhcCJaJ/opt/worldmachine/variants/sse/macros/] [/home/winter/Documents/WorldMachine/Macros/]
[Info ] Startup: 34 custom device entities loaded.
[Info ] Startup: Loading blueprints from resource database
[Info ] Startup: Loading blueprints from user paths [/tmp/.mount_WorldMhcCJaJ/opt/worldmachine/variants/sse/Blueprints/] [/home/winter/Documents/WorldMachine/Blueprints/]
[Info ] Startup: Blueprint entities loaded.
[Info ] Restoring favorites and usage data
[Warning ] Console: Shortcut ‘build’ shadows built-in group name and will be ignored
[Info ] Startup: Basic initialization finished.
[Info ] Startup: Parsing command line options
[Info ] Choosing xcb gl-integration based on following priority
QList(“xcb_glx”, “xcb_egl”)
[Info ] Xcb GLX gl-integration created
[Info ] Xcb GLX gl-integration successfully initialized
[Info ] Core Initialization Finished
[Info ] Starting GUI
[Info ] Creating primary application window
[Info ] MainWindow: Creating Actions
[Info ] MainWindow: Creating Controllers
[Info ] MainWindow: Creating Dynamic Menus
[Info ] MainWindow: Creating sidebars and views
[Info ] MainWindow: Creating Views
[Info ] MainWindow: Creating tool,statusbar, and search
[Info ] MainWindow: Connecting signals
[Info ] MainWindow: Completed. Show window
[Info ] Requested format before FBConfig/Visual selection: QSurfaceFormat(version 3.3, options QFlagsQSurfaceFormat::FormatOption(), depthBufferSize 24, redBufferSize 8, greenBufferSize 8, blueBufferSize 8, alphaBufferSize -1, stencilBufferSize 8, samples 0, swapBehavior QSurfaceFormat::DefaultSwapBehavior, swapInterval 0, colorSpace QColorSpace(), profile QSurfaceFormat::CoreProfile)
[Info ] Available GLX extensions: GLX_ARB_get_proc_address GLX_ARB_multisample GLX_EXT_visual_info GLX_EXT_visual_rating GLX_SGIX_fbconfig GLX_SGIX_pbuffer GLX_SGI_swap_control GLX_EXT_swap_control GLX_EXT_buffer_age GLX_ARB_create_context GLX_ARB_create_context_profile GLX_ARB_fbconfig_float GLX_EXT_fbconfig_packed_float GLX_EXT_framebuffer_sRGB GLX_NV_copy_image GLX_NV_copy_buffer GLX_EXT_create_context_es_profile GLX_EXT_create_context_es2_profile GLX_ARB_create_context_no_error GLX_ARB_create_context_robustness GLX_ARB_context_flush_control
[Info ] Got format: QSurfaceFormat(version 3.3, options QFlagsQSurfaceFormat::FormatOption(), depthBufferSize 24, redBufferSize 8, greenBufferSize 8, blueBufferSize 8, alphaBufferSize 0, stencilBufferSize 8, samples 0, swapBehavior QSurfaceFormat::DefaultSwapBehavior, swapInterval 0, colorSpace QColorSpace(), profile QSurfaceFormat::CoreProfile)
[Info ] GL compute shaders available
[Info ] Running post-startup tasks
[Info ] Checking for session and autosave files
[Info ] Opening startup project: -
[Info ] Open Project from file
[Info ] Startup: Completed. Transferring control into event loop.
[Info ] Closing current project

Build 4070 may have fixed this issue; it’s hard to say since I don’t have the ability to repro it here. Let me know if it works or not!