CastagnaIT / plugin.video.netflix

InputStream based Netflix plugin for Kodi
MIT License
1.89k stars 258 forks source link

[Omega] Cannot terminate kodi when addon is enabled #1697

Closed rien333 closed 1 month ago

rien333 commented 2 months ago

Netflix add-on version

1.23.3

Operative systems used

Linux (Ubuntu / Mint / ...)

Kodi version used

Other (specify in description)

Description of the bug

I've encountered a strange issue after upgrading to Omega (kodi v21).

If I have the netflix addon enabled, and quit kodi from the UI (or by issuing /bin/kodi-send -a "ShutDown()"), kodi fails to exit. At that point, my only way of killing kodi is by sending it an killall -9.

The same thing happens when I run the kodi binary directly, and then type Ctrl-c . It almost exits (in the sense that it tears down the UI), but the process keeps running nonetheless, at least until I quit it forcefully.

Steps to reproduce the behavior

  1. Enable this addon
  2. Quit kodi from the UI/remote app/terminal

Debug log - mandatory

https://paste.kodi.tv/ruzopesesi.kodi

Possible fix

No response

Additional context

It should be emphasized that this behavior did not occur with nexus. Moreover, I've noticed that enabling a select group of other addons (notably, the Twitch and youtube addons) leads to the exact same problem. Related issue: https://github.com/anxdpanic/plugin.video.youtube/issues/738

I'm 100% sure this problem only occurs when this is the only addon enabled (Together, of course, with its dependencies, such as inputstream adaptive. I cannot reproduce the issue with only inputstream adaptive enabled.)

Reports from the forum indicate that addons can sometimes cause these types of issues. Just some examples:

https://forum.kodi.tv/showthread.php?tid=358820 https://forum.kodi.tv/showthread.php?tid=288333

Screenshots

No response

rien333 commented 1 month ago

Confirmed this as a python issue. If apply https://github.com/python/cpython/pull/118618, everything works fine again.