You are not logged in.

#1 2019-02-18 12:35:52

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,689

Powerdevil crashes when closing Cantata

I have discovered a strange behaviour of powerdevil when I use Cantata. My Cantata is configured to stop playback on exit but everytime I hard close Cantata (closing the window rather than stopping the music), powerdevil crashes. However if I stop the music first and then close Cantata, then powerdevil is OK.
Here is my coredump of the crash:

PID: 11035 (org_kde_powerde)
           UID: 1000 (brightchip)
           GID: 1000 (brightchip)
        Signal: 11 (SEGV)
     Timestamp: Mon 2019-02-18 12:18:50 GMT (11min ago)
  Command Line: /usr/lib/org_kde_powerdevil
    Executable: /usr/lib/org_kde_powerdevil
 Control Group: /user.slice/user-1000.slice/session-2.scope
          Unit: session-2.scope
         Slice: user-1000.slice
       Session: 2
     Owner UID: 1000 (brightchip)
       Boot ID: a103986ce05740b9b15cbe39649afbca
    Machine ID: 3d8a349b980842d4971c20416c4cf2e6
      Hostname: z270-taichi
       Storage: /var/lib/systemd/coredump/core.org_kde_powerde.1000.a103986ce05740b9b15cbe39649afbca.11035.1550492330000000.lz4
       Message: Process 11035 (org_kde_powerde) of user 1000 dumped core.
                
                Stack trace of thread 11035:
                #0  0x00007f8763fa5d7f raise (libc.so.6)
                #1  0x00007f87655dbbcf _ZN6KCrash19defaultCrashHandlerEi (libKF5Crash.so.5)
                #2  0x00007f8763fa5e00 __restore_rt (libc.so.6)
                #3  0x00007f87643ff606 _ZeqRK7QStringS1_ (libQt5Core.so.5)
                #4  0x00007f87655938be _ZN10PowerDevil11PolicyAgent21onServiceUnregisteredERK7QString (libpowerdevilcore.so.2)
                #5  0x00007f87655be9fa n/a (libpowerdevilcore.so.2)
                #6  0x00007f876456687c _ZN11QMetaObject8activateEP7QObjectiiPPv (libQt5Core.so.5)
                #7  0x00007f87648636c6 _ZN19QDBusServiceWatcher19serviceUnregisteredERK7QString (libQt5DBus.so.5)
                #8  0x00007f8764863f2b n/a (libQt5DBus.so.5)
                #9  0x00007f8764864333 _ZN19QDBusServiceWatcher11qt_metacallEN11QMetaObject4CallEiPPv (libQt5DBus.so.5)
                #10 0x00007f87648119ef n/a (libQt5DBus.so.5)
                #11 0x00007f8764567152 _ZN7QObject5eventEP6QEvent (libQt5Core.so.5)
                #12 0x00007f876453be99 _ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent (libQt5Core.so.5)
                #13 0x00007f876453ef38 _ZN23QCoreApplicationPrivate16sendPostedEventsEP7QObjectiP11QThreadData (libQt5Core.so.5)
                #14 0x00007f8764592714 n/a (libQt5Core.so.5)
                #15 0x00007f87627c0a2f g_main_context_dispatch (libglib-2.0.so.0)
                #16 0x00007f87627c25e9 n/a (libglib-2.0.so.0)
                #17 0x00007f87627c262e g_main_context_iteration (libglib-2.0.so.0)
                #18 0x00007f8764591ce9 _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Core.so.5)
                #19 0x00007f876453ab2c _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5)
                #20 0x00007f8764542e36 _ZN16QCoreApplication4execEv (libQt5Core.so.5)
                #21 0x00005595a7ed40c6 n/a (org_kde_powerdevil)
                #22 0x00007f8763f92223 __libc_start_main (libc.so.6)
                #23 0x00005595a7ed412e _start (org_kde_powerdevil)
                
                Stack trace of thread 11037:
                #0  0x00007f876405ec21 __poll (libc.so.6)
                #1  0x00007f87627c2540 n/a (libglib-2.0.so.0)
                #2  0x00007f87627c262e g_main_context_iteration (libglib-2.0.so.0)
                #3  0x00007f8764591d04 _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Core.so.5)
                #4  0x00007f876453ab2c _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5)
                #5  0x00007f876437e569 _ZN7QThread4execEv (libQt5Core.so.5)
                #6  0x00007f8764805ba6 n/a (libQt5DBus.so.5)
                #7  0x00007f876437f96c n/a (libQt5Core.so.5)
                #8  0x00007f8763438a9d start_thread (libpthread.so.0)
                #9  0x00007f8764069b23 __clone (libc.so.6)
                
                Stack trace of thread 11038:
                #0  0x00007f876405ec21 __poll (libc.so.6)
                #1  0x00007f87627c2540 n/a (libglib-2.0.so.0)
                #2  0x00007f87627c262e g_main_context_iteration (libglib-2.0.so.0)
                #3  0x00007f87627c2682 n/a (libglib-2.0.so.0)
                #4  0x00007f876279d67b n/a (libglib-2.0.so.0)
                #5  0x00007f8763438a9d start_thread (libpthread.so.0)
                #6  0x00007f8764069b23 __clone (libc.so.6)
                
                Stack trace of thread 11039:
                #0  0x00007f876405a7a4 __read (libc.so.6)
                #1  0x00007f8762770971 n/a (libglib-2.0.so.0)
                #2  0x00007f87627c10b0 g_main_context_check (libglib-2.0.so.0)
                #3  0x00007f87627c24e6 n/a (libglib-2.0.so.0)
                #4  0x00007f87627c35c2 g_main_loop_run (libglib-2.0.so.0)
                #5  0x00007f875c9a5cb8 n/a (libgio-2.0.so.0)
                #6  0x00007f876279d67b n/a (libglib-2.0.so.0)
                #7  0x00007f8763438a9d start_thread (libpthread.so.0)
                #8  0x00007f8764069b23 __clone (libc.so.6)

Is this a bug in powerdevil or Cantata or is there a fix?

Edit: The behaviour only occurs when playing music files from local directory. It doesn't happen when streaming from the internet.

Last edited by d_fajardo (2019-02-18 12:40:25)

Offline

#2 2019-02-18 13:02:55

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,689

Re: Powerdevil crashes when closing Cantata

To further add, here is the gdb backtrace:

warning: core file may not match specified executable file.
[New LWP 11035]
[New LWP 11037]
[New LWP 11038]
[New LWP 11039]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
Core was generated by `/usr/lib/org_kde_powerdevil'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007f8763fa5d7f in raise () from /usr/lib/libc.so.6
[Current thread is 1 (Thread 0x7f875edb0840 (LWP 11035))]
(gdb) bt
#0  0x00007f8763fa5d7f in raise () at /usr/lib/libc.so.6
#1  0x00007f87655dbbcf in KCrash::defaultCrashHandler(int) () at /usr/lib/libKF5Crash.so.5
#2  0x00007f8763fa5e00 in <signal handler called> () at /usr/lib/libc.so.6
#3  0x00007f87643ff606 in operator==(QString const&, QString const&) () at /usr/lib/libQt5Core.so.5
#4  0x00007f87655938be in PowerDevil::PolicyAgent::onServiceUnregistered(QString const&) () at /usr/lib/libpowerdevilcore.so.2
#5  0x00007f87655be9fa in  () at /usr/lib/libpowerdevilcore.so.2
#6  0x00007f876456687c in QMetaObject::activate(QObject*, int, int, void**) () at /usr/lib/libQt5Core.so.5
#7  0x00007f87648636c6 in QDBusServiceWatcher::serviceUnregistered(QString const&) () at /usr/lib/libQt5DBus.so.5
#8  0x00007f8764863f2b in  () at /usr/lib/libQt5DBus.so.5
#9  0x00007f8764864333 in QDBusServiceWatcher::qt_metacall(QMetaObject::Call, int, void**) () at /usr/lib/libQt5DBus.so.5
#10 0x00007f87648119ef in  () at /usr/lib/libQt5DBus.so.5
#11 0x00007f8764567152 in QObject::event(QEvent*) () at /usr/lib/libQt5Core.so.5
#12 0x00007f876453be99 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
#13 0x00007f876453ef38 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /usr/lib/libQt5Core.so.5
#14 0x00007f8764592714 in  () at /usr/lib/libQt5Core.so.5
#15 0x00007f87627c0a2f in g_main_context_dispatch () at /usr/lib/libglib-2.0.so.0
#16 0x00007f87627c25e9 in  () at /usr/lib/libglib-2.0.so.0
#17 0x00007f87627c262e in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#18 0x00007f8764591ce9 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#19 0x00007f876453ab2c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#20 0x00007f8764542e36 in QCoreApplication::exec() () at /usr/lib/libQt5Core.so.5
#21 0x00005595a7ed40c6 in  ()
#22 0x00007f8763f92223 in __libc_start_main () at /usr/lib/libc.so.6
#23 0x00005595a7ed412e in _start ()

Offline

Board footer

Powered by FluxBB