croneter / PlexKodiConnect

Plex integration in Kodi done right
GNU General Public License v2.0
1.16k stars 77 forks source link

Nvidia Shield Android 11 Experience 9: PKC causes Kodi To Crash at startup #1796

Open Thlerry opened 2 years ago

Thlerry commented 2 years ago

Since the last update to 3.6.7 PKC causes Kodi crashes at startup when trying to sync with server. Can this be looked at urgently? How can I disable PKC add-on and revert to the previous version ? (Editing the config files ?) I don't have time to go to the add-on settings and disable it before it crashes.

frakki1986 commented 2 years ago

Hi @croneter Thank you. Let see if they fix it on a future hotfix. Anyway thank you very much for all your help and hard work maintaining this great kodi addon

@croneter I have to jump in here an want to thank you as well for your great plugin. I'm really looking forward to get it going again on the shield side of live. Thank you very much

craZy-C commented 2 years ago

Heads up to All. 9.0.1 has been released but not fixed this issue. I di notice the following on the shield forum and emby forums.

It seems that using kodi addons that need “Python module sqlite3” like “Plex kodi connect” or “Emby for kodi next gen” , which is absolutely necessary to access the different databases, makes kodi to crash randomly on shield 2015 with experience 9 and latest hotfix. I think they may have added 1 or 2 fixes and rolled the previous 3 hotfixes into a release. I beleive you have to enter the hotrficx program again. Until they fix that I think we are dead in the water

craZy-C commented 2 years ago

So has anyone had any success. I keep crashing so am using PLEX app on the shield for now. I cant really be bothered starting from scratch at this point in time.

Thlerry commented 2 years ago

@craZy-C for me all good, still no crash since my last update.

Currently running the following:

Did you end up trying this version ? No need to reinstall. The only thing I did, and would recommend to do is a reset of PKC + Kodi db in the add-on settings which doesn't require much.

craZy-C commented 2 years ago

@Thlerry Thanks for your update. I have not tried the updated kodi build or the reset of Kodi db. Mainly due to it not staying up long enough. I may give this a go on the weekend

Thlerry commented 2 years ago

@Thlerry Thanks for your update. I have not tried the updated kodi build or the reset of Kodi db. Mainly due to it not staying up long enough. I may give this a go on the weekend

Try to do the Kodi update first. If it still crashes after the update, try to remove / add movies in your library temporarily, changing the content might help, and allow you to do the reset then in the PKC settings.

croneter commented 2 years ago

@craZy-C for me all good, still no crash since my last update.

Currently running the following:

Did you end up trying this version ? No need to reinstall. The only thing I did, and would recommend to do is a reset of PKC + Kodi db in the add-on settings which doesn't require much.

Others were successful by deactivating the caching of artwork in the pkc settings under artwork. See https://www.kodinerds.net/index.php/Thread/74625-PlexKodiConnect-läuft-nicht-mehr-unter-9-0-1/?postID=675103#post675103

craZy-C commented 2 years ago

@croneter At work at the moment just remoted in and disabled Artwork caching without any other changes and it has not crashed yet. Will see how it goes.. Cheers to all

rapteev commented 2 years ago

@craZy-C for me all good, still no crash since my last update. Currently running the following:

Did you end up trying this version ? No need to reinstall. The only thing I did, and would recommend to do is a reset of PKC + Kodi db in the add-on settings which doesn't require much.

Others were successful by deactivating the caching of artwork in the pkc settings under artwork. See https://www.kodinerds.net/index.php/Thread/74625-PlexKodiConnect-läuft-nicht-mehr-unter-9-0-1/?postID=675103#post675103

Hi Yeah. It seems that some “bad” fanart causes kodi to crash on nvidia shield exp.9 I tried with a local database and MySQL and some entries cause kodi to crash just by browsing the database on shield. If I remove those items from library , kodi works just fine. The problem is: using PKC connecting to a remote server I don’t know how to do that. 🙂

craZy-C commented 2 years ago

Update, left kodi at current 19.3 shield version with 9.01 + hotfix and current PKC version. Disabled cached additional artwork and rock solid since

Thlerry commented 2 years ago

An update in my side, my library was updated with new movies and PKC started to crash again. I disabled the cached artwork as suggested by many, and it fixed the crash without resetting PKC settings. Seems like a good workaround for now. Couldn't tell really any difference in speed with this option off.

hamakavula commented 2 years ago

Okay, I was searching for a fix and went to great lenghts trying to make it work, but

Nothing worked for me

Kodi keeps crashing (with pkc addon installed) and the Plex-app was also running slow (in fact: everything slowed down after the upgrade), also the ads in the homescreen annoyed the crap out of me.

Fix v9.0.1 didn't help at all when it arrived last january and NVIDIA seems to choose pushing (stupid Disney) ads to us over delevering better user experience. Also contacting customer support gave no reply...

After being patient for far too long I had two options:

  1. Smash device with hammer, with much satisfaction I might add :)
  2. Downgrade to workable version (so before updates from december 2021).

Luckely I chose option 2: Downgrading to 8.2.3 and it works perfectly!! _Now I remember why I bought this amazing device in the first place!! All is well again and playing full-size-4K-HDR-bluray-disk-remuxes over LAN works again!

For anyone interested:

I created I full step-by-step manual, including tools & software on my website https://florisse.nl/shield

I made this, firstly for myself to collect all info found and, because I couldn't find any proper online manual were everything was explained in detail. There were too many different versions in NVIDIA, Android and Bootloader versions, it was a shitton of work figuring out.

Boh1 commented 2 years ago

I too disabled cached artwork and Kodi seems to be stable for now. Thanks for the suggestion!

tuffno commented 2 years ago

I can confirm that I have the same issue. Latest ShieldTV Latest Kodi 19.4 Latest PKC

Works well until I enable caching in PKC. Then it crashes after a few minutes of caching. After that Kodi crashes 15 seconds after launching. If im fast I can disable PKC before Kodi crashes and disable caching.

BSRFD commented 2 years ago

I also wanted to confirm that I am experiencing this issue as well.

Nvidia Shield 9.0.2 + latest hotfix Kodi 19.4 PKC 3.6.12

For about an hour after I first installed it and was setting it up in Kodi, it was perfectly fine. Then it started to crash Kodi almost immediately every time I opened it.

Thanks for the tip about disabling "Cache all artwork for a smooth Kodi experience" in the PKC artwork settings. That stopped the crashing.

From reading this thread, this is obviously not a PKC issue, but Shield. So hopefully it's fixed in a future update.

Kline- commented 2 years ago

Just stumbled on this crash today and also solved it by disabling artwork caching in PKC, specifically <setting id="enableTextureCache">false</setting> in the settings file since I couldn't get Kodi to stay up long enough to change anything through the GUI.

Shield 2017 9.0.2 Kodi 19.4 from the link a few posts above, was crashing on 19.3 and upgraded while reading this thread to troubleshoot PKC 3.6.12

Well after 48 hours I'm back to crashing intermittently instead of on startup. For tonight at least I've given up on trying to figure it out. Things would work fine then 5 minutes into watching something Kodi would crash without any real clues in the debug log. VLC over SMB may not have Kodi's nice UI and Plex sync but at least it's stable enough to watch things.

Spacetech commented 2 years ago

I'm seeing this crash too. The stack trace was available via logcat:

06-11 20:18:09.498  9323  9323 F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
06-11 20:18:09.498  9323  9323 F DEBUG   : Build fingerprint: 'NVIDIA/mdarcy/mdarcy:11/RQ1A.210105.003/7094531_2999.9831:user/release-keys'
06-11 20:18:09.498  9323  9323 F DEBUG   : Revision: '0'
06-11 20:18:09.498  9323  9323 F DEBUG   : ABI: 'arm64'
06-11 20:18:09.499  9323  9323 F DEBUG   : Timestamp: 2022-06-11 20:18:09-0700
06-11 20:18:09.499  9323  9323 F DEBUG   : pid: 8947, tid: 9318, name: Thread-7  >>> org.xbmc.kodi <<<
06-11 20:18:09.499  9323  9323 F DEBUG   : uid: 10006
06-11 20:18:09.499  9323  9323 F DEBUG   : signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0x30bef80000
06-11 20:18:09.500  9323  9323 F DEBUG   :     x0  0000002f59d6c53a  x1  0000002f59d6c95a  x2  000000000000076c  x3  00000030bef7f894
06-11 20:18:09.500  9323  9323 F DEBUG   :     x4  0000000000001f1f  x5  000000007c7df600  x6  000000006bf1d000  x7  0000000000108c26
06-11 20:18:09.500  9323  9323 F DEBUG   :     x8  00000000ffffecff  x9  00000000ffffdac8  x10 0000000000003838  x11 0000000000003838
06-11 20:18:09.500  9323  9323 F DEBUG   :     x12 00000000ffffd0e3  x13 00000000fffff6e4  x14 0000000000000001  x15 0000000000000768
06-11 20:18:09.500  9323  9323 F DEBUG   :     x16 00000000ff00ff00  x17 0000000080020000  x18 00000030bd612000  x19 0000000000000001
06-11 20:18:09.500  9323  9323 F DEBUG   :     x20 0000002ed88d4f20  x21 0000003028d13fa0  x22 00000000000000ee  x23 0000003028d13fa0
06-11 20:18:09.500  9323  9323 F DEBUG   :     x24 00000030bcf50000  x25 0000000000000000  x26 0000003028d17468  x27 0000000000001678
06-11 20:18:09.500  9323  9323 F DEBUG   :     x28 0000000000000000  x29 0000000000001678
06-11 20:18:09.500  9323  9323 F DEBUG   :     lr  00000030a46b78e8  sp  00000030bcf4eeb0  pc  00000030a46625f8  pst 0000000020000000
06-11 20:18:09.538  9323  9323 F DEBUG   : backtrace:
06-11 20:18:09.538  9323  9323 F DEBUG   :       #00 pc 0000000002f015f8  /data/app/~~GipL6Yxlvh3nRdZ7KDYS4w==/org.xbmc.kodi-X4BFdZ0NNAR-ONlD5QgJOg==/lib/arm64/libkodi.so
06-11 20:18:09.538  9323  9323 F DEBUG   :       #01 pc 0000000002f568e4  /data/app/~~GipL6Yxlvh3nRdZ7KDYS4w==/org.xbmc.kodi-X4BFdZ0NNAR-ONlD5QgJOg==/lib/arm64/libkodi.so
06-11 20:18:09.538  9323  9323 F DEBUG   :       #02 pc 0000000002eed1e4  /data/app/~~GipL6Yxlvh3nRdZ7KDYS4w==/org.xbmc.kodi-X4BFdZ0NNAR-ONlD5QgJOg==/lib/arm64/libkodi.so
06-11 20:18:09.538  9323  9323 F DEBUG   :       #03 pc 0000000002eee2c4  /data/app/~~GipL6Yxlvh3nRdZ7KDYS4w==/org.xbmc.kodi-X4BFdZ0NNAR-ONlD5QgJOg==/lib/arm64/libkodi.so (sws_scale+2588)
06-11 20:18:09.538  9323  9323 F DEBUG   :       #04 pc 0000000001211414  /data/app/~~GipL6Yxlvh3nRdZ7KDYS4w==/org.xbmc.kodi-X4BFdZ0NNAR-ONlD5QgJOg==/lib/arm64/libkodi.so (CFFmpegImage::CreateThumbnailFromSurface(unsigned char*, unsigned int, unsigned int, unsigned int, unsigned int, std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > const&, unsigned char*&, unsigned int&)+840)
06-11 20:18:09.538  9323  9323 F DEBUG   :       #05 pc 00000000011bb260  /data/app/~~GipL6Yxlvh3nRdZ7KDYS4w==/org.xbmc.kodi-X4BFdZ0NNAR-ONlD5QgJOg==/lib/arm64/libkodi.so (CPicture::CreateThumbnailFromSurface(unsigned char const*, int, int, int, std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > const&)+256)
06-11 20:18:09.538  9323  9323 F DEBUG   :       #06 pc 00000000011bbcb8  /data/app/~~GipL6Yxlvh3nRdZ7KDYS4w==/org.xbmc.kodi-X4BFdZ0NNAR-ONlD5QgJOg==/lib/arm64/libkodi.so (CPicture::CacheTexture(unsigned char*, unsigned int, unsigned int, unsigned int, int, unsigned int&, unsigned int&, std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > const&, CPictureScalingAlgorithm::Algorithm)+552)
06-11 20:18:09.538  9323  9323 F DEBUG   :       #07 pc 00000000011bba6c  /data/app/~~GipL6Yxlvh3nRdZ7KDYS4w==/org.xbmc.kodi-X4BFdZ0NNAR-ONlD5QgJOg==/lib/arm64/libkodi.so (CPicture::CacheTexture(CTexture*, unsigned int&, unsigned int&, std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > const&, CPictureScalingAlgorithm::Algorithm)+104)
06-11 20:18:09.538  9323  9323 F DEBUG   :       #08 pc 0000000001452d50  /data/app/~~GipL6Yxlvh3nRdZ7KDYS4w==/org.xbmc.kodi-X4BFdZ0NNAR-ONlD5QgJOg==/lib/arm64/libkodi.so (CTextureCacheJob::CacheTexture(CTexture**)+764)
06-11 20:18:09.538  9323  9323 F DEBUG   :       #09 pc 00000000014509a8  /data/app/~~GipL6Yxlvh3nRdZ7KDYS4w==/org.xbmc.kodi-X4BFdZ0NNAR-ONlD5QgJOg==/lib/arm64/libkodi.so (CTextureCache::CacheImage(std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > const&, CTexture**, CTextureDetails*)+516)
06-11 20:18:09.538  9323  9323 F DEBUG   :       #10 pc 000000000142ed4c  /data/app/~~GipL6Yxlvh3nRdZ7KDYS4w==/org.xbmc.kodi-X4BFdZ0NNAR-ONlD5QgJOg==/lib/arm64/libkodi.so (CImageLoader::DoWork()+576)
06-11 20:18:09.538  9323  9323 F DEBUG   :       #11 pc 0000000001111384  /data/app/~~GipL6Yxlvh3nRdZ7KDYS4w==/org.xbmc.kodi-X4BFdZ0NNAR-ONlD5QgJOg==/lib/arm64/libkodi.so (CJobWorker::Process()+188)
06-11 20:18:09.538  9323  9323 F DEBUG   :       #12 pc 00000000011884b4  /data/app/~~GipL6Yxlvh3nRdZ7KDYS4w==/org.xbmc.kodi-X4BFdZ0NNAR-ONlD5QgJOg==/lib/arm64/libkodi.so (CThread::Action()+40)
06-11 20:18:09.538  9323  9323 F DEBUG   :       #13 pc 00000000011887f4  /data/app/~~GipL6Yxlvh3nRdZ7KDYS4w==/org.xbmc.kodi-X4BFdZ0NNAR-ONlD5QgJOg==/lib/arm64/libkodi.so
06-11 20:18:09.538  9323  9323 F DEBUG   :       #14 pc 00000000000afd4c  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+64) (BuildId: 45994aaacbd3639b43f2bde9e3052edc)
06-11 20:18:09.538  9323  9323 F DEBUG   :       #15 pc 0000000000050288  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: 45994aaacbd3639b43f2bde9e3052edc)

It does sound related to image / texture caching.

Spacetech commented 2 years ago

Update on my previous comment - I made a fix in kodi for the crash. I assume the next release of Nexus will include it. Check these for more info: