PlexKodiConnect icon indicating copy to clipboard operation
PlexKodiConnect copied to clipboard

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

Open Thlerry opened this issue 3 years ago β€’ 68 comments

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.

Thlerry avatar Feb 05 '22 10:02 Thlerry

Just some additional comments I have the following config: NVidia Shield Pro 2019 Latest version of Android (NVidia Shield Experience 9 + Hotfix 3) PKC was working fine prior to 3.6.7

Thlerry avatar Feb 05 '22 10:02 Thlerry

One more update, I managed to downgrade to 3.6.6 by disabling ethernet so that the plugin cannot start the sync. I confirm that 3.6.6 doesn't crash and I can use PKC again. So the crash is caused by the last changes in PKC 3.6.7

Thlerry avatar Feb 05 '22 11:02 Thlerry

Kodi is just a pain, this really should not be happening 😞

Please grab a DEBUG log from Kodi with this happening, see https://github.com/croneter/PlexKodiConnect/wiki/How-to-Report-A-Bug

I can't do a thing otherwise without a log file. I know what changed from 3.6.6 to 3.6.7, but this is ALREADY a hack/workaround for Kodi not working like it should.

Anyone else having this problem? Please quickly drop a post

croneter avatar Feb 05 '22 14:02 croneter

https://kodibeginner.com/disable-automatic-updates-add-ons-kodi/

croneter avatar Feb 05 '22 14:02 croneter

Thanks for the quick reply. I'll try to grab some logs with 3.6.7 tomorrow, and provide an update.

Thlerry avatar Feb 05 '22 14:02 Thlerry

kodi.log

See attached kodi logs of the startup followed by crash. I hope this helps.

Thlerry avatar Feb 05 '22 14:02 Thlerry

Nothing in the log at all 😞. Could you please try again, try to grab all the logs? (there might be additional *crash* logs) Thx!

croneter avatar Feb 05 '22 17:02 croneter

I'm having the same issue but at version 3.6.6 Nvidia Shield 2015 Latest version of Android (NVidia Shield Experience 9 + Hotfix 3) installed. Haven't do a clean install of Kodi after updating.

I included 2 logs, but i'm not sure if you will see anything in it.

kodi.log kodi.old.log

PadelzZ avatar Feb 05 '22 22:02 PadelzZ

I had a look again, but there is no other crash logs. Now something a bit funny, I downgraded again to 3.6.6 like I did before after the test with 3.6.7 and Kodi was crashing as well with 3.6.6. I tried to restart the shield but 3.6.6 was still causing Kodi to crash. So I left it like this and went to bed. This morning when I woke up, I looked at it again and 3.6.6 is working now, no more crash.

Thlerry avatar Feb 06 '22 00:02 Thlerry

I reported this back about 16 days ago, log was attached to the post in the PLEX forum. I am not 100% convinced this is an issue with PKC allthough cannot rule out it being a permission issue when writing some extra artwork. My crashing started after Hotfix 2. If you check out the KODI Android forums there are several posts related to the crashing issue. Worst part about is that everyone is different. I updated PKC the other day (luckily it stayed up long enough to update) and though it was all working fine, 10 minutes later crashed again. I am waiting for hotfix 4...Edited to 16 days...ooops

craZy-C avatar Feb 07 '22 07:02 craZy-C

If you check out the KODI Android forums there are several posts related to the crashing issue.

This strongly implies that PKC is not causing this issue. Thanks @craZy-C

croneter avatar Feb 07 '22 11:02 croneter

@croneter , there are several variations I have come across, A few seem to relate to library scraping, some SMB/NFS issues...it is a real clusterF@#k. I do not believe PKC is the cause, ANDROID 11 and Shield Experience 9 is. I haven't tested without PKC running due to other users having the same problem.

craZy-C avatar Feb 07 '22 12:02 craZy-C

Wanted to add this, when i disable PKC. I'm not having start up crashes in Kodi anymore. Not blaming the crashes on PKC but just wanted to let you know

PadelzZ avatar Feb 07 '22 12:02 PadelzZ

Hmm interesting. Hard to judge from other posts that I have read. what other add ons people have I am still leaning towards read write permissions with android 11 and Experience 9. I am wondering if the artwork or metadata in the background is having an issue

craZy-C avatar Feb 07 '22 12:02 craZy-C

The really sad thing is that the changes I made should never ever lead to Kodi crashing 😞

croneter avatar Feb 07 '22 13:02 croneter

Well, at least in my case it's pointing to PKC 3.6.7.

Apart from the weird crash when I downgraded from PKC 3.6.7 to 3.6.6 the second time (it might have been an issue on plex server due to the previous crashes).

Now I have 3.6.6 working perfectly fine, and AS SOON AS I update the plugin to PKC 3.6.7 it triggers the crash of Kodi at startup. There is for sure something in PKC 3.6.7 which is causing an issue, or at least triggering it. Whether it's the fault of Experience 9 I don't know, but at least PKC 3.6.7 is the trigger in my case.

Also as mentioned by @PadelzZ above with PKC 3.6.7 installed, after disabling the plugin Kodi doesn't crash anymore. Also turning off ethernet connection stops the crash as well.

Thlerry avatar Feb 07 '22 13:02 Thlerry

@croneter , In my case my crashing began on version 3.6.5 after Hotfix 2. And as mentioned other Android users on the Kodi forum have had similar and only 1 or 2 mentions of PKC that I saw.. Also Thiery's comment of turning off ethernet makes me look again at library actions and permissions

craZy-C avatar Feb 07 '22 13:02 craZy-C

@craZy-C What exactly do you mean by "Hotfix 2"?

Does PKC beta version 3.6.4 crash for you as well? There is NO code difference between 3.6.5 and 3.6.4

croneter avatar Feb 07 '22 13:02 croneter

Hotfix 2, is the second attempt from NVidia to fix some issue with Experience 9. We are at Hotfix 3 now.

Thlerry avatar Feb 07 '22 13:02 Thlerry

@croneter do you have a way to build a release with additional logs to try to narrow down the crash ? We could see as well if our PKC crashes at a different location ? In my case it seems to crash when PKC connects to the server to synchronize. (the fact that disabling ethernet stops the issue, it probably doesn't reach the point which is causing the crash). Not to familiar with the dumps on android, is there a specific location I can look at (apart from the folder containing Kodi logs) in order to get the equivalent of a core dump ?

Thlerry avatar Feb 07 '22 13:02 Thlerry

Please try BETA version 3.6.8. This is hit and miss, really 😞

croneter avatar Feb 07 '22 14:02 croneter

Give me a few minutes, I will give it a go and report here.

Thlerry avatar Feb 07 '22 14:02 Thlerry

Hum, I went to update the PKC plugin and don't see 3.6.8 ? So I installed 3.6.7 again, and no more crash... I tried to restart Kodi 3 times and played a few different movies... looks ok now :/ This is getting weird....

Thlerry avatar Feb 07 '22 14:02 Thlerry

This is getting weird....

I'm not surprised πŸ˜†

Try going to My Add-ons --> Check for updates

croneter avatar Feb 07 '22 14:02 croneter

OK I found 3.6.8. I had to add the beta repository. Hum it's 1:38am here, I need a bit of sleep I think :) I still can't reproduce the crash at the moment with 3.6.7. I will keep monitoring, if the crash happens again I'll try to update to 3.6.8 to see if it fixes it.

Thlerry avatar Feb 07 '22 14:02 Thlerry

Hi Having this problem also since upgrading to experience 9 on my shield 2015. The crash happens using Plex kodi connect or emby for kodi and connecting to a remote server. If I use kodi a local database using MySQL it works just fine

rapteev avatar Feb 07 '22 21:02 rapteev

Adding… something related with web sockets or something like that?

rapteev avatar Feb 07 '22 21:02 rapteev

The crash happens using Plex kodi connect or emby for kodi and connecting to a remote server.

This needs to be fixed on the shield side urgently!

croneter avatar Feb 08 '22 05:02 croneter

Maybe this helps: https://github.com/xbmc/xbmc/issues/20631

Try deactivating HTTP2 in Kodis Advancedsettings.xml

croneter avatar Feb 08 '22 05:02 croneter

Probably related: https://github.com/xbmc/xbmc/issues/20939

croneter avatar Feb 08 '22 05:02 croneter