Bug 300302

Summary: kmix crashes when bluetooth source is enabled
Product: [Applications] kmix Reporter: maho+kde
Component: generalAssignee: Christian Esken <esken>
Status: RESOLVED DUPLICATE    
Severity: crash CC: b.petrushev
Priority: NOR    
Version: 4   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: New crash information added by DrKonqi

Description maho+kde 2012-05-19 10:07:29 UTC
Application: kmix (4)
KDE Platform Version: 4.8.2 (4.8.2)
Qt Version: 4.8.1
Operating System: Linux 3.2.0-24-generic x86_64
Distribution: Ubuntu 12.04 LTS

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

I was using desktop as usual, with A2p bluetooth device paired and selected as main channel. 

Also, I noticed that it can be related with closing source of sound (eg. vlc playing film or closing tab with youtube movie). 

Also, 

- Custom settings of the application:

I think it happends only when external/bluetooth is connected and selected as mixer channel.

The crash can be reproduced some of the time.

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

Thread 3 (Thread 0x7f2a7251f700 (LWP 20239)):
#0  0x00007f2a883ebf57 in __pthread_mutex_lock (mutex=0x7f2a6c000a60) at pthread_mutex_lock.c:89
#1  0x00007f2a878be561 in g_mutex_lock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f2a87882fb1 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f2a87883124 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f2a8e7fd426 in QEventDispatcherGlib::processEvents (this=0x7f2a6c0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#5  0x00007f2a8e7ccc82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#6  0x00007f2a8e7cced7 in QEventLoop::exec (this=0x7f2a7251edd0, flags=...) at kernel/qeventloop.cpp:204
#7  0x00007f2a8e6cbfa7 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#8  0x00007f2a8e7ac9ff in QInotifyFileSystemWatcherEngine::run (this=0xd7d9f0) at io/qfilesystemwatcher_inotify.cpp:248
#9  0x00007f2a8e6cefcb in QThreadPrivate::start (arg=0xd7d9f0) at thread/qthread_unix.cpp:298
#10 0x00007f2a883e9e9a in start_thread (arg=0x7f2a7251f700) at pthread_create.c:308
#11 0x00007f2a91a824bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#12 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f2a71b12700 (LWP 20240)):
#0  0x00007fff4c3ff9c4 in clock_gettime ()
#1  0x00007f2a881de15d in __GI_clock_gettime (clock_id=<optimized out>, tp=<optimized out>) at ../sysdeps/unix/clock_gettime.c:116
#2  0x00007f2a8e725bb4 in do_gettime (frac=0x7f2a71b11b98, sec=0x7f2a71b11b90) at tools/qelapsedtimer_unix.cpp:123
#3  qt_gettime () at tools/qelapsedtimer_unix.cpp:140
#4  0x00007f2a8e7fdb8d in QTimerInfoList::updateCurrentTime (this=0x7f2a60002660) at kernel/qeventdispatcher_unix.cpp:343
#5  0x00007f2a8e7fdec3 in QTimerInfoList::timerWait (this=0x7f2a60002660, tm=...) at kernel/qeventdispatcher_unix.cpp:450
#6  0x00007f2a8e7fc97c in timerSourcePrepareHelper (src=<optimized out>, timeout=0x7f2a71b11c6c) at kernel/qeventdispatcher_glib.cpp:136
#7  0x00007f2a8e7fca25 in timerSourcePrepare (source=<optimized out>, timeout=<optimized out>) at kernel/qeventdispatcher_glib.cpp:169
#8  0x00007f2a8788271e in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#9  0x00007f2a87882f1b in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#10 0x00007f2a87883124 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#11 0x00007f2a8e7fd426 in QEventDispatcherGlib::processEvents (this=0x7f2a600008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#12 0x00007f2a8e7ccc82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#13 0x00007f2a8e7cced7 in QEventLoop::exec (this=0x7f2a71b11dd0, flags=...) at kernel/qeventloop.cpp:204
#14 0x00007f2a8e6cbfa7 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#15 0x00007f2a8e7ac9ff in QInotifyFileSystemWatcherEngine::run (this=0xe0da60) at io/qfilesystemwatcher_inotify.cpp:248
#16 0x00007f2a8e6cefcb in QThreadPrivate::start (arg=0xe0da60) at thread/qthread_unix.cpp:298
#17 0x00007f2a883e9e9a in start_thread (arg=0x7f2a71b12700) at pthread_create.c:308
#18 0x00007f2a91a824bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#19 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f2a921a7780 (LWP 20238)):
[KCrash Handler]
#6  0x00007f2a8ff04c00 in typeinfo for QGesture () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#7  0x00007f2a91da2e26 in MDWSlider::update (this=0xe03390) at ../../kmix/gui/mdwslider.cpp:1001
#8  0x00007f2a91d9e64b in ViewDockAreaPopup::refreshVolumeLevels (this=<optimized out>) at ../../kmix/gui/viewdockareapopup.cpp:168
#9  0x00007f2a8e7e2281 in QMetaObject::activate (sender=0xda5c60, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3547
#10 0x00007f2a8e7e2281 in QMetaObject::activate (sender=0xdadc20, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3547
#11 0x00007f2a91d77b0c in Mixer_Backend::readSetFromHW (this=0xdadc20) at ../../kmix/backends/mixer_backend.cpp:155
#12 0x00007f2a91d87df5 in sink_cb (c=<optimized out>, i=<optimized out>, eol=<optimized out>) at ../../kmix/backends/mixer_pulse.cpp:191
#13 0x00007f2a9015f944 in ?? () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#14 0x00007f2a87da1693 in ?? () from /usr/lib/x86_64-linux-gnu/libpulsecommon-1.1.so
#15 0x00007f2a87da1a03 in pa_pdispatch_run () from /usr/lib/x86_64-linux-gnu/libpulsecommon-1.1.so
#16 0x00007f2a90155bdd in ?? () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#17 0x00007f2a87da62a9 in ?? () from /usr/lib/x86_64-linux-gnu/libpulsecommon-1.1.so
#18 0x00007f2a8ff43ab3 in ?? () from /usr/lib/x86_64-linux-gnu/libpulse-mainloop-glib.so.0
#19 0x00007f2a87882c9a in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#20 0x00007f2a87883060 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#21 0x00007f2a87883124 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#22 0x00007f2a8e7fd3bf in QEventDispatcherGlib::processEvents (this=0xb16ad0, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#23 0x00007f2a8f4e7d5e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#24 0x00007f2a8e7ccc82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#25 0x00007f2a8e7cced7 in QEventLoop::exec (this=0x7fff4c2b54c0, flags=...) at kernel/qeventloop.cpp:204
#26 0x00007f2a8e7d1f67 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1148
#27 0x00007f2a91d8f3e2 in kdemain (argc=1, argv=0x7fff4c2b5a48) at ../../kmix/apps/main.cpp:76
#28 0x00007f2a919b176d in __libc_start_main (main=0x400630 <main(int, char**)>, argc=1, ubp_av=0x7fff4c2b5a48, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff4c2b5a38) at libc-start.c:226
#29 0x0000000000400661 in _start ()

Possible duplicates by query: bug 299650, bug 298757, bug 298324, bug 298116, bug 297754.

Reported using DrKonqi
Comment 1 Baze Petrushev 2012-05-19 12:51:52 UTC
Created attachment 71218 [details]
New crash information added by DrKonqi

kmix (4) on KDE Platform 4.8.2 (4.8.2) using Qt 4.8.1

- What I was doing when the application crashed:

The original bug was related with bluetooth device and/or vlc closing.

My crash happened (repeatedly) when Clementine player proceedes with playing the next song.

-- Backtrace (Reduced):
#6  0x00007fe029ad1c00 in typeinfo for QGesture () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#7  0x00007fe02b96fe26 in MDWSlider::update (this=0x1f92d60) at ../../kmix/gui/mdwslider.cpp:1001
#8  0x00007fe02b96b64b in ViewDockAreaPopup::refreshVolumeLevels (this=<optimized out>) at ../../kmix/gui/viewdockareapopup.cpp:168
[...]
#11 0x00007fe02b944b0c in Mixer_Backend::readSetFromHW (this=0x1eaaff0) at ../../kmix/backends/mixer_backend.cpp:155
#12 0x00007fe02b954df5 in sink_cb (c=<optimized out>, i=<optimized out>, eol=<optimized out>) at ../../kmix/backends/mixer_pulse.cpp:191
Comment 2 Christian Esken 2012-05-20 18:11:43 UTC
Preface: Any bug reporter that sees the following in the Stacktrace, please do NOT report it any longer:
kmix/gui/mdwslider.cpp:1001
or
kmix/gui/mdwslider.cpp:1003

The issue is fixed in KDE 4.8.3 , see Bug 290742 .

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