sboli / twmn

A notification system for tiling window managers
GNU Lesser General Public License v3.0
523 stars 47 forks source link

twmnd crashes after a random amount of time #89

Open sniff122 opened 4 years ago

sniff122 commented 4 years ago

For a while now i have had twmnd crash, printing the following error when crashing

twmnd: /usr/include/boost/optional/optional.hpp:1217: boost::optional<T>::pointer_type boost::optional<T>::operator->() [with T = QVariant; boost::optional<T>::pointer_type = QVariant*]: Assertion `this->is_initialized()' failed.
Aborted (core dumped)

I have tried to do some googling and stuff what wasnt exactly useful i think, as far as i know boost 1.71 is up to date. I have twmnd start on i3 login with an exec in the config and then i start it in screen when it first initially crashes just so i can hide the terminal with twmnd. I have used twmnd in the past without any forms of crashes and im really not sure on what is going on specifically.

croyleje commented 4 years ago

It appears from what I can find is this was addressed in the boost dev branch boost 1.72.0-2 is all I have on hand to check but it has been fixed in that release but I can not find at what release the fix was pushed.

eguiraud commented 4 years ago

Same problem here, arch linux, twmnd installed from AUR.

This is the relevant part of the output of journalctl -b --user-unit twmnd:

Jun 20 23:53:40 marvin systemd[571]: twmnd.service: Main process exited, code=dumped, status=6/ABRT
Jun 20 23:53:40 marvin systemd[571]: twmnd.service: Failed with result 'core-dump'.
Jun 20 23:53:40 marvin systemd-coredump[348627]: Process 348625 (twmnd) of user 1000 dumped core.

                                                 Stack trace of thread 348625:
                                                 #0  0x00007f1823061355 raise (libc.so.6 + 0x3c355)
                                                 #1  0x00007f182304a853 abort (libc.so.6 + 0x25853)
                                                 #2  0x00007f18236629ac _ZNK14QMessageLogger5fatalEPKcz (libQt5Core.so.5 + 0x909ac)
                                                 #3  0x00007f1823e5d0e6 _ZN22QGuiApplicationPrivate25createPlatformIntegrationEv (libQt5Gui.so.5 + 0x1330e6)
                                                 #4  0x00007f1823e5d581 _ZN22QGuiApplicationPrivate21createEventDispatcherEv (libQt5Gui.so.5 + 0x133581)
                                                 #5  0x00007f182388b2e6 _ZN23QCoreApplicationPrivate4initEv (libQt5Core.so.5 + 0x2b92e6)
                                                 #6  0x00007f1823e605c0 _ZN22QGuiApplicationPrivate4initEv (libQt5Gui.so.5 + 0x1365c0)
                                                 #7  0x00007f182455e68a _ZN19QApplicationPrivate4initEv (libQt5Widgets.so.5 + 0x16168a)
                                                 #8  0x000055f431b3b37e n/a (twmnd + 0xb37e)
                                                 #9  0x00007f182304c002 __libc_start_main (libc.so.6 + 0x27002)
                                                 #10 0x000055f431b3b20e n/a (twmnd + 0xb20e)

The crash is always at that same location, so this looks like a bug in twmn. I'll try to run a version of twmn built with debug symbols for a while to see whether I can find out the offending line.

sniff122 commented 4 years ago

I compiled and installed from the github repo, ill try a different version too, I have noticed that it crashes when i have discord's desktop notifications enabled. I havent seen any crashes with it disabled but the only way i notice if twmnd has crashed is by discord freezing up (what is a known issue with discord or electron)