Bug 242470 - KNotify crashes if an audio device is not present
Summary: KNotify crashes if an audio device is not present
Status: RESOLVED DUPLICATE of bug 220071
Alias: None
Product: Phonon
Classification: Frameworks and Libraries
Component: Xine backend (show other bugs)
Version: 4.0
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Matthias Kretz
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-22 13:01 UTC by Daniele E. Domenichelli
Modified: 2010-06-22 19:59 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (8.04 KB, text/plain)
2010-06-22 14:27 UTC, Daniele E. Domenichelli
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniele E. Domenichelli 2010-06-22 13:01:35 UTC
Application: knotify4 (4.0)
KDE Platform Version: 4.4.86 (KDE 4.4.86 (KDE 4.5 >= 20100616)) (Compiled from sources)
Qt Version: 4.6.2
Operating System: Linux 2.6.32-22-generic x86_64
Distribution: Ubuntu 10.04 LTS

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

Every time kde (built from trunk) starts, KNotify crashes and DrKonqi starts.
After the first crash it works.

The crash can be reproduced every time.

-- Backtrace:
Application: KNotify (knotify4), signal: Aborted
[Current thread is 1 (Thread 0x7fd48d323760 (LWP 5039))]

Thread 3 (Thread 0x7fd47a7e2710 (LWP 5342)):
#0  0x00007fd48b5a2bc9 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007fd47aa05081 in ?? () from /usr/lib/libxine.so.1
#2  0x00007fd48b59d9ca in start_thread () from /lib/libpthread.so.0
#3  0x00007fd4898a76cd in clone () from /lib/libc.so.6
#4  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7fd479fe1710 (LWP 5357)):
[KCrash Handler]
#6  0x00007fd4897f4a75 in raise () from /lib/libc.so.6
#7  0x00007fd4897f85c0 in abort () from /lib/libc.so.6
#8  0x00007fd48b84528d in qt_message_output (msgType=QtFatalMsg, buf=0x19b13b8 "ASSERT: \"m_nullAudioPort\" in file /opt/kde/src/phonon/xine/xinestream.cpp, line 216")
    at /opt/kde/src/drfs-kde-qt/src/corelib/global/qglobal.cpp:2250
#9  0x00007fd48b84548f in qt_message (msgType=QtFatalMsg, msg=0x7fd48ba074f8 "ASSERT: \"%s\" in file %s, line %d", ap=0x7fd479fdfa50) at /opt/kde/src/drfs-kde-qt/src/corelib/global/qglobal.cpp:2296
#10 0x00007fd48b845cfc in qFatal (msg=0x7fd48ba074f8 "ASSERT: \"%s\" in file %s, line %d") at /opt/kde/src/drfs-kde-qt/src/corelib/global/qglobal.cpp:2479
#11 0x00007fd48b844e1f in qt_assert (assertion=0x7fd47ac9bb24 "m_nullAudioPort", file=0x7fd47ac9ba50 "/opt/kde/src/phonon/xine/xinestream.cpp", line=216)
    at /opt/kde/src/drfs-kde-qt/src/corelib/global/qglobal.cpp:2013
#12 0x00007fd47ac6659e in Phonon::Xine::XineStream::nullAudioPort (this=0x199c500) at /opt/kde/src/phonon/xine/xinestream.cpp:216
#13 0x00007fd47ac68126 in Phonon::Xine::XineStream::createStream (this=0x199c500) at /opt/kde/src/phonon/xine/xinestream.cpp:527
#14 0x00007fd47ac6b3f0 in Phonon::Xine::XineStream::event (this=0x199c500, ev=0x199e440) at /opt/kde/src/phonon/xine/xinestream.cpp:1244
#15 0x00007fd48a51c630 in QApplicationPrivate::notify_helper (this=0x1803750, receiver=0x199c500, e=0x199e440) at /opt/kde/src/drfs-kde-qt/src/gui/kernel/qapplication.cpp:4304
#16 0x00007fd48a519b35 in QApplication::notify (this=0x7fff3fa7b2e0, receiver=0x199c500, e=0x199e440) at /opt/kde/src/drfs-kde-qt/src/gui/kernel/qapplication.cpp:3708
#17 0x00007fd48cc83253 in KApplication::notify (this=0x7fff3fa7b2e0, receiver=0x199c500, event=0x199e440) at /opt/kde/src/trunk/KDE/kdelibs/kdeui/kernel/kapplication.cpp:302
#18 0x00007fd48b97d95c in QCoreApplication::notifyInternal (this=0x7fff3fa7b2e0, receiver=0x199c500, event=0x199e440) at /opt/kde/src/drfs-kde-qt/src/corelib/kernel/qcoreapplication.cpp:704
#19 0x00007fd48b981937 in QCoreApplication::sendEvent (receiver=0x199c500, event=0x199e440) at ../../include/QtCore/../../../../src/drfs-kde-qt/src/corelib/kernel/qcoreapplication.h:215
#20 0x00007fd48b97ebc2 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x1995af0) at /opt/kde/src/drfs-kde-qt/src/corelib/kernel/qcoreapplication.cpp:1345
#21 0x00007fd48b97e7dd in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at /opt/kde/src/drfs-kde-qt/src/corelib/kernel/qcoreapplication.cpp:1238
#22 0x00007fd48b9bb0bd in QCoreApplication::sendPostedEvents () at ../../include/QtCore/../../../../src/drfs-kde-qt/src/corelib/kernel/qcoreapplication.h:220
#23 0x00007fd48b9b966d in postEventSourceDispatch (s=0x196bfe0) at /opt/kde/src/drfs-kde-qt/src/corelib/kernel/qeventdispatcher_glib.cpp:276
#24 0x00007fd4873698c2 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#25 0x00007fd48736d748 in ?? () from /lib/libglib-2.0.so.0
#26 0x00007fd48736d8fc in g_main_context_iteration () from /lib/libglib-2.0.so.0
#27 0x00007fd48b9ba927 in QEventDispatcherGlib::processEvents (this=0x1942130, flags=...) at /opt/kde/src/drfs-kde-qt/src/corelib/kernel/qeventdispatcher_glib.cpp:412
#28 0x00007fd48b97a954 in QEventLoop::processEvents (this=0x7fd479fe0d40, flags=...) at /opt/kde/src/drfs-kde-qt/src/corelib/kernel/qeventloop.cpp:149
#29 0x00007fd48b97aaaa in QEventLoop::exec (this=0x7fd479fe0d40, flags=...) at /opt/kde/src/drfs-kde-qt/src/corelib/kernel/qeventloop.cpp:201
#30 0x00007fd48b84e709 in QThread::exec (this=0x195b870) at /opt/kde/src/drfs-kde-qt/src/corelib/thread/qthread.cpp:487
#31 0x00007fd47ac62bef in Phonon::Xine::XineThread::run (this=0x195b870) at /opt/kde/src/phonon/xine/xinethread.cpp:143
#32 0x00007fd48b8511b5 in QThreadPrivate::start (arg=0x195b870) at /opt/kde/src/drfs-kde-qt/src/corelib/thread/qthread_unix.cpp:248
#33 0x00007fd48b59d9ca in start_thread () from /lib/libpthread.so.0
#34 0x00007fd4898a76cd in clone () from /lib/libc.so.6
#35 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fd48d323760 (LWP 5039)):
#0  0x00007fd48b5a285c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007fd48b850aa6 in QMutexPrivate::wait (this=0x199c810, timeout=-1) at /opt/kde/src/drfs-kde-qt/src/corelib/thread/qmutex_unix.cpp:84
#2  0x00007fd48b84a0fd in QMutex::lock (this=0x199c578) at /opt/kde/src/drfs-kde-qt/src/corelib/thread/qmutex.cpp:205
#3  0x00007fd47ac6c8e1 in Phonon::Xine::XineStream::closeBlocking (this=0x199c500) at /opt/kde/src/phonon/xine/xinestream.cpp:1556
#4  0x00007fd47ac7d001 in ~MediaObject (this=0x19958e0, __in_chrg=<value optimized out>) at /opt/kde/src/phonon/xine/mediaobject.cpp:109
#5  0x00007fd48c7c60e6 in Phonon::MediaNodePrivate::deleteBackendObject (this=0x1942430) at /opt/kde/src/phonon/phonon/medianode.cpp:81
#6  0x00007fd48c7d7121 in ~FactoryPrivate (this=0x19427c0, __in_chrg=<value optimized out>) at /opt/kde/src/phonon/phonon/factory.cpp:212
#7  0x00007fd48c7d6331 in destroy () at /opt/kde/src/phonon/phonon/factory.cpp:84
#8  0x00007fd48c7d1c53 in ~CleanUpGlobalStatic (this=0x7fd48ca142b0, __in_chrg=<value optimized out>) at /opt/kde/src/phonon/phonon/globalstatic_p.h:55
#9  0x00007fd4897fa262 in exit () from /lib/libc.so.6
#10 0x00007fd48a5b834d in qt_xio_errhandler () at /opt/kde/src/drfs-kde-qt/src/gui/kernel/qapplication_x11.cpp:734
#11 0x00007fd48cc84136 in KApplication::xioErrhandler (this=0x7fff3fa7b2e0, dpy=0x182aa20) at /opt/kde/src/trunk/KDE/kdelibs/kdeui/kernel/kapplication.cpp:408
#12 0x00007fd48cc82e0c in kde_xio_errhandler (dpy=0x182aa20) at /opt/kde/src/trunk/KDE/kdelibs/kdeui/kernel/kapplication.cpp:125
#13 0x00007fd4890a97fe in _XIOError () from /usr/lib/libX11.so.6
#14 0x00007fd4890b1355 in ?? () from /usr/lib/libX11.so.6
#15 0x00007fd4890b1c07 in _XEventsQueued () from /usr/lib/libX11.so.6
#16 0x00007fd48909a40b in XEventsQueued () from /usr/lib/libX11.so.6
#17 0x00007fd48a605d98 in x11EventSourceDispatch (s=0x18076b0, callback=0, user_data=0x0) at /opt/kde/src/drfs-kde-qt/src/gui/kernel/qguieventdispatcher_glib.cpp:95
#18 0x00007fd4873698c2 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#19 0x00007fd48736d748 in ?? () from /lib/libglib-2.0.so.0
#20 0x00007fd48736d8fc in g_main_context_iteration () from /lib/libglib-2.0.so.0
#21 0x00007fd48b9ba927 in QEventDispatcherGlib::processEvents (this=0x17e0920, flags=...) at /opt/kde/src/drfs-kde-qt/src/corelib/kernel/qeventdispatcher_glib.cpp:412
#22 0x00007fd48a60647c in QGuiEventDispatcherGlib::processEvents (this=0x17e0920, flags=...) at /opt/kde/src/drfs-kde-qt/src/gui/kernel/qguieventdispatcher_glib.cpp:204
#23 0x00007fd48b97a954 in QEventLoop::processEvents (this=0x7fff3fa7b210, flags=...) at /opt/kde/src/drfs-kde-qt/src/corelib/kernel/qeventloop.cpp:149
#24 0x00007fd48b97aaaa in QEventLoop::exec (this=0x7fff3fa7b210, flags=...) at /opt/kde/src/drfs-kde-qt/src/corelib/kernel/qeventloop.cpp:201
#25 0x00007fd48b97e05e in QCoreApplication::exec () at /opt/kde/src/drfs-kde-qt/src/corelib/kernel/qcoreapplication.cpp:981
#26 0x00007fd48a5196bc in QApplication::exec () at /opt/kde/src/drfs-kde-qt/src/gui/kernel/qapplication.cpp:3583
#27 0x0000000000408f1f in main (argc=1, argv=0x7fff3fa7b668) at /opt/kde/src/trunk/KDE/kdebase/runtime/knotify/main.cpp:73

Reported using DrKonqi
Comment 1 Daniele E. Domenichelli 2010-06-22 14:25:57 UTC
It also crashes on logout, empty trash and on some other notifications...
I believe this happens on notification that should play a sound when an audio device is not present.
Comment 2 Daniele E. Domenichelli 2010-06-22 14:27:28 UTC
Created attachment 48219 [details]
New crash information added by DrKonqi

knotify4 (4.0) on KDE Platform 4.4.86 (KDE 4.4.86 (KDE 4.5 >= 20100616)) using Qt 4.6.2

- What I was doing when the application crashed:
This is another backtrace, this time KNotify crashed on empty trashcan.

-- Backtrace (Reduced):
#11 0x00007fbb40d34e1f in qt_assert (assertion=0x7fbb30189b24 "m_nullAudioPort", file=0x7fbb30189a50 "/opt/kde/src/phonon/xine/xinestream.cpp", line=216)
    at /opt/kde/src/drfs-kde-qt/src/corelib/global/qglobal.cpp:2013
#12 0x00007fbb3015459e in Phonon::Xine::XineStream::nullAudioPort (this=0x10cf930) at /opt/kde/src/phonon/xine/xinestream.cpp:216
#13 0x00007fbb30156126 in Phonon::Xine::XineStream::createStream (this=0x10cf930) at /opt/kde/src/phonon/xine/xinestream.cpp:527
#14 0x00007fbb301593f0 in Phonon::Xine::XineStream::event (this=0x10cf930, ev=0x10fd880) at /opt/kde/src/phonon/xine/xinestream.cpp:1244
#15 0x00007fbb3fa0c630 in QApplicationPrivate::notify_helper (this=0xf90ae0, receiver=0x10cf930, e=0x10fd880) at /opt/kde/src/drfs-kde-qt/src/gui/kernel/qapplication.cpp:4304
Comment 3 Daniele E. Domenichelli 2010-06-22 15:20:18 UTC
It might be related to (or duplicate of) #201569 and #228005 because also logout don't work.

Also knotify doesn't crash (and logout works) disabling sound in:

System Settings > 
 Applications and System Notifications >
  Manage Notifications >
   Player Settings >
    No audio output
Comment 4 Myriam Schweingruber 2010-06-22 19:59:32 UTC

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