This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Kodi crashing
Type: crash Stage:
Components: Versions: Python 3.9
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: ajoino, eric.smith, mrpg
Priority: normal Keywords:

Created on 2022-01-21 17:40 by mrpg, last changed 2022-04-11 14:59 by admin.

Messages (7)
msg411164 - (view) Author: Patric Gustavsson (mrpg) Date: 2022-01-21 17:40
Dear Sir/Madam,

I was adviced to submitt an issue here, as the kodi team suggests its a problem with python.

i get this error in my syslog : 

Jan 21 18:19:09 mediapc kernel: [   14.478095] LanguageInvoker[1228]: segfault at 0 ip 00007fe50f704f45 sp 00007fe48d7f84e8 error 4 in libc-2.33.so[7fe50f5ab000+16b000]

Link to thread on Kodi forum : 

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

Best Regards
Patric
msg411169 - (view) Author: Patric Gustavsson (mrpg) Date: 2022-01-21 18:18
EDIT, just upgraded to ubuntu 21.10 and now use python 3.10.0 , same issue.
msg411170 - (view) Author: Eric V. Smith (eric.smith) * (Python committer) Date: 2022-01-21 18:21
Without a way to reproduce this, we won't be able to help you.

Ideally you would provide a python script, which we could run, which shows the problem. It would be best if there were no third party packages involved, but if there are, you should provide instructions on how to set up a virtual environment that includes whatever software you need.
msg411485 - (view) Author: Patric Gustavsson (mrpg) Date: 2022-01-24 15:51
Hi,
Its reproducible, but not very fast or easy :

1 Install Ubuntu 21.04 or 21.10

2 Install kodi 19 from ppa : https://launchpad.net/~team-xbmc/+archive/ubuntu/ppa

3 install aeon nox silvo, and customized the skin and kodi settings

4 install plugins youtube,svtplay,retrospect,formula1,DR TV,iplayer www,netflix,Discovery plus, pvr simple client
msg414610 - (view) Author: Patric Gustavsson (mrpg) Date: 2022-03-06 09:44
any update on this?
can i do something more to help?

BR
Patric
msg414611 - (view) Author: Eric V. Smith (eric.smith) * (Python committer) Date: 2022-03-06 10:15
I don’t have Ubuntu to test on. Plus the steps to reproduce are too much for the average volunteer to work through. I don’t think we’ll be able to help.
msg414612 - (view) Author: Jacob Nilsson (ajoino) Date: 2022-03-06 10:22
From Kodi GH issues, they suspect is related to the work on subinterpreters https://github.com/xbmc/xbmc/issues/19961#issuecomment-1008151611:

"The bulk of this issue is due to how python and it's modules handle sub interpreters.
There are several open python bpos and have been many prs to cpython to handle sub interpreters better, but it's still very much a work in progress.

All C modules are/were being updated to what they call multi phase init, which essentially moves away from static init of members. Sub interpreters can modify these static members which can cause other sub interpreter states to crash horribly.

For the user with the SSL crash running python 3.9, if you go to 3.10, the SSL module was converted to multiphase init, and shouldn't crash in the same manner for that particular module. However not all modules are converted still, so there are still failure points on other modules.

This is a cpython issue, and there's not much we can do but wait for it to be resolved in cpython"
History
Date User Action Args
2022-04-11 14:59:55adminsetgithub: 90619
2022-03-06 10:22:14ajoinosetnosy: + ajoino
messages: + msg414612
2022-03-06 10:15:49eric.smithsetmessages: + msg414611
2022-03-06 09:44:58mrpgsetmessages: + msg414610
2022-01-24 15:51:12mrpgsetstatus: pending -> open

messages: + msg411485
2022-01-22 17:33:07eric.smithsetstatus: open -> pending
2022-01-21 18:21:23eric.smithsetnosy: + eric.smith
messages: + msg411170
2022-01-21 18:18:53mrpgsetmessages: + msg411169
2022-01-21 17:40:00mrpgcreate