Segfault in Wayland session when wxWidgets is built without EGL support #1

Closed
opened 2022-12-13 08:39:15 +01:00 by mantarimay · 5 comments

aegisub version 20221104.mia.g0376255

aegisub version 20221104.mia.g0376255
Owner

Are you running Aegisub in a Wayland session? Sadly, that is unsupported, and wxWidgets is making it very difficult to do that. On Tumbleweed, wxWidgets also isn’t built with EGL support in wxGLCanvas (because of an earlier problem with glew headers), and that’s why it crashes. But even if you build it with EGL support, some Aegisub features are just broken on Wayland (e.g. color picker).

So for now, you need to set this environment variable when running Aegisub to run it in XWayland instead: GDK_BACKEND=x11.

If you’re not running a Wayland session, I’m going to need more info on the crash. In that case, install these packages: gdb aegisub-debuginfo
And then run: gdb aegisub.
At the (gdb) prompt, type: run and wait for it to crash. Once you’re back at the prompt, type: bt

I’m going to need the first 10 or so lines of that output.

Are you running Aegisub in a Wayland session? Sadly, that is unsupported, and wxWidgets is making it very difficult to do that. On Tumbleweed, wxWidgets also isn’t built with EGL support in wxGLCanvas (because of an earlier problem with glew headers), and that’s why it crashes. But even if you build it with EGL support, some Aegisub features are just broken on Wayland (e.g. color picker). So for now, you need to set this environment variable when running Aegisub to run it in XWayland instead: `GDK_BACKEND=x11`. If you’re not running a Wayland session, I’m going to need more info on the crash. In that case, install these packages: `gdb aegisub-debuginfo` And then run: `gdb aegisub`. At the `(gdb)` prompt, type: `run` and wait for it to crash. Once you’re back at the prompt, type: `bt` I’m going to need the first 10 or so lines of that output.
Author

yes i am using wayland in gnome. here gdb result link

yes i am using wayland in gnome. here gdb result [link](https://gist.github.com/mantarimay/80aa0a5fd553af43193fcc0640c60f46)
Owner

Can you try running GDK_BACKEND=x11 aegisub?

Can you try running `GDK_BACKEND=x11 aegisub`?
Author

yes i can run aegisub with GDK_BACKEND=x11

yes i can run aegisub with `GDK_BACKEND=x11`
Owner

As a workaround, you can run this:

mkdir -p ~/bin
echo -e '#!/bin/sh\nGDK_BACKEND=x11 /usr/bin/aegisub "$@"' > ~/bin/aegisub
chmod +x ~/bin/aegisub

That creates a wrapper script for Aegisub that will run it with the GDK_BACKEND environment variable set. You should then be able to run Aegisub normally.

As a workaround, you can run this: ```bash mkdir -p ~/bin echo -e '#!/bin/sh\nGDK_BACKEND=x11 /usr/bin/aegisub "$@"' > ~/bin/aegisub chmod +x ~/bin/aegisub ``` That creates a wrapper script for Aegisub that will run it with the `GDK_BACKEND` environment variable set. You should then be able to run Aegisub normally.
mia added the
wontfix
label 2022-12-13 09:37:58 +01:00
mia changed title from i cant open aegisub because Segmentation fault (core dumped) on Tumbleweed to Segfault in Wayland session when wxWidgets is built without EGL support 2022-12-13 09:39:00 +01:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: mia/Aegisub#1
No description provided.