Bug 354290 - org.freedesktop.DBus.Error.AccessDenied from /org/freedesktop/ConsoleKit/Manager CanStop causes KDisplayManager::canShutdown to hang until timeout
Summary: org.freedesktop.DBus.Error.AccessDenied from /org/freedesktop/ConsoleKit/Mana...
Status: RESOLVED WORKSFORME
Alias: None
Product: ksmserver
Classification: Unmaintained
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Lubos Lunak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-24 04:24 UTC by Luke-Jr
Modified: 2022-11-16 05:17 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Luke-Jr 2015-10-24 04:24:15 UTC
at libkworkspace-4.11.19/libs/kworkspace/kdisplaymanager.cpp:493
493         QDBusReply<bool> canStop = CKManager().call(QLatin1String("CanStop"));

This hangs for about 25 seconds before returning a  non-isValid() QDBusReply.

Manually calling the same method with qdbus org.kde.ksmserver /KSMServer canShutdown immediately returns:

Error: org.freedesktop.DBus.Error.NoReply
Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

(I don't know or really care why ConsoleKit returns this way, but it shouldn't cause canShutdown to hang.)

Note: canShutdown blocks on every attempt to open the K-menu.

Reproducible: Always

Steps to Reproduce:
Click KDE icon in panel


Actual Results:  
Plasma and ksmserver both freeze for 25 seconds


Expected Results:  
Immediately continued on
Comment 1 Luke-Jr 2015-10-24 04:25:18 UTC
Oops, but the wrong qdbus command above. This is the one that returns immediately:

$ qdbus --system org.freedesktop.ConsoleKit /org/freedesktop/ConsoleKit/Manager CanStop
Error: org.freedesktop.DBus.Error.AccessDenied
Rejected send message, 5 matched rules; type="method_call", sender=":1.2524" (uid=1000 pid=31770 comm="/usr/lib/qt4/bin/qdbus --system org.freedesktop.Co") interface="(unset)" member="CanStop" error name="(unset)" requested_reply="0" destination="org.freedesktop.ConsoleKit" (uid=0 pid=1897 comm="/usr/sbin/console-kit-daemon --no-daemon ")
Comment 2 Justin Zobel 2022-10-17 22:53:37 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 3 Bug Janitor Service 2022-11-01 05:05:57 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 4 Bug Janitor Service 2022-11-16 05:17:30 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!