paoloose / urn

Split tracker / timer with GTK+ frontend. *nix alternative to LiveSplit. This is teh urn.
GNU General Public License v3.0
50 stars 5 forks source link

Segmentation Fault after new Commit #14

Closed ChessMan14 closed 11 months ago

ChessMan14 commented 11 months ago

Hi there, love the project, but I updated it today and it started segfaulting before the window appears.

GDB says the segfault has something to do with X:

Thread 1 "urn-gtk" received signal SIGSEGV, Segmentation fault. 0x00007ffff6f3a27f in XkbGetUpdatedMap () from /usr/lib/libX11.so.6

BTW, I'm using wayland (but I've tried xwayland too) on arch linux.

paoloose commented 11 months ago

Thanks for reporting :) I don't think this is related to latest commits since they basically just update documentation.

Maybe you are dealing with the same problem of this thread: https://github.com/paoloose/urn/issues/9

TL;DR: Wayland doesn't support global hotkeys, so your options are to disable them gsettings set wildmouse.urn global-hotkeys false or forcing an X11 backend:

GDK_BACKEND=x11 urn-gtk
# instead of just running urn-gtk
ChessMan14 commented 11 months ago

I've already been setting the gdk backend

paoloose commented 11 months ago

What about disabling global hotkeys?

ChessMan14 commented 11 months ago

For some reason, disabling global hotkeys, launching urn, closing it, and then enabling hotkeys seems to fix the crashing issue and allows global hotkeys to work.

paoloose commented 11 months ago

Weird. Well, feel free to reopen this if it happens again :)