openFrameworks icon indicating copy to clipboard operation
openFrameworks copied to clipboard

Fedora 41 ofAppGLFWWindow error after update GLFW system library in of_v0.12.1

Open PaoloMolinari opened this issue 7 months ago • 15 comments

It seems that the last week Fedora Linux updated the GLFW library to 3.4-4 (glfw.x86_64 1:3.4-4.fc41). As soon as I did the upgrade I've got the following error:

[ error ] ofAppGLFWWindow: 65548: Wayland: The platform does not support setting the window position [ error ] ofAppGLFWWindow: 65548: Wayland: The platform does not support setting the window position
[ error ] ofAppGLFWWindow: 65550: X11: Platform not initialized
make: Segmentation fault (core dumped)

I downgraded the library to the previous release of GLFW version 3.3.10 (glfw-1:3.3.10-1.fc41.x86_64) (seems to be the previous one for fc41), and at the moment it works with no errors.

sudo dnf downgrade glfw-3.3.10 glfw-devel-3.3.10

This is similar to the issue #7903, but I could not find the solution in the checklist #7588, but seems that it was sorted

I did not tried with the nightly-build since I downgraded in panic.

gcc --version gcc (GCC) 14.3.1 20250523 (Red Hat 14.3.1-1)

PaoloMolinari avatar Jun 04 '25 15:06 PaoloMolinari

In Debian ‘Trixie’ I have got the same error and the glfw library is version 3.4-3. Therefore, it seems that the error is related with the 3.4 version of glfw, because at least in Fedora 41 and 42, there is no error as long as the glfw library is version 3.3.

PaoloMolinari avatar Aug 20 '25 13:08 PaoloMolinari

@PaoloMolinari did you manage to fix this? I just upgraded to Trixie and can't compile OF projects any more.

alexdrymonitis avatar Oct 05 '25 06:10 alexdrymonitis

Hi @alexdrymonitis. Not really, still running the package 3.3 in Fedora 42, which I have to download from the web because it was no longer available in the repository. Perhaps compiling the GLFW library as suggested by @dimitre in this post.

PaoloMolinari avatar Oct 05 '25 20:10 PaoloMolinari

What I do in Trixie is to log in with GNOME on Xorg and OF works. But a solution to using Wayland would be nice to have.

alexdrymonitis avatar Oct 06 '25 08:10 alexdrymonitis

I've added some static libs to the OF Fork I'm working. Including GLFW latest. here is the install instructions if you want to try https://github.com/dimitre/ofworks/

I've noticed the same Wayland error, example runs for a while and closes with a segfault.

dimitre avatar Oct 06 '25 13:10 dimitre

I've just completed a template to use the alternative Chalet build system, and a curious thing happen.

Using Make it outputs lots of lines [ error ] ofAppGLFWWindow: 65548: Wayland: The platform does not provide the window position and then crashes

using Chalet it keeps running OK, no crashes, but no windows decorations or keyboard working.

dimitre avatar Oct 06 '25 20:10 dimitre

Thanks for sharing this information!

I was able to get an OF app to run on my Fedora 42 install by using an X11 session:

  1. At the login screen, hit CTRL + ALT + F3 to switch to a terminal session.
  2. Login with your credentials
  3. Enter startx at the prompt to start the X11 session.
  4. Run your OF app (either from Files or the terminal).

It looks like running X11 this way causes other issues (some GUI elements/input gestures/etc don't seem to work). I am not enough of a Linux user to know how to configure/troubleshoot those features.

I've added some static libs to the OF Fork I'm working. Including GLFW latest. here is the install instructions if you want to try https://github.com/dimitre/ofworks/

I just used your install script to get ofworks installed (I think) on my machine (Fedora 42) and was able to build an OF app with it, but when I ran the compiled build using the default Wayland session, I got the following errors.

Plugin "GTK3 plugin" uses conflicting symbol "png_free".
GLFW: ofMonitors update numberOfMonitors 1
[ error ] ofAppGLFWWindow: 65548: Wayland: The platform does not provide the window position
[ error ] ofAppRunner: couldn't init GLEW: No GLX display
Segmentation fault (core dumped)

joshuaalbers avatar Oct 12 '25 21:10 joshuaalbers

Nice. if you have ofGen installed there you can try alternatively to build the project using Chalet build system. to do that, you install chalet (https://www.chalet-work.space), cd to your project folder and

ofgen templates=chalet
chalet buildrun

But it seems a lot more work is needed to make it work with Wayland. There is the RGFW alternative to GLFW (which is already inside this fork, can be used with some fiddling) but I'm not much of a Linux user to know if it is the right direction or not

dimitre avatar Oct 12 '25 21:10 dimitre

just download the compiled linux libraries it has wayland support

danoli3 avatar Oct 15 '25 08:10 danoli3

just download the compiled linux libraries it has wayland support

@danoli3 which linux libraries are these? Can you provide a link?

alexdrymonitis avatar Oct 15 '25 08:10 alexdrymonitis

just run scripts/linux/download_libs.sh

danoli3 avatar Oct 15 '25 08:10 danoli3

I'll test Fedora on VM now

danoli3 avatar Oct 15 '25 08:10 danoli3

@danoli3 I run the script and rebuilt OF 0.12.1, but couldn't make it work on Wayland. I'm on Debian 13.

alexdrymonitis avatar Oct 15 '25 09:10 alexdrymonitis

looking into it

danoli3 avatar Oct 15 '25 14:10 danoli3

download_libs

I does not work to me in F42. I've got the same error in Wayland. I compiled GLFW manually using X11 and Wayland backends in F42 but seems that I am missing something in order to the OF app use it, since I get other kind of errors regarding missing methods.

It seems by the comments, that the packaged GLFW 3.4 works using X11 session. However, GLFW 3.3 does work as intended in Wayland in Fedora 42. So I reckon it is a change in GLFW 3.4 or the way it was compiled in the packaging of the Fedora and Debian. In the release notes of GLFW 3.4 notes the following:

Version 3.4 released. Posted on February 23, 2024. This is a smaller feature release, as a basis for future work. It adds runtime platform selection, better support for Wayland, both Wayland and X11 enabled by default, more standard cursor shapes, custom heap allocator support, per-window mouse input passthrough, window title query, a conforming Null platform available everywhere, window hints for initial position, new (harmless) errors informing about missing features, several platform-specific hints, a new native-access function, a hint for selecting ANGLE backend, various other minor features and fixes for issue on all supported platforms.>

Perhaps something to do with:

runtime platform selection

PaoloMolinari avatar Oct 15 '25 17:10 PaoloMolinari