Application: kaffeine (1.3-svn) KDE Platform Version: 4.8.4 (4.8.4) Qt Version: 4.8.1 Operating System: Linux 3.2.0-27-generic x86_64 Distribution: Ubuntu 12.04 LTS -- Information about the crash: - What I was doing when the application crashed: closing the application without having done anything in it, just open then close. crash occurs everytime whatever i do (or don't do) in kaffeine The crash can be reproduced every time. -- Backtrace: Application: Kaffeine (kaffeine), signal: Aborted Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [Current thread is 1 (Thread 0x7fc11d3ca780 (LWP 22407))] Thread 3 (Thread 0x7fc103fff700 (LWP 22409)): #0 0x00007fc1198e20bd in read () at ../sysdeps/unix/syscall-template.S:82 #1 0x00007fc1161118cf in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #2 0x00007fc1160d6ba4 in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #3 0x00007fc1160d6fd6 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #4 0x00007fc1160d749a in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #5 0x00007fc11043e406 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0 #6 0x00007fc1160f89e5 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #7 0x00007fc116bdfe9a in start_thread (arg=0x7fc103fff700) at pthread_create.c:308 #8 0x00007fc1198ef4bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112 #9 0x0000000000000000 in ?? () Thread 2 (Thread 0x7fc0f99da700 (LWP 22413)): #0 0x00007fc1198e3b03 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87 #1 0x00007fc1160d7036 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #2 0x00007fc1160d7164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #3 0x00007fc11b02c426 in QEventDispatcherGlib::processEvents (this=0x7fc0ec0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426 #4 0x00007fc11affbc82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149 #5 0x00007fc11affbed7 in QEventLoop::exec (this=0x7fc0f99d9dd0, flags=...) at kernel/qeventloop.cpp:204 #6 0x00007fc11aefafa7 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501 #7 0x00007fc11afdb9ff in QInotifyFileSystemWatcherEngine::run (this=0x2e59a60) at io/qfilesystemwatcher_inotify.cpp:248 #8 0x00007fc11aefdfcb in QThreadPrivate::start (arg=0x2e59a60) at thread/qthread_unix.cpp:298 #9 0x00007fc116bdfe9a in start_thread (arg=0x7fc0f99da700) at pthread_create.c:308 #10 0x00007fc1198ef4bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112 #11 0x0000000000000000 in ?? () Thread 1 (Thread 0x7fc11d3ca780 (LWP 22407)): [KCrash Handler] #6 0x00007fc119833445 in __GI_raise (sig=<optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 #7 0x00007fc119836bab in __GI_abort () at abort.c:91 #8 0x00007fc11aef350b in qt_message_output (msgType=<optimized out>, buf=0x3254658 "ASSERT: \"ready\" in file /usr/src/kaffeine1/kaffeine-1.3.git/kaffeine-mplayer/src/dvb/dvbdevice_linux.cpp, line 184") at global/qglobal.cpp:2276 #9 0x00007fc11aef38bf in qt_message(QtMsgType, const char *, typedef __va_list_tag __va_list_tag *) (msgType=QtFatalMsg, msg=0x7fc11b060ae8 "ASSERT: \"%s\" in file %s, line %d", ap=0x7fff451388e8) at global/qglobal.cpp:2322 #10 0x00007fc11aef3a64 in qFatal (msg=<optimized out>) at global/qglobal.cpp:2505 #11 0x0000000000444a3d in DvbLinuxDevice::setDeviceEnabled (this=0x2e9f720, enabled_=false) at /usr/src/kaffeine1/kaffeine-1.3.git/kaffeine-mplayer/src/dvb/dvbdevice_linux.cpp:184 #12 0x000000000044543f in DvbLinuxDevice::stopDevice (this=0x2e9f720) at /usr/src/kaffeine1/kaffeine-1.3.git/kaffeine-mplayer/src/dvb/dvbdevice_linux.cpp:149 #13 0x0000000000446278 in DvbLinuxDevice::~DvbLinuxDevice (this=0x2e9f720, __in_chrg=<optimized out>) at /usr/src/kaffeine1/kaffeine-1.3.git/kaffeine-mplayer/src/dvb/dvbdevice_linux.cpp:48 #14 0x0000000000446319 in DvbLinuxDevice::~DvbLinuxDevice (this=0x2e9f720, __in_chrg=<optimized out>) at /usr/src/kaffeine1/kaffeine-1.3.git/kaffeine-mplayer/src/dvb/dvbdevice_linux.cpp:49 #15 0x00007fc11b00f935 in QObjectPrivate::deleteChildren (this=0x2978930) at kernel/qobject.cpp:1908 #16 0x00007fc11b015b9c in QObject::~QObject (this=0x2979310, __in_chrg=<optimized out>) at kernel/qobject.cpp:927 #17 0x00000000004463d9 in DvbLinuxDeviceManager::~DvbLinuxDeviceManager (this=0x2979310, __in_chrg=<optimized out>) at /usr/src/kaffeine1/kaffeine-1.3.git/kaffeine-mplayer/src/dvb/dvbdevice_linux.cpp:820 #18 0x00007fc11b00f935 in QObjectPrivate::deleteChildren (this=0x2732270) at kernel/qobject.cpp:1908 #19 0x00007fc11b015b9c in QObject::~QObject (this=0x27321e0, __in_chrg=<optimized out>) at kernel/qobject.cpp:927 #20 0x0000000000458c24 in DvbManager::~DvbManager (this=0x27321e0, __in_chrg=<optimized out>) at /usr/src/kaffeine1/kaffeine-1.3.git/kaffeine-mplayer/src/dvb/dvbmanager.cpp:55 #21 0x0000000000458c49 in DvbManager::~DvbManager (this=0x27321e0, __in_chrg=<optimized out>) at /usr/src/kaffeine1/kaffeine-1.3.git/kaffeine-mplayer/src/dvb/dvbmanager.cpp:67 #22 0x00007fc11b00f935 in QObjectPrivate::deleteChildren (this=0x2731ef0) at kernel/qobject.cpp:1908 #23 0x00007fc11a3ca740 in QWidget::~QWidget (this=0x2731e40, __in_chrg=<optimized out>) at kernel/qwidget.cpp:1676 #24 0x0000000000470781 in DvbTab::~DvbTab (this=0x2731e40, __in_chrg=<optimized out>) at /usr/src/kaffeine1/kaffeine-1.3.git/kaffeine-mplayer/src/dvb/dvbtab.cpp:213 #25 0x00000000004707a9 in DvbTab::~DvbTab (this=0x2731e40, __in_chrg=<optimized out>) at /usr/src/kaffeine1/kaffeine-1.3.git/kaffeine-mplayer/src/dvb/dvbtab.cpp:225 #26 0x00007fc11b00f935 in QObjectPrivate::deleteChildren (this=0x25baeb0) at kernel/qobject.cpp:1908 #27 0x00007fc11a3ca740 in QWidget::~QWidget (this=0x25cb7f0, __in_chrg=<optimized out>) at kernel/qwidget.cpp:1676 #28 0x00007fc11a3caa19 in QWidget::~QWidget (this=0x25cb7f0, __in_chrg=<optimized out>) at kernel/qwidget.cpp:1700 #29 0x00007fc11b00f935 in QObjectPrivate::deleteChildren (this=0x251e6e0) at kernel/qobject.cpp:1908 #30 0x00007fc11a3ca740 in QWidget::~QWidget (this=0x250dd50, __in_chrg=<optimized out>) at kernel/qwidget.cpp:1676 #31 0x00007fc11bd9e2a5 in KMainWindow::~KMainWindow() () from /usr/lib/libkdeui.so.5 #32 0x000000000048631e in MainWindow::~MainWindow (this=0x250dd50, __in_chrg=<optimized out>) at /usr/src/kaffeine1/kaffeine-1.3.git/kaffeine-mplayer/src/mainwindow.cpp:357 #33 0x0000000000486349 in MainWindow::~MainWindow (this=0x250dd50, __in_chrg=<optimized out>) at /usr/src/kaffeine1/kaffeine-1.3.git/kaffeine-mplayer/src/mainwindow.cpp:374 #34 0x00007fc11b016478 in QObject::event (this=0x250dd50, e=<optimized out>) at kernel/qobject.cpp:1176 #35 0x00007fc11a3cfb7b in QWidget::event (this=0x250dd50, event=0x2f26680) at kernel/qwidget.cpp:8821 #36 0x00007fc11a7a9c4b in QMainWindow::event (this=0x250dd50, event=0x2f26680) at widgets/qmainwindow.cpp:1478 #37 0x0000000000485463 in MainWindow::event (this=0x250dd50, event=0x2f26680) at /usr/src/kaffeine1/kaffeine-1.3.git/kaffeine-mplayer/src/mainwindow.cpp:672 #38 0x00007fc11a37f894 in notify_helper (e=0x2f26680, receiver=0x250dd50, this=0x22c0b90) at kernel/qapplication.cpp:4559 #39 QApplicationPrivate::notify_helper (this=0x22c0b90, receiver=0x250dd50, e=0x2f26680) at kernel/qapplication.cpp:4531 #40 0x00007fc11a384713 in QApplication::notify (this=0x7fff45139c90, receiver=0x250dd50, e=0x2f26680) at kernel/qapplication.cpp:4420 #41 0x00007fc11bce09e6 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5 #42 0x00007fc11affce9c in QCoreApplication::notifyInternal (this=0x7fff45139c90, receiver=0x250dd50, event=0x2f26680) at kernel/qcoreapplication.cpp:876 #43 0x00007fc11b000c6a in sendEvent (event=0x2f26680, receiver=0x250dd50) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231 #44 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x2287f10) at kernel/qcoreapplication.cpp:1500 #45 0x00007fc11b02bf93 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236 #46 postEventSourceDispatch (s=<optimized out>) at kernel/qeventdispatcher_glib.cpp:279 #47 0x00007fc1160d6d53 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #48 0x00007fc1160d70a0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #49 0x00007fc1160d7164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #50 0x00007fc11b02c3bf in QEventDispatcherGlib::processEvents (this=0x22893d0, flags=...) at kernel/qeventdispatcher_glib.cpp:424 #51 0x00007fc11a427d5e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204 #52 0x00007fc11affbc82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149 #53 0x00007fc11affbed7 in QEventLoop::exec (this=0x7fff45139c20, flags=...) at kernel/qeventloop.cpp:204 #54 0x00007fc11b000f67 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1148 #55 0x0000000000421142 in main (argc=2, argv=0x7fff45139f18) at /usr/src/kaffeine1/kaffeine-1.3.git/kaffeine-mplayer/src/main.cpp:79 Reported using DrKonqi
crashes in debug build only, on Q_ASSERT(ready) in DvbLinuxDevice::setDeviceEnabled when frontend could not be opened. Doesn't crash on Release build.
absolutely no reason to close this bug!
here's a fix for this crash. if the device has not been properly sarted (not "ready = true") then there's no need to stop it. Other calls to DvbLinuxDevice::stopDevice() do check if the device is "ready = true". in dvbdevice_linux.cpp. DvbLinuxDevice::~DvbLinuxDevice() { if ( ready ) stopDevice(); }
The Kaffeine version you're using is too old. We just released upstream a version 2.0.1, with is based on KDE5, and changed both the DVB and video play backends. There, it has a stopDevice() at the DvbLinuxDevice() destructor, so it should be addressing this issue. Could you please test the upstream version and see if it works? The README file contains instructions about how to compile it. You can find it at our git repository: https://quickgit.kde.org/?p=kaffeine.git
*** Bug 256074 has been marked as a duplicate of this bug. ***
*** Bug 231871 has been marked as a duplicate of this bug. ***