Bug 273987

Summary: kaffeine doesn´t share the soundcard
Product: [Applications] kaffeine Reporter: lee
Component: generalAssignee: Christoph Pfister <christophpfister>
Status: RESOLVED DUPLICATE    
Severity: crash CC: adaptee, lee
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description lee 2011-05-23 21:18:00 UTC
Application: kaffeine (1.2.2)
KDE Platform Version: 4.4.5 (KDE 4.4.5)
Qt Version: 4.7.3
Operating System: Linux 2.6.38-5p x86_64
Distribution: Debian GNU/Linux testing (wheezy)

-- Information about the crash:
When another application, like mplayer, is using the on-board soundcard, kaffeine displays a message "Cannot create audio output" on startup. When I select a TV channel to watch, kaffeine crashes.

When I start kaffeine while the onboard soundcard isn´t used, kaffeine doesn´t crash, but the other application (like mplayer) cannot use the soundcard before I quit kaffeine.

Kaffeine and mplayer have no problem sharing the same sound card when I use the Soundblaster Live instead of the onboard card.


lee@yun:~$ lspci |grep -i audio
00:14.2 Audio device: ATI Technologies Inc SBx00 Azalia (Intel HDA)                                                                                                        
01:00.1 Audio device: nVidia Corporation GF100 High Definition Audio Controller (rev a1)                                                                                   
06:06.0 Multimedia audio controller: Creative Labs SB Live! EMU10k1 (rev 08)                                                                                               
06:07.0 Multimedia video controller: Conexant Systems, Inc. CX23880/1/2/3 PCI Video and Audio Decoder (rev 05)                                                             
06:07.1 Multimedia controller: Conexant Systems, Inc. CX23880/1/2/3 PCI Video and Audio Decoder [Audio Port] (rev 05)                                                      
06:07.2 Multimedia controller: Conexant Systems, Inc. CX23880/1/2/3 PCI Video and Audio Decoder [MPEG Port] (rev 05)                                                       
06:07.4 Multimedia controller: Conexant Systems, Inc. CX23880/1/2/3 PCI Video and Audio Decoder [IR Port] (rev 05)                                                         


root@yun:~# lsmod |grep snd
snd_emu10k1_synth       4848  0 
snd_emux_synth         25685  1 snd_emu10k1_synth
snd_seq_virmidi         3524  1 snd_emux_synth
snd_seq_midi_emul       3988  1 snd_emux_synth
snd_emu10k1           125601  1 snd_emu10k1_synth
snd_ac97_codec         98429  1 snd_emu10k1
snd_hda_codec_realtek   271924  1 
ac97_bus                1062  1 snd_ac97_codec
snd_util_mem            1912  2 snd_emux_synth,snd_emu10k1
snd_usb_audio          74717  0 
snd_hda_intel          18074  2 
snd_usbmidi_lib        15443  1 snd_usb_audio
snd_hwdep               5250  3 snd_emux_synth,snd_emu10k1,snd_usb_audio
snd_hda_codec          49703  2 snd_hda_codec_realtek,snd_hda_intel
snd_seq_midi            4208  0 
snd_rawmidi            15765  4 snd_seq_virmidi,snd_emu10k1,snd_usbmidi_lib,snd_seq_midi
snd_pcm_oss            29707  0 
snd_mixer_oss          12363  1 snd_pcm_oss
snd_pcm                54894  8 snd_emu10k1,snd_ac97_codec,snd_usb_audio,snd_hda_intel,cx88_alsa,snd_hda_codec,snd_pcm_oss
snd_seq_midi_event      4572  2 snd_seq_virmidi,snd_seq_midi
snd_seq                42280  5 snd_emux_synth,snd_seq_virmidi,snd_seq_midi_emul,snd_seq_midi,snd_seq_midi_event
snd_timer              15845  3 snd_emu10k1,snd_pcm,snd_seq
snd_seq_device          4473  5 snd_emu10k1_synth,snd_emu10k1,snd_seq_midi,snd_rawmidi,snd_seq
snd                    44704  21 snd_emux_synth,snd_seq_virmidi,snd_emu10k1,snd_ac97_codec,snd_hda_codec_realtek,snd_usb_audio,snd_usbmidi_lib,snd_hda_intel,snd_hwdep,cx88_alsa,snd_hda_codec,snd_pcm_oss,snd_rawmidi,snd_mixer_oss,snd_pcm,snd_seq,snd_timer,snd_seq_device
soundcore               4480  1 snd
snd_page_alloc          5963  3 snd_emu10k1,snd_hda_intel,snd_pcm
usbcore               103637  8 snd_usb_audio,snd_usbmidi_lib,uvcvideo,xhci_hcd,btusb,usbhid,ohci_hcd,ehci_hcd


The crash can be reproduced every time.

 -- Backtrace:
Application: Kaffeine (kaffeine), signal: Segmentation fault
[KCrash Handler]
#5  0x00000000004ad8b1 in MediaWidget::playDvb (this=0x23f59a0, channelName=...) at /tmp/buildd/kaffeine-1.2.2/src/mediawidget.cpp:722
#6  0x0000000000466eee in DvbLiveView::playChannel (this=0x24791a0, channel_=...) at /tmp/buildd/kaffeine-1.2.2/src/dvb/dvbliveview.cpp:218
#7  0x000000000048c8c0 in DvbTab::playChannel (this=0x246a5b0, channel=..., index=<value optimized out>) at /tmp/buildd/kaffeine-1.2.2/src/dvb/dvbtab.cpp:465
#8  0x0000000000423e99 in DvbTab::qt_metacall (this=0x246a5b0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffbf5501a0) at /tmp/buildd/kaffeine-1.2.2/obj-x86_64-linux-gnu/src/moc_dvbtab.cpp:101
#9  0x00007f216f4085ea in QMetaObject::activate (sender=0x328b620, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x7fffbf5501a0) at kernel/qobject.cpp:3278
#10 0x00007f216ecb2df5 in QAbstractItemView::activated (this=<value optimized out>, _t1=<value optimized out>) at .moc/release-shared/moc_qabstractitemview.cpp:345
#11 0x00007f216ecb32ef in QAbstractItemView::mouseReleaseEvent (this=0x328b620, event=0x7fffbf551100) at itemviews/qabstractitemview.cpp:1805
#12 0x00007f216e7fed36 in QWidget::event (this=0x328b620, event=0x7fffbf551100) at kernel/qwidget.cpp:8259
#13 0x00007f216eba0006 in QFrame::event (this=0x328b620, e=0x7fffbf551100) at widgets/qframe.cpp:557
#14 0x00007f216ecb018b in QAbstractItemView::viewportEvent (this=0x328b620, event=0x7fffbf551100) at itemviews/qabstractitemview.cpp:1628
#15 0x00007f216ecf4f65 in QTreeView::viewportEvent (this=0x328b620, event=0x7fffbf551100) at itemviews/qtreeview.cpp:1256
#16 0x00007f216f3f5b08 in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=<value optimized out>, receiver=0x3289cb0, event=0x7fffbf551100) at kernel/qcoreapplication.cpp:846
#17 0x00007f216e7ae69f in notify_helper (this=0x22ccdd0, receiver=0x3289cb0, e=0x7fffbf551100) at kernel/qapplication.cpp:4463
#18 QApplicationPrivate::notify_helper (this=0x22ccdd0, receiver=0x3289cb0, e=0x7fffbf551100) at kernel/qapplication.cpp:4439
#19 0x00007f216e7b3e5b in QApplication::notify (this=<value optimized out>, receiver=0x3289cb0, e=0x7fffbf551100) at kernel/qapplication.cpp:4028
#20 0x00007f217029f4c6 in KApplication::notify (this=0x7fffbf551c60, receiver=0x3289cb0, event=0x7fffbf551100) at ../../kdeui/kernel/kapplication.cpp:302
#21 0x00007f216f3f597c in QCoreApplication::notifyInternal (this=0x7fffbf551c60, receiver=0x3289cb0, event=0x7fffbf551100) at kernel/qcoreapplication.cpp:731
#22 0x00007f216e7af6a2 in sendEvent (receiver=0x3289cb0, event=0x7fffbf551100, alienWidget=0x3289cb0, nativeWidget=0x32a0d50, buttonDown=0x3289cb0, lastMouseReceiver=..., spontaneous=true) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#23 QApplicationPrivate::sendMouseEvent (receiver=0x3289cb0, event=0x7fffbf551100, alienWidget=0x3289cb0, nativeWidget=0x32a0d50, buttonDown=0x3289cb0, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3127
#24 0x00007f216e82bb48 in QETWidget::translateMouseEvent (this=0x32a0d50, event=<value optimized out>) at kernel/qapplication_x11.cpp:4461
#25 0x00007f216e82a94a in QApplication::x11ProcessEvent (this=0x7fffbf551c60, event=0x7fffbf551820) at kernel/qapplication_x11.cpp:3587
#26 0x00007f216e852a72 in x11EventSourceDispatch (s=0x22d0770, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#27 0x00007f216acfb4a3 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#28 0x00007f216acfbc80 in ?? () from /lib/libglib-2.0.so.0
#29 0x00007f216acfbf1d in g_main_context_iteration () from /lib/libglib-2.0.so.0
#30 0x00007f216f4205cf in QEventDispatcherGlib::processEvents (this=0x22968e0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:422
#31 0x00007f216e85270e in QGuiEventDispatcherGlib::processEvents (this=<value optimized out>, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#32 0x00007f216f3f4b82 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#33 0x00007f216f3f4d7f in QEventLoop::exec (this=0x7fffbf551bf0, flags=...) at kernel/qeventloop.cpp:201
#34 0x00007f216f3f8f57 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1008
#35 0x0000000000422d82 in main (argc=1, argv=0x7fffbf551ed8) at /tmp/buildd/kaffeine-1.2.2/src/main.cpp:79

Possible duplicates by query: bug 273324, bug 254826, bug 251158.

Reported using DrKonqi
Comment 1 lee 2011-06-05 17:50:40 UTC
Meanwhile, I have found out that the problem comes up when the soundcard to use is not the first soundcard. You may be able to reproduce the problem when setting your soundcard to another index in /etc/modprobe.d/alsa-base.conf, like:


options snd-hda-intel index=4


After removing my second soundcard and changing the index for the onboard card to 0, making it the first card in the system, kaffeine shares the card.
Comment 2 Jekyll Wu 2012-05-30 19:41:47 UTC

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