https://bugs.kde.org/show_bug.cgi?id=490836

            Bug ID: 490836
           Summary: KDE Power Management crash after the screen turns off.
    Classification: Plasma
           Product: Powerdevil
           Version: 6.1.3
          Platform: openSUSE
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: plasma-b...@kde.org
          Reporter: kde115...@outlook.com
                CC: m...@ratijas.tk, natalie_clar...@yahoo.de
  Target Milestone: ---

SUMMARY
After I lock the screen and the screen turns off (or if I'm idle and it locks
the screen automatically), I get a KDE Power Management crash notification when
I unlock the screen. It always happens after the screen turns off, but never
when the screen only locks. Locking and unlocking the screen before it turns
off doesn't crash anything.


STEPS TO REPRODUCE
1. Lock the screen manually or wait for it to lock automatically.
2. Wait until the monitor turns off.
3. Unlock the screen.

OBSERVED RESULT
After unlocking the screen, I get a notification saying that KDE Power
Management has closed unexpectedly.

EXPECTED RESULT
Nothing should crash after unlocking the screen.

SOFTWARE/OS VERSIONS 
Operating System: OpenSUSE Tumbleweed.
KDE Plasma Version: 6.1.3
KDE Frameworks Version: 6.4.0
Qt Version: 6.7.2
Kernel Version: 6.9.9-1-default (64-bit)
Graphics Platform: Wayland.

ADDITIONAL INFORMATION
CPU: AMD Ryzen 2600
GPU: AMD RX 580

[KCrash Handler]
Application: KDE Power Management System (org_kde_powerdevil), signal:
Segmentation fault

[New LWP 13373]
[New LWP 13392]
[New LWP 13393]
[New LWP 13390]
[New LWP 13395]
[New LWP 13391]
[New LWP 13404]
[New LWP 13394]
[New LWP 13396]
[New LWP 13397]
[New LWP 13389]
[New LWP 13406]
[New LWP 13405]

This GDB supports auto-downloading debuginfo from the following URLs:
  <https://debuginfod.opensuse.org/>
Enable debuginfod for this session? (y or [n]) [answered N; input not from
terminal]
Debuginfod has been disabled.
To make this setting permanent, add 'set debuginfod enabled off' to .gdbinit.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `/usr/libexec/org_kde_powerdevil'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007fdc6e2949dc in __pthread_kill_implementation () from
/lib64/libc.so.6
[Current thread is 1 (Thread 0x7fdc68af3ac0 (LWP 13373))]
python sentry-sdk not installed :(
Cannot QML trace cores :(
[Current thread is 1 (Thread 0x7fdc68af3ac0 (LWP 13373))]

Thread 13 (Thread 0x7fdc47e006c0 (LWP 13405)):
#0  0x00007fdc6e30578f in poll () from /lib64/libc.so.6
#1  0x00007fdc6d11434f in ?? () from /lib64/libglib-2.0.so.0
#2  0x00007fdc6d114a5c in g_main_context_iteration () from
/lib64/libglib-2.0.so.0
#3  0x00007fdc6d114aa1 in ?? () from /lib64/libglib-2.0.so.0
#4  0x00007fdc6d14132e in ?? () from /lib64/libglib-2.0.so.0
#5  0x00007fdc6e292ba2 in start_thread () from /lib64/libc.so.6
#6  0x00007fdc6e31400c in clone3 () from /lib64/libc.so.6

Thread 12 (Thread 0x7fdc474006c0 (LWP 13406)):
#0  0x00007fdc6e30578f in poll () from /lib64/libc.so.6
#1  0x00007fdc6d11434f in ?? () from /lib64/libglib-2.0.so.0
#2  0x00007fdc6d114c7f in g_main_loop_run () from /lib64/libglib-2.0.so.0
#3  0x00007fdc68f9b2e6 in ?? () from /lib64/libgio-2.0.so.0
#4  0x00007fdc6d14132e in ?? () from /lib64/libglib-2.0.so.0
#5  0x00007fdc6e292ba2 in start_thread () from /lib64/libc.so.6
#6  0x00007fdc6e31400c in clone3 () from /lib64/libc.so.6

Thread 11 (Thread 0x7fdc686006c0 (LWP 13389)):
#0  0x00007fdc6e30578f in poll () from /lib64/libc.so.6
#1  0x00007fdc6d11434f in ?? () from /lib64/libglib-2.0.so.0
#2  0x00007fdc6d114a5c in g_main_context_iteration () from
/lib64/libglib-2.0.so.0
#3  0x00007fdc6edc1adc in QEventDispatcherGlib::processEvents
(this=0x7fdc60000b70, flags=...) at
/usr/src/debug/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qeventdispatcher_glib.cpp:394
#4  0x00007fdc6eb993db in QEventLoop::exec (this=0x7fdc685ffa50, flags=...) at
/usr/src/debug/qtbase-everywhere-src-6.7.2/src/corelib/global/qflags.h:34
#5  0x00007fdc6ec74a64 in QThread::exec (this=<optimized out>) at
/usr/src/debug/qtbase-everywhere-src-6.7.2/src/corelib/global/qflags.h:74
#6  0x00007fdc6fac270a in ?? () from /lib64/libQt6DBus.so.6
#7  0x00007fdc6eced139 in operator() (__closure=<optimized out>) at
/usr/src/debug/qtbase-everywhere-src-6.7.2/src/corelib/thread/qthread_unix.cpp:326
#8  (anonymous
namespace)::terminate_on_exception<QThreadPrivate::start(void*)::<lambda()> >
(t=...) at
/usr/src/debug/qtbase-everywhere-src-6.7.2/src/corelib/thread/qthread_unix.cpp:262
#9  QThreadPrivate::start (arg=0x7fdc6fb45b20) at
/usr/src/debug/qtbase-everywhere-src-6.7.2/src/corelib/thread/qthread_unix.cpp:285
#10 0x00007fdc6e292ba2 in start_thread () from /lib64/libc.so.6
#11 0x00007fdc6e31400c in clone3 () from /lib64/libc.so.6

Thread 10 (Thread 0x7fdc5cc006c0 (LWP 13397)):
#0  0x00007fdc6e28efee in __futex_abstimed_wait_common () from /lib64/libc.so.6
#1  0x00007fdc6e291d30 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib64/libc.so.6
#2  0x00007fdc6471cd99 in ?? () from /usr/lib64/dri/radeonsi_dri.so
#3  0x00007fdc646fcf3b in ?? () from /usr/lib64/dri/radeonsi_dri.so
#4  0x00007fdc6471ccd7 in ?? () from /usr/lib64/dri/radeonsi_dri.so
#5  0x00007fdc6e292ba2 in start_thread () from /lib64/libc.so.6
#6  0x00007fdc6e31400c in clone3 () from /lib64/libc.so.6

Thread 9 (Thread 0x7fdc5d6006c0 (LWP 13396)):
#0  0x00007fdc6e28efee in __futex_abstimed_wait_common () from /lib64/libc.so.6
#1  0x00007fdc6e291d30 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib64/libc.so.6
#2  0x00007fdc6471cd99 in ?? () from /usr/lib64/dri/radeonsi_dri.so
#3  0x00007fdc646fcf3b in ?? () from /usr/lib64/dri/radeonsi_dri.so
#4  0x00007fdc6471ccd7 in ?? () from /usr/lib64/dri/radeonsi_dri.so
#5  0x00007fdc6e292ba2 in start_thread () from /lib64/libc.so.6
#6  0x00007fdc6e31400c in clone3 () from /lib64/libc.so.6

Thread 8 (Thread 0x7fdc5ea006c0 (LWP 13394)):
#0  0x00007fdc6e28efee in __futex_abstimed_wait_common () from /lib64/libc.so.6
#1  0x00007fdc6e291d30 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib64/libc.so.6
#2  0x00007fdc6471cd99 in ?? () from /usr/lib64/dri/radeonsi_dri.so
#3  0x00007fdc646fcf3b in ?? () from /usr/lib64/dri/radeonsi_dri.so
#4  0x00007fdc6471ccd7 in ?? () from /usr/lib64/dri/radeonsi_dri.so
#5  0x00007fdc6e292ba2 in start_thread () from /lib64/libc.so.6
#6  0x00007fdc6e31400c in clone3 () from /lib64/libc.so.6

Thread 7 (Thread 0x7fdc4ca006c0 (LWP 13404)):
#0  0x00007fdc6e311bcd in syscall () from /lib64/libc.so.6
#1  0x00007fdc6d16ed70 in g_cond_wait () from /lib64/libglib-2.0.so.0
#2  0x00007fdc6d0dd0fb in ?? () from /lib64/libglib-2.0.so.0
#3  0x00007fdc6d141ac2 in ?? () from /lib64/libglib-2.0.so.0
#4  0x00007fdc6d14132e in ?? () from /lib64/libglib-2.0.so.0
#5  0x00007fdc6e292ba2 in start_thread () from /lib64/libc.so.6
#6  0x00007fdc6e31400c in clone3 () from /lib64/libc.so.6

Thread 6 (Thread 0x7fdc672006c0 (LWP 13391)):
#0  0x00007fdc6e30578f in poll () from /lib64/libc.so.6
#1  0x00007fdc6c3a9dd1 in poll (__timeout=-1, __nfds=2, __fds=0x7fdc671ffa90)
at /usr/include/bits/poll2.h:39
#2  QtWaylandClient::EventThread::run (this=0x557a28703350) at
/usr/src/debug/qtwayland-everywhere-src-6.7.2/src/client/qwaylanddisplay.cpp:182
#3  0x00007fdc6eced139 in operator() (__closure=<optimized out>) at
/usr/src/debug/qtbase-everywhere-src-6.7.2/src/corelib/thread/qthread_unix.cpp:326
#4  (anonymous
namespace)::terminate_on_exception<QThreadPrivate::start(void*)::<lambda()> >
(t=...) at
/usr/src/debug/qtbase-everywhere-src-6.7.2/src/corelib/thread/qthread_unix.cpp:262
#5  QThreadPrivate::start (arg=0x557a28703350) at
/usr/src/debug/qtbase-everywhere-src-6.7.2/src/corelib/thread/qthread_unix.cpp:285
#6  0x00007fdc6e292ba2 in start_thread () from /lib64/libc.so.6
#7  0x00007fdc6e31400c in clone3 () from /lib64/libc.so.6

Thread 5 (Thread 0x7fdc5e0006c0 (LWP 13395)):
#0  0x00007fdc6e28efee in __futex_abstimed_wait_common () from /lib64/libc.so.6
#1  0x00007fdc6e291d30 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib64/libc.so.6
#2  0x00007fdc6471cd99 in ?? () from /usr/lib64/dri/radeonsi_dri.so
#3  0x00007fdc646fcf3b in ?? () from /usr/lib64/dri/radeonsi_dri.so
#4  0x00007fdc6471ccd7 in ?? () from /usr/lib64/dri/radeonsi_dri.so
#5  0x00007fdc6e292ba2 in start_thread () from /lib64/libc.so.6
#6  0x00007fdc6e31400c in clone3 () from /lib64/libc.so.6

Thread 4 (Thread 0x7fdc67c006c0 (LWP 13390)):
#0  0x00007fdc6e28efee in __futex_abstimed_wait_common () from /lib64/libc.so.6
#1  0x00007fdc6e291d30 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib64/libc.so.6
#2  0x00007fdc6ecf8fbb in QWaitConditionPrivate::wait (deadline=...,
this=0x557a28721410) at
/usr/src/debug/qtbase-everywhere-src-6.7.2/src/corelib/thread/qwaitcondition_unix.cpp:102
#3  QWaitCondition::wait (this=this@entry=0x557a28700f60,
mutex=mutex@entry=0x557a28700f58, deadline=...) at
/usr/src/debug/qtbase-everywhere-src-6.7.2/src/corelib/thread/qwaitcondition_unix.cpp:180
#4  0x00007fdc6c3a9d67 in QtWaylandClient::EventThread::waitForReading
(this=0x557a28700f20) at
/usr/src/debug/qtwayland-everywhere-src-6.7.2/src/client/qwaylanddisplay.cpp:216
#5  QtWaylandClient::EventThread::run (this=0x557a28700f20) at
/usr/src/debug/qtwayland-everywhere-src-6.7.2/src/client/qwaylanddisplay.cpp:177
#6  0x00007fdc6eced139 in operator() (__closure=<optimized out>) at
/usr/src/debug/qtbase-everywhere-src-6.7.2/src/corelib/thread/qthread_unix.cpp:326
#7  (anonymous
namespace)::terminate_on_exception<QThreadPrivate::start(void*)::<lambda()> >
(t=...) at
/usr/src/debug/qtbase-everywhere-src-6.7.2/src/corelib/thread/qthread_unix.cpp:262
#8  QThreadPrivate::start (arg=0x557a28700f20) at
/usr/src/debug/qtbase-everywhere-src-6.7.2/src/corelib/thread/qthread_unix.cpp:285
#9  0x00007fdc6e292ba2 in start_thread () from /lib64/libc.so.6
#10 0x00007fdc6e31400c in clone3 () from /lib64/libc.so.6

Thread 3 (Thread 0x7fdc5f4006c0 (LWP 13393)):
#0  0x00007fdc6e28efee in __futex_abstimed_wait_common () from /lib64/libc.so.6
#1  0x00007fdc6e291d30 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib64/libc.so.6
#2  0x00007fdc6471cd99 in ?? () from /usr/lib64/dri/radeonsi_dri.so
#3  0x00007fdc646fcf3b in ?? () from /usr/lib64/dri/radeonsi_dri.so
#4  0x00007fdc6471ccd7 in ?? () from /usr/lib64/dri/radeonsi_dri.so
#5  0x00007fdc6e292ba2 in start_thread () from /lib64/libc.so.6
#6  0x00007fdc6e31400c in clone3 () from /lib64/libc.so.6

Thread 2 (Thread 0x7fdc5fe006c0 (LWP 13392)):
#0  0x00007fdc6e28efee in __futex_abstimed_wait_common () from /lib64/libc.so.6
#1  0x00007fdc6e291d30 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib64/libc.so.6
#2  0x00007fdc6471cd99 in ?? () from /usr/lib64/dri/radeonsi_dri.so
#3  0x00007fdc646fcf3b in ?? () from /usr/lib64/dri/radeonsi_dri.so
#4  0x00007fdc6471ccd7 in ?? () from /usr/lib64/dri/radeonsi_dri.so
#5  0x00007fdc6e292ba2 in start_thread () from /lib64/libc.so.6
#6  0x00007fdc6e31400c in clone3 () from /lib64/libc.so.6

Thread 1 (Thread 0x7fdc68af3ac0 (LWP 13373)):
[KCrash Handler]
#4  0x0000000000000021 in ?? ()
#5  0x00007fdc6fe11ecb in std::__invoke_impl<void, void (PowerDevil::Action::*
const&)(), PowerDevil::Action* const&> (__f=<synthetic pointer>: <optimized
out>, __t=<optimized out>) at /usr/include/c++/13/bits/invoke.h:71
#6  std::__invoke<void (PowerDevil::Action::* const&)(), PowerDevil::Action*
const&> (__fn=<synthetic pointer>: <optimized out>) at
/usr/include/c++/13/bits/invoke.h:96
#7  std::_Mem_fn_base<void (PowerDevil::Action::*)(),
true>::operator()<PowerDevil::Action* const&> (this=<synthetic pointer>) at
/usr/include/c++/13/functional:170
#8  std::for_each<QSet<PowerDevil::Action*>::const_iterator, std::_Mem_fn<void
(PowerDevil::Action::*)()> > (__f=..., __last=..., __first=...) at
/usr/include/c++/13/bits/stl_algo.h:3833
#9  PowerDevil::Core::onResumingFromIdle (this=0x557a28736bf0) at
/usr/src/debug/powerdevil-6.1.3/daemon/powerdevilcore.cpp:875
#10 0x00007fdc6ebe7f90 in QtPrivate::QSlotObjectBase::call (a=0x7ffd983bb1c8,
r=0x557a28736bf0, this=0x557a28940710) at
/usr/src/debug/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qobjectdefs_impl.h:469
#11 doActivate<false> (sender=0x557a289f20e0, signal_index=3,
argv=0x7ffd983bb1c8) at
/usr/src/debug/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qobject.cpp:4086
#12 0x00007fdc6e8d52bc in KIdleTimePrivate::resumingFromIdle (this=<optimized
out>) at /usr/src/debug/kidletime-6.4.0/src/kidletime.cpp:286
#13 operator() (__closure=<optimized out>) at
/usr/src/debug/kidletime-6.4.0/src/kidletime.cpp:85
#14 QtPrivate::FunctorCall<QtPrivate::IndexesList<>, QtPrivate::List<>, void,
KIdleTime::KIdleTime()::<lambda()> >::call (arg=<optimized out>, f=...) at
/usr/include/qt6/QtCore/qobjectdefs_impl.h:137
#15 QtPrivate::FunctorCallable<KIdleTime::KIdleTime()::<lambda()>
>::call<QtPrivate::List<>, void> (arg=<optimized out>, f=...) at
/usr/include/qt6/QtCore/qobjectdefs_impl.h:345
#16 QtPrivate::QCallableObject<KIdleTime::KIdleTime()::<lambda()>,
QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase *, QObject *,
void **, bool *) (which=<optimized out>, this_=<optimized out>, r=<optimized
out>, a=<optimized out>, ret=<optimized out>) at
/usr/include/qt6/QtCore/qobjectdefs_impl.h:555
#17 0x00007fdc6ebe7f90 in QtPrivate::QSlotObjectBase::call (a=0x7ffd983bb2b8,
r=0x557a289f20e0, this=0x557a289f3b70) at
/usr/src/debug/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qobjectdefs_impl.h:469
#18 doActivate<false> (sender=0x557a28963ca0, signal_index=3,
argv=0x7ffd983bb2b8) at
/usr/src/debug/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qobject.cpp:4086
#19 0x00007fdc6ebe7f90 in QtPrivate::QSlotObjectBase::call (a=0x7ffd983bb398,
r=0x557a28963ca0, this=0x557a28986d20) at
/usr/src/debug/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qobjectdefs_impl.h:469
#20 doActivate<false> (sender=0x557a28989240, signal_index=4,
argv=0x7ffd983bb398) at
/usr/src/debug/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qobject.cpp:4086
#21 0x00007fdc6adfc972 in ffi_call_unix64 () at ../src/x86/unix64.S:104
#22 0x00007fdc6adf92df in ffi_call_int (cif=cif@entry=0x7ffd983bb5b0,
fn=<optimized out>, rvalue=<optimized out>, avalue=<optimized out>,
closure=closure@entry=0x0) at ../src/x86/ffi64.c:673
#23 0x00007fdc6adfbf36 in ffi_call (cif=cif@entry=0x7ffd983bb5b0, fn=<optimized
out>, rvalue=rvalue@entry=0x0, avalue=avalue@entry=0x7ffd983bb680) at
../src/x86/ffi64.c:710
#24 0x00007fdc6c822bb3 in wl_closure_invoke
(closure=closure@entry=0x7fdc54004330, target=<optimized out>,
target@entry=0x557a288da800, opcode=opcode@entry=1, data=<optimized out>,
flags=1) at ../src/connection.c:1228
#25 0x00007fdc6c823369 in dispatch_event (display=0x557a28704940,
queue=0x557a28704a38) at ../src/wayland-client.c:1670
#26 0x00007fdc6c82372b in dispatch_queue (queue=0x557a28704a38,
display=0x557a28704940) at ../src/wayland-client.c:1816
#27 wl_display_dispatch_queue_pending (display=0x557a28704940,
queue=0x557a28704a38) at ../src/wayland-client.c:2058
#28 0x00007fdc6c3a9c2a in QtWaylandClient::QWaylandDisplay::flushRequests
(this=<optimized out>) at
/usr/src/debug/qtwayland-everywhere-src-6.7.2/src/client/qwaylanddisplay.cpp:227
#29 0x00007fdc6ebd1e1b in QObject::event (this=0x557a28704710,
e=0x7fdc58001590) at
/usr/src/debug/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qobject.cpp:1452
#30 0x00007fdc6eb8ec30 in QCoreApplication::notifyInternal2
(receiver=0x557a28704710, event=0x7fdc58001590) at
/usr/src/debug/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qcoreapplication.cpp:1142
#31 0x00007fdc6eb8ec69 in QCoreApplication::sendEvent (receiver=<optimized
out>, event=<optimized out>) at
/usr/src/debug/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qcoreapplication.cpp:1583
#32 0x00007fdc6eb8ef90 in QCoreApplicationPrivate::sendPostedEvents
(receiver=0x0, event_type=0, data=0x557a286fb0d0) at
/usr/src/debug/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qcoreapplication.cpp:1940
#33 0x00007fdc6edc2fe3 in postEventSourceDispatch (s=0x557a286efea0) at
/usr/src/debug/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qeventdispatcher_glib.cpp:244
#34 0x00007fdc6d112760 in ?? () from /lib64/libglib-2.0.so.0
#35 0x00007fdc6d1143a8 in ?? () from /lib64/libglib-2.0.so.0
#36 0x00007fdc6d114a5c in g_main_context_iteration () from
/lib64/libglib-2.0.so.0
#37 0x00007fdc6edc1adc in QEventDispatcherGlib::processEvents
(this=0x557a28700f00, flags=...) at
/usr/src/debug/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qeventdispatcher_glib.cpp:394
#38 0x00007fdc6eb993db in QEventLoop::exec (this=0x7ffd983bbbe0, flags=...) at
/usr/src/debug/qtbase-everywhere-src-6.7.2/src/corelib/global/qflags.h:34
#39 0x00007fdc6eb92bb6 in QCoreApplication::exec () at
/usr/src/debug/qtbase-everywhere-src-6.7.2/src/corelib/global/qflags.h:74
#40 0x00005579fe5032bf in main (argc=<optimized out>, argv=<optimized out>) at
/usr/src/debug/powerdevil-6.1.3/daemon/powerdevilapp.cpp:135

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to