Summary: | KNotify4 crashes when playing a sound if PulseAudio+GStreamer+Alsa setup is used [@ Phonon::Gstreamer::AudioOutput::setOutputDevice] | ||
---|---|---|---|
Product: | [Unmaintained] phonon-backend-gstreamer | Reporter: | Daniel Aguayo <danthux> |
Component: | general | Assignee: | Colin Guthrie <colin> |
Status: | RESOLVED UPSTREAM | ||
Severity: | crash | CC: | ad5xj, adam, adrian.ioan.cozma, adrien.soulie, aldousthewalrus, alphonse.kempfer, andre.juffer, andresbajotierra, arcangel297, arkaitz, avi.rei, balusk13, bdw, bernddude, biasquez, bsa.nospam, buffalobillion, cfraz89, chewjaco, chris, claude_hum, colin, d.suquia, david.kremer.dk, digitfor, dima.vox, dleclere, dlwillia, dont, dustinpascal, ericxx2005, ewilcox, f.briec, fargher, faycpercussion, frenadoll, fullmar, gcummine, georgebroadbent67, harrisonteng, hiddengob, im.hanz, ivanechka, jbrochu84, jehoca42, jerryablan, jim, jimisbbn, jmj, jnelson-kde, jody.palmer, john-mansfield, juanmanuelpp, julian.notfound, jverel, kde, kdeboogs, labint1, lonely_franz, m.prinke, m4paul, mafo.cz, magudelo58, markus.schmaus, martin.sandsmark, mc-al34luc, mdreyer1, me, midijery, mpcapetown, mrm8611, msxjam, myriam, ndeb, patje641, paulwillems, peppe_86, peter.haefliger, pksguines, post, professioneiso, provence16, radlewand, rcbpage621, richardmaxcath, roemer-lilienthal, rogerfang1, sad2004, sandersen.peter, sebelk, setzensechs, shaun.d.tuck, softhome.net, spencer_barrus, ssbitbucket, sylvain_marchand_1, tek, the_pwoz, thomasbjornvold, tlmarris, txwikinger, uglyog, volatile, vongoldi, w.richard1, yzhernand, zory.marin |
Priority: | NOR | Keywords: | release_blocker |
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: |
New crash information added by DrKonqi
New crash information added by DrKonqi New crash information added by DrKonqi New crash information added by DrKonqi New crash information added by DrKonqi New crash information added by DrKonqi New crash information added by DrKonqi New crash information added by DrKonqi log as requested screenshot New crash information added by DrKonqi New crash information added by DrKonqi New crash information added by DrKonqi New crash information added by DrKonqi New crash information added by DrKonqi New crash information added by DrKonqi New crash information added by DrKonqi New crash information added by DrKonqi New crash information added by DrKonqi New crash information added by DrKonqi New crash information added by DrKonqi New crash information added by DrKonqi New crash information added by DrKonqi New crash information added by DrKonqi New crash information added by DrKonqi New crash information added by DrKonqi New crash information added by DrKonqi |
Description
Daniel Aguayo
2010-03-25 04:40:14 UTC
The bug seems related to Alsa and Gstreamer. Does this stop happening if you switch to the Xine Phonon backend ? Regards Also, is this still valid in KDE SC 4.4.2? Yeah this is a sub-optimal setup. Basically what is happening is that the GStreamer backend is used, and it's using it's alsa sink. This alsa sink is routed via pulse audio so the pipeline ends up like: Phonon->GST->Alsa->Pulse->Alsa->Ears where as it should be: Phonon->GST->Pulse->Alsa->Ears While it *should* work the above way, the GST alsa output is pretty advanced and probably wont play too nicely with a non-h/w device. A better approach here is to: 1) Ensure the pulsesink/pulsesrc are compiled and installed for your GST setup. 2) Ensure you use the Phonon install from Gitorious rather than the Qt version (not sure how the Arch packages are done, but most other distros do this - and yes it is rather confusing :s) HTHs Reopening *** Bug 231116 has been marked as a duplicate of this bug. *** *** Bug 233454 has been marked as a duplicate of this bug. *** Please note that the PulseAudio support in Phonon these days makes this setup impossible. If pulseaudio is running (or is started via autospawn) then PA support requires direct handling of this in the engine itself. The Xine, Gstreamer and VLC engines all do this correctly. The scenario described in the summary is thus not one that should be entertained. For that reason, I doubt that any work to make such a scenario work would be worth doing, and it's not something that I personally am going to look at. *** Bug 233440 has been marked as a duplicate of this bug. *** *** Bug 233751 has been marked as a duplicate of this bug. *** *** Bug 234541 has been marked as a duplicate of this bug. *** Created attachment 42879 [details]
New crash information added by DrKonqi
I installed the gstreamer backend and switched over from xine and get a seg fault for knotify
Created attachment 42880 [details]
New crash information added by DrKonqi
switched to gstreamer, amarok crashes on startup. When I switch back to xine it works except every time another application plays a sound I have to restart amarok to get sound again.
*** Bug 235260 has been marked as a duplicate of this bug. *** Created attachment 43008 [details]
New crash information added by DrKonqi
amarok crashes on startup if i'm using gstreamer backend.
Just incase people looking at this bug missed it, make sure you read my comment #7. The stack that produces this bug is not one I'd recommend using and there are more efficient ways of linking things together. The work in phonon from git will automatically integrate with PA properly using the gstreamer, xine or vlc output layers. Make sure you have the relevant subpackages installed for each of those libraries that provide their pulseaudio sound output support (e.g. on Mandriva the relevant packages are: gstreamer0.10-pulse, xine-pulse and vlc-plugin-pulse) so that this integration works as intended and avoids this code path. *** Bug 235547 has been marked as a duplicate of this bug. *** *** Bug 235905 has been marked as a duplicate of this bug. *** Confirmed by duplicate. OK, I'll admit I'm getting confused here. The scenario described by the backtrace should be impossible with a good setup but I also got this Mandriva bug at the weekend: https://qa.mandriva.com/show_bug.cgi?id=59052 which points at a similar backtrace within a setup that I do not see how it should happen. I will try and investigate more thoroughly. *** Bug 236174 has been marked as a duplicate of this bug. *** *** Bug 236266 has been marked as a duplicate of this bug. *** *** Bug 236668 has been marked as a duplicate of this bug. *** Created attachment 43373 [details]
New crash information added by DrKonqi
new trace added for Kaffeine crash.
Created attachment 43374 [details]
New crash information added by DrKonqi
new trace added for Kaffeine crash.
Created attachment 43380 [details]
New crash information added by DrKonqi
KDE crashed with Ubuntu 10.04 (Lucid Lynx) right after login.
OK, there is definitely some problem here, but it's a really tricky one to try and nail down. I think we've got enough backtraces tho', so please don't bother posting any more for now. While I previously commented that this setup is one that shouldn't happen, it obviously does happen somehow :s KNotify seems a fairly common theme here although Oleg's Kaffine problem seems to be another trigger case. I also have this problem reported in Mandriva (an environment I know is setup correctly) https://qa.mandriva.com/show_bug.cgi?id=59052 so I will try and work out what is going on and find a solution. The strange thing is that the backtrace calls indicate that the code follows a path that shouldn't be possible with PA enabled :s Hi everyone. First of all, I am really struggling to reproduce this error. I suspect the problem is such that the PA connection is attempted but somehow fails. The reasons I suspect for this is due to the general mele that is the startup process. From what I can gather, most of the problems happen here at startup (although there may be some exceptions to that rule). I suspect that during startup, the application in question (typically some form of knotify) is competing with for disk activity and CPU time. PulseAudio has not yet started, and thus when we try to connect it will try and autospawn. However, another process (perhaps the XDG autostart or another app that wants PA too) is starting at the same time and has grabbed the autospawn lock. When this happens the user who tried to autospawn but could not grab the lock fails and the overall connection fails and thus we continue assuming PA is not available. Now due to the nature of the Phonon support for PulseAudio, we actually sometimes start two connections (or rather three connections, but only two potentially at the same time): One for the backend itself to do the output and one for our "control" connection to PA. That said, I don't *think* these two connections can race with each other for the autospawn lock, but certainly during startup, this situation could occur with other processes. I'm not overly sure how to resolve this best right now. I suspect something inside PA that detects when an autospawn was not possible due to lock and then waits for a little while and then simply tries to connect again seems like a likely solution, but I need to discuss this with people. If someone who can reproduce this problem could do the following for me it would be appreciated. 1. Turn up PA debugging to "debug" in /etc/pulse/daemon.conf. It should be logging to syslog. 2. Put "export PHONON_PULSEAUDIO_DEBUG=3" into your ~/.bashrc 3. Capture the output the above produces while you reproduce the error. While it will be tricky to interpret the output from 3 as the PID is not part of that message, it may still help confirm/deny my hypothesis. Thanks. In order to kno *** Bug 236919 has been marked as a duplicate of this bug. *** *** Bug 236928 has been marked as a duplicate of this bug. *** FWIW, the PA debug output itself (1. in comment #27) is probably the most interesting I'm specifically interested in if there are log messages relating to autospawn locks. *** Bug 237003 has been marked as a duplicate of this bug. *** Created attachment 43417 [details]
New crash information added by DrKonqi
Seems like the same bug. :/ Crashing whenever Kopete gets a message. It doesn't always do it, but at the moment it is always doing it. I do have another X session with another user account on another VT; I don't know if that's related to the problem.
*** Bug 237216 has been marked as a duplicate of this bug. *** *** Bug 237297 has been marked as a duplicate of this bug. *** When I first installed Kubuntu Lucid on this laptop a few days ago, it was working fine. Now KNotify is crashing every time Kopete gets a message. I don't have any other sessions on any other VTs right now, so that's not the cause. I even went into the System Settings and put PulseAudio at the top of the preference list for Notifications, and it works fine when I click the Test button in those settings, but it still crashes every time Kopete gets a message. I don't know what changed since I installed Kubuntu to cause this. Created attachment 43493 [details]
New crash information added by DrKonqi
Another backtrace.
(How much "more" do I have to type for this bug reporter to ALLOW me to submit this? Sheesh.)
Created attachment 43494 [details]
log as requested
Log of pulseaudio debug info when message is received in Kopete
Thanks for the debug Adam. What is odd here is that I see two native connections from knotify (which I presume are the phonon control connections, but then I do not see any further connection after that, with the exception of the alsa plugin connection from knotify. What this seems to smell off is that the gstreamer pulseaudio backend is not available. When the GStreamer backend loads, it tries to enable pulseaudio (which establishes first a "probe" connection to check if it is available, and then, if it's successful, it will disconnect and then reconnect with a "control" connection). But, if in the process of trying to enable PA, the backend decides it can't handle it (e.g. the specific "pulsesink" for gstreamer is not available) then it will simply not use PA. In this mode it should all nicely fallback, but perhaps there are some things that will not work. I can see that there are cases where "objectDescriptionChanged" signal is still emitted even when PA is not "active" (where active means both running and has backend support). (the "usingDevice", "volumeChanged" and "muteChanged" signals should never be emitted when PA is not "active" so that shouldn't be a problem) Adam, can you do me a favour? Can you do the following for me: 1. Check to see whether you have the file /usr/lib64/gstreamer-0.10/libgstpulse.so on your system (note your path may be different to mine, check /usr/lib/ and also check for different variations on "gstreamer-0.10" too. The important part is that libgstpulse.so is installed. 2. Run "PHONON_GST_DEBUG=3 PHONON_PULSEAUDIO_DEBUG=3 kcmshell4 kcm_phonon" and post the debug output and tell me how the device list looks. You should see the same list of devices (exactly the same) as in pavucontrol. If you see the world "PulseAudio" in amongst other devices please let me know. If in doubt, just attach a screenshot. I think this is ultimately boiling back down to my original statement way up above. I'm being slightly clouded here by the fact I've got a bug report in Mandriva where I am pretty certain the setup is correct, but I could be wrong still. The above debug could help me work that out. I can probably shuffle things around in the code a bit and put in some safeguards against emitting signals when not enabled which is certainly sensible. I managed to CCBUG the wrong bug in a bunch of commits :( (used the mdv bug # not this one :'() Doing it manually now. commit fae4a67a16b9907708c940c1ea72ec1a0eaf7bb9 Author: Colin Guthrie <cguthrie@mandriva.org> Date: Wed May 12 10:03:59 2010 +0100 pulse: Some signal emission protection and some debug tweaks. This commit ensures that the objectDescriptionChanged signal is only emitted when PA is active. If we try to connect, succeed, but the backend ultimately cannot support PA, we fail. At present the GST backend operates a 'hit and hope' policy with regards to the pulsesink. This needs to be tightened up. Also added is extra debug info when the support is enabled and a new debug method which is not called anywhere but can be useful when debugging code. CCBUG: 59052 <-- Wrong diff --git a/phonon/pulsesupport.cpp b/phonon/pulsesupport.cpp index e85abd5..769d7e1 100644 --- a/phonon/pulsesupport.cpp +++ b/phonon/pulsesupport.cpp @@ -666,6 +666,19 @@ void PulseSupport::shutdown() } } +void PulseSupport::debug() +{ +#ifdef HAVE_PULSEAUDIO + logMessage(QString("Have we been initialised yet? %1").arg(s_instance ? "Yes" : "No")); + if (s_instance) { + logMessage(QString("Connected to PulseAudio? %1").arg(s_pulseActive ? "Yes" : "No")); + logMessage(QString("PulseAudio support 'Active'? %1").arg(s_instance->isActive() ? "Yes" : "No")); + } +#else + logMessage("PulseAudio support not available."); +#endif +} + PulseSupport::PulseSupport() : QObject(), mEnabled(false) { @@ -780,7 +793,6 @@ void PulseSupport::connectToDaemon() bool PulseSupport::isActive() { #ifdef HAVE_PULSEAUDIO - //logMessage(QString("Enabled Breakdown: mEnabled: %1, s_pulseActive %2").arg(mEnabled).arg(s_pulseActive)); return mEnabled && s_pulseActive; #else return false; @@ -790,6 +802,9 @@ bool PulseSupport::isActive() void PulseSupport::enable(bool enabled) { mEnabled = enabled; +#ifdef HAVE_PULSEAUDIO + logMessage(QString("Enabled Breakdown: mEnabled: %1, s_pulseActive %2").arg(mEnabled ? "Yes" : "No" ).arg(s_pulseActive ? "Yes" : "No")); +#endif } QList<int> PulseSupport::objectDescriptionIndexes(ObjectDescriptionType type) const @@ -997,7 +1012,8 @@ PulseStream *PulseSupport::registerCaptureStream(QString streamUuid, Category ca void PulseSupport::emitObjectDescriptionChanged(ObjectDescriptionType type) { - emit objectDescriptionChanged(type); + if (mEnabled) + emit objectDescriptionChanged(type); } bool PulseSupport::setOutputName(QString streamUuid, QString name) { diff --git a/phonon/pulsesupport.h b/phonon/pulsesupport.h index dc08330..d78ac64 100644 --- a/phonon/pulsesupport.h +++ b/phonon/pulsesupport.h @@ -66,6 +66,7 @@ namespace Phonon // or phonon supports capture properly... which ever comes first. void clearStreamCache(QString streamUuid); + static void debug(); public slots: void connectToDaemon(); commit 70babff2d8f27828c5912a879538d04a756fc86c Author: Colin Guthrie <cguthrie@mandriva.org> Date: Wed May 12 10:43:23 2010 +0100 gstreamer: Rejig the PulseAudio detection and handling a little. Attempt to make the PulseAudio initialisation in GStreamer a bit more robust. Validate the initial sink usage if it comes from either env var or settings against the known status of PA (is it running or not) and only ever try a 'pulsesink' if it is running, with 'auto' favouring 'pulsesink' when PA is running. When trying to open the device fails when PA is running we change back to 'auto' and try again. This handles the case when the GStreamer 'pulsesink' is not available (which is hard as it's a -good plugin these days). CCBUG: 59052 <-- Wrong diff --git a/gstreamer/devicemanager.cpp b/gstreamer/devicemanager.cpp index c3826eb..6485094 100644 --- a/gstreamer/devicemanager.cpp +++ b/gstreamer/devicemanager.cpp @@ -82,13 +82,21 @@ DeviceManager::DeviceManager(Backend *backend) PulseSupport *pulse = PulseSupport::getInstance(); m_audioSink = qgetenv("PHONON_GST_AUDIOSINK"); - if (m_audioSink.isEmpty()) { + if (m_audioSink.isEmpty()) m_audioSink = settings.value(QLatin1String("audiosink"), "Auto").toByteArray().toLower(); - if (m_audioSink == "auto" && pulse->isActive()) - m_audioSink = "pulsesink"; - } - if ("pulsesink" != m_audioSink) + + if ("pulsesink" == m_audioSink && !pulse->isActive()) { + // If pulsesink is specifically requested, but not active, then + // fall back to auto. + m_audioSink = "auto"; + } else if (m_audioSink == "auto" && pulse->isActive()) { + // We favour specific PA support if it's active and we're in 'auto' mode + // (although it may still be disabled if the pipeline cannot be made) + m_audioSink = "pulsesink"; + } else if (m_audioSink != "pulsesink") { + // Otherwise, PA should not be used. pulse->enable(false); + } m_videoSinkWidget = qgetenv("PHONON_GST_VIDEOMODE"); if (m_videoSinkWidget.isEmpty()) { @@ -234,9 +242,19 @@ GstElement *DeviceManager::createAudioSink(Category category) sink = gst_element_factory_make (m_audioSink, NULL); if (canOpenDevice(sink)) m_backend->logMessage(QString("AudioOutput using %0").arg(QString::fromUtf8(m_audioSink))); - else if (sink) { - gst_object_unref(sink); - sink = 0; + else { + if (sink) { + gst_object_unref(sink); + sink = 0; + } + if ("pulsesink" == m_audioSink) { + // We've tried to use PulseAudio support, but the GST plugin + // doesn't exits. Let's try again, but not use PA support this time. + m_backend->logMessage("PulseAudio support failed. Falling back to 'auto'"); + PulseSupport::getInstance()->enable(false); + m_audioSink = "auto"; + sink = createAudioSink(); + } } } } commit 67b424626866d1a4b2e80c3e93698456042889fc Author: Colin Guthrie <cguthrie@mandriva.org> Date: Wed May 12 10:55:37 2010 +0100 gstreamer: Move some code inside pointer protection. This can only happen if asserts are disabled, so this is somewhat unlikely, but it's better to be safe. This is unlikely to be related to the bug #59052, but in the event that PA is running but both 'pulsesink' and 'fakesink' cannot be created AND asserts are disabled, then this could cause some issues. CCBUG: 59052 <-- Wrong diff --git a/gstreamer/devicemanager.cpp b/gstreamer/devicemanager.cpp index 6485094..3b0d4c3 100644 --- a/gstreamer/devicemanager.cpp +++ b/gstreamer/devicemanager.cpp @@ -392,10 +392,10 @@ void DeviceManager::updateDeviceList() } } } - } - gst_element_set_state (audioSink, GST_STATE_NULL); - gst_object_unref (audioSink); + gst_element_set_state (audioSink, GST_STATE_NULL); + gst_object_unref (audioSink); + } } /** OK, so if my comments in comment #38 are on the right track, these patches may help. If this is the case, then it points very firmly at a configuration/integration problem. Feedback welcome *** Bug 237442 has been marked as a duplicate of this bug. *** Colin, here's the debug output and a screenshot. I think the last few lines only appeared after I clicked OK. Thanks for your help on this. $ PHONON_GST_DEBUG=3 PHONON_PULSEAUDIO_DEBUG=3 kcmshell4 kcm_phonon "PGST(2): Using GStreamer 0.10.28" "PGST(2): AudioOutput using alsa audio sink" "PGST(3): Found new audio device default (DeviceManager 0x2a4a090)" "PGST(2): AudioOutput using alsa audio sink" "PGST(3): Found new audio device hw:0,0 (DeviceManager 0x2a4a090)" "PGST(2): AudioOutput using alsa audio sink" "PGST(3): Found new audio device hw:0,1 (DeviceManager 0x2a4a090)" QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: No such file or directory QFileSystemWatcher: failed to add paths: /home/me/.config/ibus/bus Bus::open: Can not get ibus-daemon's address. IBusInputContext::createInputContext: no connection to ibus-daemon On Wed, May 12, 2010 at 03:28, Colin Guthrie <cguthrie@mandriva.org> wrote: > https://bugs.kde.org/show_bug.cgi?id=232068 > > > > > > --- Comment #38 from Colin Guthrie <cguthrie mandriva org> Â 2010-05-12 10:28:31 --- > Thanks for the debug Adam. What is odd here is that I see two native > connections from knotify (which I presume are the phonon control connections, > but then I do not see any further connection after that, with the exception of > the alsa plugin connection from knotify. > > What this seems to smell off is that the gstreamer pulseaudio backend is not > available. When the GStreamer backend loads, it tries to enable pulseaudio > (which establishes first a "probe" connection to check if it is available, and > then, if it's successful, it will disconnect and then reconnect with a > "control" connection). > > But, if in the process of trying to enable PA, the backend decides it can't > handle it (e.g. the specific "pulsesink" for gstreamer is not available) then > it will simply not use PA. > > In this mode it should all nicely fallback, but perhaps there are some things > that will not work. > > I can see that there are cases where "objectDescriptionChanged" signal is still > emitted even when PA is not "active" (where active means both running and has > backend support). (the "usingDevice", "volumeChanged" and "muteChanged" signals > should never be emitted when PA is not "active" so that shouldn't be a problem) > > Adam, can you do me a favour? > > Can you do the following for me: > Â 1. Check to see whether you have the file > /usr/lib64/gstreamer-0.10/libgstpulse.so on your system (note your path may be > different to mine, check /usr/lib/ and also check for different variations on > "gstreamer-0.10" too. The important part is that libgstpulse.so is installed. > Â 2. Run "PHONON_GST_DEBUG=3 PHONON_PULSEAUDIO_DEBUG=3 kcmshell4 kcm_phonon" and > post the debug output and tell me how the device list looks. You should see the > same list of devices (exactly the same) as in pavucontrol. If you see the world > "PulseAudio" in amongst other devices please let me know. If in doubt, just > attach a screenshot. > > > I think this is ultimately boiling back down to my original statement way up > above. I'm being slightly clouded here by the fact I've got a bug report in > Mandriva where I am pretty certain the setup is correct, but I could be wrong > still. The above debug could help me work that out. I can probably shuffle > things around in the code a bit and put in some safeguards against emitting > signals when not enabled which is certainly sensible. > > -- > Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email > ------- You are receiving this mail because: ------- > You are on the CC list for the bug. > Hi Adam, Your screenshot did not come through (you have to attach it to the bug rather than reply to the mail), but the debug output is clear: You do not have pulseaudio support compiled into your phonon package. What distro is this? They need to fix that. Created attachment 43524 [details]
screenshot
Sorry about that. I thought bugzilla could handle an email well. :) I am using Kubuntu Lucid 10.04. It comes with PulseAudio by default. It seems strange that such a bug would be in here by default. I don't remember this crash happening for the first few days after installing it, but I don't know what could have changed to cause it. Well it's quite clear from both the log output and the screenshot that their phonon package does not actually include support from PA. In the past I helped someone debug their problems so I presumed all was now well, but I guess not. AFAIK, they do not build a separate phonon package like most distros but instead patch their Qt to include the latest changes from git. However, in doing so they neglected to define the necessary variable in the CMakefile (-DHAVE_PULSEAUDIO IIRC) and thus it was compiled sans-PA support. From the looks of things here, this seems to be the same problem. Please submit a bug report to your distro to fix their broken packages! Colin, it seems that you're right. I found this bug in Launchpad: https://bugs.launchpad.net/ubuntu/+source/qt4-x11/+bug/557514 I don't know enough about the Phonon packaging to understand it all, but the Kubuntu devs mention problems with KDE Phonon vs. Qt Phonon. I think this crash started happening after I also installed GNOME/Ubuntu packages, whereas before I only had KDE/Kubuntu packages. I will try removing the PulseAudio packages and see if it helps as a workaround. This whole situation is sad, though. I removed PulseAudio and put "default" at the top of the device lists, and now it's working fine again, no more KNotify4 crashes. Haven't tested sound in GNOME again yet. I don't know if this bug should be closed and blamed on Kubuntu, or if there is something to their points about KDE Phonon vs. Qt Phonon. I guess that's over my head. Well this is not a Kubuntu only bug. Some Arch users have also commented AFACT. Perhaps it's the same problem there, but without more debug I can't say. I have had a single bug report with a similar backtrace on Mandriva so I'm not totally ruling out a potential problem cropping up in some racey situation (typically startup failure I would think). But certainly it's very hard to debug this issue when I can't reproduce on my own system which I know to be setup correctly. So until the Kubuntu guys manage to fix their packages and until the Arch guys can come back with more debug, I'll put this on the back burner in terms of what I'm actively looking at. I've spent several hours chasing this down and am quite annoyed to hear that the Kubuntu packages are so broken because I've told them about this before and I'm not exactly a hard person to reach if they want to ask for advice. Ubunutu was widely criticised for their poor integration of PA in their last LTS and now it seems Kubuntu is doing the same in this LTS :( Colin, I just want to say thanks for your time on this bug, even if it's not fixable right now. Just adding that the same crashes occured for me on arch using kde 4.4.3 with the phonon 4.4.1 + gstreamer package + pulse. Pulseaudio setup as in the wiki, with the pcm.phononpulse added so that pulseaudio would appear in phonon. However after installing phonon-git from aur, My device list in phonon got replaced with a lovely set from pulseaudio, complete with my network computers. Works awesomely, no crashes anymore. (In reply to comment #54) > However after installing phonon-git from aur, My device list in phonon got > replaced with a lovely set from pulseaudio, complete with my network computers. > Works awesomely, no crashes anymore. Exactly :) That's how it should look if the packages are integrated/compiled correctly! *** Bug 237744 has been marked as a duplicate of this bug. *** *** Bug 237950 has been marked as a duplicate of this bug. *** *** Bug 238188 has been marked as a duplicate of this bug. *** *** Bug 238114 has been marked as a duplicate of this bug. *** Created attachment 43757 [details]
New crash information added by DrKonqi
knotify fault on login, 4.4.3 (KDE 4.4.3)
Created attachment 43813 [details]
New crash information added by DrKonqi
I've been a strong supporter/user of Linux for many years - most recently with Ubuntu - and, up to now, very happy with it (especially the JEOS flavour for servers)...
And, up to now, been quite happy with the GNOME environment...
However, following my upgrade to Ubu 10.04 this evening, I decided to give KDE a quick look (not having done so in a couple of years from within Madrake v8)...
And this bug hit me on first login - and I can't get anywhere near the system settings to return to using GNOME (this issue, from the bug notes, clearly not going to be solved soon - and, being 'default' behaviour, not for any but the stalwart console-jockeys to address)...
Apologies for not being able to contribute anything 'useful' to this report (unless you can sift anything pertinent from my back-trace), but perhaps it's worth changing the 'default' behaviour away from the current - as it seems you have a bit of a 'cascade' going on...
...and nobody want to see this hit any production environments, do we - even "by accident" from a minor technician 'under pressure' to 'just get things done' by their boss...
[note: the above is purely hypothetical - but somewhere in this crazy world *someone* is gonna do it - lol - either way, last thing anyone wants is for new installations to persistently fail; requiring a technician to console-dive]
Good luck finding the cure - I'm back to live amongst the Elves...
...sorry, I meant Gnomes ;-P
Kind regards,
Brian
(In reply to comment #60) > Created an attachment (id=43757) [details] > New crash information added by DrKonqi > > knotify fault on login, 4.4.3 (KDE 4.4.3) I forgot to mention that it was on new Ubuntu 10.04 and macbook pro5.5. I cured it with removing ~/.kde ~/.kde4 and by switch to phonon-xine backend Please keep comments relevant and to a minimum. People working on Phonon are doing so in their spare time, and as a hobby, and the less noise the easier it is to sift through this. Also, since it seems like it is fixed in git (re: comment 54), so we should get a new version out soon. @Brian as Martin pointed out, this very much appears to be a problem with the [k]ubuntu packages for Phonon in that they do not implement proper PA support. Therefore complaining on a KDE bug trackers is not the right approach. Take your complaint to the Kubuntu guys. I'm beginning to wonder if the underlying problem could be related to the kded module which probes alsa directly... it may be freeing something it shouldn't which in turn leads to this problem as seen in the gst backend... I'll need to ask some folks about that. I'm not ruling out a bug in GST itself too, but that would likely have been apparent elsewhere too. Although this bug is totally avoided when compiled to support PA properly, it would still be nice to fix the actual cause of the crash too. *** Bug 238552 has been marked as a duplicate of this bug. *** Created attachment 43872 [details]
New crash information added by DrKonqi
Application: KNotify (knotify4), signal: Segmentation fault
[Current thread is 1 (Thread 0x7f262ef44760 (LWP 2720))]
Thread 2 (Thread 0x7f261c17b710 (LWP 2728)):
#0 0x00007f262c6c8f53 in *__GI___poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#1 0x00007f26214c641f in ?? () from /usr/lib/libpulse.so.0
#2 0x00007f26214b5d86 in pa_mainloop_poll () from /usr/lib/libpulse.so.0
#3 0x00007f26214b7809 in pa_mainloop_iterate () from /usr/lib/libpulse.so.0
#4 0x00007f26214b78c0 in pa_mainloop_run () from /usr/lib/libpulse.so.0
#5 0x00007f26214c621b in ?? () from /usr/lib/libpulse.so.0
#6 0x00007f26212850e8 in ?? () from /usr/lib/libpulsecommon-0.9.21.so
#7 0x00007f262ad989ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#8 0x00007f262c6d569d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#9 0x0000000000000000 in ?? ()
Thread 1 (Thread 0x7f262ef44760 (LWP 2720)):
[KCrash Handler]
#5 0x00007f2623f9de49 in ?? () from /usr/lib/libasound.so.2
#6 0x00007f2623f60b15 in snd_pcm_close () from /usr/lib/libasound.so.2
#7 0x00007f26218e86ff in ?? () from /usr/lib/gstreamer-0.10/libgstalsa.so
#8 0x00007f2622b603c6 in ?? () from /usr/lib/libgstaudio-0.10.so.0
#9 0x00007f2622b53ecb in gst_ring_buffer_close_device () from /usr/lib/libgstaudio-0.10.so.0
#10 0x00007f2622b5bca6 in ?? () from /usr/lib/libgstaudio-0.10.so.0
#11 0x00007f26233ff18c in gst_element_change_state (element=0x1c8aa90, transition=0) at gstelement.c:2548
#12 0x00007f26234021bb in gst_element_set_state_func (element=0x1c89400, state=GST_STATE_NULL) at gstelement.c:2504
#13 0x00007f2623bf99aa in Phonon::Gstreamer::AudioOutput::setOutputDevice (this=0x1c87f40, newDevice=<value optimized out>) at ../../gstreamer/audiooutput.cpp:217
#14 0x00007f262e4da010 in callSetOutputDevice (this=0x1c60730) at ../3rdparty/phonon/phonon/audiooutput.cpp:67
#15 Phonon::AudioOutputPrivate::setupBackendObject (this=0x1c60730) at ../3rdparty/phonon/phonon/audiooutput.cpp:281
#16 0x00007f262e4da6f0 in Phonon::AudioOutputPrivate::createBackendObject (this=0x1c60730) at ../3rdparty/phonon/phonon/audiooutput.cpp:124
#17 0x00007f262e4d6eea in Phonon::AudioOutputPrivate::init (this=0x1c60730, c=<value optimized out>) at ../3rdparty/phonon/phonon/audiooutput.cpp:106
#18 0x00007f262e4d759d in AudioOutput (this=0x1c60700, category=Phonon::NotificationCategory, parent=0x0) at ../3rdparty/phonon/phonon/audiooutput.cpp:76
#19 0x000000000040d101 in Player (this=0x1c4ce68) at ../../knotify/notifybysound.cpp:59
#20 PlayerPool::getPlayer (this=0x1c4ce68) at ../../knotify/notifybysound.cpp:99
#21 0x000000000040d63e in NotifyBySound::notify (this=0x1c47eb0, eventId=1, config=0x7fff3d308190) at ../../knotify/notifybysound.cpp:243
#22 0x0000000000408d63 in KNotify::emitEvent (this=0x7fff3d309490, e=0x1c1dbf0) at ../../knotify/knotify.cpp:179
#23 0x0000000000409022 in KNotify::event (this=0x7fff3d309490, event=<value optimized out>, appname=<value optimized out>, contexts=<value optimized out>, title=<value optimized out>,
text=<value optimized out>, image=..., actions=..., timeout=-1, winId=0) at ../../knotify/knotify.cpp:128
#24 0x000000000040935f in KNotifyAdaptor::event (this=0x1c4e3d0, event=..., fromApp=..., contexts=<value optimized out>, title=..., text=<value optimized out>, image=..., actions=..., timeout=-1,
winId=0) at ../../knotify/knotify.cpp:236
#25 0x000000000040a03b in KNotifyAdaptor::qt_metacall (this=0x1c4e3d0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff3d308720) at ./knotify.moc:227
#26 0x00007f262ddc3486 in QDBusConnectionPrivate::deliverCall (this=<value optimized out>, object=<value optimized out>, msg=<value optimized out>, metaTypes=..., slotIdx=<value optimized out>)
at qdbusintegrator.cpp:904
#27 0x00007f262ddc46ef in QDBusConnectionPrivate::activateCall (this=<value optimized out>, object=0x1c4e3d0, flags=273, msg=...) at qdbusintegrator.cpp:809
#28 0x00007f262ddc51cd in QDBusConnectionPrivate::activateObject (this=<value optimized out>, node=<value optimized out>, msg=..., pathStartPos=<value optimized out>) at qdbusintegrator.cpp:1364
#29 0x00007f262ddc5468 in QDBusActivateObjectEvent::placeMetaCall (this=0x1c4edf0) at qdbusintegrator.cpp:1477
#30 0x00007f262da99d49 in QObject::event (this=0x7fff3d309490, e=0x1c4edf0) at kernel/qobject.cpp:1248
#31 0x00007f262ce4322c in QApplicationPrivate::notify_helper (this=0x1bb7740, receiver=0x7fff3d309490, e=0x1c4edf0) at kernel/qapplication.cpp:4300
#32 0x00007f262ce496fb in QApplication::notify (this=0x7fff3d3094c0, receiver=0x7fff3d309490, e=0x1c4edf0) at kernel/qapplication.cpp:4183
#33 0x00007f262e944526 in KApplication::notify (this=0x7fff3d3094c0, receiver=0x7fff3d309490, event=0x1c4edf0) at ../../kdeui/kernel/kapplication.cpp:302
#34 0x00007f262da8a06c in QCoreApplication::notifyInternal (this=0x7fff3d3094c0, receiver=0x7fff3d309490, event=0x1c4edf0) at kernel/qcoreapplication.cpp:704
#35 0x00007f262da8c7e7 in QCoreApplication::sendEvent (receiver=0x0, event_type=<value optimized out>, data=0x1b93c20) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#36 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=<value optimized out>, data=0x1b93c20) at kernel/qcoreapplication.cpp:1345
#37 0x00007f262dab39d3 in QCoreApplication::sendPostedEvents (s=<value optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#38 postEventSourceDispatch (s=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:276
#39 0x00007f26296d08c2 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#40 0x00007f26296d4748 in ?? () from /lib/libglib-2.0.so.0
#41 0x00007f26296d48fc in g_main_context_iteration () from /lib/libglib-2.0.so.0
#42 0x00007f262dab3513 in QEventDispatcherGlib::processEvents (this=0x1b93760, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#43 0x00007f262cef346e in QGuiEventDispatcherGlib::processEvents (this=0x1c8aa90, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#44 0x00007f262da88992 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#45 0x00007f262da88d6c in QEventLoop::exec (this=0x7fff3d3093e0, flags=) at kernel/qeventloop.cpp:201
#46 0x00007f262da8caab in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#47 0x0000000000407f4f in main (argc=<value optimized out>, argv=<value optimized out>) at ../../knotify/main.cpp:73
*** Bug 238709 has been marked as a duplicate of this bug. *** Created attachment 43893 [details]
New crash information added by DrKonqi
Knotify crashes at desktop startup, without user intervention.
*** Bug 238918 has been marked as a duplicate of this bug. *** *** Bug 237862 has been marked as a duplicate of this bug. *** *** Bug 238974 has been marked as a duplicate of this bug. *** Created attachment 43949 [details]
New crash information added by DrKonqi
knotify4 apparrait au demarage et je n'ai aucun sons sous kubuntu
*** Bug 239057 has been marked as a duplicate of this bug. *** *** Bug 240181 has been marked as a duplicate of this bug. *** *** Bug 240162 has been marked as a duplicate of this bug. *** Just to try and narrow down the cause of this problem, could some folk please try moving the KDE phonon platform plugin out of the way temporarily. It also does alsa device enumeration and calls function such as snd_device_name_free_hint() and snd_config_update_free_global() which may not play nice in multi-threaded environments. To test this, try and work out a reliable trigger case and confirm it can trigger it, then rename the file: /usr/lib64/kde4/plugins/phonon_platform/kde.so or /usr/lib/kde4/plugins/phonon_platform/kde.so To something else. This should prevent the Phonon Platform plugin loading (it could in theory cause a different crash but I think it's well protected from my memory of that code). The file itself may be packaged in a different directory on your system, so you may have to look around for it. The device lists in Phonon will likely look different without this plugin, but it will hopefully still work. Then see if you can trigger the crash again. Thanks. *** Bug 240428 has been marked as a duplicate of this bug. *** *** Bug 240477 has been marked as a duplicate of this bug. *** *** Bug 240562 has been marked as a duplicate of this bug. *** When using a pulseaudio-native phonon, all my sound issues go away! I love it! As requested, renamed the file /usr/lib64/kde4/plugins/phonon_platform/kde.so (to kde.so.bak), restarted the KDE4 session, and the crash did not happen. Restarted the session and the system a few more times and no crash happened. Renamed the file back to its original name, restarted the KDE4 sessions, and still Knotify4 has not crashed. Before the rename operation, Knotify4 was crashing on every session start. After the rename operation, Knotify4 has not crashed once. Hope this helps. I can try any other test/ideas. I tried the same renaming operation of comment #81 on another system that was having the Knotify4 crashes, and it also stopped having the crashes. @Pedro: Thanks for the tests; it's much appreciated. This is helping to confirm my suspicions that this is some kind of multithreaded issue with ALSA. I believe other backends such as vlc could potentially trigger this bug too (tho' I don't know too much about the threading model of either vlc or gstreamer to be certain on that point). One reason that renaming it back didn't re-trigger the bug could be to do with disk caching. After a fresh reboot, there will be some IO bottlenecks as the system starts up, which could extend the time frame for some kind of race condition. If this is the case, then the first login would often be affected, but subsequent logins would maybe fair better and avoid the race. So perhaps rebooting after renaming it back (rather than just logging out and back in) may start retriggering it? Either way, I guess we need to look into the kded module in some capacity. @Jon: Glad it's working for you :) *** Bug 240705 has been marked as a duplicate of this bug. *** *** Bug 241121 has been marked as a duplicate of this bug. *** *** Bug 241334 has been marked as a duplicate of this bug. *** *** Bug 241403 has been marked as a duplicate of this bug. *** *** Bug 241577 has been marked as a duplicate of this bug. *** *** Bug 241975 has been marked as a duplicate of this bug. *** Created attachment 48108 [details]
New crash information added by DrKonqi
I was just starting up my machine and got this crash.
Created attachment 48129 [details]
New crash information added by DrKonqi
Any notification from Kopete provides the same crash.
NOTE: This did not occur on Kubuntu 9.10, but does occur on Kubuntu 10.4
Created attachment 48165 [details]
New crash information added by DrKonqi
tom@Uranus:~$ digikam
kdeinit4: preparing to launch /usr/lib/libkdeinit4_klauncher.so
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
kdeinit4: preparing to launch /usr/lib/libkdeinit4_kded4.so
kdeinit4: preparing to launch /usr/lib/libkdeinit4_kbuildsycoca4.so
kbuildsycoca4 running...
kbuildsycoca4(3526) KBuildSycoca::checkTimestamps: checking file timestamps
kbuildsycoca4(3526) KBuildSycoca::checkTimestamps: timestamps check ok
kbuildsycoca4(3526) kdemain: Emitting notifyDatabaseChanged ()
kdeinit4: preparing to launch /usr/lib/libkdeinit4_kconf_update.so
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
KCrash: Application 'digikam' crashing...
sock_file=/home/tom/.kde/socket-Uranus/kdeinit4__0
kdeinit4: preparing to launch /usr/lib/kde4/libexec/drkonqi
[1]+ Gepauzeerd digikam
tom@Uranus:~$
Created attachment 48166 [details]
New crash information added by DrKonqi
tom@Uranus:~$ amarok
KCrash: Application 'amarok' crashing...
sock_file=/home/tom/.kde/socket-Uranus/kdeinit4__0
kdeinit4: preparing to launch /usr/lib/kde4/libexec/drkonqi
<unknown program name>(3656)/: Communication problem with "amarok" , it probably crashed.
Error message was: "org.freedesktop.DBus.Error.ServiceUnknown" : " "The name org.kde.amarok was not provided by any .service files" "
tom@Uranus:~$
*** Bug 242941 has been marked as a duplicate of this bug. *** *** Bug 243850 has been marked as a duplicate of this bug. *** *** Bug 244191 has been marked as a duplicate of this bug. *** Bug 244191 has full debug information, in case someone upstream wants to analyze the gstreamer/alsa code. *** Bug 244298 has been marked as a duplicate of this bug. *** *** Bug 244447 has been marked as a duplicate of this bug. *** *** Bug 245249 has been marked as a duplicate of this bug. *** *** Bug 245699 has been marked as a duplicate of this bug. *** *** Bug 245698 has been marked as a duplicate of this bug. *** *** Bug 245766 has been marked as a duplicate of this bug. *** Created attachment 49498 [details]
New crash information added by DrKonqi
After login, EVERYTIME. I cannot use the system! I upgraded from 8.04. Consider this extremely critical.
Thanks,
Jim.
Hi Jim, If you consider this extremely critical, perhaps you can look over the above comments and aid the debugging effort. I'd be particularly interested in results from moving the kde.so file out of the way. I tried the same renaming operation of comment #81 on my system that was having the Knotify4 crashes, and it did NOT stop having the crashes. However it is a 32 bit rather than a 64 bit install. I moved the equivalent file. Jim Hmm, so the kde.so file is no longer present and the same backtrace results? That is very interesting indeed. No one else has yet to report that, which basically puts things back to square one :( Glad I didn't waste too many days on looking at that route.... time to get the thinking cap back on I guess :( Just so you can be sure I'm not crazy or think I did it and somehow didn't (that's always a possibility): ls /usr/lib/kde4/plugins/phonon_platform kde.so.bak Jim Also I'm available to test most anything. I'm home most of the time and have free time. I might not be capable of recompiling kde from scratch, but this system has plenty of disk and is only used as a development platform and my mail/surfing activities. I'm running gnome, but I'm crippled since a lot of my life depends on KDE. :) Another observation. When I reboot into Gnome after the failure, the speaker is muted. It's not muted when I reboot Gnome after Gnome. Thanks, Jim. *** Bug 245937 has been marked as a duplicate of this bug. *** *** Bug 246325 has been marked as a duplicate of this bug. *** *** Bug 246333 has been marked as a duplicate of this bug. *** *** Bug 246351 has been marked as a duplicate of this bug. *** *** Bug 246495 has been marked as a duplicate of this bug. *** *** Bug 247186 has been marked as a duplicate of this bug. *** *** Bug 247663 has been marked as a duplicate of this bug. *** *** Bug 236647 has been marked as a duplicate of this bug. *** *** Bug 237286 has been marked as a duplicate of this bug. *** *** Bug 239043 has been marked as a duplicate of this bug. *** *** Bug 247878 has been marked as a duplicate of this bug. *** I'm the owner of #247878. Which seems to also be this bug. I've also tried to rename kde.so and it has not changed anything... Thanks for the feedback Sebastian. OK, plan B: I've been able to intermittantly reproduce this, but it's kinda hard to test fixes as I don't know whether the problem is just being intermittant or has actually been solved. The latest fix I'm trying is related to multi-threading apps and pulse contexts in gst. If possible, can testers please update to the latest gst-plugins-good (0.10.24) and apply the following two patches on top. I'm just linking to Mandriva SVN as it's simplest to show the patches :D http://svn.mandriva.com/cgi-bin/viewvc.cgi/packages/cooker/gstreamer0.10-plugins-good/current/SOURCES/?pathrev=570307 I've applied it in Mandriva cooker and I tried to reproduce five times and it failed (after two failures in two attempts before update), so fingers crossed it helps. hello, on startup i have Kmail and i put it away , so i dind't have this error Then i started Kmail and the error happens AGAIN!! so it seems to be an error with Kmail under Gnome. As i start Kmail with the Terminal i see that a file is missing: /usr/share/kde4/services/kded/networkstatus.desktop is missing I create such an empty file and sine i don't have the Error *** Bug 248140 has been marked as a duplicate of this bug. *** *** Bug 248238 has been marked as a duplicate of this bug. *** Nicolas ... I see many duplicates of this bug but is someone working on a fix? Jim On Wed, 18 Aug 2010 07:40:16 -0400, Nicolas Lécureuil <nlecureuil@mandriva.com> wrote: > https://bugs.kde.org/show_bug.cgi?id=232068 > > > Nicolas Lécureuil <nlecureuil@mandriva.com> changed: > > What |Removed |Added > ---------------------------------------------------------------------------- > CC| > |adrian.ioan.cozma@gmail.com > > > > > --- Comment #125 from Nicolas Lécureuil <nlecureuil mandriva com> > 2010-08-18 13:40:12 --- > *** Bug 248238 has been marked as a duplicate of this bug. *** > (In reply to comment #126) > Nicolas ... I see many duplicates of this bug but is someone working on a > fix? Jim Please try to trim email replies so as not to spam this already ridiculous bug report with more comments that make it hard to follow! I've been trying to work on a solution but the problem is that as this issue is a timing-sensitive issue relating to mutli-threaded startup, it is very hard to reproduce in such a way as to get meaningful debug out of it. Whenever I turn on verbose logging, the error doesn't actually happen due to the fact that the logging itself affects the startup speed. I'm trying some fixes and so far I've not been able to recreate this specific issue, but have created one that fails in the same way but for different reasons. I'm trying to suss things out but it's a very complex issue and so far no one else has really been able to debug it to the same depth, making code changes to test out theories etc. I'm very much focussed on trying to lick this soon tho' (I've been working on it specifically for the last three days). Some progress: I have found a reliable way to reproduce this error: 1. export PHONON_PULSEAUDIO_DISABLE=1 2. export PHONON_GST_AUDIOSINK=alsasink 3. dragon somefile.ogg (likely any phonon client will do). This code then fails miserably with the above backtrace. Now, interestingly, I find that if I rename the $LIBDIR/kde4/plugins/platform_plugin/kde.so to kde.so.x, it is *still* loaded... I have to chmod the platform_plugin folder it's self to a-x in order to prevent it loading properly (or rename the file to something completely different) When I do this, the crash does away and sound output works fine. So I think that my original suggestion, that something in the platform plugin and GST's alsa code is ultimately what causes this crash, *is* actually valid dispite some reports to the contrary above (possibly due to the same rename-kde.so-but-it-still-gets-used that tripped me up). Now this crash still relies on PA's alsa configuration: namely that pcm.!default is redirected to the alsa->pulse plugin (which is the recommended approach for a PA based sound system). So... now to work out WTF the platform plugin is doing and if the problem is in it, or in the way the GST code works..... I'm betting on the former. Now, there is also a wider question: Why does the platform plugin get loaded *at all*? It should be completely disabled when PA is used. From what I can gather in this regard, there are two possibilities for this: 1. PulseAudio autospawn does not work and for some reason results in the Phonon PulseSupport class to not connect properly and thus not enable PA mode in phonon. This scenario would cause the platform plugin to be loaded and as alsa is configured for the PA plugin, the crash will happen. 2. Some form of thread safety problem exists in PulseSupport and two different threads try to use the PulseSupport object simultaneously. If this is the case there is a chance that a race condition exists in the creation of the singleton object. Now if the problem is the first one, then I'm pretty confused. There are pretty robust unit tests already in PA that deal with the autospawn lock. If it's the second one, then in theory this can be protected by a QMutex with a relatively simple patch. Now solving the actual crash is obviously very desirable, but we shouldn't forget that the conditions for it to exist are ones that *shouldn't happen* in normal circumstances. If we can reliably solve the problem that leads to the platform plugin being loaded in the first place, then the crash wont happen. What I'll do next is: 1. Write a patch that protects the singlton creation with a mutex. 2. write some more debugging options that will allow better detection of why this bug happens. Now for the second one to be useful, the conditions for it happening have to occur naturally. My repeatable test case above does not help (it only deals with the crash itself - not the conditions that lead up to it). Now I hope all of the above makes sense. I hope some people can confirm the crash case for me and that disabling the platform plugin "solves" it - that would give me some confidence that my original analysis is correct which several comments above did put in doubt. Col *** Bug 248452 has been marked as a duplicate of this bug. *** *** Bug 248569 has been marked as a duplicate of this bug. *** I believe the underlying crash is now fixed in alsa-lib. http://git.alsa-project.org/?p=alsa-lib.git;a=commitdiff;h=91c9c8f1b85e69b4bdc94a777d2767c4906c3f47 Can someone confirm this please? If you are cherry-picking on top of 1.0.23 then grab 09879a4bb58199f64abcb8df506f917c8efc2383 first to avoid conflicts. *** Bug 248966 has been marked as a duplicate of this bug. *** *** Bug 249009 has been marked as a duplicate of this bug. *** *** Bug 249033 has been marked as a duplicate of this bug. *** Created attachment 51082 [details]
New crash information added by DrKonqi
Either my version is not new enough or the bug still exists. Amarok, freshly installed, crashes every time I open it. I was using Skype and Songbird while opening Amarok, so gstreamer and alsa and what else was probably running.
Thanks for looking into this.
*** Bug 249432 has been marked as a duplicate of this bug. *** Created attachment 51092 [details]
New crash information added by DrKonqi
Crash occurs every time there is a notification
@Ralph Janke & Martin Goerg: Please see comment 131. Can you confirm that you have this fix from alsa-lib git master applied to your build? If not, please retest after applying those fixes to properly test if this does resolve the problem as I suspect it will. In addition to my comment 131, if you are cherry-picking and take 09879a4bb58199f64abcb8df506f917c8efc2383, then be sure to grab 0633a966362ce231392ff6283c99142c5bccc1c8 too as it's a fix for a typo introduced therein. *** Bug 250142 has been marked as a duplicate of this bug. *** *** Bug 250285 has been marked as a duplicate of this bug. *** *** Bug 250364 has been marked as a duplicate of this bug. *** *** Bug 250679 has been marked as a duplicate of this bug. *** *** Bug 250735 has been marked as a duplicate of this bug. *** *** Bug 250853 has been marked as a duplicate of this bug. *** Created attachment 51556 [details]
New crash information added by DrKonqi
The problem is that no audio kde desktop and configure the entire system
I can confirm that these fixes in alsa-lib solved problem. Knotify4 doesn't crash anymore on KDE startup and I didn't notice any issues with sound. Good job :) Phew! Thanks thof! I was surprised it took so long for someone to confirm considering the number of CC's and duplicate reports this bug has had! Glad it's fixed things for you :) There is still a problem in here relating to pulseaudio autospawning. When this kicks in typically knotify will be going via alsa->pulse rather than directly via gst pulsesink, but at least things work. I will of course look at this race condition too, but this bug can be closed for now I think :) (In reply to comment #148) > Phew! Thanks thof! I was surprised it took so long for someone to confirm > considering the number of CC's and duplicate reports this bug has had! I'm glad I could help. Yesterday I decided to "give" one more chance KDE. It was the only critical problem I had so far. Btw. I see that bug was reported by Arch user, so here http://dl.dropbox.com/u/1050707/arch/PKGBUILD you can find my PKGBUILD file which helps build Arch package from git. *** Bug 251743 has been marked as a duplicate of this bug. *** *** Bug 252170 has been marked as a duplicate of this bug. *** *** Bug 252171 has been marked as a duplicate of this bug. *** Just my opinion on renaming kde.so. This will probably work until the next install of a package does an ldconfig. Which will rescan the /usr/lib tree and re-inject it into the system. I don't believe ldconfig cares what the name is unless you add it to a blacklist, if it still resides in usr/lib and is a library it will be re-added. My solution to the problem is to just remove the pulsaudio server from the installation. Multimedia is not my forte, so this could be an incorrect thing to do, but it fixed my problem, knotify no longer crashes. Craig (In reply to comment #109) > Also I'm available to test most anything. I'm home most of the time and have > free time. I might not be capable of recompiling kde from scratch, but this > system has plenty of disk and is only used as a development platform and my > mail/surfing activities. I'm running gnome, but I'm crippled since a lot of my > life depends on KDE. :) > > Another observation. When I reboot into Gnome after the failure, the speaker > is muted. It's not muted when I reboot Gnome after Gnome. > Thanks, > Jim. @Craig: This bug has already been marked as fixed. As you will see the problem relates to a bug in alsa-lib. So the solution to the problem is actually to update your alsa-lib package. Disabling PulseAudio will mask the trigger case for the bug, but it does not actually fix it. (In reply to comment #154) Thanks Colin, I wonder how long it will take for the fix to migrate to the KUbuntu team? I will download and compile the new ALSA stuff, and see what happens ;-) Craig > @Craig: This bug has already been marked as fixed. As you will see the problem > relates to a bug in alsa-lib. So the solution to the problem is actually to > update your alsa-lib package. Disabling PulseAudio will mask the trigger case > for the bug, but it does not actually fix it. *** Bug 253205 has been marked as a duplicate of this bug. *** Created attachment 52219 [details]
New crash information added by DrKonqi
crash occurs every time I start KDE
*** Bug 253416 has been marked as a duplicate of this bug. *** *** Bug 253535 has been marked as a duplicate of this bug. *** *** Bug 254878 has been marked as a duplicate of this bug. *** *** Bug 255056 has been marked as a duplicate of this bug. *** *** Bug 255320 has been marked as a duplicate of this bug. *** *** Bug 255462 has been marked as a duplicate of this bug. *** *** Bug 252414 has been marked as a duplicate of this bug. *** *** Bug 255759 has been marked as a duplicate of this bug. *** Created attachment 53053 [details]
New crash information added by DrKonqi
Knotify crash at startup, logout, and during sessions without any clear reasons.
I have also some problems with audio: I used alsa under gnome and didn't install all pulse audio system, because it crashed all the time, so I uninstall all pulse audio.
thanks for your contribution !!! ;)
Fayc, as you can see this bug has already been marked as resolved. We do not want or need any more debug symbols. The bug is in alsa lib and the commits in question are referenced above. Please ask your distribution to include those patches. OK, thanks a lot Colin and Craig : I applyed the post (like I did it before, for the same kind of bug between PA and Alsa, over all when you change environment, passing from Gnome to KDE) #153 worked for me : I work under KDE with Alsa and Jack Audio. For the moment, everything seems to be ok (have to check deeply the audio sofware fonctions) THANKS for your contribution !!!! ;) (In reply to comment #167) > Fayc, as you can see this bug has already been marked as resolved. We do not > want or need any more debug symbols. The bug is in alsa lib and the commits in > question are referenced above. Please ask your distribution to include those > patches. OK, thanks a lot Colin and Craig : I applyed the post (like I did it before, for the same kind of bug between PA and Alsa, over all when you change environment, passing from Gnome to KDE) #153 worked for me : I work under KDE with Alsa and Jack Audio. For the moment, everything seems to be ok (have to check deeply the audio sofware fonctions) THANKS for your contribution !!!! ;) (In reply to comment #167) > Fayc, as you can see this bug has already been marked as resolved. We do not > want or need any more debug symbols. The bug is in alsa lib and the commits in > question are referenced above. Please ask your distribution to include those > patches. I am confused ... what am I suppose to do ? reinstall something? How do I install the fix? On Thu, 04 Nov 2010 15:55:41 -0400, FAYC <faycpercussion@gmail.com> wrote: > https://bugs.kde.org/show_bug.cgi?id=232068 > > > > > > --- Comment #168 from FAYC <faycpercussion gmail com> 2010-11-04 > 20:55:27 --- > OK, thanks a lot Colin and Craig : I applyed the post (like I did it > before, > for the same kind of bug between PA and Alsa, over all when you change > environment, passing from Gnome to KDE) #153 worked for me : I work > under KDE > with Alsa and Jack Audio. For the moment, everything seems to be ok > (have to > check deeply the audio sofware fonctions) > THANKS for your contribution !!!! ;) > (In reply to comment #167) >> Fayc, as you can see this bug has already been marked as resolved. We >> do not >> want or need any more debug symbols. The bug is in alsa lib and the >> commits in >> question are referenced above. Please ask your distribution to include >> those >> patches. > > --- Comment #169 from FAYC <faycpercussion gmail com> 2010-11-04 > 20:55:34 --- > OK, thanks a lot Colin and Craig : I applyed the post (like I did it > before, > for the same kind of bug between PA and Alsa, over all when you change > environment, passing from Gnome to KDE) #153 worked for me : I work > under KDE > with Alsa and Jack Audio. For the moment, everything seems to be ok > (have to > check deeply the audio sofware fonctions) > THANKS for your contribution !!!! ;) > (In reply to comment #167) >> Fayc, as you can see this bug has already been marked as resolved. We >> do not >> want or need any more debug symbols. The bug is in alsa lib and the >> commits in >> question are referenced above. Please ask your distribution to include >> those >> patches. > (In reply to comment #170) > I am confused ... what am I suppose to do ? reinstall something? How do I > install the fix? If you don't understand how to apply patches and rebuild packages, then please ask via your distributions support channel for an updated package. *** Bug 241028 has been marked as a duplicate of this bug. *** *** Bug 242245 has been marked as a duplicate of this bug. *** *** Bug 256385 has been marked as a duplicate of this bug. *** Hi, how do I stop the emails from coming in? I have switched from Kmail to Thunderbird. Regards, Marc On Mon, Nov 8, 2010 at 10:26 PM, Pino Toscano <pino@kde.org> wrote: > https://bugs.kde.org/show_bug.cgi?id=232068 > > > Pino Toscano <pino@kde.org> changed: > > What |Removed |Added > > ---------------------------------------------------------------------------- > CC| |ndeb@ece.cmu.edu > > > > > --- Comment #174 from Pino Toscano <pino kde org> 2010-11-08 21:26:41 --- > *** Bug 256385 has been marked as a duplicate of this bug. *** > > -- > Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email > ------- You are receiving this mail because: ------- > You are on the CC list for the bug. > Hi Marc I think you have to check and change parameters of your subscription at this bug : do it on your bug report profile page, login on your account. The link of this bug is: https://bugs.kde.org/show_bug.cgi?id=232068 Regards FAYC * * 2010/11/8 <mpcapetown@gmail.com> > https://bugs.kde.org/show_bug.cgi?id=232068 > > > > > > --- Comment #175 from <mpcapetown gmail com> 2010-11-08 21:29:58 --- > Hi, how do I stop the emails from coming in? I have switched from Kmail to > Thunderbird. > > Regards, > Marc > > On Mon, Nov 8, 2010 at 10:26 PM, Pino Toscano <pino@kde.org> wrote: > > > https://bugs.kde.org/show_bug.cgi?id=232068 > > > > > > Pino Toscano <pino@kde.org> changed: > > > > What |Removed |Added > > > > > ---------------------------------------------------------------------------- > > CC| |ndeb@ece.cmu.edu > > > > > > > > > > --- Comment #174 from Pino Toscano <pino kde org> 2010-11-08 21:26:41 > --- > > *** Bug 256385 has been marked as a duplicate of this bug. *** > > > > -- > > Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email > > ------- You are receiving this mail because: ------- > > You are on the CC list for the bug. > > > > -- > Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email > ------- You are receiving this mail because: ------- > You are on the CC list for the bug. > *** Bug 257346 has been marked as a duplicate of this bug. *** *** Bug 247930 has been marked as a duplicate of this bug. *** *** Bug 258348 has been marked as a duplicate of this bug. *** *** Bug 259818 has been marked as a duplicate of this bug. *** *** Bug 261363 has been marked as a duplicate of this bug. *** *** Bug 261389 has been marked as a duplicate of this bug. *** *** Bug 261397 has been marked as a duplicate of this bug. *** Created attachment 55309 [details]
New crash information added by DrKonqi
crash occured when attempting to load amarok after changing preferred phonon backend from xine to gstreamer; previously, amarok loaded conistently with phonon xine backend and does now after switching back to phonon xine backend
*** Bug 263298 has been marked as a duplicate of this bug. *** *** Bug 263887 has been marked as a duplicate of this bug. *** *** Bug 265229 has been marked as a duplicate of this bug. *** *** Bug 265546 has been marked as a duplicate of this bug. *** *** Bug 267403 has been marked as a duplicate of this bug. *** *** Bug 267606 has been marked as a duplicate of this bug. *** *** Bug 268805 has been marked as a duplicate of this bug. *** Christophe can you remove me from this bug? Jim Harris On Mon, 21 Mar 2011 07:11:22 -0400, Christophe Giboudeaux <cgiboudeaux@gmx.com> wrote: > https://bugs.kde.org/show_bug.cgi?id=232068 > > > Christophe Giboudeaux <cgiboudeaux@gmx.com> changed: > > What |Removed |Added > ---------------------------------------------------------------------------- > CC| > |tek@pervasivenetwerks.com > > > > > --- Comment #191 from Christophe Giboudeaux <cgiboudeaux gmx com> > 2011-03-21 12:11:20 --- > *** Bug 268805 has been marked as a duplicate of this bug. *** > (In reply to comment #192) > Christophe can you remove me from this bug? Jim Harris Please log in and do it yourself. Just find your email in the CC field and tick the box "Remove selected CCs". Or you could just ignore the relatively low traffic which is what I do. Created attachment 58746 [details]
New crash information added by DrKonqi
digikam 1.2.0 crashes at startup after Kubuntu update.
(In reply to comment #194) > Created an attachment (id=58746) [details] > New crash information added by DrKonqi > > digikam 1.2.0 crashes at startup after Kubuntu update. The backtrace here looks like a bug that was fixed in alsa-lib ages ago. Please make sure things are up to-date on your system. *** Bug 270497 has been marked as a duplicate of this bug. *** *** Bug 271235 has been marked as a duplicate of this bug. *** *** Bug 271595 has been marked as a duplicate of this bug. *** reassigning to the new bugzilla product for better bug tracing of the various backends. Sorry for the noise. *** Bug 277415 has been marked as a duplicate of this bug. *** *** Bug 279171 has been marked as a duplicate of this bug. *** *** Bug 280510 has been marked as a duplicate of this bug. *** |