Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retrospect cause kodi to crash during exit in PyObject_GC_UnTrack #24440

Open
6 tasks
obaterspok opened this issue Jan 6, 2024 · 0 comments
Open
6 tasks

Retrospect cause kodi to crash during exit in PyObject_GC_UnTrack #24440

obaterspok opened this issue Jan 6, 2024 · 0 comments
Labels
Component: Python Triage: Needed (managed by bot!) issue that was just created and needs someone looking at it

Comments

@obaterspok
Copy link

obaterspok commented Jan 6, 2024

Bug report

Describe the bug

Here is a clear and concise description of what the problem is:

Starting with an empty .kodi and just adding retrospect causes a crash kodi to crash during exit.
I don't even have to open retrospect which means the retrospect log file is not created. That's why I didn't create the issue in the retrospect repository. (the retrospect plugin work just fine)
I tried using other plugins such as YouTube (without installing retrospekt) and there I don't get a crash.

Please note that I'm using Fedora 39 which has Python 3.12

#0 0x00007f91fd3e92b1 in PyObject_GC_UnTrack () at /lib64/libpython3.12.so.1.0
#1 0x00007f91fd4be140 in module_dealloc () at /lib64/libpython3.12.so.1.0
#2 0x00007f91fd3f9b87 in meth_dealloc () at /lib64/libpython3.12.so.1.0
#3 0x00007f91fd3ec157 in insertdict () at /lib64/libpython3.12.so.1.0
#4 0x00007f91fd44fe60 in _PyModule_ClearDict () at /lib64/libpython3.12.so.1.0
#5 0x00007f91fd4bde94 in finalize_modules () at /lib64/libpython3.12.so.1.0
#6 0x00007f91fd4cb494 in Py_EndInterpreter () at /lib64/libpython3.12.so.1.0
#7 0x0000000001bdb613 in CPythonInvoker::onExecutionDone() ()
#8 0x0000000002ce925b in CLanguageInvokerThread::OnExit() ()

...
2024-01-06 15:18:52.617 T:24491 debug : Thread EventServer 140049538602688 terminating
2024-01-06 15:18:52.696 T:24492 debug : Thread WSDiscoveryListenerUDP 140049530209984 terminating
2024-01-06 15:18:52.697 T:24385 info : CWSDiscoveryListenerUDP::Stop - Stopped
2024-01-06 15:18:52.697 T:24385 debug : NetworkMessage - Waiting for network services to stop
2024-01-06 15:18:52.697 T:24385 info : stopping zeroconf publishing
2024-01-06 15:18:52.698 T:24385 debug : CServiceAddonManager: stopping plugin.video.retrospect.
2024-01-06 15:18:52.698 T:24385 info : CServiceAddonManager: failed to stop plugin.video.retrospect (may have ended)
2024-01-06 15:18:52.698 T:24385 debug : CServiceAddonManager: stopping plugin.video.youtube.
2024-01-06 15:18:52.698 T:24385 debug : CPythonInvoker(1, /home/kodi/.kodi/addons/plugin.video.youtube/resources/lib/startup.py): trigger Monitor abort request
2024-01-06 15:18:52.698 T:24488 debug : [plugin.video.youtube] PlaybackMonitor active threads: ||
2024-01-06 15:18:52.699 T:24488 debug : CPythonInvoker(1, /home/kodi/.kodi/addons/plugin.video.youtube/resources/lib/startup.py): script successfully run
2024-01-06 15:18:52.699 T:24488 debug : onExecutionDone(1, /home/kodi/.kodi/addons/plugin.video.youtube/resources/lib/startup.py)
202

Expected Behavior

Here is a clear and concise description of what was expected to happen:

No crash at exit

Actual Behavior

Well, it crashes during exit

Possible Fix

To Reproduce

Steps to reproduce the behavior:

  1. Use kodi master (or Nexus I believe) with a python 3.12 distro
  2. Install retrospect addon
  3. Open plugin (might need to do it first time if you dont get a crash)
  4. exit

Debuglog

The debuglog can be found here:
https://paste.centos.org/view/f51b3960
crashlog:
https://paste.centos.org/view/c8be7559

Screenshots

Here are some links or screenshots to help explain the problem:

Additional context or screenshots (if appropriate)

Here is some additional context or explanation that might help:

Your Environment

Used Operating system:

  • Android

  • iOS

  • tvOS

  • [x ] Linux

  • macOS

  • Windows

  • Windows UWP

  • Operating system version/name: Fedora 39 with Python 3.12

  • Kodi version: Kodi master as of 2024-01-05 (also tried with Nexus)

  • Retrospect version: 5.7.4

note: Once the issue is made we require you to update it with new information or Kodi versions should that be required.
Team Kodi will consider your problem report however, we will not make any promises the problem will be solved.

@xbmc-gh-bot xbmc-gh-bot bot added the Triage: Needed (managed by bot!) issue that was just created and needs someone looking at it label Jan 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Python Triage: Needed (managed by bot!) issue that was just created and needs someone looking at it
Projects
None yet
Development

No branches or pull requests

2 participants