Android [Shield] [Semi-Solved] Leia crashing to ATV Home Screen (100 Jobs/Playlist issue)
#1
Rainbow 
Edit: Semi-Solved, Related to Playlists in Leia see post #20

Hi all,

Sorry to be a pain. Leia is running pretty well after a migration except some random crashes back to the home screen on the Shield.

It seems to be 'random' but I suspect something is killing it that I cant see.

Its happened doing different things and also when idle overnight, I haven't been able to replicate one exact cause.

At the weekend Im going to try a brand new completely fresh install with no db etc to see if it still happens but until then I've captured a few logs, hoping someone could take a peek and see if theres any commonality in them?

I captured these manually but cant get them into hastebin due to their size but Ive stuck them in Dropbox (sorry):
https://www.dropbox.com/sh/lluljpbdc2wtn...wSoma?dl=0

Log 1 - 10mins or so into a episode:
Log 2 - Was doing library manageent I think:
Log 3 - Adding channels from Youtube Libray and scanning them into library:
Log 4 - Bit of rescanning and watching a YT stream I think:
Log 5 - Finishing the episode from log 1 then idle for a bit:
Log 6 - Idle Overnight:
Log 7 - Crash during library scan/clean:
Log 8 - Idle Overnight:

Thanks in advance, hoping someone can spot something thats not so obvious to me but Ill be doing a full clean install over the weekend as well.
Reply
#2
We are investigating some crashed on Android (which i also experience). Thanks for the logs however on Android we need the logcat as that actually shows the crash.
I can advise to already install the newest version available from http://mirrors.kodi.tv/nightlies/android...8a/master/ which contains some fixes.

If you are willing to dig deeper you could try to use the adb command for android to get that logcat file. It's not that straightforward to get running though

https://github.com/xbmc/xbmc/blob/master...Android.md  chapter 10 has the needed commands. The rest can be found through Google
Read/follow the forum rules.
For troubleshooting and bug reporting, read this first
Interested in seeing some YouTube videos about Kodi? Go here and subscribe
Reply
#3
Hi Martijn,

Thats brill, thanks for letting me know about the newer version.

Ill get that installed at the weekend on a brand new clean setup from scratch and go from there (and an excuse to do some library maintenance).

I dabbled a bit in the Android world long ago and totally forgot about logcat etc so will run a fresh setup for a bit and then setup logging further if needed.

Thanks again (all you guys work is appreciated!) Smile
Reply
#4
Seems one of the crashes should be fixed to today. Might be best to just install the ones linked on top of your current one cause that might be best test case anyway instead of a brand new one.
Should be quite safe to do so

Need to see for the others
Read/follow the forum rules.
For troubleshooting and bug reporting, read this first
Interested in seeing some YouTube videos about Kodi? Go here and subscribe
Reply
#5
(2019-02-05, 20:20)Martijn Wrote: Seems one of the crashes should be fixed to today. Might be best to just install the ones linked on top of your current one cause that might be best test case anyway instead of a brand new one.
Should be quite safe to do so

Need to see for the others
 I just upgraded my Shield 16 2017 from Kodi 17.1 to 18 yesterday. Library and DB converted in seconds with no issues. All came up fine, and content works.

Only issue I seem to have is with the Clean Library function, which hangs Kodi 18 completely. Never recovers. Eventually dumps back to Android screen.

Local Content only, on Synology RS 1219+ NAS
Cisco SG300 Switch
NFS as source protocol

Any help would be appreciated, otherwise I would like to go back to 17.1 for now. Is that possible without losing my Library?
Reply
#6
Sorry it took a while (work got in the way) but I was able to grab a few logcats last night.

I did notice that right before the crash I get a load of these:

html:
02-25 23:20:33.594 17698 17720 E zygote64: No implementation found for java.lang.String org.xbmc.kodi.XBMCJsonRPC._requestJSON(java.lang.String) (tried Java_org_xbmc_kodi_XBMCJsonRPC__1requestJSON and Java_org_xbmc_kodi_XBMCJsonRPC__1requestJSON__Ljava_lang_String_2): org.xbmc.kodi
02-25 23:20:33.594 17698 17720 E Kodijson: _requestJSON: Not available: org.xbmc.kodi


Hope thats a little help.
Reply
#7
More interesting is this one:

Code:
02-25 21:44:12.579  3781  4030 W JobSchedulerService: Too many jobs for uid 10131: system_server
02-25 21:44:12.583  3781  4030 I am_crash: [9424,0,org.xbmc.kodi,948485702,java.lang.IllegalStateException,Apps may not schedule more than 100 distinct jobs,Parcel.java,1959]:
Reply
#8
Also, is this:

xml:
02-25 23:20:13.678 14137 17656 D TvUtil  : Channel already exists. Returning channel 273 from TV Provider.: org.xbmc.kodi

Related to this (channel 273):

xml:
02-25 23:20:23.453 17698 17698 D SyncProgramsJobService: onStartJob(): android.app.job.JobParameters@a62c7d3: org.xbmc.kodi
02-25 23:20:23.454 17698 17698 D SyncProgramsJobService: onStartJob(): Scheduling syncing for programs for channel 273: org.xbmc.kodi
02-25 23:20:23.455 17698 17720 E zygote64: No implementation found for java.lang.String org.xbmc.kodi.XBMCJsonRPC._requestJSON(java.lang.String) (tried Java_org_xbmc_kodi_XBMCJsonRPC__1requestJSON and Java_org_xbmc_kodi_XBMCJsonRPC__1requestJSON__Ljava_lang_String_2): org.xbmc.kodi
02-25 23:20:23.455 17698 17720 E Kodijson: _requestJSON: Not available: org.xbmc.kodi

I don't have anything setup in terms of the Live TV side of it and can see a lot of TvUtil Channel already exists at that time (log3)


Edit: @peak3d can see a FATAL EXCEPTION for the same error in log 2

xml:
02-25 22:16:13.298  3781  4043 W JobSchedulerService: Too many jobs for uid 10131
02-25 22:16:13.301 11062 14111 E AndroidRuntime: FATAL EXCEPTION: AsyncTask #4
02-25 22:16:13.301 11062 14111 E AndroidRuntime: Process: org.xbmc.kodi, PID: 11062
02-25 22:16:13.301 11062 14111 E AndroidRuntime: java.lang.RuntimeException: An error occurred while executing doInBackground()
02-25 22:16:13.301 11062 14111 E AndroidRuntime:     at android.os.AsyncTask$3.done(AsyncTask.java:353)
02-25 22:16:13.301 11062 14111 E AndroidRuntime:     at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:383)
02-25 22:16:13.301 11062 14111 E AndroidRuntime:     at java.util.concurrent.FutureTask.setException(FutureTask.java:252)
02-25 22:16:13.301 11062 14111 E AndroidRuntime:     at java.util.concurrent.FutureTask.run(FutureTask.java:271)
02-25 22:16:13.301 11062 14111 E AndroidRuntime:     at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:245)
02-25 22:16:13.301 11062 14111 E AndroidRuntime:     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
02-25 22:16:13.301 11062 14111 E AndroidRuntime:     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
02-25 22:16:13.301 11062 14111 E AndroidRuntime:     at java.lang.Thread.run(Thread.java:764)
02-25 22:16:13.301 11062 14111 E AndroidRuntime: Caused by: java.lang.IllegalStateException: Apps may not schedule more than 100 distinct jobs
02-25 22:16:13.301 11062 14111 E AndroidRuntime:     at android.os.Parcel.readException(Parcel.java:1959)
02-25 22:16:13.301 11062 14111 E AndroidRuntime:     at android.os.Parcel.readException(Parcel.java:1897)
02-25 22:16:13.301 11062 14111 E AndroidRuntime:     at android.app.job.IJobScheduler$Stub$Proxy.schedule(IJobScheduler.java:180)
02-25 22:16:13.301 11062 14111 E AndroidRuntime:     at android.app.JobSchedulerImpl.schedule(JobSchedulerImpl.java:44)
02-25 22:16:13.301 11062 14111 E AndroidRuntime:     at org.xbmc.kodi.channels.util.TvUtil.scheduleTriggeredSyncingProgramsForChannel(TvUtil.java:223)
02-25 22:16:13.301 11062 14111 E AndroidRuntime:     at org.xbmc.kodi.channels.SyncChannelJobService$SyncChannelTask.doInBackground(SyncChannelJobService.java:206)
02-25 22:16:13.301 11062 14111 E AndroidRuntime:     at org.xbmc.kodi.channels.SyncChannelJobService$SyncChannelTask.doInBackground(SyncChannelJobService.java:78)
02-25 22:16:13.301 11062 14111 E AndroidRuntime:     at android.os.AsyncTask$2.call(AsyncTask.java:333)
02-25 22:16:13.301 11062 14111 E AndroidRuntime:     at java.util.concurrent.FutureTask.run(FutureTask.java:266)
02-25 22:16:13.301 11062 14111 E AndroidRuntime:     ... 4 more
02-25 22:16:13.304  3781  4043 W ActivityManager:   Force finishing activity org.xbmc.kodi/.Main
Reply
#9
@IAmTheDude360  yes channel thingies are on my todo list, never touched this code so far, so I'll have to get an overview first -> Will most probably take some time
Reply
#10
@peak3d No rush, a lot of us non-coders appreciate all the work you coders do Smile

I had a quick scout around and found this related to the 100 jobs issue if its any help?

https://issuetracker.google.com/issues/111569265
Reply
#11
Just wanted to update and bump this re the 100 jobs issue.

I received the latest update for the Shield (SE 8. Android 9) and did a full reset.

Set Kodi 18 back up from scratch and am still receiving the 100 jobs error:

logcat
kodi log

Am I right in thinking this is due to all the background tasks that Kodi uses? I am using Rapier as the skin and I think it does things like updating 'recently added' widgets, I have auto library updates set up etc?

Im going to try and use the default or another skin for a bit to see if that changes anything.
Reply
#12
Just had another crash when returning to 17.6 on Android 9.

Been watching fine for the last few hours but when the episode had finished and was sat idle it crashed back to the ATV home screen,

I went back in and cleaned and updated library and captured the below logcat. There doesn't seem to be any 100 jobs reference but it did a crash dump and looked to complain about a channel:
xml:
08-02 20:43:55.641  3718  3852 E InputDispatcher: channel 'b3e181f org.xbmc.kodi/org.xbmc.kodi.Main (server)' ~ Channel is unrecoverably broken and will be disposed!

https://paste.kodi.tv/ojutobecud.kodi

And another one here: https://paste.kodi.tv/enafaqugas.kodi

Hope thats some help.
Reply
#13
I'm having the same crash when Kodi is Idle.  Can watch a full movie or tv show, then it'll exit to home screen when it's done playing.
I have the 2015 Shield Pro (SE 8, Android 9)
Reply
#14
I am too having same crashes and too after update to Shield SE 8 couple days ago. Before that, Kodi was extremly stable. Now it keeps on crashing randomly during the playback.
Reply
#15
Ever since updating to SE 8 also experiencing sudden crashes right after loading.  On Kodi 18.3 using Shield (2015) and SE 8
Reply

Logout Mark Read Team Forum Stats Members Help
[Shield] [Semi-Solved] Leia crashing to ATV Home Screen (100 Jobs/Playlist issue)0