Bug 323419 - KMix sometimes crashes when playback stream is assigned to a new output device
Summary: KMix sometimes crashes when playback stream is assigned to a new output device
Status: RESOLVED DUPLICATE of bug 315473
Alias: None
Product: kmix
Classification: Applications
Component: general (show other bugs)
Version: 4.3
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Christian Esken
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2013-08-12 15:37 UTC by Matthias Kretz
Modified: 2013-08-14 23:22 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Kretz 2013-08-12 15:37:27 UTC
Application: kmix (4.3)
KDE Platform Version: 4.10.5
Qt Version: 4.8.4
Operating System: Linux 3.8.0-27-generic x86_64
Distribution: Ubuntu 13.04

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

1. Open the KMix popup from the systray.
2. Right-click on Amarok.
3a. select move
3b. click on a new output device
=> crash (sometimes)

Looking at the backtrace it seems that some GUI element gets "delete"d before all user events have reached it. The fix might involve a simple replacement of delete with deleteLater.

The crash can be reproduced sometimes.

-- Backtrace:
Application: KMix (kdeinit4), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f4cc14727c0 (LWP 343))]

Thread 4 (Thread 0x7f4ca0ba2700 (LWP 344)):
#0  pthread_mutex_unlock (mutex=0x7f4c9c000a60) at forward.c:194
#1  0x00007f4cbbe7d5f1 in g_mutex_unlock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f4cbbe3e1d1 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f4cbbe3e304 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f4cc0128036 in QEventDispatcherGlib::processEvents (this=0x7f4c9c0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#5  0x00007f4cc00f838f in QEventLoop::processEvents (this=this@entry=0x7f4ca0ba1d90, flags=...) at kernel/qeventloop.cpp:149
#6  0x00007f4cc00f8618 in QEventLoop::exec (this=this@entry=0x7f4ca0ba1d90, flags=...) at kernel/qeventloop.cpp:204
#7  0x00007f4cbfffa410 in QThread::exec (this=this@entry=0x2601600) at thread/qthread.cpp:542
#8  0x00007f4cc00d9edf in QInotifyFileSystemWatcherEngine::run (this=0x2601600) at io/qfilesystemwatcher_inotify.cpp:256
#9  0x00007f4cbfffcbec in QThreadPrivate::start (arg=0x2601600) at thread/qthread_unix.cpp:338
#10 0x00007f4cbc512f8e in start_thread (arg=0x7f4ca0ba2700) at pthread_create.c:311
#11 0x00007f4cbed02e1d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 3 (Thread 0x7f4c97ffe700 (LWP 345)):
#0  0x00007f4cbbe3b4f6 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f4cbbe3d89f in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f4cbbe3e0fe in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f4cbbe3e304 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f4cc0128036 in QEventDispatcherGlib::processEvents (this=0x7f4c900008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#5  0x00007f4cc00f838f in QEventLoop::processEvents (this=this@entry=0x7f4c97ffdd90, flags=...) at kernel/qeventloop.cpp:149
#6  0x00007f4cc00f8618 in QEventLoop::exec (this=this@entry=0x7f4c97ffdd90, flags=...) at kernel/qeventloop.cpp:204
#7  0x00007f4cbfffa410 in QThread::exec (this=this@entry=0x27c47a0) at thread/qthread.cpp:542
#8  0x00007f4cc00d9edf in QInotifyFileSystemWatcherEngine::run (this=0x27c47a0) at io/qfilesystemwatcher_inotify.cpp:256
#9  0x00007f4cbfffcbec in QThreadPrivate::start (arg=0x27c47a0) at thread/qthread_unix.cpp:338
#10 0x00007f4cbc512f8e in start_thread (arg=0x7f4c97ffe700) at pthread_create.c:311
#11 0x00007f4cbed02e1d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 2 (Thread 0x7f4c975f6700 (LWP 4204)):
#0  0x00007f4cbecf63cd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f4caee74cdf in ?? () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#2  0x00007f4caee66205 in pa_mainloop_poll () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#3  0x00007f4caee66869 in pa_mainloop_iterate () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#4  0x00007f4caee66920 in pa_mainloop_run () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#5  0x00007f4caee74c8f in ?? () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#6  0x00007f4cae395143 in ?? () from /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-3.0.so
#7  0x00007f4cbc512f8e in start_thread (arg=0x7f4c975f6700) at pthread_create.c:311
#8  0x00007f4cbed02e1d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 1 (Thread 0x7f4cc14727c0 (LWP 343)):
[KCrash Handler]
#6  QMetaObject::changeGuard (ptr=ptr@entry=0xbbd58e0, o=o@entry=0x0) at kernel/qobject.cpp:460
#7  0x00007f4cbf8ddc1d in operator= (p=0x0, this=0xbbd58e0) at ../../include/QtCore/../../src/corelib/kernel/qpointer.h:68
#8  QMenuPrivate::activateAction (this=0xbbd5620, action=0xb055e90, action_e=action_e@entry=QAction::Trigger, self=self@entry=true) at widgets/qmenu.cpp:1143
#9  0x00007f4cbf8e16ed in QMenu::mouseReleaseEvent (this=this@entry=0xb5e6c00, e=e@entry=0x7fff56953730) at widgets/qmenu.cpp:2372
#10 0x00007f4cc0f32eb0 in KMenu::mouseReleaseEvent (this=0xb5e6c00, e=0x7fff56953730) at ../../kdeui/widgets/kmenu.cpp:464
#11 0x00007f4cbf4eca89 in QWidget::event (this=this@entry=0xb5e6c00, event=event@entry=0x7fff56953730) at kernel/qwidget.cpp:8375
#12 0x00007f4cbf8df3db in QMenu::event (this=0xb5e6c00, e=0x7fff56953730) at widgets/qmenu.cpp:2481
#13 0x00007f4cbf49f8ec in QApplicationPrivate::notify_helper (this=this@entry=0x2345d60, receiver=receiver@entry=0xb5e6c00, e=e@entry=0x7fff56953730) at kernel/qapplication.cpp:4567
#14 0x00007f4cbf4a2a33 in QApplication::notify (this=this@entry=0x2334a50, receiver=receiver@entry=0xb5e6c00, e=e@entry=0x7fff56953730) at kernel/qapplication.cpp:4110
#15 0x00007f4cc0e7c1a6 in KApplication::notify (this=0x2334a50, receiver=0xb5e6c00, event=0x7fff56953730) at ../../kdeui/kernel/kapplication.cpp:311
#16 0x00007f4cc00f963e in QCoreApplication::notifyInternal (this=0x2334a50, receiver=receiver@entry=0xb5e6c00, event=event@entry=0x7fff56953730) at kernel/qcoreapplication.cpp:946
#17 0x00007f4cbf4a5933 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#18 QApplicationPrivate::sendMouseEvent (receiver=0xb5e6c00, event=event@entry=0x7fff56953730, alienWidget=0x0, nativeWidget=nativeWidget@entry=0xb5e6c00, buttonDown=buttonDown@entry=0x7f4cbff7d308 <qt_button_down>, lastMouseReceiver=..., spontaneous=spontaneous@entry=true) at kernel/qapplication.cpp:3178
#19 0x00007f4cbf51ad8c in QETWidget::translateMouseEvent (this=this@entry=0xb5e6c00, event=event@entry=0x7fff56953eb0) at kernel/qapplication_x11.cpp:4565
#20 0x00007f4cbf519ef1 in QApplication::x11ProcessEvent (this=0x2334a50, event=event@entry=0x7fff56953eb0) at kernel/qapplication_x11.cpp:3746
#21 0x00007f4cbf5450b2 in x11EventSourceDispatch (s=0x2347120, callback=0x0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#22 0x00007f4cbbe3df05 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#23 0x00007f4cbbe3e248 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#24 0x00007f4cbbe3e304 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#25 0x00007f4cc0128016 in QEventDispatcherGlib::processEvents (this=0x2344db0, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#26 0x00007f4cbf5451ae in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#27 0x00007f4cc00f838f in QEventLoop::processEvents (this=this@entry=0x7fff56954280, flags=...) at kernel/qeventloop.cpp:149
#28 0x00007f4cc00f8618 in QEventLoop::exec (this=this@entry=0x7fff56954280, flags=...) at kernel/qeventloop.cpp:204
#29 0x00007f4cc00fdcf6 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1218
#30 0x00007f4cbf49dffc in QApplication::exec () at kernel/qapplication.cpp:3828
#31 0x00007f4cac9fcafa in kdemain (argc=1, argv=0x2271610) at /home/mkretz/src/KDE/kmix/apps/main.cpp:76
#32 0x00000000004084ea in launch (argc=argc@entry=1, _name=_name@entry=0x2315c18 "kmix", args=args@entry=0x2315c1d "\001", cwd=cwd@entry=0x0, envc=envc@entry=1, envs=<optimized out>, envs@entry=0x2315c25 "DISPLAY=:0", reset_env=false, tty=tty@entry=0x0, avoid_loops=false, startup_id_str=startup_id_str@entry=0x40aff6 "0") at ../../kinit/kinit.cpp:738
#33 0x00000000004095fb in handle_launcher_request (sock=8, who=<optimized out>) at ../../kinit/kinit.cpp:1230
#34 0x0000000000409c40 in handle_requests (waitForPid=waitForPid@entry=0) at ../../kinit/kinit.cpp:1423
#35 0x00000000004054f7 in main (argc=4, argv=<optimized out>, envp=0x7fff56955190) at ../../kinit/kinit.cpp:1911

Possible duplicates by query: bug 205625, bug 185376.

Reported using DrKonqi
Comment 1 Christian Esken 2013-08-14 23:22:55 UTC

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