plugin.video.elementum icon indicating copy to clipboard operation
plugin.video.elementum copied to clipboard

Kodi Crash!! In my POCO X6 pro

Open 0ppp9 opened this issue 1 year ago • 13 comments

When I try to open a torrent my Kodi simply crash and return to android I tried the 0.1.103

Expected Behavior

The torrent should open fine

Current Behavior

The Kodi crashes when it tries to open the torrent

Possible Solution

Steps to Reproduce (for bugs)

  1. Search for any torrent
  2. Open
  3. Select any to open
  4. When it tries to open torrent it crashes Kodi and return to android

Context

Unable to use elementum on my POCO X6 pro

Your Environment

  • Version used:
  • 0.1.103
  • Environment name and version:
  • Kodi 21.0.1
  • Operating System and version:

Android 14

  • Link to Kodi debug log:

0ppp9 avatar May 17 '24 20:05 0ppp9

no debug log - no help. link to guide how to create a proper debug log was in issue template. since kodi crashes you would need to use second approach from guide to "take" the log.

antonsoroko avatar May 20 '24 10:05 antonsoroko

Same happens to me with Redmi Note 13 and same versiones of kodi and elementum. Proved with arm64 and arm versions of elementum. Have you get It to work finally?.

velow avatar Jun 24 '24 16:06 velow

Just checked - works good with "normal" Android 14 (Google Pixel 6a) and 15.

Poco is a sub-brand of Xiaomi. Both of them use "modified" version of Android, so those phones might have some "enhancements" like "antivirus" or similar. Try to disable them for Kodi.

And again, impossible to say anything without properly created debug log file.

antonsoroko avatar Jun 26 '24 11:06 antonsoroko

@velow @0ppp9 provide full Kodi log to see what is executed and how.

elgatito avatar Jun 26 '24 15:06 elgatito

@velow @0ppp9 Please, provide proper log file.

elgatito avatar Jul 18 '24 15:07 elgatito

Me crash too with poco f5,torrent is buffering a moment but crash a few moments later

KaaaooS avatar Jul 20 '24 16:07 KaaaooS

@elgatito kodi.log

KaaaooS avatar Jul 20 '24 16:07 KaaaooS

@KaaaooS You provided a log where Elementum started and later gracefully stopped. There is no crash.

elgatito avatar Jul 23 '24 15:07 elgatito

Sorry, watch this log @elgatito kodi.log

KaaaooS avatar Jul 23 '24 17:07 KaaaooS

@KaaaooS Last line in the log saying that Elementum is starting download. What happens next? Kodi is crashing? Elementum is crashing? There are still no errors in the log.

elgatito avatar Jul 24 '24 14:07 elgatito

@KaaaooS Last line in the log saying that Elementum is starting download. What happens next? Kodi is crashing? Elementum is crashing? There are still no errors in the log.

Kodi crash

KaaaooS avatar Jul 24 '24 14:07 KaaaooS

Has anyone found a solution?

ricky4392 avatar Aug 07 '24 19:08 ricky4392

Has anyone found a solution?

For my part,nothing

KaaaooS avatar Aug 07 '24 19:08 KaaaooS

Image

C7f12cbzombie69 avatar Jul 21 '25 09:07 C7f12cbzombie69

@C7f12cbzombie69 the only advice at the moment is to disable POCO "security things" (sinсe elementum works on standard android 15): See https://github.com/elgatito/plugin.video.elementum/issues/1045#issuecomment-2191481975

antonsoroko avatar Jul 21 '25 14:07 antonsoroko

@C7f12cbzombie69 the only advice at the moment is to disable POCO "security things" (sinсe elementum works on standard android 15): #1045 (comment)

Hi! And what is "thing" do you mean i should be disable? 🤔

C7f12cbzombie69 avatar Jul 21 '25 14:07 C7f12cbzombie69

@C7f12cbzombie69 See the comment I linked:

Poco is a sub-brand of Xiaomi. Both of them use "modified" version of Android, so those phones might have some "enhancements" like "antivirus" or similar. Try to disable them for Kodi.

I don't have such device to test so it's up to you to find out what is causing this issue.

If you will identify what application or setting kills Kodi - please write here - other users will be grateful.

antonsoroko avatar Jul 21 '25 14:07 antonsoroko

@C7f12cbzombie69 See the comment I linked:

Poco is a sub-brand of Xiaomi. Both of them use "modified" version of Android, so those phones might have some "enhancements" like "antivirus" or similar. Try to disable them for Kodi.

I don't have such device to test so it's up to you to find out what is causing this issue.

If you will identify what application or setting kills Kodi - please write here - other users will be grateful.

Plugin Torrserve just work fine with kodi. But thanks, i will try to do something...

C7f12cbzombie69 avatar Jul 21 '25 14:07 C7f12cbzombie69

@C7f12cbzombie69 a bit strange to compare torrserver and elementum. but anyway: to use Torrserve addon (which is just a python code) you still need to run Torrserver binary separately, outside of Kodi, in case of android - as separate android application. elementum also consists of is 2 parts: python addon and binary. but we run both parts inside of Kodi, unlike Torrserver, so you do not need to install a separate app. This also means that on Windows or other OS - you still do not need to install some separate application, unlike with torrserver.

Anyway, there was a hack when people run elementum outside of Kodi as a separate app: https://github.com/StefanIlchev/ElementumService

(so it probably will work on aggressive android environments, like xiaomi/poco/etc)

try it.

for history - https://github.com/elgatito/plugin.video.elementum/issues/669#issuecomment-942653472

antonsoroko avatar Jul 21 '25 15:07 antonsoroko

@C7f12cbzombie69 a bit strange to compare torrserver and elementum. but anyway: to use Torrserve addon (which is just a python code) you still need to run Torrserver binary separately, outside of Kodi, in case of android - as separate android application. elementum also consists of is 2 parts: python addon and binary. but we run both parts inside of Kodi, unlike Torrserver, so you do not need to install a separate app. This also means that on Windows or other OS - you still do not need to install some separate application, unlike with torrserver.

Anyway, there was a hack when people run elementum outside of Kodi as a separate app: https://github.com/StefanIlchev/ElementumService

(so it probably will work on aggressive android environments, like xiaomi/poco/etc)

try it.

for history - #669 (comment)

Good day! With Elementun service plugin don't work too. Elementum restart in circle, sometimes with error "Remote end closed connection without response" ... maybe something is killing service

C7f12cbzombie69 avatar Jul 22 '25 09:07 C7f12cbzombie69

@C7f12cbzombie69 hi. I see. you can ask the author of this app about this error in https://github.com/StefanIlchev/ElementumService/issues

Or maybe @StefanIlchev will answer here. Not sure what way is more convenient for him.

BTW, did you give permission to "manage all files" like readme file says?

Also, I think you should allow this service to run in background in android settings (probably in the same section where you allow notifications from app and battery usage, where you can stop app and etc). Most likely this is needed for Xiaomi-like phones and probably for standard android too, so android will not stop service.

antonsoroko avatar Jul 22 '25 10:07 antonsoroko

Yes, i give all permissions to Elementum Service.

C7f12cbzombie69 avatar Jul 22 '25 14:07 C7f12cbzombie69

@C7f12cbzombie69 i see that you created issue in that repo https://github.com/StefanIlchev/ElementumService/issues/29 - good. in a meantime also try

Also, I think you should allow this service to run in background in android settings (probably in the same section where you allow notifications from app and battery usage, where you can stop app and etc).

Something like this

Image

antonsoroko avatar Jul 22 '25 14:07 antonsoroko

Thanks, i already try this.

C7f12cbzombie69 avatar Jul 22 '25 16:07 C7f12cbzombie69

@C7f12cbzombie69 and it did not help?

antonsoroko avatar Jul 22 '25 16:07 antonsoroko

@C7f12cbzombie69 and it did not help?

Yes, it didn't.

C7f12cbzombie69 avatar Jul 22 '25 18:07 C7f12cbzombie69

I see in the provided logs that the binary is loaded in Kodi's process - elementumd: loading shared library from. If that binary does for example a segfault the OS will kill its (Kodi's) process.

According to https://github.com/StefanIlchev/ElementumService/issues/29 when the binary is executed in its own process it keeps stopping. The reason it starts again is probably because I patched a line in resources/site-packages/elementum/navigation.py to restart the service app on ConnectionResetError.

If something like a segfault is happening, Kodi might not be able to log it. System logs might reveal more. https://github.com/StefanIlchev/ElementumService/issues/12 has examples of how one might record them to a file.

StefanIlchev avatar Jul 26 '25 14:07 StefanIlchev