Bug 285646 - knotify4 blocks sound when a program was executed as root before
Summary: knotify4 blocks sound when a program was executed as root before
Status: RESOLVED WORKSFORME
Alias: None
Product: kdelibs
Classification: Unmaintained
Component: knotify (show other bugs)
Version: 4.7
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Olivier Goffart
URL:
Keywords:
: 289758 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-11-03 12:52 UTC by Johann Bergles
Modified: 2022-11-16 05:16 UTC (History)
2 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 Johann Bergles 2011-11-03 12:52:10 UTC
Version:           4.7 (using KDE 4.7.2) 
OS:                Linux

Just tested the following :

Executed dolphin "kdesudo dolphin" click on any item for delete - it takes soumd time for playback "ding" click cancel and end dolphin.

Now not any program started with "user" rights can play sound anymore.

PusleAudio says always "[alsa-sink] alsa-sink.c: Error opening PCM device front:0: Das Gerät oder die Ressource ist belegt"

When looking in a console window the following program still runs even that dolphin (or any other root program) was closed.

/dev/snd/pcmC0D0p:   root      13196 F...m knotify4
/dev/snd/timer:      root      13196 f.... knotify4

If the "root" instance of "knotify4" is killed , sound playback as per user works correctly again.

Also this bug prevents system shutdown from the KApplication Luncer (Desktop became darker but system fails to shutdown).






Reproducible: Always

Steps to Reproduce:
start any KDE program that play sound with root rights (e.g. Dolphin).
let the program play a sound (E.g. Dolphin click on "delete "a file)
Close the program.

Sound does now not work anymore for all users except root (busy).





Actual Results:  
No sound since knotif4 is started for user "root".


Expected Results:  
knotify4 for user "root" should be closed when no "root" program is running anymore.
Comment 1 Christoph Feck 2011-11-07 15:11:27 UTC
Does it release the lock automatically after 5 minutes of sound inactivity?
Comment 2 Johann Bergles 2011-11-21 19:26:05 UTC
no , it does not release sound even not after a few hours.

knotify4 process for user root is still running, even when the caller "root" program is closed.
Comment 3 Christoph Feck 2011-12-25 15:19:41 UTC
*** Bug 289758 has been marked as a duplicate of this bug. ***
Comment 4 Christoph Feck 2011-12-25 15:21:07 UTC
This may be related to pulseaudio. Are you using this configuration?
Comment 5 Eugene 2012-01-15 15:48:06 UTC
If I push the Daemon's Logs button in KSystemlog, after that no sound working in, for example, any player.
Comment 6 Eugene 2015-09-24 08:12:13 UTC
works for me
Comment 7 Justin Zobel 2022-10-17 00:40:53 UTC
Thank you for reporting this bug in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "CONFIRMED" when replying. Thank you!
Comment 8 Bug Janitor Service 2022-11-01 05:04:36 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 9 Bug Janitor Service 2022-11-16 05:16:03 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!