Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crash when unpluging displays #1158

Closed
evlli opened this issue Jul 11, 2021 · 14 comments
Closed

crash when unpluging displays #1158

evlli opened this issue Jul 11, 2021 · 14 comments

Comments

@evlli
Copy link

evlli commented Jul 11, 2021

When unpluging my Laptop (ThinkPad X395) from the docking station, Waybar crashes.

[2021-07-11 21:03:39.805] [debug] Output removed: Goldstar Company Ltd 24MB56
[2021-07-11 21:03:39.943] [debug] Output removed: Goldstar Company Ltd 24MB56
terminate called without an active exception
[1]    32918 abort (core dumped)  waybar -s ~/.config/waybar/styles.css -l trace

Reproduced on versions:
Waybar v0.9.7
Waybar v0.9.7-63-g7c1303f (branch 'master')

Coredump

Jul 11 21:03:40 aiko systemd-coredump[32993]: Process 32918 (waybar) of user 1000 dumped core.
    Found module linux-vdso.so.1 with build-id: 7eaa1b7dfb8573914117c9ec86ff4a2989016904
    Found module libgvfscommon.so with build-id: 90d1858292300e4e1ee3fbe84ab06079af840ec6
    Found module libgvfsdbus.so with build-id: dcb9d652f2e5c65154517fe6934215ec6bd1c29c
    Found module libdconfsettings.so with build-id: 7a4ba7af122c4d11168004a9ea6def330f02089f
    Found module libgpg-error.so.0 with build-id: ba85170c2d9343ea05eea8fa2048c212ff4ef552
    Found module libgcrypt.so.20 with build-id: 4a114f6a371dee16ad6e01023b0b3c654b8582a3
    Found module libcap.so.2 with build-id: d3d0ddf2f54f554fb280d7eb41a06dd39173009e
    Found module liblz4.so.1 with build-id: e63600ab23b2f6997f42fac2fa56e1f02ce159a1
    Found module libogg.so.0 with build-id: ca0cae30a809f10db1f16e54a23b4e5ff7b2c54c
    Found module libvorbis.so.0 with build-id: ad0a6c1af8f219b4Waybar v0.9.7-63-g7c1303f (branch 'master')e314090b6e8847223d424cbe
    Found module libopus.so.0 with build-id: 649d3ddab8764d7caf73648004a35cb13e23a5e1
    Found module libFLAC.so.8 with build-id: e568dc3d434723c72d6d302eb0b2559f27e91faa
    Found module libvorbisenc.so.2 with build-id: 28ed815b8b1d322e6bf2bfdce4b0af2789b74335
    Found module libXdmcp.so.6 with build-id: 8ca0792d23c8b8b4c0864297512349292bea5955
    Found module libXau.so.6 with build-id: 1c67764663e07bec24d8951e5fd93f4d165979ff
    Found module libdatrie.so.1 with build-id: 6fe3b6ece2c8e7d11869fa051375128d8f808f58
    Found module liblzma.so.5 with build-id: f8d607153b2b315f1aaa1c8e12553d544e661f2d
    Found module libzstd.so.1 with build-id: 4b10444c1560ebc574af4d5f488b7408b22d450e
    Found module libasyncns.so.0 with build-id: 6acff139d56b5139ce5eb50a66c62b215e1d332d
    Found module libsystemd.so.0 with build-id: 15e863a1804ee74d4dd4c79ada848c6f1facb2d2
    Found module libsndfile.so.1 with build-id: 72d5531e74ed3e9afe49e95e449c40cb8984a258
    Found module libblkid.so.1 with build-id: c8025d3fd3c6cb96954e815c81ab398a5f1cf7b9
    Found module libatspi.so.0 with build-id: 046ee7a264956ff92020b0773ab583b23b93933c
    Found module libbz2.so.1.0 with build-id: 919597c477c9b2cb9cdbb7745ed6494ac0e6da60
    Found module libexpat.so.1 with build-id: 8850138eae6d9d4d43c5c4b2ac48393bc4279037
    Found module libpixman-1.so.0 with build-id: 341f793dcada3a48a306a793d265a517e3f2e7d6
    Found module libxcb-shm.so.0 with build-id: fb797f299a446f559a95afcc168227482cc800d1
    Found module libxcb-render.so.0 with build-id: a37bdb37744b508be9dd29fd9ccb9bb0170d43e5
    Found module libxcb.so.1 with build-id: 0d1ef11740a5daad2ee331e812a51aa6574af222
    Found module libXrender.so.1 with build-id: 97e0b9ab6ba96ebc86527cc2b3c3078aad8616b3
    Found module libgraphite2.so.3 with build-id: 47761dc11e553f519cde97ed9ee985be12ccdae2
    Found module libthai.so.0 with build-id: 3fdce1a7db2b94d9168eea540dbf5ff5caa3b8ad
    Found module libtiff.so.5 with build-id: e8d89a0fb0847641ddb75c5f03fa89d68155a75d
    Found module libjpeg.so.8 with build-id: 2b2ee5daa1e21c0586419b05282528a6556259b2
    Found module libpng16.so.16 with build-id: 2dc0bce07f199bf983c07a05fb95a6f4af83a9b3
    Found module libbsd.so.0 with build-id: f872eb7bd22a103b7208ca9e4730ff8dc6d83590
    Found module libasound.so.2 with build-id: 9288c92ff737b1999761df2018fcd0e7cbf46d5a
    Found module libdl.so.2 with build-id: 5abc547e7b0949f89f3c0e21ab0c8331a7440a8a
    Found module libdbus-1.so.3 with build-id: 74f2ab9c60512f3a93c932c3f627564d42e0b11e
    Found module libpulsecommon-14.99.so with build-id: 3c2b1c5f5b1b8cae1cb89a55e7156aa1b5fcc48f
    Found module libdbusmenu-glib.so.4 with build-id: c2fe215629a5a346cc5381408466d77f8c540e25
    Found module libpcre.so.1 with build-id: 845483dd0acba86de9f0313102bebbaf3ce52767
    Found module libresolv.so.2 with build-id: c915c72668282861a813f7ea3c0780f37b681dc0
    Found module libmount.so.1 with build-id: 03cb4d49246c496b0809aa7ad71a017bd671a80d
    Found module libz.so.1 with build-id: 81bf6e728a6d6f5b105b0f8b25f6c614ce10452a
    Found module libXinerama.so.1 with build-id: dbb6adece34ea2766d3efcd628af8f9757344dd6
    Found module libXrandr.so.2 with build-id: d4e869b5c72541e1de8f96b456248987ea52d51b
    Found module libXcomposite.so.1 with build-id: f1bb5ffb6203ab2907ac044a204ce3902a79f1c1
    Found module libXdamage.so.1 with build-id: a1d867e093c16944b2c0083be98050ef35c9e5c2
    Found module libXcursor.so.1 with build-id: eb6315bcd7526aaf51b0a1307efdc587cea0a152
    Found module libXext.so.6 with build-id: d70f24beb4fad748d6becffdcc13e51be0a2ebfa
    Found module libwayland-egl.so.1 with build-id: 1c761f5ec5429abb88e4f6ff71815358e58c393c
    Found module libwayland-cursor.so.0 with build-id: a8b45436314425ee9a92efaff68bd2b79f870e77
    Found module libxkbcommon.so.0 with build-id: 9c297febc9583fd5b65e15f1bd89ec8172e97e50
    Found module librt.so.1 with build-id: 75484da2d6f1515189eefa076e0a40328834cd16
    Found module libXfixes.so.3 with build-id: 0a05c7e8714522bfbdd7c0027c3e2a94965664b0
    Found module libcloudproviders.so.0 with build-id: ed1d9c9e60be4e858ad148484767249be1edf95f
    Found module libatk-bridge-2.0.so.0 with build-id: 1161ebbcc5aa791075dfa026671875e5417287bd
    Found module libX11.so.6 with build-id: e9192497aa39fab51358826d1a1b5fb77edc5081
    Found module libXi.so.6 with build-id: 0557077390d87019cd9e0b3bb849643eaca73e30
    Found module libepoxy.so.0 with build-id: 90da22e0a8d12c6b90fb00d95a23cc657b599334
    Found module libatk-1.0.so.0 with build-id: aacaa40363d304858b654728a893bc212a4ca119
    Found module libcairo-gobject.so.2 with build-id: abbf5a8a182ea1b8b7d68540df5c2e25c0bdae0c
    Found module libfribidi.so.0 with build-id: e29e3b231f961d49e628d43ddd1237a8364f788c
    Found module libfreetype.so.6 with build-id: 3131a701435f4d87afeab159b4aa57c4d151ffc3
    Found module libfontconfig.so.1 with build-id: 1103a641395c7d3b42e49b793d3a9ea927c77bf6
    Found module libpangoft2-1.0.so.0 with build-id: 704dc3cd81d2ea50cc4d8589b59c42ff6da55fa3
    Found module libcairo.so.2 with build-id: 06820af9cf79c2deb207d9533a61caf04e67a8ad
    Found module libharfbuzz.so.0 with build-id: 193a18a69d9e71d9988c6795c000fea51a2ac500
    Found module libpango-1.0.so.0 with build-id: 68d673371ec32a28694d83dc9c8d6b348c91bb4e
    Found module libpangocairo-1.0.so.0 with build-id: 2554be0474a6ee311b6e9aa4fd79a244167cdcfd
    Found module libgmodule-2.0.so.0 with build-id: 1c305e1a08706be35604a78f8d99a567274a0217
    Found module libgdk_pixbuf-2.0.so.0 with build-id: e93795f419fcfe7aba6fdf6923dc9d02a61a6d5a
    Found module libatkmm-1.6.so.1 with build-id: de4113c984abd24cfd8bd4fd5bdb047cb1d3e1bc
    Found module libpangomm-1.4.so.1 with build-id: 2cec36bcc7834108cb4d22aa33ee2082e8461eb3
    Found module libcairomm-1.0.so.1 with build-id: d46392cba29606ecd937696fc4c4920d7943e197
    Found module ld-linux-x86-64.so.2 with build-id: 040cc3dd10461562f177df39e3be2f3704258c3c
    Found module libffi.so.7 with build-id: de60e99f39569d11d09160bbdcd486cedc87d2b6
    Found module libc.so.6 with build-id: 4b406737057708c0e4c642345a703c47a61c73dc
    Found module libpthread.so.0 with build-id: 07c8f95b4f3251d08550217ad8a1f31066229996
    Found module libgcc_s.so.1 with build-id: 7f8508bb914546ada778809b64b99d234337d835
    Found module libm.so.6 with build-id: 2b8fd1f869ecab4e0b55e92f2f151897f6818acf
    Found module libstdc++.so.6 with build-id: 8ab0e57054dd1dcba681f217016afc6a4e639783
    Found module libdate-tz.so.2.4.1 with build-id: 41cf28dcf4a771f26cea6035225786f46f981a9f
    Found module libsndio.so.7.1 with build-id: 902d3b3695b6b8d5550e2fef7604c814f254e462
    Found module libgtk-layer-shell.so.0 with build-id: fe513eb7fe1d99817a894dcc1a6bd604157a23d8
    Found module libmpdclient.so.2 with build-id: ff5214dacf7ecbd72851ad0770feee11facbd4ff
    Found module libudev.so.1 with build-id: 880e57f50a36ddbfe80dbe5f62d43860f960c797
    Found module libpulse.so.0 with build-id: 2e026f83c29e0dd96ec0ffcef3cb7aaa6a4905dc
    Found module libnl-genl-3.so.200 with build-id: f2475497c160d564dd619c097bad5b30dd786e31
    Found module libnl-3.so.200 with build-id: 3e4695485d1726e09051f3d1abd0e2365a7c8a08
    Found module libdbusmenu-gtk3.so.4 with build-id: 313794b4658942533b4d5cb971a6fb44f185ea54
    Found module libglib-2.0.so.0 with build-id: 1683975c11bffb530743825149325e84765311ab
    Found module libgobject-2.0.so.0 with build-id: a6d338dd0fd6bb335a4010b838f5173c6cbf953a
    Found module libglibmm-2.4.so.1 with build-id: 245dd33982d8e182c8fa0adcbd81d235d80a1702
    Found module libgio-2.0.so.0 with build-id: 451ca85a17a8e53e563a4a878f7f44901bd5a1e1
    Found module libgdk-3.so.0 with build-id: 69fa63b702942fc002bbb4d367cd4423083523fd
    Found module libgtk-3.so.0 with build-id: 7b16a75668848854c2613cd675e0cad10ed20a04
    Found module libgiomm-2.4.so.1 with build-id: 2086eefc3fb3ebda0b85e2a34f4facf7a1c09d56
    Found module libgdkmm-3.0.so.1 with build-id: 19b5880dd1579e371b4c8000089c3177311c5193
    Found module libgtkmm-3.0.so.1 with build-id: e0f0b8d7c472550fde749fd1846242ef38e92104
    Found module libjsoncpp.so.24 with build-id: 675605d3bda7f861069f5be2ee1f7004e5d90404
    Found module libsigc-2.0.so.0 with build-id: 297c18f4158bceff37c96ba10b4c5b8b87bf22b1
    Found module libspdlog.so.1 with build-id: d12418b8a48f1573deb8287cde046eb047703325
    Found module libfmt.so.8 with build-id: 4d465b002717164d3e84cca1ebe35d9b5cc5f0d8
    Found module libwayland-client.so.0 with build-id: 58038363d7ea1fd5e6532f6e5f90b1a3ce09388a
    Found module waybar with build-id: 0612d82ca3e1a940fea77d3af8216394262b544b
    Stack trace of thread 32941:
    #0  0x00007f9b20fa6d22 raise (libc.so.6 + 0x3cd22)
    #1  0x00007f9b20f90862 abort (libc.so.6 + 0x26862)
    #2  0x00007f9b21351802 _ZN9__gnu_cxx27__verbose_terminate_handlerEv (libstdc++.so.6 + 0x99802)
    #3  0x00007f9b2135dc8a _ZN10__cxxabiv111__terminateEPFvvE (libstdc++.so.6 + 0xa5c8a)
    #4  0x00007f9b2135dcf7 _ZSt9terminatev (libstdc++.so.6 + 0xa5cf7)
    #5  0x00007f9b2135d5fd __gxx_personality_v0 (libstdc++.so.6 + 0xa55fd)
    #6  0x00007f9b211680b4 _Unwind_ForcedUnwind_Phase2 (libgcc_s.so.1 + 0x110b4)
    #7  0x00007f9b211687b2 _Unwind_ForcedUnwind (libgcc_s.so.1 + 0x117b2)
    #8  0x00007f9b21148374 __pthread_unwind (libpthread.so.0 + 0x12374)
    #9  0x00007f9b2113dc09 sigcancel_handler (libpthread.so.0 + 0x7c09)
    #10 0x00007f9b21149870 __restore_rt (libpthread.so.0 + 0x13870)
    #11 0x00007f9b2114b8ca __futex_abstimed_wait_common64 (libpthread.so.0 + 0x158ca)
    #12 0x00007f9b21145842 pthread_cond_clockwait (libpthread.so.0 + 0xf842)
    #13 0x00005628d99d50a0 n/a (waybar + 0x4f0a0)
    #14 0x00005628d99b5b81 n/a (waybar + 0x2fb81)
    #15 0x00007f9b2138b3c4 execute_native_thread_routine (libstdc++.so.6 + 0xd33c4)
    #16 0x00007f9b2113f259 start_thread (libpthread.so.0 + 0x9259)
    #17 0x00007f9b210685e3 __clone (libc.so.6 + 0xfe5e3)
    
    Stack trace of thread 32943:
    #0  0x00007f9b211469b4 pthread_cancel (libpthread.so.0 + 0x109b4)
    #1  0x00005628d99d5206 n/a (waybar + 0x4f206)
    #2  0x00005628d99b5b81 n/a (waybar + 0x2fb81)
    #3  0x00007f9b2138b3c4 execute_native_thread_routine (libstdc++.so.6 + 0xd33c4)
    #4  0x00007f9b2113f259 start_thread (libpthread.so.0 + 0x9259)
    #5  0x00007f9b210685e3 __clone (libc.so.6 + 0xfe5e3)
    
    Stack trace of thread 32922:
    #0  0x00007f9b2105db2f __poll (libc.so.6 + 0xf3b2f)
    #1  0x00007f9b216bab29 n/a (libglib-2.0.so.0 + 0xa7b29)
    #2  0x00007f9b21666693 g_main_loop_run (libglib-2.0.so.0 + 0x53693)
    #3  0x00007f9b2192b8c8 n/a (libgio-2.0.so.0 + 0x1018c8)
    #4  0x00007f9b216952c1 n/a (libglib-2.0.so.0 + 0x822c1)
    #5  0x00007f9b2113f259 start_thread (libpthread.so.0 + 0x9259)
    #6  0x00007f9b210685e3 __clone (libc.so.6 + 0xfe5e3)
    
    Stack trace of thread 32919:
    #0  0x00007f9b20fa7ae2 __sigtimedwait (libc.so.6 + 0x3dae2)
    #1  0x00007f9b211493ac sigwait (libpthread.so.0 + 0x133ac)
    #2  0x00005628d99bbd8c n/a (waybar + 0x35d8c)
    #3  0x00007f9b2113f259 start_thread (libpthread.so.0 + 0x9259)
    #4  0x00007f9b210685e3 __clone (libc.so.6 + 0xfe5e3)
    
    Stack trace of thread 32952:
    #0  0x00007f9b2114b8ca __futex_abstimed_wait_common64 (libpthread.so.0 + 0x158ca)
    #1  0x00007f9b21145574 pthread_cond_timedwait@@GLIBC_2.3.2 (libpthread.so.0 + 0xf574)
    #2  0x00005628d9a164a6 n/a (waybar + 0x904a6)
    #3  0x00005628d99b5b81 n/a (waybar + 0x2fb81)
    #4  0x00007f9b2138b3c4 execute_native_thread_routine (libstdc++.so.6 + 0xd33c4)
    #5  0x00007f9b2113f259 start_thread (libpthread.so.0 + 0x9259)
    #6  0x00007f9b210685e3 __clone (libc.so.6 + 0xfe5e3)
    
    Stack trace of thread 32921:
    #0  0x00007f9b2106318d syscall (libc.so.6 + 0xf918d)
    #1  0x00007f9b216b504b g_cond_wait_until (libglib-2.0.so.0 + 0xa204b)
    #2  0x00007f9b216367d3 n/a (libglib-2.0.so.0 + 0x237d3)
    #3  0x00007f9b21636964 g_async_queue_timeout_pop (libglib-2.0.so.0 + 0x23964)
    #4  0x00007f9b21697f1a n/a (libglib-2.0.so.0 + 0x84f1a)
    #5  0x00007f9b216952c1 n/a (libglib-2.0.so.0 + 0x822c1)
    #6  0x00007f9b2113f259 start_thread (libpthread.so.0 + 0x9259)
    #7  0x00007f9b210685e3 __clone (libc.so.6 + 0xfe5e3)
    
    Stack trace of thread 32920:
    #0  0x00007f9b2105db2f __poll (libc.so.6 + 0xf3b2f)
    #1  0x00007f9b216bab29 n/a (libglib-2.0.so.0 + 0xa7b29)
    #2  0x00007f9b21664871 g_main_context_iteration (libglib-2.0.so.0 + 0x51871)
    #3  0x00007f9b216648c2 n/a (libglib-2.0.so.0 + 0x518c2)
    #4  0x00007f9b216952c1 n/a (libglib-2.0.so.0 + 0x822c1)
    #5  0x00007f9b2113f259 start_thread (libpthread.so.0 + 0x9259)
    #6  0x00007f9b210685e3 __clone (libc.so.6 + 0xfe5e3)
    
    Stack trace of thread 32931:
    #0  0x00007f9b2114b8ca __futex_abstimed_wait_common64 (libpthread.so.0 + 0x158ca)
    #1  0x00007f9b21145574 pthread_cond_timedwait@@GLIBC_2.3.2 (libpthread.so.0 + 0xf574)
    #2  0x00005628d9a164a6 n/a (waybar + 0x904a6)
    #3  0x00005628d99b5b81 n/a (waybar + 0x2fb81)
    #4  0x00007f9b2138b3c4 execute_native_thread_routine (libstdc++.so.6 + 0xd33c4)
    #5  0x00007f9b2113f259 start_thread (libpthread.so.0 + 0x9259)
    #6  0x00007f9b210685e3 __clone (libc.so.6 + 0xfe5e3)
    
    Stack trace of thread 32923:
    #0  0x00007f9b2105db2f __poll (libc.so.6 + 0xf3b2f)
    #1  0x00007f9b216bab29 n/a (libglib-2.0.so.0 + 0xa7b29)
    #2  0x00007f9b21664871 g_main_context_iteration (libglib-2.0.so.0 + 0x51871)
    #3  0x00007f9b229e0ebe n/a (libdconfsettings.so + 0x5ebe)
    #4  0x00007f9b216952c1 n/a (libglib-2.0.so.0 + 0x822c1)
    #5  0x00007f9b2113f259 start_thread (libpthread.so.0 + 0x9259)
    #6  0x00007f9b210685e3 __clone (libc.so.6 + 0xfe5e3)
    
    Stack trace of thread 32946:
    #0  0x00007f9b21148a2c recv (libpthread.so.0 + 0x12a2c)
    #1  0x00005628d99e0aec n/a (waybar + 0x5aaec)
    #2  0x00005628d99e10ea n/a (waybar + 0x5b0ea)
    #3  0x00005628d99e1525 n/a (waybar + 0x5b525)
    #4  0x00005628d99b5b81 n/a (waybar + 0x2fb81)
    #5  0x00007f9b2138b3c4 execute_native_thread_routine (libstdc++.so.6 + 0xd33c4)
    #6  0x00007f9b2113f259 start_thread (libpthread.so.0 + 0x9259)
    #7  0x00007f9b210685e3 __clone (libc.so.6 + 0xfe5e3)
    
    Stack trace of thread 32950:
    #0  0x00007f9b2114879c read (libpthread.so.0 + 0x1279c)
    #1  0x00005628d99d251a n/a (waybar + 0x4c51a)
    #2  0x00005628d99b5b81 n/a (waybar + 0x2fb81)
    #3  0x00007f9b2138b3c4 execute_native_thread_routine (libstdc++.so.6 + 0xd33c4)
    #4  0x00007f9b2113f259 start_thread (libpthread.so.0 + 0x9259)
    #5  0x00007f9b210685e3 __clone (libc.so.6 + 0xfe5e3)
    
    Stack trace of thread 32949:
    #0  0x00007f9b2114b8ca __futex_abstimed_wait_common64 (libpthread.so.0 + 0x158ca)
    #1  0x00007f9b21145842 pthread_cond_clockwait (libpthread.so.0 + 0xf842)
    #2  0x00005628d99d50a0 n/a (waybar + 0x4f0a0)
    #3  0x00005628d99b5b81 n/a (waybar + 0x2fb81)
    #4  0x00007f9b2138b3c4 execute_native_thread_routine (libstdc++.so.6 + 0xd33c4)
    #5  0x00007f9b2113f259 start_thread (libpthread.so.0 + 0x9259)
    #6  0x00007f9b210685e3 __clone (libc.so.6 + 0xfe5e3)
    
    Stack trace of thread 32926:
    #0  0x00007f9b2114b8ca __futex_abstimed_wait_common64 (libpthread.so.0 + 0x158ca)
    #1  0x00007f9b21145842 pthread_cond_clockwait (libpthread.so.0 + 0xf842)
    #2  0x00005628d99f5c29 n/a (waybar + 0x6fc29)
    #3  0x00005628d99b5b81 n/a (waybar + 0x2fb81)
    #4  0x00007f9b2138b3c4 execute_native_thread_routine (libstdc++.so.6 + 0xd33c4)
    #5  0x00007f9b2113f259 start_thread (libpthread.so.0 + 0x9259)
    #6  0x00007f9b210685e3 __clone (libc.so.6 + 0xfe5e3)
    
    Stack trace of thread 32924:
    #0  0x00007f9b21148a2c recv (libpthread.so.0 + 0x12a2c)
    #1  0x00005628d99e0aec n/a (waybar + 0x5aaec)
    #2  0x00005628d99e10ea n/a (waybar + 0x5b0ea)
    #3  0x00005628d99e77b5 n/a (waybar + 0x617b5)
    #4  0x00005628d99b5b81 n/a (waybar + 0x2fb81)
    #5  0x00007f9b2138b3c4 execute_native_thread_routine (libstdc++.so.6 + 0xd33c4)
    #6  0x00007f9b2113f259 start_thread (libpthread.so.0 + 0x9259)
    #7  0x00007f9b210685e3 __clone (libc.so.6 + 0xfe5e3)
    
    Stack trace of thread 32939:
    #0  0x00007f9b2114b8ca __futex_abstimed_wait_common64 (libpthread.so.0 + 0x158ca)
    #1  0x00007f9b21145842 pthread_cond_clockwait (libpthread.so.0 + 0xf842)
    #2  0x00005628d99f5c29 n/a (waybar + 0x6fc29)
    #3  0x00005628d99b5b81 n/a (waybar + 0x2fb81)
    #4  0x00007f9b2138b3c4 execute_native_thread_routine (libstdc++.so.6 + 0xd33c4)
    #5  0x00007f9b2113f259 start_thread (libpthread.so.0 + 0x9259)
    #6  0x00007f9b210685e3 __clone (libc.so.6 + 0xfe5e3)
    
    Stack trace of thread 32927:
    #0  0x00007f9b2106892e epoll_wait (libc.so.6 + 0xfe92e)
    #1  0x00005628d99f49cb n/a (waybar + 0x6e9cb)
    #2  0x00005628d99b5b81 n/a (waybar + 0x2fb81)
    #3  0x00007f9b2138b3c4 execute_native_thread_routine (libstdc++.so.6 + 0xd33c4)
    #4  0x00007f9b2113f259 start_thread (libpthread.so.0 + 0x9259)
    #5  0x00007f9b210685e3 __clone (libc.so.6 + 0xfe5e3)
    
    Stack trace of thread 32925:
    #0  0x00007f9b21148a2c recv (libpthread.so.0 + 0x12a2c)
    #1  0x00005628d99e0aec n/a (waybar + 0x5aaec)
    #2  0x00005628d99e10ea n/a (waybar + 0x5b0ea)
    #3  0x00005628d99e1525 n/a (waybar + 0x5b525)
    #4  0x00005628d99b5b81 n/a (waybar + 0x2fb81)
    #5  0x00007f9b2138b3c4 execute_native_thread_routine (libstdc++.so.6 + 0xd33c4)
    #6  0x00007f9b2113f259 start_thread (libpthread.so.0 + 0x9259)
    #7  0x00007f9b210685e3 __clone (libc.so.6 + 0xfe5e3)
    
    Stack trace of thread 32947:
    #0  0x00007f9b2114b8ca __futex_abstimed_wait_common64 (libpthread.so.0 + 0x158ca)
    #1  0x00007f9b21145842 pthread_cond_clockwait (libpthread.so.0 + 0xf842)
    #2  0x00005628d99f5c29 n/a (waybar + 0x6fc29)
    #3  0x00005628d99b5b81 n/a (waybar + 0x2fb81)
    #4  0x00007f9b2138b3c4 execute_native_thread_routine (libstdc++.so.6 + 0xd33c4)
    #5  0x00007f9b2113f259 start_thread (libpthread.so.0 + 0x9259)
    #6  0x00007f9b210685e3 __clone (libc.so.6 + 0xfe5e3)
    
    Stack trace of thread 32940:
    #0  0x00007f9b2106892e epoll_wait (libc.so.6 + 0xfe92e)
    #1  0x00005628d99f49cb n/a (waybar + 0x6e9cb)
    #2  0x00005628d99b5b81 n/a (waybar + 0x2fb81)
    #3  0x00007f9b2138b3c4 execute_native_thread_routine (libstdc++.so.6 + 0xd33c4)
    #4  0x00007f9b2113f259 start_thread (libpthread.so.0 + 0x9259)
    #5  0x00007f9b210685e3 __clone (libc.so.6 + 0xfe5e3)
    
    Stack trace of thread 32928:
    #0  0x00007f9b2114b8ca __futex_abstimed_wait_common64 (libpthread.so.0 + 0x158ca)
    #1  0x00007f9b21145842 pthread_cond_clockwait (libpthread.so.0 + 0xf842)
    #2  0x00005628d99d50a0 n/a (waybar + 0x4f0a0)
    #3  0x00005628d99b5b81 n/a (waybar + 0x2fb81)
    #4  0x00007f9b2138b3c4 execute_native_thread_routine (libstdc++.so.6 + 0xd33c4)
    #5  0x00007f9b2113f259 start_thread (libpthread.so.0 + 0x9259)
    #6  0x00007f9b210685e3 __clone (libc.so.6 + 0xfe5e3)
    
    Stack trace of thread 32937:
    #0  0x00007f9b21148a2c recv (libpthread.so.0 + 0x12a2c)
    #1  0x00005628d99e0aec n/a (waybar + 0x5aaec)
    #2  0x00005628d99e10ea n/a (waybar + 0x5b0ea)
    #3  0x00005628d99e77b5 n/a (waybar + 0x617b5)
    #4  0x00005628d99b5b81 n/a (waybar + 0x2fb81)
    #5  0x00007f9b2138b3c4 execute_native_thread_routine (libstdc++.so.6 + 0xd33c4)
    #6  0x00007f9b2113f259 start_thread (libpthread.so.0 + 0x9259)
    #7  0x00007f9b210685e3 __clone (libc.so.6 + 0xfe5e3)
    
    Stack trace of thread 32938:
    #0  0x00007f9b21148a2c recv (libpthread.so.0 + 0x12a2c)
    #1  0x00005628d99e0aec n/a (waybar + 0x5aaec)
    #2  0x00005628d99e10ea n/a (waybar + 0x5b0ea)
    #3  0x00005628d99e1525 n/a (waybar + 0x5b525)
    #4  0x00005628d99b5b81 n/a (waybar + 0x2fb81)
    #5  0x00007f9b2138b3c4 execute_native_thread_routine (libstdc++.so.6 + 0xd33c4)
    #6  0x00007f9b2113f259 start_thread (libpthread.so.0 + 0x9259)
    #7  0x00007f9b210685e3 __clone (libc.so.6 + 0xfe5e3)
    
    Stack trace of thread 32945:
    #0  0x00007f9b21148a2c recv (libpthread.so.0 + 0x12a2c)
    #1  0x00005628d99e0aec n/a (waybar + 0x5aaec)
    #2  0x00005628d99e10ea n/a (waybar + 0x5b0ea)
    #3  0x00005628d99e77b5 n/a (waybar + 0x617b5)
    #4  0x00005628d99b5b81 n/a (waybar + 0x2fb81)
    #5  0x00007f9b2138b3c4 execute_native_thread_routine (libstdc++.so.6 + 0xd33c4)
    #6  0x00007f9b2113f259 start_thread (libpthread.so.0 + 0x9259)
    #7  0x00007f9b210685e3 __clone (libc.so.6 + 0xfe5e3)
    
    Stack trace of thread 32942:
    #0  0x00007f9b2114879c read (libpthread.so.0 + 0x1279c)
    #1  0x00005628d99d251a n/a (waybar + 0x4c51a)
    #2  0x00005628d99b5b81 n/a (waybar + 0x2fb81)
    #3  0x00007f9b2138b3c4 execute_native_thread_routine (libstdc++.so.6 + 0xd33c4)
    #4  0x00007f9b2113f259 start_thread (libpthread.so.0 + 0x9259)
    #5  0x00007f9b210685e3 __clone (libc.so.6 + 0xfe5e3)
    
    Stack trace of thread 32929:
    #0  0x00007f9b2114879c read (libpthread.so.0 + 0x1279c)
    #1  0x00005628d99d251a n/a (waybar + 0x4c51a)
    #2  0x00005628d99b5b81 n/a (waybar + 0x2fb81)
    #3  0x00007f9b2138b3c4 execute_native_thread_routine (libstdc++.so.6 + 0xd33c4)
    #4  0x00007f9b2113f259 start_thread (libpthread.so.0 + 0x9259)
    #5  0x00007f9b210685e3 __clone (libc.so.6 + 0xfe5e3)
    
    Stack trace of thread 32930:
    #0  0x00007f9b2114879c read (libpthread.so.0 + 0x1279c)
    #1  0x00005628d99d516a n/a (waybar + 0x4f16a)
    #2  0x00005628d99b5b81 n/a (waybar + 0x2fb81)
    #3  0x00007f9b2138b3c4 execute_native_thread_routine (libstdc++.so.6 + 0xd33c4)
    #4  0x00007f9b2113f259 start_thread (libpthread.so.0 + 0x9259)
    #5  0x00007f9b210685e3 __clone (libc.so.6 + 0xfe5e3)
    
    Stack trace of thread 32951:
    #0  0x00007f9b2114879c read (libpthread.so.0 + 0x1279c)
    #1  0x00005628d99d516a n/a (waybar + 0x4f16a)
    #2  0x00005628d99b5b81 n/a (waybar + 0x2fb81)
    #3  0x00007f9b2138b3c4 execute_native_thread_routine (libstdc++.so.6 + 0xd33c4)
    #4  0x00007f9b2113f259 start_thread (libpthread.so.0 + 0x9259)
    #5  0x00007f9b210685e3 __clone (libc.so.6 + 0xfe5e3)
    
    Stack trace of thread 32948:
    #0  0x00007f9b2106892e epoll_wait (libc.so.6 + 0xfe92e)
    #1  0x00005628d99f49cb n/a (waybar + 0x6e9cb)
    #2  0x00005628d99b5b81 n/a (waybar + 0x2fb81)
    #3  0x00007f9b2138b3c4 execute_native_thread_routine (libstdc++.so.6 + 0xd33c4)
    #4  0x00007f9b2113f259 start_thread (libpthread.so.0 + 0x9259)
    #5  0x00007f9b210685e3 __clone (libc.so.6 + 0xfe5e3)
    
    Stack trace of thread 32918:
    #0  0x00007f9b2114b8ca __futex_abstimed_wait_common64 (libpthread.so.0 + 0x158ca)
    #1  0x00007f9b21140743 __pthread_clockjoin_ex (libpthread.so.0 + 0xa743)
    #2  0x00007f9b2138b628 __gthread_join (libstdc++.so.6 + 0xd3628)
    #3  0x00005628d99d996e n/a (waybar + 0x5396e)
    #4  0x00005628d99d99f9 n/a (waybar + 0x539f9)
    #5  0x00005628d99c481f n/a (waybar + 0x3e81f)
    #6  0x00005628d99c4a6c n/a (waybar + 0x3ea6c)
    #7  0x00005628d99c92b7 n/a (waybar + 0x432b7)
    #8  0x00007f9b217f45d9 n/a (libglibmm-2.4.so.1 + 0x505d9)
    #9  0x00007f9b21667015 g_main_context_dispatch (libglib-2.0.so.0 + 0x54015)
    #10 0x00007f9b216bab99 n/a (libglib-2.0.so.0 + 0xa7b99)
    #11 0x00007f9b21664871 g_main_context_iteration (libglib-2.0.so.0 + 0x51871)
    #12 0x00007f9b218f68b6 g_application_run (libgio-2.0.so.0 + 0xcc8b6)
    #13 0x00005628d99ac47e n/a (waybar + 0x2647e)
    #14 0x00005628d99ab7d6 main (waybar + 0x257d6)
    #15 0x00007f9b20f91b25 __libc_start_main (libc.so.6 + 0x27b25)
    #16 0x00005628d99acfae n/a (waybar + 0x26fae)
░░ Subject: Process 32918 (waybar) dumped core
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ Documentation: man:core(5)
░░ 
░░ Process 32918 (waybar) crashed and dumped core.
░░ 
░░ This usually indicates a programming error in the crashing program and
░░ should be reported to its vendor as a bug.
Jul 11 21:03:40 aiko systemd[1]: [email protected]: Deactivated successfully.
░░ Subject: Unit succeeded
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ The unit [email protected] has successfully entered the 'dead' state.

If I can help you with any further information please let me know.

@dvzrv
Copy link

dvzrv commented Jul 15, 2021

I'm experiencing the same right after/during unlocking my lockscreen.

This seems to have been introduced by the upgrade to fmt to > 8.0.0 and applying #1144.
For Arch Linux this is tracked in https://bugs.archlinux.org/task/71512

@AToMiXhawK
Copy link

AToMiXhawK commented Jul 17, 2021

Same issue here, also occurs when turning off a display with dpms

❯ waybar -l trace
[2021-07-17 21:41:05.479] [info] Resources files: /home/hawk/.config/waybar/config, /home/hawk/.config/waybar/style.css
[2021-07-17 21:41:05.488] [debug] Output detection done: HDMI-A-2 (Hewlett Packard HP 22vx 3CM5250FHX   )
[2021-07-17 21:41:05.489] [debug] Output detection done: eDP-1 (Unknown 0x058C 0x00000000)
...
[2021-07-17 21:41:05.825] [info] Bar configured (width: 1920, height: 26) for output: eDP-1
[2021-07-17 21:41:05.874] [info] Bar configured (width: 1920, height: 26) for output: HDMI-A-2
[2021-07-17 21:41:13.225] [debug] Output removed: Unknown 0x058C
terminate called without an active exception
zsh: abort (core dumped)  waybar -l trace

@TheTumultuousUnicornOfDarkness
Copy link

TheTumultuousUnicornOfDarkness commented Jul 18, 2021

I have the same issue when I turn off my monitor:

$ waybar -l debug
[2021-07-18 11:23:04.022] [info] Resources files: /home/xorg/.config/waybar/config, /home/xorg/.config/waybar/style.css
[2021-07-18 11:23:04.027] [debug] Output detection done: HDMI-A-1 (Iiyama North America PL2481H 11186V2801144)
...
** (waybar:183355): WARNING **: 11:23:04.049: gtk-layer-shell v0.6.0 may not work on GTK v3.24.30. If you experience crashes, check https://github.com/wmww/gtk-layer-shell/blob/master/compatibility.md
[2021-07-18 11:23:04.049] [debug] GTK widget tree:
window#waybar.background.top.HDMI-A-1.:dir(ltr)
  decoration:dir(ltr)
  box.horizontal:dir(ltr)
    box.horizontal.modules-left:dir(ltr)
      widget:dir(ltr)
        box#workspaces.horizontal:dir(ltr)
      widget:dir(ltr)
        box#tray.horizontal:dir(ltr)
    box.horizontal.modules-center:dir(ltr)
      widget:dir(ltr)
        label#mode:dir(ltr)
    box.horizontal.modules-right:dir(ltr)
      widget:dir(ltr)
        label#custom-backup:dir(ltr)
      widget:dir(ltr)
        label#custom-aur:dir(ltr)
      widget:dir(ltr)
        label#pulseaudio:dir(ltr)
      widget:dir(ltr)
        label#memory:dir(ltr)
      widget:dir(ltr)
        label#network:dir(ltr)
      widget:dir(ltr)
        label#custom-cpu:dir(ltr)
      widget:dir(ltr)
        label#custom-gpu:dir(ltr)
      widget:dir(ltr)
        label#clock:dir(ltr)
      widget:dir(ltr)
        label#custom-power:dir(ltr)

[2021-07-18 11:23:04.072] [info] Bar configured (width: 1920, height: 22) for output: HDMI-A-1
...
[2021-07-18 11:23:10.965] [debug] Output removed: Iiyama North America PL2481H
terminate called without an active exception
zsh: abort (core dumped)  waybar -l debug

I am using waybar 0.9.7-2 from Arch Linux's community repository.

@donnex
Copy link

donnex commented Jul 19, 2021

Same issue here. Waybar dies when my monitor goes to sleep or is unplugged. Also on Arch running Waybar v0.9.7.

@evlli
Copy link
Author

evlli commented Jul 20, 2021

Please try compiling from source, arch users can use the aur package waybar-git
It appears both suspend and display-unplugging issues are no longer present, atleast I can no longer replicate them on the current master branch using any of my devices.

@mvdan
Copy link
Contributor

mvdan commented Jul 20, 2021

@evlli I agree, I can reproduce on v0.9.7 but not on master.

@torwag
Copy link

torwag commented Jul 20, 2021

I had similar problems using kanshi. Whenever kanshi kicked in, e.g. during a change of monitor configurations or calling kanshi manually, the waybar was gone. "Upgrading" to master by using the arch AUR waybar-git package, seems to fix this problem.

@TheTumultuousUnicornOfDarkness

@evlli thanks for the tip. Issue is not present with waybar-git-r1536.811f089-1.

@guneydoganer
Copy link

guneydoganer commented Jul 24, 2021

Following @evlli 's advice, I switched over to sway-git and it seemed to resolve the problem for a few days. However, it is now back again and I keep losing my waybar after swayidle kicks in.

I did notice a new version of fmt was released and I upgraded to it, might it be related to that?

@mvdan
Copy link
Contributor

mvdan commented Jul 27, 2021

I am once again experiencing crashes after suspend, even though I've been keeping waybar-git up to date and rebuilding it as its deps upgrade. I too use sway with kanshi.

@acieroid
Copy link

acieroid commented Aug 3, 2021

Running sway 1.6.1 here, I had the same issue with waybar 0.9.7. Upgrading to the git version (r1574.9aec6bb-1) solved the issue.

@nop-90
Copy link

nop-90 commented Aug 4, 2021

With sway 1.6.1 (no git) and Waybar v0.9.7-118-g9aec6bb i'm also having this problem. I use kanshi for screen switching.

Here is a stack trace from gdb from the crash after disconnecting HDMI port :

[#0] 0x7ffff66ab79c → read()
[#1] 0x5555555b5c4a → operator()(__closure=0x5555559f8ac0)
[#2] 0x5555555b5c4a → std::__invoke_impl<void, waybar::modules::Battery::worker()::<lambda()>&>(__f=@0x5555559f8ac0)
[#3] 0x5555555b5c4a → std::__invoke_r<void, waybar::modules::Battery::worker()::<lambda()>&>(__fn=@0x5555559f8ac0)
[#4] 0x5555555b5c4a → std::_Function_handler<void(), waybar::modules::Battery::worker()::<lambda()> >::_M_invoke(const std::_Any_data &)(__functor=@0x5555559f8ac0)
[#5] 0x555555598be1 → std::function<void ()>::operator()() const(this=0x5555559f8ac0)
[#6] 0x555555598be1 → waybar::util::SleeperThread::operator=(std::function<void ()>)::{lambda()#1}::operator()() const(__closure=0x5555559f8ab8)
[#7] 0x555555598be1 → std::__invoke_impl<void, waybar::util::SleeperThread::operator=(std::function<void ()>)::{lambda()#1}>(std::__invoke_other, waybar::util::SleeperThread::operator=(std::function<void ()>)::{lambda()#1}&&)(__f=@0x5555559f8ab8)
[#8] 0x555555598be1 → std::__invoke<waybar::util::SleeperThread::operator=(std::function<void ()>)::{lambda()#1}>(waybar::util::SleeperThread::operator=(std::function<void ()>)::{lambda()#1}&&)(__fn=@0x5555559f8ab8)
[#9] 0x555555598be1 → std::thread::_Invoker<std::tuple<waybar::util::SleeperThread::operator=(std::function<void ()>)::{lambda()#1}> >::_M_invoke<0ul>(std::_Index_tuple<0ul>)(this=0x5555559f8ab8)

@grmat
Copy link
Contributor

grmat commented Aug 16, 2021

FYI the commit fixing this issue is 5da2680, I just bisected it. However you'll have to apply 368e481 as well to be able to build, depending on your system.

@Alexays
Copy link
Owner

Alexays commented Aug 16, 2021

Closing as new release is coming :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests