Gargaj / Bonzomatic

Live shader coding tool and Shader Showdown workhorse
http://www.pouet.net/topic.php?which=9881
Other
1.37k stars 115 forks source link

Cannot open at all on manjaro #178

Open Tintouin opened 4 months ago

Tintouin commented 4 months ago

I get this error that I didn't understood even after looking on internet.

Looking for config.json in '/home/User'... [FFT] MAL context initialized, backend is 'PulseAudio' Open STUB [GLFW] Version String: 3.3.3 X11 GLX EGL OSMesa clock_gettime evdev OpenGL 4.1 (the minimum requirement) is not available: GLX: Failed to create context: GLXBadFBConfig [GLFW] Window creation failed Renderer::Open failed

I replaced my username by "User"

PoroCYon commented 4 months ago

what desktop environment or window manager do you use?

Tintouin commented 4 months ago

I use KDE Plasma (Kwin+plasma 6.0.5)

PoroCYon commented 4 months ago

Hm, I don't have any KDE 6 installs anywhere. Machines at work still run KDE 5 (the only ones I have access to that use KDE at all) so I'll wait until they get an update.

As a sidenote, did you specify -DBONZOMATIC_USE_SYSTEM_GLFW=On (and maybe -DBONZOMATIC_USE_SYSTEM_GLEW=On as well) when invoking CMake? Because maybe the vendored GLFW in the repository itself is getting a bit out of date.

Tintouin commented 4 months ago

I installed it with Pamac and seeing the makefile it doesn't seem to include those options, I'll certainly install i3 or XFCE as well to try.

On another topic, any tips for a beginner ? Like what should I focus on to have a few shaders that are creative

PoroCYon commented 4 months ago

"pamac"? do you mean pacman? From upstream arch repos? Manjaro-specific repos? AUR?

EDIT: looks like there's no Manjaro-specific packages, so I'm CC'ing @xyproto (bonzomatic arch package maintainer) so he can fix the arch packages to use the system-wide GLFW and GLEW packages.

xyproto commented 4 months ago

Arch Linux is not Manjaro, and Manjaro is not supported by Arch Linux maintainers. For future issues with how the Arch Linux Bonzomatic package is packaged, please file an issue at gitlab.archlinux.org.

Nevertheless, I want to improve the Bonzomatic package, so thanks for bringing this to my attention. :+1:

When I build and update the Bonzomatic package with -D BONZOMATIC_USE_SYSTEM_GLFW=on and -D BONZOMATIC_USE_SYSTEM_GLEW=on, the program does not run and I get:

[GLFW] Version String: 3.4.0 Wayland X11 GLX Null EGL OSMesa monotonic shared
[GLFW] Using GLEW 2.2.0
[GLFW] OpenGL Version 4.6 (Core Profile) Mesa 24.1.1-arch1.1, GLSL 4.60
[GLFW] Requested framebuffer size: 1920 x 1080
[GLFW] Obtained framebuffer size: 1920 x 1080
[...]
No valid last shader found, falling back to default...

It works without those two options here.

This is with Sway + glfw 3.4 + glew 2.2.0 on Linux 6.9.5.

PoroCYon commented 4 months ago

When I build and update the Bonzomatic package with -D BONZOMATIC_USE_SYSTEM_GLFW=on and -D BONZOMATIC_USE_SYSTEM_GLEW=on, the program does not run and I get:

[GLFW] Version String: 3.4.0 Wayland X11 GLX Null EGL OSMesa monotonic shared
[GLFW] Using GLEW 2.2.0
[GLFW] OpenGL Version 4.6 (Core Profile) Mesa 24.1.1-arch1.1, GLSL 4.60
[GLFW] Requested framebuffer size: 1920 x 1080
[GLFW] Obtained framebuffer size: 1920 x 1080
[...]
No valid last shader found, falling back to default...

This isn't showing an error message at all, unless you maybe removed it accidentally? (No valid last shader found, falling back to default... is no cause for concern). I built 46bc4e7 both with vendored GLFW and GLEW, and with system ones, and they both worked. That's swaywm 1.9, glfw 3.3.8, glew 2.2.0, linux 6.9.5, on Void Linux.

xyproto commented 4 months ago

When I tested it (bonzomatic + system glfw + system glew) under Sway / Wayland, there was no error message, in combination with no window appearing at all. I was also upgrading all packages on my system, so I need to test this again.

When I now tested it (bonzomatic + system glfw + system glew) under Xfce4 / X11 it works, so I updated the package.

It might also work on Manjaro.

Tintouin commented 4 months ago

"pamac"? do you mean pacman? From upstream arch repos? ~Manjaro-specific repos?~ AUR?

Pamac is like yay but with verb commands like apt, I was testing on the graphical interface provided by Manjaro, but I prefer yay on CLI.

It might also work on Manjaro.

Excellent ! I may be asking a stupid question but, how can I try ? I tried compiling from git, installing from AUR and directly from pacman and none worked, the issue stayed the same.

xyproto commented 4 months ago

@Tintouin Manjaro and Arch are diffent distros. Manjaro is based on Arch but has had some issues in the past that ended with Arch Linux maintainers specifically not supporting issues related to Manjaro. Best of luck, though.

If there is an issue with how Bonzomatic is packaged on Arch Linux I will happily look into it, though.

Tintouin commented 4 months ago

@Tintouin Manjaro and Arch are diffent distros. Manjaro is based on Arch but has had some issues in the past that ended with Arch Linux maintainers specifically not supporting issues related to Manjaro. Best of luck, though.

If there is an issue with how Bonzomatic is packaged on Arch Linux I will happily look into it, though.

I know that, but given the origin of the problem, the error message etc... I thought it wasn't a problem with manjaro but with KDE plasma, I'll try to replicate the problem on arch.