Bug 314803 - OSD glitches out and freezes
Summary: OSD glitches out and freezes
Status: RESOLVED FIXED
Alias: None
Product: kmix
Classification: Applications
Component: Backend: Pulseaudio (show other bugs)
Version: 4.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Colin Guthrie
URL:
Keywords:
: 317087 319787 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-02-10 01:01 UTC by illumilore
Modified: 2014-01-05 23:34 UTC (History)
13 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description illumilore 2013-02-10 01:01:10 UTC
When hitting the volume up or down hotkey, the OSD will eventually become frozen on screen and never go away. This started happening on kde 4.10
Comment 1 Christian Esken 2013-02-10 10:02:29 UTC
Poosibly related to https://git.reviewboard.kde.org/r/108223/
Comment 2 John Rowley 2013-02-10 18:01:32 UTC
I'm suffering from the same problem, pressing vol-up or vol-down will eventually cause KMix to hang and consume 100% CPU usage, it will hang for 30sec-2mins then carry out the backlog of adjustments I sent after it begun to hang.

Like illumilore, this seems to have only started since upgrading to 4.10.
Comment 3 Christian Esken 2013-02-14 19:02:11 UTC
After a short discussion, I think it is NOT related to https://git.reviewboard.kde.org/r/108223/. It sounds again much more like a DBUS communication "deadlock" on synchronous DBUS calls.
Hmm, does Pulseaudio synchronous DBUS calls? The described "hanf for 30s" is very close to Qt's default timeout of 25 seconds [1]. 

[1] https://bugreports.qt-project.org/browse/QTBUG-14485
Comment 4 Christian Esken 2013-02-14 19:09:58 UTC
I wonder whether it is related to PulseAudio. Please try KMix without PulseAudio?

# Disable PulseAudio in KMix:
    killall kmix; sleep 2;
    kwriteconfig -file kmixrc -group Global -key Backends -type string ALSA,MPRIS2 ;
    sleep 1 ; kmix

Try and please report back.

# Back to default behavior:
    killall kmix; sleep 2;
    kwriteconfig -file kmixrc -group Global -key Backends -type string "" ;
    sleep 1 ; kmix
Comment 5 John Rowley 2013-02-14 22:21:59 UTC
Hi Christian,

I tried the fix you suggested and it seems to work. :) Changing the kmix backend to ALSA has removed all lag and random freezes from the OSD when adjusting the volume via the media keys.
Comment 6 Christian Esken 2013-02-23 00:31:00 UTC
Thanks for the feedback, John.

Not sure how to progress, though. Problem is similar to hanging Tabs in Firfox (One call to block them all). I cannot make PA calls non-blocking. Only possibly, theoretically the PA backend communication could - eventually -  run in its own thread, given that its own app-loop allows for it, and there is proper concurrency in Qt. All in all it sounds highly complex, possibly impossible and like nothing I can handle myself in a reasonable time frame.
Comment 7 Malte Eggers 2013-04-15 07:30:19 UTC
It seems to be an update related configuration issue.
http://qdosmsq.dunbar-it.co.uk/blog/2011/11/does-your-volume-control-freeze-on-kde/
This solved the problem for me, without having to disable pulseaudio.  Christian Esken's solution may have just rewritten relevant parts of the config and made it work again. Try to re-enable pulsaudio and see if it still works.
Comment 8 Malte Eggers 2013-04-16 13:57:05 UTC
(In reply to comment #7)
> It seems to be an update related configuration issue.
> http://qdosmsq.dunbar-it.co.uk/blog/2011/11/does-your-volume-control-freeze-
> on-kde/
> This solved the problem for me, without having to disable pulseaudio. 
> Christian Esken's solution may have just rewritten relevant parts of the
> config and made it work again. Try to re-enable pulsaudio and see if it
> still works.

Revoking what I said earlier. It works after booting, but I'm having the problem again after using my computer for a couple of hours.
Comment 9 Cygni X 2013-04-17 15:41:51 UTC
*** Bug 317087 has been marked as a duplicate of this bug. ***
Comment 10 walmartshopper 2013-04-22 17:47:25 UTC
Affects me too.  I had to stop using kmix and create custom shortcuts that run amixer commands to change the volume, and I'm using veromix or pasystray when I need more control.
Comment 11 Alex Fomenko 2013-05-06 17:40:47 UTC
(In reply to comment #7)
> It seems to be an update related configuration issue.
> http://qdosmsq.dunbar-it.co.uk/blog/2011/11/does-your-volume-control-freeze-
> on-kde/
> This solved the problem for me, without having to disable pulseaudio. 
> Christian Esken's solution may have just rewritten relevant parts of the
> config and made it work again. Try to re-enable pulsaudio and see if it
> still works.

Thanks. It's helped me.
Comment 12 Attilio Scotolati 2013-05-12 22:21:13 UTC
*** This bug has been confirmed by popular vote. ***
Comment 13 Jon Nelson 2013-05-17 01:50:58 UTC
I am experiencing this too.  openSUSE 12.3, KDE 4.10.3.  Is a fix forthcoming?
I also tried the changes suggested by Christian Esken and it seems to have - for now - resolved the issue.
Comment 14 Jekyll Wu 2013-05-17 03:21:56 UTC
*** Bug 319787 has been marked as a duplicate of this bug. ***
Comment 15 Christian Esken 2013-05-21 23:04:26 UTC
Jon, did you read comment 11? Does it fix the problem for you? If not, then try what is written in  comment 4. Please report back once you have tested.
Comment 16 Christoph Feck 2013-07-20 12:20:04 UTC
If you can provide the information requested in comment #15, please add it.
Comment 17 Mladen Milinkovic, Max 2013-07-20 18:13:30 UTC
I had same freezing issue occasionaly.

Inspired by comment #7 I delete all kmix config files like this:
find ~/.kde4 -iname \*kmix\* -exec rm -r \{\} \;
and had no freezes since, hope it helps somebody
Comment 18 Cygni X 2013-08-15 23:02:49 UTC
This issue remains unresolved.
Comment 19 Cygni X 2013-08-24 21:07:21 UTC
This issue is now resolved with KDE 4.11.
Comment 20 Christoph Feck 2013-10-02 23:46:10 UTC
Thanks for the update. Please reopen, if you see the bug with KDE 4.11.x or later again.
Comment 21 Denys 2013-12-31 08:38:27 UTC
So to get rid of this bug I need to upgrade the OS. And every time I install KDE something is broken and needs to be "fixed" by upgrading to the next version. Will this ever end?

Is it really that difficult to patch a bug in the release where the bug is found?

And is writing a GUI for a mixer such a rocket science that bugs like this happen every once in a while (https://bugs.kde.org/show_bug.cgi?id=288675)?
Comment 22 Christian Esken 2014-01-05 19:55:40 UTC
>So to get rid of this bug I need to upgrade the OS. 
No. You can use any KMix version with your current KDE version. if your your Linux distribution ships them. Good distributions do.

> And is writing a GUI for a mixer such a rocket science
Yes. If you are really so smart, then do it yourself. And make sure you support 50 distributions, each for the last 10 versions, and 10 sound serves. And don't forget IRIX and Solaris support!
Comment 23 Denys 2014-01-05 23:34:40 UTC
> No. You can use any KMix version with your current KDE version. if your your Linux distribution ships them. Good distributions do.

Really? Can you name at least one which allows me to use KDE 4.10 apart from kmix which would be taken from 4.11?

> Yes. If you are really so smart, then do it yourself. And make sure you support 50 distributions, each for the last 10 versions, and 10 sound serves. And don't forget IRIX and Solaris support!

Can you find at least one distribution of, say, Linux where KDE just works? No. And it is a very sorry situation. With every passing year Linux is becoming less useful as a desktop OS.