super-productivity icon indicating copy to clipboard operation
super-productivity copied to clipboard

App preventing logout or shutdown

Open kaibrune opened this issue 2 years ago • 2 comments

Discussed in https://github.com/johannesjo/super-productivity/discussions/2083

Originally posted by kaibrune May 20, 2022 Hi togehter, another thing I noticed is that the app hinders the shutdown or logout process on macOS Catalina and above. Somehow the system is not able to force quit the app, so the shutdown or logout process is not able to proceed. But weirdly there is no error from macOS which shows that one app is preventing the shutdown. Any else noticed this problem? Solution is to force quit the app via CMD+Q manually, then the shutdown or logout is working fine.

kaibrune avatar Jun 05 '22 14:06 kaibrune

Thank you very much for opening up this issue! I am currently a bit overwhelmed by the many requests that arrive each week, so please forgive me, if I fail to respond personally. I am still very likely to at least skim read your request and I'll probably try to fix all (real) bugs if possible and I will likely review every single PR being made (please, give me a heads up if you intent to do so) and I will try to work on popular requests (please upvote via thumbs up on the original issue) whenever possible, but trying to respond to every single issue over the last years has been kind of draining and I need to adjust my approach for this project to remain fun for me and to make any progress with actually coding new stuff. Thanks for your understanding!

github-actions[bot] avatar Jun 05 '22 14:06 github-actions[bot]

shutdown_blocker

kaibrune avatar Aug 10 '22 11:08 kaibrune

This issue has not received any updates in 90 days. Please comment, if this still relevant!

github-actions[bot] avatar Dec 09 '22 02:12 github-actions[bot]

I have recently picked up SuperProductivity as my main tool for time tracking and I do love it. However, I have had several cases of unresponsive shutdown procedures. This time I could track it down a bit and realized that indeed SuperProductivity is the cause of this. The console (Dmesg?) reads:

[169448.585724] systemd-shutdown[1]: Waiting for process: 4981 (superproducti)
[169528.586039] systemd-shutdown[1]: Sending SIGKILL to remaining processes...
[169528.591399] systemd-shutdown[1]: Sending SIGKILL to PID 4981 (superproducti).
[169538.593322] systemd-shutdown[1]: Waiting for process: 4981 (superproducti)

Presumably, this cycles but I did not wait long enough but forcefully shut the machine down.

This all happens with SuperProductivity 7.13.2 installed from the Snap store on Kubuntu 23.04 and Linux kernel 6.2.0-27-generic. Let me know if I can help with troubleshooting in any ways. And many thanks @johannesjo for this great app!

sm8ps avatar Aug 25 '23 06:08 sm8ps

Thanks for the input @sm8ps ! These things are hard to debug and I suspect this has not much to do with the app code itself, but with electron. Hopefully an update there will help.

johannesjo avatar Aug 25 '23 09:08 johannesjo

Thank you for the quick response and the insight, @johannesjo! Say, do I need to get active myself as a user in order to upgrade electron or is this taken care of by the SuperProductivity app itself? I have no(de) idea of the whole JS-ecosystem.

sm8ps avatar Aug 27 '23 10:08 sm8ps

No, there is nothing to be done on your behalf. I will make a new release with a new electron version soon. Hopefully this will fix it.

johannesjo avatar Sep 01 '23 13:09 johannesjo

Great! I am looking forward to a new version and shall report on my tests about this issue here.

sm8ps avatar Sep 02 '23 05:09 sm8ps

This issue has not received any updates in 90 days. Please comment, if this still relevant!

github-actions[bot] avatar Jan 01 '24 01:01 github-actions[bot]