Bug 428422

Summary: Powerdevil crashes when turning off HDMI screen in Wayland session
Product: [Plasma] Powerdevil Reporter: Christian Hartmann <chris-hartmann>
Component: generalAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED DUPLICATE    
Severity: crash CC: nicolas.fella
Priority: NOR Keywords: drkonqi
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Christian Hartmann 2020-10-29 10:08:12 UTC
Application: org_kde_powerdevil (2.0.0)

Qt Version: 5.15.1
Frameworks Version: 5.75.0
Operating System: Linux 5.9.1-1-default x86_64
Windowing system: Wayland
Distribution: "openSUSE Tumbleweed"

-- Information about the crash:
- What I was doing when the application crashed: 

I turned of my screen which is connected via HDMI. When I turn it back on, I see this crash. It only happens when I'm using plasma-wayland session.

The crash can be reproduced every time.

-- Backtrace:
Application: KDE-Energieverwaltungssystem (org_kde_powerdevil), signal: Aborted

[New LWP 9996]
[New LWP 9997]
[New LWP 9998]
[New LWP 10095]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
0x00007f05c8934e7f in poll () from /lib64/libc.so.6
[Current thread is 1 (Thread 0x7f05c6050840 (LWP 9989))]

Thread 5 (Thread 0x7f05c215b640 (LWP 10095)):
#0  0x00007f05c6f65194 in ?? () from /usr/lib64/libglib-2.0.so.0
#1  0x00007f05c6f66ee5 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f05c6f68403 in g_main_context_prepare () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f05c6f68eeb in ?? () from /usr/lib64/libglib-2.0.so.0
#4  0x00007f05c6f690df in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#5  0x00007f05c8ef55cb in QEventDispatcherGlib::processEvents (this=0x7f05ac000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#6  0x00007f05c8e9ca1b in QEventLoop::exec (this=this@entry=0x7f05c215acc0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#7  0x00007f05c8cbd7ce in QThread::exec (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#8  0x00007f05c8cbe911 in QThreadPrivate::start (arg=0x55aff4811970) at thread/qthread_unix.cpp:329
#9  0x00007f05c7ae6eb1 in start_thread () from /lib64/libpthread.so.0
#10 0x00007f05c893fccf in clone () from /lib64/libc.so.6

Thread 4 (Thread 0x7f05c2c3f640 (LWP 9998)):
#0  0x00007f05c89308dc in read () from /lib64/libc.so.6
#1  0x00007f05c6fb53ff in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f05c6f68b0e in g_main_context_check () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f05c6f68f65 in ?? () from /usr/lib64/libglib-2.0.so.0
#4  0x00007f05c6f6931b in g_main_loop_run () from /usr/lib64/libglib-2.0.so.0
#5  0x00007f05c3645906 in ?? () from /usr/lib64/libgio-2.0.so.0
#6  0x00007f05c6f920ee in ?? () from /usr/lib64/libglib-2.0.so.0
#7  0x00007f05c7ae6eb1 in start_thread () from /lib64/libpthread.so.0
#8  0x00007f05c893fccf in clone () from /lib64/libc.so.6

Thread 3 (Thread 0x7f05c3462640 (LWP 9997)):
#0  0x00007f05c8934e7f in poll () from /lib64/libc.so.6
#1  0x00007f05c6f68fbe in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f05c6f690df in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f05c6f69131 in ?? () from /usr/lib64/libglib-2.0.so.0
#4  0x00007f05c6f920ee in ?? () from /usr/lib64/libglib-2.0.so.0
#5  0x00007f05c7ae6eb1 in start_thread () from /lib64/libpthread.so.0
#6  0x00007f05c893fccf in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7f05c3fc8640 (LWP 9996)):
#0  0x00007f05c6fba0d4 in g_mutex_unlock () from /usr/lib64/libglib-2.0.so.0
#1  0x00007f05c6f68fb3 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f05c6f690df in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f05c8ef55cb in QEventDispatcherGlib::processEvents (this=0x7f05bc000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#4  0x00007f05c8e9ca1b in QEventLoop::exec (this=this@entry=0x7f05c3fc7c70, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#5  0x00007f05c8cbd7ce in QThread::exec (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#6  0x00007f05c91a2a27 in ?? () from /usr/lib64/libQt5DBus.so.5
#7  0x00007f05c8cbe911 in QThreadPrivate::start (arg=0x7f05c920fd80) at thread/qthread_unix.cpp:329
#8  0x00007f05c7ae6eb1 in start_thread () from /lib64/libpthread.so.0
#9  0x00007f05c893fccf in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f05c6050840 (LWP 9989)):
[KCrash Handler]
#4  0x00007f05c887d641 in raise () from /lib64/libc.so.6
#5  0x00007f05c8866538 in abort () from /lib64/libc.so.6
#6  0x00007f05c8c83c37 in qt_message_fatal (message=<synthetic pointer>..., context=...) at global/qlogging.cpp:1914
#7  QMessageLogger::fatal (this=this@entry=0x7ffed7775900, msg=msg@entry=0x7f05c420c0f8 "The Wayland connection experienced a fatal error: %s") at global/qlogging.cpp:893
#8  0x00007f05c4195d80 in QtWaylandClient::QWaylandDisplay::checkError (this=<optimized out>) at /usr/include/qt5/QtCore/qlogging.h:90
#9  0x00007f05c4195dce in QtWaylandClient::QWaylandDisplay::flushRequests (this=0x55aff476aba0) at qwaylanddisplay.cpp:222
#10 0x00007f05c8ed4680 in doActivate<false> (sender=0x55aff4778de0, signal_index=3, argv=argv@entry=0x7ffed7775a40) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:395
#11 0x00007f05c8ecd9a0 in QMetaObject::activate (sender=sender@entry=0x55aff4778de0, m=m@entry=0x7f05c9181b00 <QSocketNotifier::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7ffed7775a40) at kernel/qobject.cpp:3946
#12 0x00007f05c8ed7a7f in QSocketNotifier::activated (this=this@entry=0x55aff4778de0, _t1=..., _t2=<optimized out>, _t3=...) at .moc/moc_qsocketnotifier.cpp:178
#13 0x00007f05c8ed827b in QSocketNotifier::event (this=0x55aff4778de0, e=0x7ffed7775b20) at kernel/qsocketnotifier.cpp:302
#14 0x00007f05c8e9e05a in QCoreApplication::notifyInternal2 (receiver=0x55aff4778de0, event=0x7ffed7775b20) at ../../include/QtCore/5.15.1/QtCore/private/../../../../../src/corelib/thread/qthread_p.h:325
#15 0x00007f05c8ef6165 in socketNotifierSourceDispatch (source=0x55aff47c9980) at kernel/qeventdispatcher_glib.cpp:107
#16 0x00007f05c6f68ca7 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#17 0x00007f05c6f69028 in ?? () from /usr/lib64/libglib-2.0.so.0
#18 0x00007f05c6f690df in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#19 0x00007f05c8ef55af in QEventDispatcherGlib::processEvents (this=0x55aff4774b60, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#20 0x00007f05c8e9ca1b in QEventLoop::exec (this=this@entry=0x7ffed7775d30, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#21 0x00007f05c8ea4c90 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#22 0x000055aff2c72fd1 in ?? ()
#23 0x00007f05c8867e0a in __libc_start_main () from /lib64/libc.so.6
#24 0x000055aff2c73a0a in _start ()
[Inferior 1 (process 9989) detached]

Possible duplicates by query: bug 424911, bug 423951, bug 423132, bug 421711, bug 417285.

Reported using DrKonqi
Comment 2 Nicolas Fella 2020-10-29 13:19:12 UTC

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