Solved Kodi doesn't answer (hangs)
#1
I launched Kodi 19.0 on Ubuntu 20.04.1, selected a movie, pressed I (Info), pressed S (Shut down).
Kodi doesn't answer (hangs).
"kill <pid>" doesn't work.
Only "kill -9 <pid>" can kill Kodi.

https://pastebin.com/i5ECdL7A
Ubuntu 22.04, Linux desktop 5.15.0-57-generic #63-Ubuntu SMP Thu Nov 24 13:43:17 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Kodi (20.1 (20.1.0) Git:20230312-289ec664e3). Platform: Linux x86 64-bit
Sony Android TV, Kodi 20.1
Reply
#2
2021-02-26 17:50:42.938 T:98983 INFO <general>: Disabled debug logging due to GUI setting. Level 0.
Debugging was unfortunately not enabled. Please do so, restart Kodi, and (re)produce the error(s) if possible.

2021-02-26 17:50:42.965 T:98983 INFO <general>: CAddonMgr::FindAddons: repository.yellowdragon v17.7 installed
This repository was last updated some 4 years ago. It may no longer be useful now that Python-3 has arrived.

2021-02-26 17:50:42.965 T:98983 INFO <general>: CAddonMgr::FindAddons: repository.gomioa v0.1.0 installed
This repository was last updated at least 5 years ago.

Perhaps a spring-cleaning is in order. Smile
Reply
#3
(2021-02-26, 19:50)Klojum Wrote: 2021-02-26 17:50:42.938 T:98983 INFO <general>: Disabled debug logging due to GUI setting. Level 0.
Debugging was unfortunately not enabled. Please do so, restart Kodi, and (re)produce the error(s) if possible.
Sorry, this is my mistake.
I tried it 3 times without hangs (with debug log) :-)
I will try further.
Ubuntu 22.04, Linux desktop 5.15.0-57-generic #63-Ubuntu SMP Thu Nov 24 13:43:17 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Kodi (20.1 (20.1.0) Git:20230312-289ec664e3). Platform: Linux x86 64-bit
Sony Android TV, Kodi 20.1
Reply
#4
FYI, debugging can also be enabled via the advancedsettings.xml file.
Reply
#5
(2021-02-26, 20:09)Klojum Wrote: FYI, debugging can also be enabled via the advancedsettings.xml file.
Thanks I know.
Since I cannot reproduce the error,
I propose to close the case.
Ubuntu 22.04, Linux desktop 5.15.0-57-generic #63-Ubuntu SMP Thu Nov 24 13:43:17 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Kodi (20.1 (20.1.0) Git:20230312-289ec664e3). Platform: Linux x86 64-bit
Sony Android TV, Kodi 20.1
Reply
#6
Mystic.

I ran Kodi 19.0 on Sony Android TV twice:
the movie plays without sound and
Kodi does not respond (hangs) on shutdown.

I turned on debug recording and started Kodi 3 times:
the movie is played with sound and without freezes.
Ubuntu 22.04, Linux desktop 5.15.0-57-generic #63-Ubuntu SMP Thu Nov 24 13:43:17 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Kodi (20.1 (20.1.0) Git:20230312-289ec664e3). Platform: Linux x86 64-bit
Sony Android TV, Kodi 20.1
Reply
#7
Mr. Spock would say: "Fascinating!" Eek
Reply
#8
(2021-02-26, 17:31)ray1112 Wrote: "kill <pid>" doesn't work.
Only "kill -9 <pid>" can kill Kodi.
If you only tried SIGTERM and SIGKILL... how do you know only 9 works?

(by the way, it's not "kill kodi", it's "stopping the kodi process")
Reply
#9
(2021-03-14, 13:14)Preacher Wrote:
(2021-02-26, 17:31)ray1112 Wrote: "kill <pid>" doesn't work.
Only "kill -9 <pid>" can kill Kodi.
If you only tried SIGTERM and SIGKILL... how do you know only 9 works?

(by the way, it's not "kill kodi", it's "stopping the kodi process")
It is not my purpose to try all the kill signals.
My goal is to close kodi with the Shutdown (S) command.
I found a solution: enable debugging in advancedsettings.xml :-)
Ubuntu 22.04, Linux desktop 5.15.0-57-generic #63-Ubuntu SMP Thu Nov 24 13:43:17 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Kodi (20.1 (20.1.0) Git:20230312-289ec664e3). Platform: Linux x86 64-bit
Sony Android TV, Kodi 20.1
Reply
#10
(2021-03-16, 13:05)ray1112 Wrote: It is not my purpose to try all the kill signals.
My goal is to close kodi with the Shutdown (S) command.
You're missing the point.  Let me rephrase this:

You: "when my computer freezes, I reach around the back and pull the cable hard, yanking it forcibly out of the socket and cutting power to everything.  This is the only way that works."
Me: "That's a pretty drastic way of doing it.  How do you know that's the only way?  Have you tried the power switch around the back instead? Or the power button on the front? Or ALT+BREAK?"
You: "It is not my purpose to try different approaches.  My goal is to power the machine off"

Hence... "close kodi with the Shutdown (S) command" isn't what you're doing - "stopping the process dead using the kill command" IS.  Although this method definitely works, it can have side effects (as you're stopping a process from exiting cleanly).

Take a look at "kodi-send" as this can send messages to the Kodi service (I send a "reset" when Kodi snarls up).  I have an alias for "sudo /bin/systemctl restart kodi.service" if kodi has become responsive, so that the OS handles a cleaner service restart.
Reply

Logout Mark Read Team Forum Stats Members Help
Kodi doesn't answer (hangs)0