Bug 281015 - Audio setup module (multimedia) crashed when started from KMix
Summary: Audio setup module (multimedia) crashed when started from KMix
Status: RESOLVED FIXED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_phonon (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Colin Guthrie
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-29 19:37 UTC by Hrvoje Senjan
Modified: 2013-02-07 22:27 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
New crash information added by DrKonqi (12.91 KB, text/plain)
2011-08-31 17:46 UTC, Hrvoje Senjan
Details
Patch to avoid asserts. (2.14 KB, patch)
2011-09-15 19:43 UTC, Colin Guthrie
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hrvoje Senjan 2011-08-29 19:37:09 UTC
Application: kcmshell4 ()
KDE Platform Version: 4.7.41 (4.7.41 (KDE 4.8 >= 20110807)
Qt Version: 4.7.1
Operating System: Linux 3.0.0-9-generic x86_64
Distribution: Ubuntu oneiric (development branch)

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

Tried to start audio setup from KMix and kcm crashed. This doesn't happen when opening module from systemsettings.

systemsettings -v    
Qt: 4.7.1
KDE Development Platform: 4.7.41 (4.7.41 (KDE 4.8 >= 20110807)
System Settings: 1.0
(Daily builds from Project Neon PPA)

-- Backtrace:
Application: KDE Control Module (kcmshell4), signal: Aborted
[KCrash Handler]
#6  0x00007f4a50f003a5 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#7  0x00007f4a50f03b0b in abort () from /lib/x86_64-linux-gnu/libc.so.6
#8  0x00007f4a4f8b059f in qt_message_output (msgType=QtFatalMsg, buf=0x103ca58 "ASSERT: \"rv >= 0\" in file /build/buildd/project-neon-kde-runtime-2+git20110827+r16932/phonon/kcm/audiosetup.cpp, line 390") at global/qglobal.cpp:2282
#9  0x00007f4a4f8b0735 in qt_message(QtMsgType, const char *, typedef __va_list_tag __va_list_tag *) (msgType=QtFatalMsg, msg=0x7f4a4fa56718 "ASSERT: \"%s\" in file %s, line %d", ap=0x7fff28d447b8) at global/qglobal.cpp:2328
#10 0x00007f4a4f8b0ec5 in qFatal (msg=0x7f4a4fa56718 "ASSERT: \"%s\" in file %s, line %d") at global/qglobal.cpp:2511
#11 0x00007f4a4f8b0164 in qt_assert (assertion=0x7f4a41248242 "rv >= 0", file=0x7f4a41247a80 "/build/buildd/project-neon-kde-runtime-2+git20110827+r16932/phonon/kcm/audiosetup.cpp", line=390) at global/qglobal.cpp:2027
#12 0x00007f4a4123c871 in AudioSetup::AudioSetup (this=0xfeacb0, parent=0xac4c50) at /build/buildd/project-neon-kde-runtime-2+git20110827+r16932/phonon/kcm/audiosetup.cpp:390
#13 0x00007f4a412279f8 in PhononKcm::PhononKcm (this=0xac4c50, parent=0xabdef0, args=...) at /build/buildd/project-neon-kde-runtime-2+git20110827+r16932/phonon/kcm/main.cpp:72
#14 0x00007f4a412281ca in KPluginFactory::createInstance<PhononKcm, QWidget> (parentWidget=0x0, parent=0xabdef0, args=...) at /opt/project-neon/include/KDE/../kpluginfactory.h:477
#15 0x00007f4a5023fe43 in KPluginFactory::create (this=0xaa93c0, iface=0x7f4a50975b20 "KCModule", parentWidget=0x0, parent=0xabdef0, args=..., keyword=...) at /build/buildd/project-neon-kdelibs-2+git20110828+r92126/kdecore/util/kpluginfactory.cpp:203
#16 0x00007f4a50c95d1a in KPluginFactory::create<KCModule> (this=0xaa93c0, parentWidget=0x0, parent=0xabdef0, keyword=..., args=...) at /build/buildd/project-neon-kdelibs-2+git20110828+r92126/kdecore/util/kpluginfactory.h:531
#17 0x00007f4a50c95846 in KService::createInstance<KCModule> (this=0xa5e770, parentWidget=0x0, parent=0xabdef0, args=..., error=0x7fff28d45090) at /build/buildd/project-neon-kdelibs-2+git20110828+r92126/kdecore/services/kservice.h:551
#18 0x00007f4a50c9557c in KService::createInstance<KCModule> (this=0xa5e770, parent=0xabdef0, args=..., error=0x7fff28d45090) at /build/buildd/project-neon-kdelibs-2+git20110828+r92126/kdecore/services/kservice.h:528
#19 0x00007f4a50c948c0 in KCModuleLoader::loadModule (mod=..., report=KCModuleLoader::Inline, parent=0xabdef0, args=...) at /build/buildd/project-neon-kdelibs-2+git20110828+r92126/kutils/kcmoduleloader.cpp:89
#20 0x00007f4a50c9b3d0 in KCModuleProxyPrivate::loadModule (this=0xad0db0) at /build/buildd/project-neon-kdelibs-2+git20110828+r92126/kutils/kcmoduleproxy.cpp:106
#21 0x00007f4a50c9afd2 in KCModuleProxy::realModule (this=0xabdef0) at /build/buildd/project-neon-kdelibs-2+git20110828+r92126/kutils/kcmoduleproxy.cpp:83
#22 0x00007f4a50c9c40c in KCModuleProxy::useRootOnlyMessage (this=0xabdef0) at /build/buildd/project-neon-kdelibs-2+git20110828+r92126/kutils/kcmoduleproxy.cpp:315
#23 0x00007f4a50c980f3 in KCMultiDialog::addModule (this=0xa842f0, moduleInfo=..., parentItem=0x0, args=...) at /build/buildd/project-neon-kdelibs-2+git20110828+r92126/kutils/kcmultidialog.cpp:390
#24 0x00007f4a51270a6a in kdemain (_argc=2, _argv=0x7fff28d46268) at /build/buildd/project-neon-kde-runtime-2+git20110827+r16932/kcmshell/main.cpp:285
#25 0x0000000000400796 in main (argc=2, argv=0x7fff28d46268) at /build/buildd/project-neon-kde-runtime-2+git20110827+r16932/obj-x86_64-linux-gnu/kcmshell/kcmshell4_dummy.cpp:3

Reported using DrKonqi
Comment 1 Harald Sitter 2011-08-31 09:22:39 UTC
Ah, a very readable assert, how I love them ^^


    int rv;
    rv = pa_context_connect(s_context, NULL, PA_CONTEXT_NOFAIL, 0);
    Q_ASSERT(rv >= 0);

    pa_context_set_state_callback(s_context, &context_state_callback, this);

    rv = ca_context_create(&m_Canberra);
    Q_ASSERT(rv >= 0);


That code is abusing asserts for return value checking -> wrong! Colin, please change this to something that does not crash the lot of Phonon configurations.
Comment 2 Colin Guthrie 2011-08-31 09:37:31 UTC
Excellent! If this is breaking then something more sinister is going on and now I have a victim, erm, I mean helpful tester, to help me debug what that underlying problem is!

I will only fix this is Hrvoje Senjan will help me actually work out the underlying problem so it can be addressed :D

Hrvoje, are you able to apply patches and build packages? If so I will post one and you can help me by letting me know the result after application. Is that OK?


I'm also not sure about "a lot" here... these functions should return successfully in all but broken cases... but I accept this is an abuse of asserts here.
Comment 3 Hrvoje Senjan 2011-08-31 13:10:07 UTC
@colin
Send in the patches :)
Comment 4 Hrvoje Senjan 2011-08-31 17:46:12 UTC
Created attachment 63269 [details]
New crash information added by DrKonqi

systemsettings (1.0) on KDE Platform 4.7.41 (4.7.41 (KDE 4.8 >= 20110807) using Qt 4.7.1

- What I was doing when the application crashed:
It crashed again, but now starting directly from systemsettings. I'm sending the backtrace , cause it's too cryptic for me , so i can't tell is it the same issue or not.

-- Backtrace (Reduced):
#11 0x00007fc55aa7c164 in qt_assert (assertion=0x7fc5268de242 "rv >= 0", file=0x7fc5268dda80 "/build/buildd/project-neon-kde-runtime-2+git20110830+r16942/phonon/kcm/audiosetup.cpp", line=390) at global/qglobal.cpp:2027
#12 0x00007fc5268d2871 in AudioSetup::AudioSetup (this=0x2620230, parent=0x1c55470) at /build/buildd/project-neon-kde-runtime-2+git20110830+r16942/phonon/kcm/audiosetup.cpp:390
#13 0x00007fc5268bd9f8 in PhononKcm::PhononKcm (this=0x1c55470, parent=0x186e110, args=...) at /build/buildd/project-neon-kde-runtime-2+git20110830+r16942/phonon/kcm/main.cpp:72
#14 0x00007fc5268be1ca in KPluginFactory::createInstance<PhononKcm, QWidget> (parentWidget=0x0, parent=0x186e110, args=...) at /opt/project-neon/include/KDE/../kpluginfactory.h:477
#15 0x00007fc55b40be43 in KPluginFactory::create (this=0x1482aa0, iface=0x7fc55ca8fb60 "KCModule", parentWidget=0x0, parent=0x186e110, args=..., keyword=...) at /build/buildd/project-neon-kdelibs-2+git20110829+r92126/kdecore/util/kpluginfactory.cpp:203
Comment 5 Colin Guthrie 2011-09-15 19:43:16 UTC
Created attachment 63674 [details]
Patch to avoid asserts.

Sorry for the delay, are you still able to test?

Hopefully(!) things are still broken for you and we can get some useful debug from you.

Harald has already refactored things a bit, so the patch is against git master at the moment.

If you're not able to build from git master, please just let me know.

When applied things should no longer crash by you also should not see an "Audio Hardware Setup" tab (which is available when PA stuff is working).

If this is the case, I'd be really interested to see the kDebug output.

Also if you can attach: "PULSE_LOG=99 pactl stat" output, that would be great too :D
Comment 6 Hrvoje Senjan 2011-09-15 19:54:00 UTC
I am able to build it, but probably not before weekend; thanks for the patch , hopefully it should do it :)
Comment 7 Hrvoje Senjan 2011-09-16 07:18:20 UTC
Just a quick note before i get testing the patch - this crash is also happening without pulseaudio:
dpkg -l | grep pulse
ii  libpulse-dev                                1:0.99.3-0ubuntu5                          PulseAudio client development headers and libraries
ii  libpulse-mainloop-glib0                     1:0.99.3-0ubuntu5                          PulseAudio client libraries (glib support)
ii  libpulse0

This is phonon from master (08. September) and without pa
Application: System Settings (systemsettings), signal: Aborted
[Current thread is 1 (Thread 0x7f1f2a661780 (LWP 30827))]

Thread 2 (Thread 0x7f1f153b5700 (LWP 30844)):
#0  0x00007f1f276b5913 in select () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007f1f27df66d4 in QProcessManager::run (this=0x7f1f281a7000) at io/qprocess_unix.cpp:245
#2  0x00007f1f27d023fe in QThreadPrivate::start (arg=0x7f1f281a7000) at thread/qthread_unix.cpp:285
#3  0x00007f1f251ecedc in start_thread (arg=0x7f1f153b5700) at pthread_create.c:304
#4  0x00007f1f276bc89d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f1f2a661780 (LWP 30827)):
[KCrash Handler]
#6  0x00007f1f276113a5 in __GI_raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#7  0x00007f1f27614b0b in __GI_abort () at abort.c:92
#8  0x00007f1f27cf759f in qt_message_output (msgType=QtFatalMsg, buf=0x2ffc998 "ASSERT: \"ret >= 0\" in file /build/buildd/project-neon-kde-runtime-2+git20110915+r16978/phonon/kcm/audiosetup.cpp, line 310") at global/qglobal.cpp:2282
#9  0x00007f1f27cf7735 in qt_message(QtMsgType, const char *, typedef __va_list_tag __va_list_tag *) (msgType=QtFatalMsg, msg=0x7f1f27e9d718 "ASSERT: \"%s\" in file %s, line %d", ap=0x7fff89cebd28) at global/qglobal.cpp:2328
#10 0x00007f1f27cf7ec5 in qFatal (msg=0x7f1f27e9d718 "ASSERT: \"%s\" in file %s, line %d") at global/qglobal.cpp:2511
#11 0x00007f1f27cf7164 in qt_assert (assertion=0x7f1f0cc61382 "ret >= 0", file=0x7f1f0cc60c40 "/build/buildd/project-neon-kde-runtime-2+git20110915+r16978/phonon/kcm/audiosetup.cpp", line=310) at global/qglobal.cpp:2027
#12 0x00007f1f0cc553ce in AudioSetup::AudioSetup (this=0x2f66b80, parent=0x2cba390) at /build/buildd/project-neon-kde-runtime-2+git20110915+r16978/phonon/kcm/audiosetup.cpp:310
#13 0x00007f1f0cc406d8 in PhononKcm::PhononKcm (this=0x2cba390, parent=0x29dc950, args=...) at /build/buildd/project-neon-kde-runtime-2+git20110915+r16978/phonon/kcm/main.cpp:72
#14 0x00007f1f0cc40eaa in KPluginFactory::createInstance<PhononKcm, QWidget> (parentWidget=0x0, parent=0x29dc950, args=...) at /opt/project-neon/include/KDE/../kpluginfactory.h:477
#15 0x00007f1f28686e43 in KPluginFactory::create (this=0x29b8ae0, iface=0x7f1f29d0aae0 "KCModule", parentWidget=0x0, parent=0x29dc950, args=..., keyword=...) at /build/buildd/project-neon-kdelibs-2+git20110915+r92126/kdecore/util/kpluginfactory.cpp:203
#16 0x00007f1f2a248d1a in KPluginFactory::create<KCModule> (this=0x29b8ae0, parentWidget=0x0, parent=0x29dc950, keyword=..., args=...) at /build/buildd/project-neon-kdelibs-2+git20110915+r92126/kdecore/util/kpluginfactory.h:531
#17 0x00007f1f2a248846 in KService::createInstance<KCModule> (this=0x258e2e0, parentWidget=0x0, parent=0x29dc950, args=..., error=0x7fff89cec5e0) at /build/buildd/project-neon-kdelibs-2+git20110915+r92126/kdecore/services/kservice.h:551
#18 0x00007f1f2a24857c in KService::createInstance<KCModule> (this=0x258e2e0, parent=0x29dc950, args=..., error=0x7fff89cec5e0) at /build/buildd/project-neon-kdelibs-2+git20110915+r92126/kdecore/services/kservice.h:528
#19 0x00007f1f2a2478c0 in KCModuleLoader::loadModule (mod=..., report=KCModuleLoader::Inline, parent=0x29dc950, args=...) at /build/buildd/project-neon-kdelibs-2+git20110915+r92126/kutils/kcmoduleloader.cpp:89
#20 0x00007f1f2a24e3d0 in KCModuleProxyPrivate::loadModule (this=0x2ba3970) at /build/buildd/project-neon-kdelibs-2+git20110915+r92126/kutils/kcmoduleproxy.cpp:106
#21 0x00007f1f2a24dfd2 in KCModuleProxy::realModule (this=0x29dc950) at /build/buildd/project-neon-kdelibs-2+git20110915+r92126/kutils/kcmoduleproxy.cpp:83
#22 0x00007f1f2a24ecc4 in KCModuleProxy::showEvent (this=0x29dc950, ev=0x7fff89ced440) at /build/buildd/project-neon-kdelibs-2+git20110915+r92126/kutils/kcmoduleproxy.cpp:197
#23 0x00007f1f28bc6583 in QWidget::event (this=0x29dc950, event=0x7fff89ced440) at kernel/qwidget.cpp:8407
#24 0x00007f1f28b602f2 in QApplicationPrivate::notify_helper (this=0x2208690, receiver=0x29dc950, e=0x7fff89ced440) at kernel/qapplication.cpp:4445
#25 0x00007f1f28b5fff4 in QApplication::notify (this=0x7fff89cf0000, receiver=0x29dc950, e=0x7fff89ced440) at kernel/qapplication.cpp:4410
#26 0x00007f1f29b21ddb in KApplication::notify (this=0x7fff89cf0000, receiver=0x29dc950, event=0x7fff89ced440) at /build/buildd/project-neon-kdelibs-2+git20110915+r92126/kdeui/kernel/kapplication.cpp:311
#27 0x00007f1f27e1e93e in QCoreApplication::notifyInternal (this=0x7fff89cf0000, receiver=0x29dc950, event=0x7fff89ced440) at kernel/qcoreapplication.cpp:732
#28 0x00007f1f28b51183 in QCoreApplication::sendEvent (receiver=0x29dc950, event=0x7fff89ced440) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#29 0x00007f1f28bc3d23 in QWidgetPrivate::show_helper (this=0x2ba3b40) at kernel/qwidget.cpp:7380
#30 0x00007f1f28bc36b8 in QWidgetPrivate::show_recursive (this=0x2ba3b40) at kernel/qwidget.cpp:7251
#31 0x00007f1f28bc4aec in QWidgetPrivate::showChildren (this=0x2ba2ea0, spontaneous=false) at kernel/qwidget.cpp:7688
#32 0x00007f1f28bc3b34 in QWidgetPrivate::show_helper (this=0x2ba2ea0) at kernel/qwidget.cpp:7327
#33 0x00007f1f28bc4658 in QWidget::setVisible (this=0x268c2d0, visible=true) at kernel/qwidget.cpp:7602
#34 0x00007f1f28ba4770 in QWidget::show (this=0x268c2d0) at ../../include/QtGui/../../src/gui/kernel/qwidget.h:487
#35 0x00007f1f28bc4afa in QWidgetPrivate::showChildren (this=0x2c29bb0, spontaneous=false) at kernel/qwidget.cpp:7690
#36 0x00007f1f28bc3b34 in QWidgetPrivate::show_helper (this=0x2c29bb0) at kernel/qwidget.cpp:7327
#37 0x00007f1f28bc4658 in QWidget::setVisible (this=0x2a4e7b0, visible=true) at kernel/qwidget.cpp:7602
#38 0x00007f1f28ba4770 in QWidget::show (this=0x2a4e7b0) at ../../include/QtGui/../../src/gui/kernel/qwidget.h:487
#39 0x00007f1f28ba3e39 in QStackedLayout::setCurrentIndex (this=0x2623120, index=2) at kernel/qstackedlayout.cpp:311
#40 0x00007f1f28ba4024 in QStackedLayout::setCurrentWidget (this=0x2623120, widget=0x2a4e7b0) at kernel/qstackedlayout.cpp:365
#41 0x00007f1f290f3500 in QStackedWidget::setCurrentWidget (this=0x2621dd0, widget=0x2a4e7b0) at widgets/qstackedwidget.cpp:250
#42 0x00007f1f29b60394 in KPageViewPrivate::_k_pageSelected (this=0x25ac670, index=..., previous=...) at /build/buildd/project-neon-kdelibs-2+git20110915+r92126/kdeui/paged/kpageview.cpp:235
#43 0x00007f1f29b613f2 in KPageView::qt_metacall (this=0x2621fb0, _c=QMetaObject::InvokeMetaMethod, _id=3, _a=0x7fff89cedb70) at /build/buildd/project-neon-kdelibs-2+git20110915+r92126/obj-x86_64-linux-gnu/kdeui/kpageview.moc:100
#44 0x00007f1f29b65481 in KPageWidget::qt_metacall (this=0x2621fb0, _c=QMetaObject::InvokeMetaMethod, _id=30, _a=0x7fff89cedb70) at /build/buildd/project-neon-kdelibs-2+git20110915+r92126/obj-x86_64-linux-gnu/kdeui/kpagewidget.moc:76
#45 0x00007f1f27e26abc in QMetaObject::metacall (object=0x2621fb0, cl=QMetaObject::InvokeMetaMethod, idx=30, argv=0x7fff89cedb70) at kernel/qmetaobject.cpp:237
#46 0x00007f1f27e3b5b2 in QMetaObject::activate (sender=0x2b07aa0, m=0x7f1f298a2f80, local_signal_index=0, argv=0x7fff89cedb70) at kernel/qobject.cpp:3280
#47 0x00007f1f292416c9 in QItemSelectionModel::selectionChanged (this=0x2b07aa0, _t1=..., _t2=...) at .moc/debug-shared/moc_qitemselectionmodel.cpp:152
#48 0x00007f1f29240ff1 in QItemSelectionModel::emitSelectionChanged (this=0x2b07aa0, newSelection=..., oldSelection=...) at itemviews/qitemselectionmodel.cpp:1581
#49 0x00007f1f2923e53e in QItemSelectionModel::select (this=0x2b07aa0, selection=..., command=...) at itemviews/qitemselectionmodel.cpp:1088
#50 0x00007f1f29b641a8 in KDEPrivate::SelectionModel::select (this=0x2b07aa0, selection=..., command=...) at /build/buildd/project-neon-kdelibs-2+git20110915+r92126/kdeui/paged/kpageview_p.cpp:619
#51 0x00007f1f291fd1fe in QListView::setSelection (this=0x2627d90, rect=..., command=...) at itemviews/qlistview.cpp:1385
#52 0x00007f1f291d89a7 in QAbstractItemView::mousePressEvent (this=0x2627d90, event=0x7fff89cef0d0) at itemviews/qabstractitemview.cpp:1665
#53 0x00007f1f28bc5add in QWidget::event (this=0x2627d90, event=0x7fff89cef0d0) at kernel/qwidget.cpp:8196
#54 0x00007f1f29079c97 in QFrame::event (this=0x2627d90, e=0x7fff89cef0d0) at widgets/qframe.cpp:557
#55 0x00007f1f29122d2b in QAbstractScrollArea::viewportEvent (this=0x2627d90, e=0x7fff89cef0d0) at widgets/qabstractscrollarea.cpp:1043
#56 0x00007f1f291d8304 in QAbstractItemView::viewportEvent (this=0x2627d90, event=0x7fff89cef0d0) at itemviews/qabstractitemview.cpp:1619
#57 0x00007f1f29123991 in QAbstractScrollAreaPrivate::viewportEvent (this=0x2c2c970, event=0x7fff89cef0d0) at widgets/qabstractscrollarea_p.h:100
#58 0x00007f1f29123a8a in QAbstractScrollAreaFilter::eventFilter (this=0x2b5e900, o=0x25e0ff0, e=0x7fff89cef0d0) at widgets/qabstractscrollarea_p.h:116
#59 0x00007f1f27e1ec4f in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=0x2208690, receiver=0x25e0ff0, event=0x7fff89cef0d0) at kernel/qcoreapplication.cpp:847
#60 0x00007f1f28b602c9 in QApplicationPrivate::notify_helper (this=0x2208690, receiver=0x25e0ff0, e=0x7fff89cef0d0) at kernel/qapplication.cpp:4441
#61 0x00007f1f28b5e277 in QApplication::notify (this=0x7fff89cf0000, receiver=0x25e0ff0, e=0x7fff89cef0d0) at kernel/qapplication.cpp:4006
#62 0x00007f1f29b21ddb in KApplication::notify (this=0x7fff89cf0000, receiver=0x25e0ff0, event=0x7fff89cef0d0) at /build/buildd/project-neon-kdelibs-2+git20110915+r92126/kdeui/kernel/kapplication.cpp:311
#63 0x00007f1f27e1e93e in QCoreApplication::notifyInternal (this=0x7fff89cf0000, receiver=0x25e0ff0, event=0x7fff89cef0d0) at kernel/qcoreapplication.cpp:732
#64 0x00007f1f28b62a77 in QCoreApplication::sendSpontaneousEvent (receiver=0x25e0ff0, event=0x7fff89cef0d0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218
#65 0x00007f1f28b5c831 in QApplicationPrivate::sendMouseEvent (receiver=0x25e0ff0, event=0x7fff89cef0d0, alienWidget=0x25e0ff0, nativeWidget=0x2627d90, buttonDown=0x7f1f298c2828, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3103
#66 0x00007f1f28c00392 in QETWidget::translateMouseEvent (this=0x2627d90, event=0x7fff89cefbd0) at kernel/qapplication_x11.cpp:4438
#67 0x00007f1f28bfcb34 in QApplication::x11ProcessEvent (this=0x7fff89cf0000, event=0x7fff89cefbd0) at kernel/qapplication_x11.cpp:3442
#68 0x00007f1f28c37596 in x11EventSourceDispatch (s=0x220c030, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#69 0x00007f1f24a79b6d in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#70 0x00007f1f24a7a368 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#71 0x00007f1f24a7a539 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#72 0x00007f1f27e570f9 in QEventDispatcherGlib::processEvents (this=0x21d7a10, flags=...) at kernel/qeventdispatcher_glib.cpp:415
#73 0x00007f1f28c37950 in QGuiEventDispatcherGlib::processEvents (this=0x21d7a10, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#74 0x00007f1f27e1c504 in QEventLoop::processEvents (this=0x7fff89ceff60, flags=...) at kernel/qeventloop.cpp:149
#75 0x00007f1f27e1c658 in QEventLoop::exec (this=0x7fff89ceff60, flags=...) at kernel/qeventloop.cpp:201
#76 0x00007f1f27e1f030 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009
#77 0x00007f1f28b5d488 in QApplication::exec () at kernel/qapplication.cpp:3719
#78 0x000000000041541a in main (argc=5, argv=0x7fff89cf02b8) at /build/buildd/project-neon-kde-workspace-2+git20110915+r46110/systemsettings/app/main.cpp:49
Comment 8 Hrvoje Senjan 2011-09-16 07:30:20 UTC
and kde-runtime from 15. Septemper
Comment 9 Colin Guthrie 2011-09-16 08:04:58 UTC
(In reply to comment #7)
> Just a quick note before i get testing the patch - this crash is also happening
> without pulseaudio:
> dpkg -l | grep pulse
> ii  libpulse-dev                                1:0.99.3-0ubuntu5              
>            PulseAudio client development headers and libraries
> ii  libpulse-mainloop-glib0                     1:0.99.3-0ubuntu5              
>            PulseAudio client libraries (glib support)
> ii  libpulse0
> 
> This is phonon from master (08. September) and without pa


Yeah the crash happens during the connection stage, so it's not that surprising that if PA is not actually running, it still crashes.

The patch should avoid all that. Whiles these conditions are very much unexpected, they can obviously happen (as is demonstrated here!), so I definitely shouldn't be quite as brutal so to just assert out!

In actual fact the Phonon version doesn't actually matter much here as most of this is directly communicating with PA. The kde-runtime version is the most important.

I'll be keen to see what the underlying problem actually is so we can fix it more fully :)

Thanks again for testing!
Comment 10 Hrvoje Senjan 2011-09-16 08:10:58 UTC
Applied the patch, and it works! :) No more crashes with/out PA. Here's the
output of PULSE_LOG=99 pactl stat

Using shared memory pool with 1024 slots of size 64,0 KiB each, total size is
64,0 MiB, maximum usable slot size is 65472
Trying to connect to
/home/hrvoje/.pulse/4a84c5a5e7a5d143ddf0d9250000000c-runtime/native...
SHM possible: yes
Protocol version: remote 24, local 24
Negotiated SHM: yes
Currently in use: 1 blocks containing 63,9 KiB bytes total.
Allocated during whole lifetime: 4694 blocks containing 17,8 MiB bytes total.
Sample cache size: 0 B
Server String:
/home/hrvoje/.pulse/4a84c5a5e7a5d143ddf0d9250000000c-runtime/native
Library Protocol Version: 24
Server Protocol Version: 24
Is Local: yes
Client Index: 38
Tile Size: 65472
User Name: hrvoje
Host Name: shumarija
Server Name: pulseaudio
Server Version: 0.99.3
Default Sample Specification: s16le 2ch 44100Hz
Default Channel Map: front-left,front-right
Default Sink: alsa_output.pci-0000_00_1b.0.analog-stereo
Default Source: alsa_input.pci-0000_00_1b.0.analog-stereo
Cookie: 8d62:67d3
Comment 11 Hrvoje Senjan 2011-09-16 08:13:20 UTC
kio_file is missing/broken (!?) so i can't attach xsession and i'm putting it in the comment:

cat .xsession-errors | grep phonon
kbuildsycoca4(28053) KBuildServiceFactory::populateServiceTypes: "phononbackends/gstreamer.desktop" specifies undefined mimetype/servicetype "video/x-quicktime"
kbuildsycoca4(28053) KBuildServiceFactory::populateServiceTypes: "phononbackends/gstreamer.desktop" specifies undefined mimetype/servicetype "video/mkv"
kbuildsycoca4(28053) KBuildServiceFactory::populateServiceTypes: "phononbackends/gstreamer.desktop" specifies undefined mimetype/servicetype "video/msvideo"
kbuildsycoca4(28053) KBuildServiceFactory::populateServiceTypes: "phononbackends/gstreamer.desktop" specifies undefined mimetype/servicetype "audio/aiff"
kbuildsycoca4(28053) KBuildServiceFactory::populateServiceTypes: "phononbackends/gstreamer.desktop" specifies undefined mimetype/servicetype "audio/x-pn-aiff"
kbuildsycoca4(28053) KBuildServiceFactory::populateServiceTypes: "phononbackends/gstreamer.desktop" specifies undefined mimetype/servicetype "audio/x-realaudio"
kbuildsycoca4(28053) KBuildServiceFactory::populateServiceTypes: "phononbackends/gstreamer.desktop" specifies undefined mimetype/servicetype "audio/x-basic"
kbuildsycoca4(28053) KBuildServiceFactory::populateServiceTypes: "phononbackends/gstreamer.desktop" specifies undefined mimetype/servicetype "audio/x-pn-au"
kbuildsycoca4(28053) KBuildServiceFactory::populateServiceTypes: "phononbackends/gstreamer.desktop" specifies undefined mimetype/servicetype "audio/x-8svx"
kbuildsycoca4(28053) KBuildServiceFactory::populateServiceTypes: "phononbackends/gstreamer.desktop" specifies undefined mimetype/servicetype "audio/8svx"
kbuildsycoca4(28053) KBuildServiceFactory::populateServiceTypes: "phononbackends/gstreamer.desktop" specifies undefined mimetype/servicetype "audio/x-16sv"
kbuildsycoca4(28053) KBuildServiceFactory::populateServiceTypes: "phononbackends/gstreamer.desktop" specifies undefined mimetype/servicetype "audio/168sv"
kbuildsycoca4(28053) KBuildServiceFactory::populateServiceTypes: "phononbackends/gstreamer.desktop" specifies undefined mimetype/servicetype "image/ilbm"
kbuildsycoca4(28053) KBuildServiceFactory::populateServiceTypes: "phononbackends/gstreamer.desktop" specifies undefined mimetype/servicetype "video/anim"
kbuildsycoca4(28053) KBuildServiceFactory::populateServiceTypes: "phononbackends/gstreamer.desktop" specifies undefined mimetype/servicetype "image/x-png"
kbuildsycoca4(28053) KBuildServiceFactory::populateServiceTypes: "phononbackends/gstreamer.desktop" specifies undefined mimetype/servicetype "video/mng"
kbuildsycoca4(28053) KBuildServiceFactory::populateServiceTypes: "phononbackends/gstreamer.desktop" specifies undefined mimetype/servicetype "audio/x-real-audio"
kbuildsycoca4(28053) KBuildServiceFactory::populateServiceTypes: "phononbackends/gstreamer.desktop" specifies undefined mimetype/servicetype "video/x-mpeg"
kbuildsycoca4(28053) KBuildServiceFactory::populateServiceTypes: "phononbackends/gstreamer.desktop" specifies undefined mimetype/servicetype "audio/x-pn-wav"
kbuildsycoca4(28053) KBuildServiceFactory::populateServiceTypes: "phononbackends/gstreamer.desktop" specifies undefined mimetype/servicetype "audio/x-pn-windows-acm"
kbuildsycoca4(28053) KBuildServiceFactory::populateServiceTypes: "phononbackends/gstreamer.desktop" specifies undefined mimetype/servicetype "audio/mpeg2"
kbuildsycoca4(28053) KBuildServiceFactory::populateServiceTypes: "phononbackends/gstreamer.desktop" specifies undefined mimetype/servicetype "audio/x-mpeg2"
kbuildsycoca4(28053) KBuildServiceFactory::populateServiceTypes: "phononbackends/gstreamer.desktop" specifies undefined mimetype/servicetype "audio/mpeg3"
kbuildsycoca4(28053) KBuildServiceFactory::populateServiceTypes: "phononbackends/gstreamer.desktop" specifies undefined mimetype/servicetype "audio/x-mpeg3"
kbuildsycoca4(28053) KBuildServiceFactory::populateServiceTypes: "phononbackends/gstreamer.desktop" specifies undefined mimetype/servicetype "x-mpegurl"
kbuildsycoca4(28053) KBuildServiceFactory::populateServiceTypes: "phononbackends/vlc.desktop" specifies undefined mimetype/servicetype "video/x-quicktime"
kbuildsycoca4(28053) KBuildServiceFactory::populateServiceTypes: "phononbackends/vlc.desktop" specifies undefined mimetype/servicetype "video/mkv"
kbuildsycoca4(28053) KBuildServiceFactory::populateServiceTypes: "phononbackends/vlc.desktop" specifies undefined mimetype/servicetype "video/msvideo"
kbuildsycoca4(28053) KBuildServiceFactory::populateServiceTypes: "phononbackends/vlc.desktop" specifies undefined mimetype/servicetype "audio/aiff"
kbuildsycoca4(28053) KBuildServiceFactory::populateServiceTypes: "phononbackends/vlc.desktop" specifies undefined mimetype/servicetype "audio/x-pn-aiff"
kbuildsycoca4(28053) KBuildServiceFactory::populateServiceTypes: "phononbackends/vlc.desktop" specifies undefined mimetype/servicetype "audio/x-realaudio"
kbuildsycoca4(28053) KBuildServiceFactory::populateServiceTypes: "phononbackends/vlc.desktop" specifies undefined mimetype/servicetype "audio/x-basic"
kbuildsycoca4(28053) KBuildServiceFactory::populateServiceTypes: "phononbackends/vlc.desktop" specifies undefined mimetype/servicetype "audio/x-pn-au"
kbuildsycoca4(28053) KBuildServiceFactory::populateServiceTypes: "phononbackends/vlc.desktop" specifies undefined mimetype/servicetype "audio/x-8svx"
kbuildsycoca4(28053) KBuildServiceFactory::populateServiceTypes: "phononbackends/vlc.desktop" specifies undefined mimetype/servicetype "audio/8svx"
kbuildsycoca4(28053) KBuildServiceFactory::populateServiceTypes: "phononbackends/vlc.desktop" specifies undefined mimetype/servicetype "audio/x-16sv"
kbuildsycoca4(28053) KBuildServiceFactory::populateServiceTypes: "phononbackends/vlc.desktop" specifies undefined mimetype/servicetype "audio/168sv"
kbuildsycoca4(28053) KBuildServiceFactory::populateServiceTypes: "phononbackends/vlc.desktop" specifies undefined mimetype/servicetype "image/ilbm"
kbuildsycoca4(28053) KBuildServiceFactory::populateServiceTypes: "phononbackends/vlc.desktop" specifies undefined mimetype/servicetype "video/anim"
kbuildsycoca4(28053) KBuildServiceFactory::populateServiceTypes: "phononbackends/vlc.desktop" specifies undefined mimetype/servicetype "image/x-png"
kbuildsycoca4(28053) KBuildServiceFactory::populateServiceTypes: "phononbackends/vlc.desktop" specifies undefined mimetype/servicetype "video/mng"
kbuildsycoca4(28053) KBuildServiceFactory::populateServiceTypes: "phononbackends/vlc.desktop" specifies undefined mimetype/servicetype "audio/x-real-audio"
kbuildsycoca4(28053) KBuildServiceFactory::populateServiceTypes: "phononbackends/vlc.desktop" specifies undefined mimetype/servicetype "video/x-mpeg"
kbuildsycoca4(28053) KBuildServiceFactory::populateServiceTypes: "phononbackends/vlc.desktop" specifies undefined mimetype/servicetype "audio/x-pn-wav"
kbuildsycoca4(28053) KBuildServiceFactory::populateServiceTypes: "phononbackends/vlc.desktop" specifies undefined mimetype/servicetype "audio/x-pn-windows-acm"
kbuildsycoca4(28053) KBuildServiceFactory::populateServiceTypes: "phononbackends/vlc.desktop" specifies undefined mimetype/servicetype "audio/mpeg2"
kbuildsycoca4(28053) KBuildServiceFactory::populateServiceTypes: "phononbackends/vlc.desktop" specifies undefined mimetype/servicetype "audio/x-mpeg2"
kbuildsycoca4(28053) KBuildServiceFactory::populateServiceTypes: "phononbackends/vlc.desktop" specifies undefined mimetype/servicetype "audio/mpeg3"
kbuildsycoca4(28053) KBuildServiceFactory::populateServiceTypes: "phononbackends/vlc.desktop" specifies undefined mimetype/servicetype "audio/x-mpeg3"
kbuildsycoca4(28053) KBuildServiceFactory::populateServiceTypes: "phononbackends/vlc.desktop" specifies undefined mimetype/servicetype "x-mpegurl"
kded(28052)/kio (KDirWatch) KDirWatchPrivate::addEntry: Added Dir "/opt/project-neon/share/kde4/services/phononbackends" for "" ["KDirWatch-1"]
kded(28052)/kmix client_cb: Got some info about client:  "libphonon"
kmix(28501) client_cb: Got some info about client:  "libphonon"
kmix(28501) client_cb: Got some info about client:  "libphonon"
systemsettings(28586)/kutils (KCModuleProxy) KCModuleProxyPrivate::loadModule: Module not already loaded, loading module  "Phonon"  from library  "kcm_phonon"  using symbol  "kcm_phonon"
kded(28052)/kmix client_cb: Got some info about client:  "libphonon-probe"
kded(28052)/phonon (kded module) PhononServer::findDevices: Solid offers 3 audio devices
kded(28052)/phonon (kded module) PhononServer::findDevices: Solid offers 1 video devices
kded(28052)/phonon (kded module) PS::DeviceInfo::applyHardwareDatabaseOverrides: looking for "/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:1b.0/sound/card0/pcmC0D0p:playback"
kded(28052)/phonon (kded module) PS::DeviceInfo::applyHardwareDatabaseOverrides: looking for "/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/pcmC1D3p:playback"
kded(28052)/phonon (kded module) PS::DeviceInfo::applyHardwareDatabaseOverrides: looking for "/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:1b.0/sound/card0/pcmC0D0c:capture"
kded(28052)/phonon (kded module) PhononServer::findDevices: Solid video device: "Acer Crystal Eye webcam" "Acer Crystal Eye webcam"
kded(28052)/phonon (kded module) PhononServer::findDevices: - driver "uvcvideo" : QVariant(, )
kded(28052)/phonon (kded module) PhononServer::findDevices: "uvcvideo" no driver handle
kded(28052)/phonon (kded module) PS::DeviceInfo::applyHardwareDatabaseOverrides: looking for "/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:1a.7/usb7/7-3/7-3:1.0/video4linux/video0"
kded(28052)/phonon (kded module) PhononServer::findVirtualDevices: ("default" ("Playback/recording through the PulseAudio sound server"), "pulse" ("Playback/recording through the PulseAudio sound server"), "dmix:CARD=Intel,DEV=0" ("HDA Intel, ALC268 Analog
kded(28052)/phonon (kded module) PS::DeviceInfo::applyHardwareDatabaseOverrides: looking for "Playback/recording through the PulseAudio sound server_playback"
kded(28052)/phonon (kded module) PS::DeviceInfo::applyHardwareDatabaseOverrides: looking for "Playback/recording through the PulseAudio sound server_capture"
kded(28052)/phonon (kded module) PS::DeviceInfo::applyHardwareDatabaseOverrides: looking for "HDA Intel, ALC268 Analog
kded(28052)/phonon (kded module) PS::DeviceInfo::applyHardwareDatabaseOverrides: looking for "HDA Intel, ALC268 Analog
kded(28052)/phonon (kded module) PS::DeviceInfo::applyHardwareDatabaseOverrides: looking for "HDA Intel, ALC268 Analog
kded(28052)/phonon (kded module) PS::DeviceInfo::applyHardwareDatabaseOverrides: looking for "HDA Intel, ALC268 Analog
kded(28052)/phonon (kded module) PS::DeviceInfo::applyHardwareDatabaseOverrides: looking for "HDA Intel, ALC268 Analog
kded(28052)/phonon (kded module) PS::DeviceInfo::applyHardwareDatabaseOverrides: looking for "HDA Intel, ALC268 Analog
kded(28052)/phonon (kded module) PS::DeviceInfo::applyHardwareDatabaseOverrides: looking for "HDA ATI HDMI, HDMI 0
kded(28052)/phonon (kded module) PS::DeviceInfo::applyHardwareDatabaseOverrides: looking for "HDA ATI HDMI, HDMI 0
kded(28052)/phonon (kded module) PhononServer::findVirtualDevices: "dsnoop:CARD=HDMI,DEV=3"  doesn't work.
kded(28052)/phonon (kded module) PS::DeviceInfo::applyHardwareDatabaseOverrides: looking for "HDA ATI HDMI, HDMI 0
kded(28052)/phonon (kded module) PS::DeviceInfo::applyHardwareDatabaseOverrides: looking for "HDA ATI HDMI, HDMI 0
kded(28052)/phonon (kded module) PS::DeviceInfo::applyHardwareDatabaseOverrides: looking for "/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:1a.7/usb1/1-3/1-3:1.0/video4linux/video0"
kded(28052)/phonon (kded module) PS::DeviceInfo::applyHardwareDatabaseOverrides: looking for "HDA Intel, ALC268 Analog
kded(28052)/phonon (kded module) PS::DeviceInfo::applyHardwareDatabaseOverrides: looking for "/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:1a.7/usb1/1-3/1-3:1.0/video4linux/video0"
kded(28052)/phonon (kded module) PS::DeviceInfo::applyHardwareDatabaseOverrides: looking for "HDA Intel, ALC268 Analog
kded(28052)/phonon (kded module) PhononServer::findDevices: Audio Playback Devices: (
  description: "<html>This will try the following devices and use the first that works: <ol><li>ALSA: x-phonon:CARD=0,DEV=0</li><li>ALSA: plughw:CARD=0,DEV=0</li></ol></html>"
  access: (deviceIds: ("x-phonon:CARD=0,DEV=0", "plughw:CARD=0,DEV=0") ; accessPreference:  11 ; driver type 1 ; driver "ALSA"  playback) ,  
  description: "<html>This will try the following devices and use the first that works: <ol><li>ALSA: x-phonon:CARD=1,DEV=3</li><li>ALSA: plughw:CARD=1,DEV=3</li></ol></html>"
  access: (deviceIds: ("x-phonon:CARD=1,DEV=3", "plughw:CARD=1,DEV=3") ; accessPreference:  10 ; driver type 1 ; driver "ALSA"  playback) ,  
kded(28052)/phonon (kded module) PhononServer::findDevices: Audio Capture Devices: (
  description: "<html>This will try the following devices and use the first that works: <ol><li>ALSA: x-phonon:CARD=0,DEV=0</li><li>ALSA: plughw:CARD=0,DEV=0</li></ol></html>"
  access: (deviceIds: ("x-phonon:CARD=0,DEV=0", "plughw:CARD=0,DEV=0") ; accessPreference:  11 ; driver type 1 ; driver "ALSA"  capture) ,  
kded(28052)/phonon (kded module) PhononServer::findDevices: Video Capture Devices: (
kded(28052) KDEDModule::setModuleName: registerObject() successful for  "phononserver"
kded(28052)/kded4 Kded::loadModule: Successfully loaded module "phononserver"
kded(28052)/kmix client_cb: Got some info about client:  "libphonon"
kmix(28501) client_cb: Got some info about client:  "libphonon"
kded(28052)/phonon (kded module) PhononServer::askToRemoveDevices: removeAudioDevices (-7, -11)
kded(28052)/phonon (kded module) PhononServer::askToRemoveDevices: removeVideoDevices (-7, -11)
kded(28052)/phonon (kded module) PhononServer::findDevices: Solid offers 3 audio devices
kded(28052)/phonon (kded module) PhononServer::findDevices: Solid offers 1 video devices
kded(28052)/phonon (kded module) PS::DeviceInfo::applyHardwareDatabaseOverrides: looking for "/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:1b.0/sound/card0/pcmC0D0p:playback"
kded(28052)/phonon (kded module) PS::DeviceInfo::applyHardwareDatabaseOverrides: looking for "/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/pcmC1D3p:playback"
kded(28052)/phonon (kded module) PS::DeviceInfo::applyHardwareDatabaseOverrides: looking for "/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:1b.0/sound/card0/pcmC0D0c:capture"
kded(28052)/phonon (kded module) PhononServer::findDevices: Solid video device: "Acer Crystal Eye webcam" "Acer Crystal Eye webcam"
kded(28052)/phonon (kded module) PhononServer::findDevices: - driver "uvcvideo" : QVariant(, )
kded(28052)/phonon (kded module) PhononServer::findDevices: "uvcvideo" no driver handle
kded(28052)/phonon (kded module) PS::DeviceInfo::applyHardwareDatabaseOverrides: looking for "/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:1a.7/usb7/7-3/7-3:1.0/video4linux/video0"
kded(28052)/phonon (kded module) PhononServer::findVirtualDevices: ("default" ("Playback/recording through the PulseAudio sound server"), "pulse" ("Playback/recording through the PulseAudio sound server"), "dmix:CARD=Intel,DEV=0" ("HDA Intel, ALC268 Analog
kded(28052)/phonon (kded module) PS::DeviceInfo::applyHardwareDatabaseOverrides: looking for "Playback/recording through the PulseAudio sound server_playback"
kded(28052)/phonon (kded module) PS::DeviceInfo::applyHardwareDatabaseOverrides: looking for "Playback/recording through the PulseAudio sound server_capture"
kded(28052)/phonon (kded module) PS::DeviceInfo::applyHardwareDatabaseOverrides: looking for "HDA Intel, ALC268 Analog
kded(28052)/phonon (kded module) PS::DeviceInfo::applyHardwareDatabaseOverrides: looking for "HDA Intel, ALC268 Analog
kded(28052)/phonon (kded module) PS::DeviceInfo::applyHardwareDatabaseOverrides: looking for "HDA Intel, ALC268 Analog
kded(28052)/phonon (kded module) PS::DeviceInfo::applyHardwareDatabaseOverrides: looking for "HDA Intel, ALC268 Analog
kded(28052)/phonon (kded module) PS::DeviceInfo::applyHardwareDatabaseOverrides: looking for "HDA Intel, ALC268 Analog
kded(28052)/phonon (kded module) PS::DeviceInfo::applyHardwareDatabaseOverrides: looking for "HDA Intel, ALC268 Analog
kded(28052)/phonon (kded module) PS::DeviceInfo::applyHardwareDatabaseOverrides: looking for "HDA ATI HDMI, HDMI 0
kded(28052)/phonon (kded module) PS::DeviceInfo::applyHardwareDatabaseOverrides: looking for "HDA ATI HDMI, HDMI 0
kded(28052)/phonon (kded module) PhononServer::findVirtualDevices: "dsnoop:CARD=HDMI,DEV=3"  doesn't work.
kded(28052)/phonon (kded module) PS::DeviceInfo::applyHardwareDatabaseOverrides: looking for "HDA ATI HDMI, HDMI 0
kded(28052)/phonon (kded module) PS::DeviceInfo::applyHardwareDatabaseOverrides: looking for "HDA ATI HDMI, HDMI 0
kded(28052)/phonon (kded module) PS::DeviceInfo::applyHardwareDatabaseOverrides: looking for "/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:1a.7/usb1/1-3/1-3:1.0/video4linux/video0"
kded(28052)/phonon (kded module) PS::DeviceInfo::applyHardwareDatabaseOverrides: looking for "/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:1a.7/usb1/1-3/1-3:1.0/video4linux/video0"
kded(28052)/phonon (kded module) PhononServer::findDevices: Audio Playback Devices: (
  description: "<html>This will try the following devices and use the first that works: <ol><li>ALSA: x-phonon:CARD=0,DEV=0</li><li>ALSA: plughw:CARD=0,DEV=0</li></ol></html>"
  access: (deviceIds: ("x-phonon:CARD=0,DEV=0", "plughw:CARD=0,DEV=0") ; accessPreference:  11 ; driver type 1 ; driver "ALSA"  playback) ,  
  description: "<html>This will try the following devices and use the first that works: <ol><li>ALSA: x-phonon:CARD=1,DEV=3</li><li>ALSA: plughw:CARD=1,DEV=3</li></ol></html>"
  access: (deviceIds: ("x-phonon:CARD=1,DEV=3", "plughw:CARD=1,DEV=3") ; accessPreference:  10 ; driver type 1 ; driver "ALSA"  playback) ,  
kded(28052)/phonon (kded module) PhononServer::findDevices: Audio Capture Devices: (
  description: "<html>This will try the following devices and use the first that works: <ol><li>ALSA: x-phonon:CARD=0,DEV=0</li><li>ALSA: plughw:CARD=0,DEV=0</li></ol></html>"
  access: (deviceIds: ("x-phonon:CARD=0,DEV=0", "plughw:CARD=0,DEV=0") ; accessPreference:  11 ; driver type 1 ; driver "ALSA"  capture) ,  
kded(28052)/phonon (kded module) PhononServer::findDevices: Video Capture Devices: (
systemsettings(28586)/phonon (KDE plugin) Phonon::DeviceListing::devicesChanged:
systemsettings(28586)/phonon (KDE plugin) Phonon::DeviceListing::timerEvent: emitting objectDescriptionChanged for all devices
kbuildsycoca4(28683) KBuildServiceFactory::populateServiceTypes: "phononbackends/gstreamer.desktop" specifies undefined mimetype/servicetype "video/x-quicktime"
kbuildsycoca4(28683) KBuildServiceFactory::populateServiceTypes: "phononbackends/gstreamer.desktop" specifies undefined mimetype/servicetype "video/mkv"
kbuildsycoca4(28683) KBuildServiceFactory::populateServiceTypes: "phononbackends/gstreamer.desktop" specifies undefined mimetype/servicetype "video/msvideo"
kbuildsycoca4(28683) KBuildServiceFactory::populateServiceTypes: "phononbackends/gstreamer.desktop" specifies undefined mimetype/servicetype "audio/aiff"
kbuildsycoca4(28683) KBuildServiceFactory::populateServiceTypes: "phononbackends/gstreamer.desktop" specifies undefined mimetype/servicetype "audio/x-pn-aiff"
kbuildsycoca4(28683) KBuildServiceFactory::populateServiceTypes: "phononbackends/gstreamer.desktop" specifies undefined mimetype/servicetype "audio/x-realaudio"
kbuildsycoca4(28683) KBuildServiceFactory::populateServiceTypes: "phononbackends/gstreamer.desktop" specifies undefined mimetype/servicetype "audio/x-basic"
kbuildsycoca4(28683) KBuildServiceFactory::populateServiceTypes: "phononbackends/gstreamer.desktop" specifies undefined mimetype/servicetype "audio/x-pn-au"
kbuildsycoca4(28683) KBuildServiceFactory::populateServiceTypes: "phononbackends/gstreamer.desktop" specifies undefined mimetype/servicetype "audio/x-8svx"
kbuildsycoca4(28683) KBuildServiceFactory::populateServiceTypes: "phononbackends/gstreamer.desktop" specifies undefined mimetype/servicetype "audio/8svx"
kbuildsycoca4(28683) KBuildServiceFactory::populateServiceTypes: "phononbackends/gstreamer.desktop" specifies undefined mimetype/servicetype "audio/x-16sv"
kbuildsycoca4(28683) KBuildServiceFactory::populateServiceTypes: "phononbackends/gstreamer.desktop" specifies undefined mimetype/servicetype "audio/168sv"
kbuildsycoca4(28683) KBuildServiceFactory::populateServiceTypes: "phononbackends/gstreamer.desktop" specifies undefined mimetype/servicetype "image/ilbm"
kbuildsycoca4(28683) KBuildServiceFactory::populateServiceTypes: "phononbackends/gstreamer.desktop" specifies undefined mimetype/servicetype "video/anim"
kbuildsycoca4(28683) KBuildServiceFactory::populateServiceTypes: "phononbackends/gstreamer.desktop" specifies undefined mimetype/servicetype "image/x-png"
kbuildsycoca4(28683) KBuildServiceFactory::populateServiceTypes: "phononbackends/gstreamer.desktop" specifies undefined mimetype/servicetype "video/mng"
kbuildsycoca4(28683) KBuildServiceFactory::populateServiceTypes: "phononbackends/gstreamer.desktop" specifies undefined mimetype/servicetype "audio/x-real-audio"
kbuildsycoca4(28683) KBuildServiceFactory::populateServiceTypes: "phononbackends/gstreamer.desktop" specifies undefined mimetype/servicetype "video/x-mpeg"
kbuildsycoca4(28683) KBuildServiceFactory::populateServiceTypes: "phononbackends/gstreamer.desktop" specifies undefined mimetype/servicetype "audio/x-pn-wav"
kbuildsycoca4(28683) KBuildServiceFactory::populateServiceTypes: "phononbackends/gstreamer.desktop" specifies undefined mimetype/servicetype "audio/x-pn-windows-acm"
kbuildsycoca4(28683) KBuildServiceFactory::populateServiceTypes: "phononbackends/gstreamer.desktop" specifies undefined mimetype/servicetype "audio/mpeg2"
kbuildsycoca4(28683) KBuildServiceFactory::populateServiceTypes: "phononbackends/gstreamer.desktop" specifies undefined mimetype/servicetype "audio/x-mpeg2"
kbuildsycoca4(28683) KBuildServiceFactory::populateServiceTypes: "phononbackends/gstreamer.desktop" specifies undefined mimetype/servicetype "audio/mpeg3"
kbuildsycoca4(28683) KBuildServiceFactory::populateServiceTypes: "phononbackends/gstreamer.desktop" specifies undefined mimetype/servicetype "audio/x-mpeg3"
kbuildsycoca4(28683) KBuildServiceFactory::populateServiceTypes: "phononbackends/gstreamer.desktop" specifies undefined mimetype/servicetype "x-mpegurl"
kbuildsycoca4(28683) KBuildServiceFactory::populateServiceTypes: "phononbackends/xine.desktop" specifies undefined mimetype/servicetype "video/x-quicktime"
kbuildsycoca4(28683) KBuildServiceFactory::populateServiceTypes: "phononbackends/xine.desktop" specifies undefined mimetype/servicetype "video/mkv"
kbuildsycoca4(28683) KBuildServiceFactory::populateServiceTypes: "phononbackends/xine.desktop" specifies undefined mimetype/servicetype "video/msvideo"
kbuildsycoca4(28683) KBuildServiceFactory::populateServiceTypes: "phononbackends/xine.desktop" specifies undefined mimetype/servicetype "audio/aiff"
kbuildsycoca4(28683) KBuildServiceFactory::populateServiceTypes: "phononbackends/xine.desktop" specifies undefined mimetype/servicetype "audio/x-pn-aiff"
kbuildsycoca4(28683) KBuildServiceFactory::populateServiceTypes: "phononbackends/xine.desktop" specifies undefined mimetype/servicetype "audio/x-realaudio"
kbuildsycoca4(28683) KBuildServiceFactory::populateServiceTypes: "phononbackends/xine.desktop" specifies undefined mimetype/servicetype "audio/x-basic"
kbuildsycoca4(28683) KBuildServiceFactory::populateServiceTypes: "phononbackends/xine.desktop" specifies undefined mimetype/servicetype "audio/x-pn-au"
kbuildsycoca4(28683) KBuildServiceFactory::populateServiceTypes: "phononbackends/xine.desktop" specifies undefined mimetype/servicetype "audio/x-8svx"
kbuildsycoca4(28683) KBuildServiceFactory::populateServiceTypes: "phononbackends/xine.desktop" specifies undefined mimetype/servicetype "audio/8svx"
kbuildsycoca4(28683) KBuildServiceFactory::populateServiceTypes: "phononbackends/xine.desktop" specifies undefined mimetype/servicetype "audio/x-16sv"
kbuildsycoca4(28683) KBuildServiceFactory::populateServiceTypes: "phononbackends/xine.desktop" specifies undefined mimetype/servicetype "audio/168sv"
kbuildsycoca4(28683) KBuildServiceFactory::populateServiceTypes: "phononbackends/xine.desktop" specifies undefined mimetype/servicetype "image/ilbm"
kbuildsycoca4(28683) KBuildServiceFactory::populateServiceTypes: "phononbackends/xine.desktop" specifies undefined mimetype/servicetype "video/anim"
kbuildsycoca4(28683) KBuildServiceFactory::populateServiceTypes: "phononbackends/xine.desktop" specifies undefined mimetype/servicetype "image/x-png"
kbuildsycoca4(28683) KBuildServiceFactory::populateServiceTypes: "phononbackends/xine.desktop" specifies undefined mimetype/servicetype "video/mng"
kbuildsycoca4(28683) KBuildServiceFactory::populateServiceTypes: "phononbackends/xine.desktop" specifies undefined mimetype/servicetype "audio/x-real-audio"
kbuildsycoca4(28683) KBuildServiceFactory::populateServiceTypes: "phononbackends/xine.desktop" specifies undefined mimetype/servicetype "video/x-mpeg"
kbuildsycoca4(28683) KBuildServiceFactory::populateServiceTypes: "phononbackends/xine.desktop" specifies undefined mimetype/servicetype "audio/x-pn-wav"
kbuildsycoca4(28683) KBuildServiceFactory::populateServiceTypes: "phononbackends/xine.desktop" specifies undefined mimetype/servicetype "audio/x-pn-windows-acm"
kbuildsycoca4(28683) KBuildServiceFactory::populateServiceTypes: "phononbackends/xine.desktop" specifies undefined mimetype/servicetype "audio/mpeg2"
kbuildsycoca4(28683) KBuildServiceFactory::populateServiceTypes: "phononbackends/xine.desktop" specifies undefined mimetype/servicetype "audio/x-mpeg2"
kbuildsycoca4(28683) KBuildServiceFactory::populateServiceTypes: "phononbackends/xine.desktop" specifies undefined mimetype/servicetype "audio/mpeg3"
kbuildsycoca4(28683) KBuildServiceFactory::populateServiceTypes: "phononbackends/xine.desktop" specifies undefined mimetype/servicetype "audio/x-mpeg3"
kbuildsycoca4(28683) KBuildServiceFactory::populateServiceTypes: "phononbackends/xine.desktop" specifies undefined mimetype/servicetype "x-mpegurl"
kbuildsycoca4(28683) KBuildServiceFactory::populateServiceTypes: "phononbackends/vlc.desktop" specifies undefined mimetype/servicetype "video/x-quicktime"
kbuildsycoca4(28683) KBuildServiceFactory::populateServiceTypes: "phononbackends/vlc.desktop" specifies undefined mimetype/servicetype "video/mkv"
kbuildsycoca4(28683) KBuildServiceFactory::populateServiceTypes: "phononbackends/vlc.desktop" specifies undefined mimetype/servicetype "video/msvideo"
kbuildsycoca4(28683) KBuildServiceFactory::populateServiceTypes: "phononbackends/vlc.desktop" specifies undefined mimetype/servicetype "audio/aiff"
kbuildsycoca4(28683) KBuildServiceFactory::populateServiceTypes: "phononbackends/vlc.desktop" specifies undefined mimetype/servicetype "audio/x-pn-aiff"
kbuildsycoca4(28683) KBuildServiceFactory::populateServiceTypes: "phononbackends/vlc.desktop" specifies undefined mimetype/servicetype "audio/x-realaudio"
kbuildsycoca4(28683) KBuildServiceFactory::populateServiceTypes: "phononbackends/vlc.desktop" specifies undefined mimetype/servicetype "audio/x-basic"
kbuildsycoca4(28683) KBuildServiceFactory::populateServiceTypes: "phononbackends/vlc.desktop" specifies undefined mimetype/servicetype "audio/x-pn-au"
kbuildsycoca4(28683) KBuildServiceFactory::populateServiceTypes: "phononbackends/vlc.desktop" specifies undefined mimetype/servicetype "audio/x-8svx"
kbuildsycoca4(28683) KBuildServiceFactory::populateServiceTypes: "phononbackends/vlc.desktop" specifies undefined mimetype/servicetype "audio/8svx"
kbuildsycoca4(28683) KBuildServiceFactory::populateServiceTypes: "phononbackends/vlc.desktop" specifies undefined mimetype/servicetype "audio/x-16sv"
kbuildsycoca4(28683) KBuildServiceFactory::populateServiceTypes: "phononbackends/vlc.desktop" specifies undefined mimetype/servicetype "audio/168sv"
kbuildsycoca4(28683) KBuildServiceFactory::populateServiceTypes: "phononbackends/vlc.desktop" specifies undefined mimetype/servicetype "image/ilbm"
kbuildsycoca4(28683) KBuildServiceFactory::populateServiceTypes: "phononbackends/vlc.desktop" specifies undefined mimetype/servicetype "video/anim"
kbuildsycoca4(28683) KBuildServiceFactory::populateServiceTypes: "phononbackends/vlc.desktop" specifies undefined mimetype/servicetype "image/x-png"
kbuildsycoca4(28683) KBuildServiceFactory::populateServiceTypes: "phononbackends/vlc.desktop" specifies undefined mimetype/servicetype "video/mng"
kbuildsycoca4(28683) KBuildServiceFactory::populateServiceTypes: "phononbackends/vlc.desktop" specifies undefined mimetype/servicetype "audio/x-real-audio"
kbuildsycoca4(28683) KBuildServiceFactory::populateServiceTypes: "phononbackends/vlc.desktop" specifies undefined mimetype/servicetype "video/x-mpeg"
kbuildsycoca4(28683) KBuildServiceFactory::populateServiceTypes: "phononbackends/vlc.desktop" specifies undefined mimetype/servicetype "audio/x-pn-wav"
kbuildsycoca4(28683) KBuildServiceFactory::populateServiceTypes: "phononbackends/vlc.desktop" specifies undefined mimetype/servicetype "audio/x-pn-windows-acm"
kbuildsycoca4(28683) KBuildServiceFactory::populateServiceTypes: "phononbackends/vlc.desktop" specifies undefined mimetype/servicetype "audio/mpeg2"
kbuildsycoca4(28683) KBuildServiceFactory::populateServiceTypes: "phononbackends/vlc.desktop" specifies undefined mimetype/servicetype "audio/x-mpeg2"
kbuildsycoca4(28683) KBuildServiceFactory::populateServiceTypes: "phononbackends/vlc.desktop" specifies undefined mimetype/servicetype "audio/mpeg3"
kbuildsycoca4(28683) KBuildServiceFactory::populateServiceTypes: "phononbackends/vlc.desktop" specifies undefined mimetype/servicetype "audio/x-mpeg3"
kbuildsycoca4(28683) KBuildServiceFactory::populateServiceTypes: "phononbackends/vlc.desktop" specifies undefined mimetype/servicetype "x-mpegurl"
Comment 12 Colin Guthrie 2011-09-16 08:16:13 UTC
Cool!

Looks like connecting to PA is fine via pactl so can't think why it would fail via KDE stuff. I presume the "Audio Hardware Setup" tab is missing when you run it?

Would you be able to get the kDebug info from running "kcmshell4 kcm_phonon"? I'm not 100% sure how that works. Harald, any tips? Does it require running kdebug and ticking a box?
Comment 13 Hrvoje Senjan 2011-09-16 09:02:12 UTC
Audio hardware is visible; 
kcmshell4 kcm_phonon
kcmshell(3232)/kdeui (KIconLoader) KIconLoaderPrivate::initIconThemes: "Theme tree: (Oxygen)"
kcmshell(3232)/kdecore (KSycoca) KSycocaPrivate::openDatabase: Trying to open ksycoca from "/var/tmp/project-neon-kde-hrvoje/kdecache-hrvoje/ksycoca4"
kcmshell(3232)/kutils (KCMultiDialog) KCMultiDialog::addModule: "Phonon"
kcmshell(3232)/kutils (KCModuleProxy) KCModuleProxyPrivate::loadModule: Module not already loaded, loading module  "Phonon"  from library  "kcm_phonon"  using symbol  "kcm_phonon"
kcmshell(3232)/kutils (KCMultiDialog) KCMultiDialog::addModule: adding KCM  "Phonon"  at the top level
kcmshell(3232)/kutils (KCMultiDialog) KCMultiDialogPrivate::_k_slotCurrentPageChanged:
kcmshell(3232)/kutils (KCMultiDialog) KCMultiDialogPrivate::_k_clientChanged:
kcmshell(3232)/kutils (KCMultiDialog) KCMultiDialogPrivate::_k_clientChanged:
kcmshell(3232)/kutils (KCMultiDialog) KCMultiDialogPrivate::_k_clientChanged:
kcmshell(3232)/kutils (KCMultiDialog) KCMultiDialogPrivate::_k_clientChanged:
kcmshell(3232)/kutils (KCMultiDialog) KCMultiDialogPrivate::_k_dialogClosed:
Comment 14 Hrvoje Senjan 2011-09-16 09:06:06 UTC
With kdebugdialog enabled for everything :

kcmshell4 kcm_phonon
kcmshell(3646)/kdeui (KIconLoader) KIconLoaderPrivate::initIconThemes: "Theme tree: (Oxygen)"
kcmshell(3646)/kdecore (KSycoca) KSycocaPrivate::openDatabase: Trying to open ksycoca from "/var/tmp/project-neon-kde-hrvoje/kdecache-hrvoje/ksycoca4"
kcmshell(3646)/kutils (KCMultiDialog) KCMultiDialog::addModule: "Phonon"
kcmshell(3646)/kutils (KCModuleProxy) KCModuleProxyPrivate::loadModule: Module not already loaded, loading module  "Phonon"  from library  "kcm_phonon"  using symbol  "kcm_phonon"
kcmshell(3646) Phonon::KdePlatformPlugin::createBackend: using backend:  "GStreamer"
kcmshell(3646)/kutils (KCMultiDialog) KCMultiDialog::addModule: adding KCM  "Phonon"  at the top level
kcmshell(3646)/kutils (KCMultiDialog) KCMultiDialogPrivate::_k_slotCurrentPageChanged:
kcmshell(3646)/kutils (KCMultiDialog) KCMultiDialogPrivate::_k_clientChanged:
kcmshell(3646)/kutils (KCMultiDialog) KCMultiDialogPrivate::_k_clientChanged:
kcmshell(3646) context_state_callback: context_state_callback "Terminated"
kcmshell(3646) context_state_callback: context_state_callback "Terminated"
kcmshell(3646) context_state_callback: context_state_callback "Terminated"
kcmshell(3646) AudioSetup::cardChanged: Doing update 0
kcmshell(3646)/kutils (KCMultiDialog) KCMultiDialogPrivate::_k_clientChanged:
kcmshell(3646) AudioSetup::updateCard: Got info about card "RV635 Audio device [Radeon HD 3600 Series]"
kcmshell(3646) AudioSetup::cardChanged: Doing update 0
kcmshell(3646) AudioSetup::updateCard: Got info about card "Internal Audio"
kcmshell(3646) AudioSetup::updateSink: Got info about sink "RV635 Audio device [Radeon HD 3600 Series] Digital Stereo (HDMI)"
kcmshell(3646) AudioSetup::updateSink: Got info about sink "Internal Audio Analog Stereo"
kcmshell(3646) AudioSetup::updateIndependantDevices: "Want ID: No; Have ID: No"
kcmshell(3646) AudioSetup::updateSource: Got info about source "Internal Audio Analog Stereo"
kcmshell(3646) AudioSetup::updateIndependantDevices: "Want ID: No; Have ID: No"
kcmshell(3646) AudioSetup::deviceChanged: "Updating ports for device 'RV635 Audio device [Radeon HD 3600 Series] Digital Stereo (HDMI)' (1 ports available)"
kcmshell(3646) AudioSetup::cardChanged: Doing update 0
kcmshell(3646) AudioSetup::deviceChanged: "Updating ports for device 'RV635 Audio device [Radeon HD 3600 Series] Digital Stereo (HDMI)' (1 ports available)"
kcmshell(3646)/kutils (KCMultiDialog) KCMultiDialogPrivate::_k_clientChanged:
kcmshell(3646)/kutils (KCMultiDialog) KCMultiDialogPrivate::_k_dialogClosed:
Comment 15 Colin Guthrie 2011-09-16 09:09:35 UTC
Hmm, OK, that's just weird! It should still fail as much as without the patch, just be a little more graceful about it.

I'll have another look at the patch in case I've been dumb and am now ignoring an error condition (clearly a non-fatal one if the tab exists and is functional!!!)

But if it just works, I won't stress too much - working is better than broken :D
Comment 16 Hrvoje Senjan 2011-09-16 09:29:47 UTC
If i can help in further testing, just let me know; but i am pleased with kcm no longer crashing ;)