Slackware 15.0 and KODI crashing
Greetings.
I have KODI Matrix compiled and running on a few Slackware64 15.0 machines. It's not very stable though and segfaults frequently while trying to do simple things like exiting a menu or getting a list of files to play. The issue seems to be Python 3.9, as if I uninstall 3.9, install the python3-3.8.6-x86_64-2.txz package, and then recompile KODI, it is then very stable. I use my own script to compile, but I've also tried compiling KODI using the SlackBuild file, and installing KODI via Flatpak, but the same instability occurs with Python 3.9. So I was wondering two things. 1) Is there a way to get a list of all packages that are dependant on Python 3.9, so that I can uninstall and recompile them to use Python 3.8? -OR- 2) Am I able to compile and install Python 3.8 under say /usr/local and then tell KODI to use that when building? (I can't seem to find an option in the KODI build process to do so.) Thanks in advance. |
Quote:
Code:
grep python3\\.9 /var/lib/pkgtools/packages/ | cut -d/ -f5 | cut -d: -f1 | uniq Quote:
Code:
-DPYTHON_VERSION=${PYTHON_VERSION} Out of curiosity, have you found any consistent way to make kodi crash? I am the one who updated the SBo SlackBuild to build 19.4 and I didn't see any crashes when I was testing it after building, but I haven't migrated my htpc to 15.0 yet to run it full-time. I'd be interested in trying to track down the culprit and see if we can get a fix integrated into the SlackBuild. |
Quote:
Code:
PYTHON_EXECUTABLE:FILEPATH=/usr/bin/python3 Code:
-DPYTHON_EXECUTABLE:FILEPATH=/usr/bin/python38 Quote:
|
Quote:
Like you, I got crashes when exiting the addon. I then tried installing inputstream.adaptive and its dependency and still had a crash. I then went in and enabled debugging in the settings to hopefully get more from the log (because I have no idea what to do with the backtrace included with the crashlog and the non-debug log wasn't helpful) and now I can't get it to crash again. It seems to be stable and solid when using the YouTube addon and exiting back to the main kodi screen. Weird! Do you happen to have links for the other bug reports with this? I'd be interested to see if any of them led to a patch that I could apply to prevent it from happening in the first place. |
Quote:
Quote:
The good news is that the new build options seem to be working... KODI is back to being stable on one machine I tested it on. Will try the same thing on my other machines and do more thorough testing tomorrow. |
Shoot, well, I have been able to consistently get it to crash with using the search and trying to remove that search entry. I also found it crashed after playing a Netflix show, so it doesn't seem to be related to just the YouTube addon.
I'll be playing around with this some more tomorrow (it's getting late) and see if I can get a bug report submitted to the kodi devs (which from reading a few other reports, sounds like it might actually be a cpython issue). I might have to try a nightly build to see if it's occurring with the eventual v20. I don't think it'd be good to include python3.8 with the kodi package on SBo, so we'll need to figure out a way forward. |
Glad that you were able to reproduce it consistently, and hopefully the devs will be able to solve it. In the meantime, my further testing with both Python 3.8 for KODI and 3.9 installed for everything else has gone well, with only one crash when exiting the YouTube addon back to the main menu. A while back I did try building Nexus but had the same instability-not sure if it would be any better now.
Wondering if anybody would have the SlackBuild source files for the 3.8 build? I was able to get the last packaged version of 3.8 from the Slackware UK Cumulative archive, but all of my Google and archive.org searches for the 3.8 source files have turned up empty. I tried using the 3.9 SlackBuild, but there are patches that fail to apply with the 3.8 code. Would like to upgrade my 3.8.6 package to 3.8.13. |
Quote:
Quote:
|
Quote:
Keep me posted about your bug tracking. |
Quote:
|
Quote:
Have you tried python 3.9.13? I found this comment https://github.com/xbmc/xbmc/issues/...ent-1153126673 that implies it fixes the issue and is something the LibreElec devs found. Compiled and installed the python3 source for 3.9.13 from -current and I haven't been able to get it to crash yet. |
Quote:
Please link me to the slackbuild and the source. Thanks and sorry. |
Quote:
Code:
mkdir python3 |
I'll have to check if that newer python fixes it on my system. I tried installing a python3.8 next to the system python3.9 and I went down a rabbit hole of missing dependencies from python that I needed to force a python3.8 build within the SlackBuild scripts (and keep the existing python3.9 to not break system apps) and then upgrade those packages. I lost my patience after like 10 or 15 packages and still having build failures of kodi.
|
I can confirm that Python3 3.9.13 does seem to fix the crashing problems I was having.
fourtysixandtwo beat me to it. I was going to post a tutorial on how to do the upgrade after I had done some testing, but my power went out for a couple of hours today so I didn't get time to finish until now. I think though that the lftp "mirror" command will create the subdirectory locally when transferring files, so you may end up with python3/python3. Not a big deal though. I'm guessing this or a future version of 3.9 will appear in Slack 15.0 eventually once a security patch becomes necessary, as 3.9.10 was the original version released with 15.0, and the patches directory currently contains 3.9.12. |
All times are GMT -5. The time now is 09:56 AM. |