Crashes when closing non-GNUstep applications
I have frequent crashes where my session is still alive but all window decorations, virtual desktops, dock and menus disappeared. The only way to exit is by killing the processes from the console. These crashes seem to be fairly reproducible:
- start non-GNUstep app, in my case: Evolution (mail client) and teams-for-linux (MS Teams client)
- close a window (Ctrl-w in Evolution) or exit the program (Ctrl- or Alt-Q)
- crash
I wrote you an email to the address published on your GH, @trunkmaster, got the impression that you don't use it anymore, hence now file this and others as tickets, sorry if it's duplicated now.
Sorry, can't reproduce it. I've installed evolution, dbus-x11, started evolution, closed it (clicking the X button, selecting "Quit" command from generated menu) - everything is fine here.
I have tried this on my second machine now, and indeed it does not happen there. So it must be either software installed on the first machine or something in ~/Library. I will try again after renaming that folder. If that does not help I guess I'll have to see how I can debug things.
I have now been able to reproduce this (or a similar) crash across different machines. It's a bit weird, but it seems to work for mee every time:
- Delete
~/Library - Log in to Nextspace
- Open and close a few programs (I usually open and close Preferences.app, then open Terminal, from there run Strawberry (mp3 player), close Strawberry and then Terminal
- Open the Workspace preferences
- Navigate to "Desktops" and set a number of desktops (I usually use 6)
- bang
In 8 out of 10 cases this lead to the crash. If not I could force it by opening and closing programs again and then changing the number of desktops.
@mbert thank you for your case.
You could reproduce this even with shorter path: just open and close any non-GNUstep app and change number of desktops in Workspace preferences.
The bug was in generated application menu - I forgot to remove notification observer for desktop configureation changes. Normally on opened non-GNUstep app it should update number of desktops in "Windows->Move Window To" menu. Now it should be fixed.
Thank you for this fix. I have updated Workspace.app and haven't had a crash since then. I'll give it another day or two, and if no further crashes of that sort occur then I guess even though the original bug linked crashes with closing applications the problem is solved.
There still is another crash to Workspace.app. I haven't found a reliable way to reproduce it yet, had it 2 times. Both times it happened after I had been switching between desktops a lot. One time after switching to desktop 1 and activating Tilda using the hotkey. Second time after setting the Finder window to omnipresent and switching to desktop 1. But I was unable to reproduce this crash. I ran Workspace.app in gdb but was then unable to reproduce it.
I have now been able to capture another crash while running Workspace.app in gdb. Again no pattern I could identify, I was just using Nextspace for a while, opening and closing apps. The crash happened when, while on Desktop 2, I quit vivaldi using Ctrl-q. Before that I had opened and closed non-GS apps without problems for a while. The Workspace binary is a build from the current master, i.e. with the fix to the first crash. Here's 2 gdb log files.
And another crash, according to gdb at a different code location: started Nextspace session, opened kwalletmanager, entered the wallte password and then closed the application by clicking the x icon on the titlebar.
Here's the gdb log: nextspace.log
If you would like me to open new issues for each "kind" of crash I encounter, please let me know.
Today I had a full day of using Nextspace. I tried closing some non-GS apps at the start, no crashes. However in the evening I had another crash when closing Vivaldi using Ctrl-Q. This time the window decorations remained. Here's the gdb log (I was unable to do a backtrace because I could not access my gdb session after the crash).
I installed the binary package on Ubuntu 22.04 LTS. It generally seems to run stably, but when using the XIM input method (fcitx), I noticed that Workspace.app crashes quite frequently. I’m not a developer, so I don’t know how to debug it, but if someone can tell me how, I might be able to provide a more useful report. mbert, are you seeing something similar?
mbert, are you seeing something similar?
As I mentioned I see crashes of Workspace.app in particular situations. These are however rather occasional. I don't even have fcitx installed, hence I would assume that either my crashes and yours are not related, or that your crashes don't actually relted to fcitx.