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

crash on open , kodi for debian version (20) in ubuntu 24.04 #1051

Open
atomsk81 opened this issue Jun 21, 2024 · 8 comments
Open

crash on open , kodi for debian version (20) in ubuntu 24.04 #1051

atomsk81 opened this issue Jun 21, 2024 · 8 comments

Comments

@atomsk81
Copy link

atomsk81 commented Jun 21, 2024

elementum and elementum burst appear to be installing OK but upon startup of kodi I get the following in logs
i get:

2024-06-21 09:07:10.929 T:54091 error : ----------------------------------------
2024-06-21 09:07:10.929 T:54091 error :
2024-06-21 09:07:10.929 T:54091 error : Exception occurred during processing of request from
2024-06-21 09:07:10.929 T:54091 error :
2024-06-21 09:07:10.929 T:54091 error : ('127.0.0.1', 36194)
2024-06-21 09:07:10.929 T:54091 error :
2024-06-21 09:07:10.930 T:54006 warning : [plugin.video.elementum] INFO main ▶ func8 Updating Kodi add-on repositories...
2024-06-21 09:07:10.931 T:54091 error : Traceback (most recent call last):
2024-06-21 09:07:10.931 T:54091 error :
2024-06-21 09:07:10.952 T:54091 error : File "/usr/lib/python3.12/socketserver.py", line 692, in process_request_thread
self.finish_request(request, client_address)
2024-06-21 09:07:10.953 T:54091 error :
2024-06-21 09:07:10.953 T:54091 error : File "/usr/lib/python3.12/socketserver.py", line 362, in finish_request
self.RequestHandlerClass(request, client_address, self)
2024-06-21 09:07:10.953 T:54091 error :
2024-06-21 09:07:10.953 T:54091 error : File "/usr/lib/python3.12/socketserver.py", line 761, in init
self.handle()
2024-06-21 09:07:10.953 T:54091 error :
2024-06-21 09:07:10.953 T:54091 error : File "/usr/lib/python3.12/http/server.py", line 438, in handle
self.handle_one_request()
2024-06-21 09:07:10.953 T:54091 error :
2024-06-21 09:07:10.953 T:54091 error : File "/usr/lib/python3.12/http/server.py", line 404, in handle_one_request
self.raw_requestline = self.rfile.readline(65537)
^^^^^^^^^^^^^^^^^^^^^^^^^
2024-06-21 09:07:10.953 T:54091 error :
2024-06-21 09:07:10.953 T:54091 error : File "/usr/lib/python3.12/socket.py", line 707, in readinto
return self._sock.recv_into(b)
^^^^^^^^^^^^^^^^^^^^^^^
2024-06-21 09:07:10.953 T:54091 error :
2024-06-21 09:07:10.953 T:54091 error : ConnectionResetError: [Errno 104] Connection reset by peer
2024-06-21 09:07:10.953 T:54091 error :
2024-06-21 09:07:10.953 T:54091 error : ----------------------------------------
2024-06-21 09:07:10.953 T:54091 error :

also when i try to start elementum kodi freezes and then crashes. Last logged event is

info <general>: Loading skin file: MyVideoNav.xml, load type: KEEP_IN_MEMORY
i don't see any other errors

@antonsoroko
Copy link

@atomsk81

not sure that this is elementum issue since nothing in your log indicate that.
try to make proper debug log - guide was in issue template. maybe then we will see more info.

i also use Ubuntu 24.04 and their kodi has nasty bug - see https://bugs.launchpad.net/ubuntu/+source/kodi/+bug/2063358
so i had to apply patch and recompile it, see my guide in that issue.

with patched kodi version - elementum works fine.

@elgatito
Copy link
Owner

@antonsoroko
Copy link

@elgatito yeah, sad situation. i guess people use flatpak version on ubuntu 24.04.
i have both - flatpak version works unstable with elementum, b/c elementun is a separate process and sometimes flatpak cage/container kills it on very start.

@i300220
Copy link

i300220 commented Aug 12, 2024

@elgatito Hi,

Just wondering whether elementum could be more stable with Kodi flatpak version?

I have Fedora 40 with Kodi 21 and the dreaded python 3.12 therefore I had no choice but to delete the F40 Kodi instance and install Flatpak's. Kodi crashes like 10 times a day, usually when starting, sometimes after playing a video, elementum not always starting, elementum timing out, elementun stopping reporting download progress, elementum randomly updating trakt history, etc. The list of issues is endless and there is absolutely nothing useful in the crashlog

When I disable elementum + burst, Kodi is stable again. I only enable them when I require them. Annoying workaround.

I also have elementum installed on Win 7 and Kodi 20.5 and it's rock stable however it's sad to have to switch to window only to use Kodi+elementum

Thanks for all that amazing work you've done on it. It's the most useful addon I've ever seen because it does find the HD versions of tv/movies whereas scrapers usually find the smaller (in size) ones.

Best!

@antonsoroko
Copy link

@i300220 from what you described i would make a guess that flatpak jail for kodi is configured to kill all unnecessary processes (like elementum) leaving only kodi process. but i am not flatpak expert and i do not see anything suspicious in their code for kodi container - https://github.com/flathub/tv.kodi.Kodi/tree/master

If there was crash - there should be crash log in ${XDG_DATA_HOME} (e.g. kodi_crashlog-20240723_222243.log) - you can post it #1058, maybe it will help to identify the issue.

@i300220
Copy link

i300220 commented Sep 17, 2024

Hi,

I appreciate your analysis. I will provide more info.

Unfortunately, crashlogs are totally useless in the flatpak version, they are merely copies of kodi.log. Sorry. One would have to compile kodi flatpak with debug information to achieve anything meaningful.

Workaround. I disable elementum and re-enable it whenever I need it, e.g. once a week, then re-disable it afterwards. The main thing is not let it to start with Kodi. I can live with that. And I stick to kernel 6.8.7.

Additionally, there is a VRAM (amdgpu) linux kernel bug mentioned in https://gitlab.freedesktop.org/drm/amd/-/issues/3599 and flathub/tv.kodi.Kodi#292 resulting in Kodi crashing whenever one plays a video. Kernel versions after 6.8.7 are prone to this, particularly the whole 6.10 branch.

@antonsoroko
Copy link

antonsoroko commented Sep 17, 2024

@i300220 please try with
Elementum > Settings > Advanced > "Force start as library" toggled

This feature was created specifically for new androids where new Kodi (complied with new android sdk) was not permitted to run binaries.
As I have seen it works a bit less stable than separate process, but stable enough.
It should fix issue when flatpak kills Elementum (since there is no process, Elementum is injected into Kodi process).

@antonsoroko
Copy link

antonsoroko commented Sep 19, 2024

@i300220 do not try it :-) it is very unstable, so it is not a solution.
Anyway, for flatpak related issues see #1058


This issue is about debian version 20 with python 3.12.
The solution for it was described above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants