When closing a thunar window using the assigned shortcut key, thunar sometimes hangs. This happens with 4.15.0, and 442461b1 seems to partly fix it (though I am not 100% sure it really does).
I can however still reproduce the issue rather easily when running thunar --daemon, opening a few windows and then closing them rapidly using the shortcut key; holding down the shortcut key combination is enough to achieve this. It then spills the console with messages like the following:
BTW: Andre Mirandas fine video demonstrates the issue exactly. Sometimes thunar can be seen segfaulting, sometimes it starts spamming gtk_accel messages, and sometimes it closes without exhibiting the bug.
Maybe I am missing something, but applying this patch does not resolve the hang for me. However, I did not test with git master, so maybe that is the reason for it.
Guess I have to properly unregister all accelerators before removing the accel_group.
Yes, this sounds cumbersome, gtk should provide this functionality when removing accel groups. Unfortunately it seems it does not.
Using the steps described in my previous comment I was only able to crash Thunar once (it wasn't easy), coredump attached. It would be helpful if you could confirm your stacktrace is similar.
Unfortunately, I have tried to open many windows and closing them many ways, but I cannot reproduce it under "normal" workflow conditions. However, it still happens rarely after some time, when I have managed some files with thunar. I have not found a way to reproduce the bug with current git master, but gdb attached it once and the gtk_accel messages have appeared in the stacktrace I got with gdb bt. It also shows the same behaviour described earlier. Tricky and nasty...
This (i.e. a hang or segfault when pressing Ctrl+W) happens to me relatively frequently when having multiple windows open and attempting to close one of them. (Un)fortunately, I can't reliably reproduce it.
I'm attaching a full backtrace from one such crash. Is there anything else I can do to help?
I'm also affected by this again almost on a daily basis and it's not that hard to reproduce, just run thunar --daemon, open several windows (e.g. 20) via a global hotkey and close them all with ctrl+w, repeat the process about 5 times (I'll check if that's reproducible with xfce-test).
I don't get any segfault, Thunar just hangs indefinitely logging critical messages, here are two gdb's backtraces of two consecutive sessions: backtrace1.txtbacktrace2.txt
Searching around I found this ten year old bug for gtk/gajim which was closed without a solution.
Yep, even easier to reproduce on xfce-test:devel (super+e is the hotkey to open thunar), but it does crash instead of hanging. crash.gif
@alexxcons I hope this helps, since you worked recently with actions/groups/accelerators perhaps you can have some idea, if not I can try later to disable Thunar's components on the code one by one until have it barebones, hopefully making more obvious what's causing the issue.