elgatito / plugin.video.elementum

Elementum add-on for Kodi. Development of this addon has been stopped!
http://elementum.surge.sh
MIT License
490 stars 160 forks source link

Go native binaries crash on 0.1.105 #1071

Open CaseyBakey opened 1 month ago

CaseyBakey commented 1 month ago

Hello there,

Note: don't trust the string "0.1.104" in the log, it's because I was debugging the crash and did many things linke unpack the 0.1.104 release zip, via ADB, on top of installed 0.1.105 version etc. The 0.1.104 version (and previous ones) is fine.

After (auto)-update to 0.1.105, I got a crash whenever Kodi is started, around 10s after start.

I guess that juste the time elementum need to start...and crash.

Here a little snippet of the crash log, it seem linked to a "lockfile":

10-07 21:23:28.719 8239 0 E Go : panic: runtime error: invalid memory address or nil pointer dereference 10-07 21:23:28.719 8239 0 E Go : [signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x329eff1150] 10-07 21:23:28.719 8239 0 E Go : 10-07 21:23:28.719 8239 0 E Go : goroutine 114 [running]: 10-07 21:23:28.720 8239 0 E Go : github.com/elgatito/elementum/lockfile.(*LockFile).Unlock(...) 10-07 21:23:28.720 8239 0 E Go : /go/src/github.com/elgatito/elementum/lockfile/lockfile.go:83 10-07 21:23:28.720 8239 0 E Go : main.main.func2(0x400042e000?) 10-07 21:23:28.720 8239 0 E Go : /go/src/github.com/elgatito/elementum/main.go:223 +0x180 10-07 21:23:28.720 8239 0 E Go : created by github.com/elgatito/elementum/api.Routes.Shutdown.func12 in goroutine 132 10-07 21:23:28.720 8239 0 E Go : /go/src/github.com/elgatito/elementum/api/misc.go:319 +0xac 10-07 21:23:28.722 8239 0 E Go : runtime: newstack sp=0x321e9cc500 stack=[0x4000544000, 0x4000545000] 10-07 21:23:28.722 8239 0 E Go : morebuf={pc:0x3211edc1b4 sp:0x321e9cc500 lr:0x0} 10-07 21:23:28.723 8239 0 E Go : sched={pc:0x329e7b3814 sp:0x321e9cc500 lr:0x3211edc1b4 ctxt:0x0} 10-07 21:23:28.723 8239 0 E Go : runtime: gp=0x40004261a0, goid=114, gp->status=0x2 10-07 21:23:28.723 8239 0 E Go : runtime: split stack overflow: 0x321e9cc500 < 0x4000544000 10-07 21:23:28.723 8239 0 E Go : fatal error: runtime: split stack overflow 10-07 21:23:28.723 8239 0 E Go : panic during panic

Please find enclosed the ADB logcat of Kodi/elementum crash.

For now, I did roll back to 0.1.104 to be able to use Kodi.

kodi_crash.log

elgatito commented 1 month ago

@CaseyBakey Can you try to use version 0.1.106?

antonsoroko commented 1 month ago

I tested update from 104 to 106 in android. Unfortunately the issue is in 104 (and 105) version itself, so it will always crash on stop, which is needed for update.

Solution is: Disable elementum , then update it to version 106 via repository, then enable it.

Or uninstall with keeping configs (after uninstall there will be dialog asking about configs) and install again.