Bug 468846 - Konsole crashes in QtWaylandClient::QWaylandWindow::handleScreensChanged() when external monitor (with connected keyboard and mouse) goes to sleep mode
Summary: Konsole crashes in QtWaylandClient::QWaylandWindow::handleScreensChanged() wh...
Status: RESOLVED DUPLICATE of bug 473020
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 22.12.3
Platform: Other Linux
: NOR crash
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-23 06:27 UTC by Aleksey Maximov
Modified: 2024-05-10 19:42 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aleksey Maximov 2023-04-23 06:27:27 UTC
SUMMARY
***
       Message: Process 103623 (konsole) of user 1000 dumped core.
                
                Stack trace of thread 103623:
                #0  0x00007ff62a12f0a8 _ZNK15QPlatformScreen6screenEv (libQt5Gui.so.5 + 0x12f0a8)
                #1  0x00007ff627eb60f1 _ZN15QtWaylandClient14QWaylandWindow20handleScreensChangedEv (libQt5WaylandClient.so.5 + 0x810f1)
                #2  0x00007ff629cbea71 n/a (libQt5Core.so.5 + 0x2bea71)
                #3  0x00007ff6251f84f6 n/a (libffi.so.8 + 0x74f6)
                #4  0x00007ff6251f4f5e n/a (libffi.so.8 + 0x3f5e)
                #5  0x00007ff6251f7b73 ffi_call (libffi.so.8 + 0x6b73)
                #6  0x00007ff62853c645 n/a (libwayland-client.so.0 + 0x7645)
                #7  0x00007ff62853ce73 n/a (libwayland-client.so.0 + 0x7e73)
                #8  0x00007ff62853d13c wl_display_dispatch_queue_pending (libwayland-client.so.0 + 0x813c)
                #9  0x00007ff627ea7bf6 _ZN15QtWaylandClient15QWaylandDisplay13flushRequestsEv (libQt5WaylandClient.so.5 + 0x72bf6)
                #10 0x00007ff629cbec20 n/a (libQt5Core.so.5 + 0x2bec20)
                #11 0x00007ff629cd8ca7 _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Core.so.5 + 0x2d8ca7)
                #12 0x00007ff629c866ec _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5 + 0x2866ec)
                #13 0x00007ff629c91219 _ZN16QCoreApplication4execEv (libQt5Core.so.5 + 0x291219)
                #14 0x0000556502212b65 n/a (konsole + 0x5b65)
                #15 0x00007ff62943c790 n/a (libc.so.6 + 0x23790)
                #16 0x00007ff62943c84a __libc_start_main (libc.so.6 + 0x2384a)
                #17 0x0000556502213425 n/a (konsole + 0x6425)
                
                Stack trace of thread 103625:
                #0  0x00007ff62949b766 n/a (libc.so.6 + 0x82766)
                #1  0x00007ff62949df90 pthread_cond_wait (libc.so.6 + 0x84f90)
                #2  0x00007ff629aeb7c4 _ZN14QWaitCondition4waitEP6QMutex14QDeadlineTimer (libQt5Core.so.5 + 0xeb7c4)
                #3  0x00007ff627ea7cc4 n/a (libQt5WaylandClient.so.5 + 0x72cc4)
                #4  0x00007ff629ae432a n/a (libQt5Core.so.5 + 0xe432a)
                #5  0x00007ff62949ebb5 n/a (libc.so.6 + 0x85bb5)
                #6  0x00007ff629520d90 n/a (libc.so.6 + 0x107d90)
                
                Stack trace of thread 103626:
                #0  0x00007ff6295139df __poll (libc.so.6 + 0xfa9df)
                #1  0x00007ff627ea7d1d n/a (libQt5WaylandClient.so.5 + 0x72d1d)
                #2  0x00007ff629ae432a n/a (libQt5Core.so.5 + 0xe432a)
                #3  0x00007ff62949ebb5 n/a (libc.so.6 + 0x85bb5)
                #4  0x00007ff629520d90 n/a (libc.so.6 + 0x107d90)
                
                Stack trace of thread 103627:
                #0  0x00007ff62949b766 n/a (libc.so.6 + 0x82766)
                #1  0x00007ff62949df90 pthread_cond_wait (libc.so.6 + 0x84f90)
                #2  0x00007ff61a0c254c n/a (iris_dri.so + 0xc254c)
                #3  0x00007ff61a10b96c n/a (iris_dri.so + 0x10b96c)
                #4  0x00007ff62949ebb5 n/a (libc.so.6 + 0x85bb5)
                #5  0x00007ff629520d90 n/a (libc.so.6 + 0x107d90)
                
                Stack trace of thread 103629:
                #0  0x00007ff62949b766 n/a (libc.so.6 + 0x82766)
                #1  0x00007ff62949df90 pthread_cond_wait (libc.so.6 + 0x84f90)
                #2  0x00007ff61a0c254c n/a (iris_dri.so + 0xc254c)
                #3  0x00007ff61a10b96c n/a (iris_dri.so + 0x10b96c)
                #4  0x00007ff62949ebb5 n/a (libc.so.6 + 0x85bb5)
                #5  0x00007ff629520d90 n/a (libc.so.6 + 0x107d90)
                
                Stack trace of thread 103630:
                #0  0x00007ff62949b766 n/a (libc.so.6 + 0x82766)
                #1  0x00007ff62949df90 pthread_cond_wait (libc.so.6 + 0x84f90)
                #2  0x00007ff61a0c254c n/a (iris_dri.so + 0xc254c)
                #3  0x00007ff61a10b96c n/a (iris_dri.so + 0x10b96c)
                #4  0x00007ff62949ebb5 n/a (libc.so.6 + 0x85bb5)
                #5  0x00007ff629520d90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 103624:
                #0  0x00007ff6295139df __poll (libc.so.6 + 0xfa9df)
                #1  0x00007ff62816c17f n/a (libglib-2.0.so.0 + 0xb717f)
                #2  0x00007ff62810e1a2 g_main_context_iteration (libglib-2.0.so.0 + 0x591a2)
                #3  0x00007ff629cd8c6c _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Core.so.5 + 0x2d8c6c)
                #4  0x00007ff629c866ec _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5 + 0x2866ec)
                #5  0x00007ff629ae725f _ZN7QThread4execEv (libQt5Core.so.5 + 0xe725f)
                #6  0x00007ff628de2cba n/a (libQt5DBus.so.5 + 0x23cba)
                #7  0x00007ff629ae432a n/a (libQt5Core.so.5 + 0xe432a)
                #8  0x00007ff62949ebb5 n/a (libc.so.6 + 0x85bb5)
                #9  0x00007ff629520d90 n/a (libc.so.6 + 0x107d90)
                
                Stack trace of thread 103637:
                #0  0x00007ff62949b766 n/a (libc.so.6 + 0x82766)
                #1  0x00007ff62949df90 pthread_cond_wait (libc.so.6 + 0x84f90)
                #2  0x00007ff61a0c254c n/a (iris_dri.so + 0xc254c)
                #3  0x00007ff61a10b96c n/a (iris_dri.so + 0x10b96c)
                #4  0x00007ff62949ebb5 n/a (libc.so.6 + 0x85bb5)
                #5  0x00007ff629520d90 n/a (libc.so.6 + 0x107d90)
                
                
.......
                Stack trace of thread 103639:
                #0  0x00007ff62949b766 n/a (libc.so.6 + 0x82766)
                #1  0x00007ff62949df90 pthread_cond_wait (libc.so.6 + 0x84f90)
                #2  0x00007ff61a0c254c n/a (iris_dri.so + 0xc254c)
                #3  0x00007ff61a10b96c n/a (iris_dri.so + 0x10b96c)
                #4  0x00007ff62949ebb5 n/a (libc.so.6 + 0x85bb5)
                #5  0x00007ff629520d90 n/a (libc.so.6 + 0x107d90)
                ELF object binary architecture: AMD x86-64
                

***


STEPS TO REPRODUCE
1.  Install Manjaro/Archlinux
2. Confgure wayland ~/.config/environment.d/envvars.conf
MOZ_DBUS_REMOTE=1
MOZ_ENABLE_WAYLAND=1
SDL_VIDEODRIVER=wayland
MOZ_USE_XINPUT2=1
VDPAU_DRIVER=va_gl
LIBVA_DRIVER_NAME=iHD
GTK_USE_PORTAL=1

3. go to away from laptop, and wait for sleep mode

OBSERVED RESULT
Its crashed.

EXPECTED RESULT
...

SOFTWARE/OS VERSIONS
Manjaro Linux
KDE Plasma 5.27.4
KDE Frameworks 5.104.0
Qt 5.15.8

ADDITIONAL INFORMATION
Comment 1 Aleksey Maximov 2023-04-23 07:52:48 UTC
recompiled Konsole , 1 min timer to Screen Energy Saving (on AC)
got trace.

[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
Core was generated by `/usr/bin/konsole'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x0000002300000000 in ?? ()
[Current thread is 1 (Thread 0x7f744dc06400 (LWP 162639))]
(gdb) bt
#0  0x0000002300000000 in ?? ()
#1  0x00007f745105722a in QtWaylandClient::QWaylandWindow::handleScreensChanged() () from /usr/lib/libQt5WaylandClient.so.5
#2  0x00007f7452ebea71 in ?? () from /usr/lib/libQt5Core.so.5
#3  0x00007f744e3c64f6 in ?? () from /usr/lib/libffi.so.8
#4  0x00007f744e3c2f5e in ?? () from /usr/lib/libffi.so.8
#5  0x00007f744e3c5b73 in ffi_call () from /usr/lib/libffi.so.8
#6  0x00007f7451754645 in ?? () from /usr/lib/libwayland-client.so.0
#7  0x00007f7451754e73 in ?? () from /usr/lib/libwayland-client.so.0
#8  0x00007f745175513c in wl_display_dispatch_queue_pending () from /usr/lib/libwayland-client.so.0
#9  0x00007f7451048bf6 in QtWaylandClient::QWaylandDisplay::flushRequests() () from /usr/lib/libQt5WaylandClient.so.5
#10 0x00007f7452eb1bb0 in QObject::event(QEvent*) () from /usr/lib/libQt5Core.so.5
#11 0x00007f7453b78b5c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#12 0x00007f7452e8df48 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5
#13 0x00007f7452e8ea53 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/libQt5Core.so.5
#14 0x00007f7452ed4e88 in ?? () from /usr/lib/libQt5Core.so.5
#15 0x00007f745123f53b in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#16 0x00007f745129c219 in ?? () from /usr/lib/libglib-2.0.so.0
#17 0x00007f745123e1a2 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#18 0x00007f7452ed8c6c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#19 0x00007f7452e866ec in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#20 0x00007f7452e91219 in QCoreApplication::exec() () from /usr/lib/libQt5Core.so.5
#21 0x0000557af0634af1 in main (argc=1, argv=0x7ffe98025338) at /home/amaxcz/src/xx1/konsole/repos/extra-x86_64/src/konsole-22.12.3/src/main.cpp:252
(gdb) i r
rax            0x557af2d3be50      93986548334160
rbx            0x557af2331570      93986537805168
rcx            0x0                 0
rdx            0x0                 0
rsi            0x7ffe98024640      140731448706624
rdi            0x557af2a28540      93986545108288
rbp            0x557af2a28540      0x557af2a28540
rsp            0x7ffe98024688      0x7ffe98024688
r8             0x0                 0
r9             0x1                 1
r10            0x7f74400047f8      140137266694136
r11            0x293               659
r12            0x7f745103cdd0      140137552137680
r13            0x557af2331580      93986537805184
r14            0x0                 0
r15            0x557af22cf020      93986537402400
rip            0x2300000000        0x2300000000
eflags         0x10293             [ CF AF SF IF RF ]
cs             0x33                51
ss             0x2b                43
ds             0x0                 0
es             0x0                 0
fs             0x0                 0
gs             0x0                 0
(gdb)
Comment 2 Aleksey Maximov 2023-04-23 08:32:19 UTC
recompiled package

pkgname=qt5-wayland
pkgver=5.15.9+kde+r55
_commit=c4c3fc69250c01cb35aaae5ea1ea2bcc8236dff0

with 
 export CFLAGS="-O0 -ggdb -DDEBUG"
  export CXXFLAGS="-O0 -ggdb -DDEBUG"

no more bugs and crashes... ;-| so,  extra/qt5-wayland 5.15.8+kde+r63-1 really have bugs.
Comment 3 Aleksey Maximov 2023-04-23 10:21:14 UTC
still crashing... no ideas why and how to fix it.

       Message: Process 3344 (konsole) of user 1000 dumped core.
                
                Stack trace of thread 3344:
                #0  0x00007ffa9a32f0a8 _ZNK15QPlatformScreen6screenEv (libQt5Gui.so.5 + 0x12f0a8)
                #1  0x00007ffa98057c51 _ZN15QtWaylandClient14QWaylandWindow20handleScreensChangedEv (libQt5WaylandClient.so.5 + 0x81c51)
                #2  0x00007ffa99ebea71 n/a (libQt5Core.so.5 + 0x2bea71)
                #3  0x00007ffa953b04f6 n/a (libffi.so.8 + 0x74f6)
                #4  0x00007ffa953acf5e n/a (libffi.so.8 + 0x3f5e)
                #5  0x00007ffa953afb73 ffi_call (libffi.so.8 + 0x6b73)
                #6  0x00007ffa9873e645 n/a (libwayland-client.so.0 + 0x7645)
                #7  0x00007ffa9873ee73 n/a (libwayland-client.so.0 + 0x7e73)
                #8  0x00007ffa9873f13c wl_display_dispatch_queue_pending (libwayland-client.so.0 + 0x813c)
                #9  0x00007ffa98048c06 _ZN15QtWaylandClient15QWaylandDisplay13flushRequestsEv (libQt5WaylandClient.so.5 + 0x72c06)
                #10 0x00007ffa99ebec20 n/a (libQt5Core.so.5 + 0x2bec20)
                #11 0x00007ffa99ed8ca7 _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Core.so.5 + 0x2d8ca7)
                #12 0x00007ffa99e866ec _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5 + 0x2866ec)
                #13 0x00007ffa99e91219 _ZN16QCoreApplication4execEv (libQt5Core.so.5 + 0x291219)
                #14 0x000055d36253db65 _Z13fillAboutDataR10KAboutData (/usr/bin/konsole (deleted) + 0x5b65)
                #15 0x00007ffa99f76e90 n/a (libQt5Core.so.5 + 0x376e90)
                ELF object binary architecture: AMD x86-64
lines 1986-2054/2054 (END)
Comment 4 Nate Graham 2024-02-14 17:52:19 UTC

*** This bug has been marked as a duplicate of bug 473020 ***