question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Android O - java.lang.RuntimeException: An error occurred while executing doInBackground()

See original GitHub issue

Crash happened with 1.2.0-alpha3 on Pixel running 8.0.0. Here’s the stacktrace:

Fatal Exception: java.lang.RuntimeException: An error occurred while executing doInBackground()
       at android.os.AsyncTask$3.done(AsyncTask.java:353)
       at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:383)
       at java.util.concurrent.FutureTask.setException(FutureTask.java:252)
       at java.util.concurrent.FutureTask.run(FutureTask.java:271)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
       at java.lang.Thread.run(Thread.java:764)
Caused by java.lang.SecurityException: Caller no longer running, last stopped +25s437ms because: timed out while starting
       at android.os.Parcel.readException(Parcel.java:1942)
       at android.os.Parcel.readException(Parcel.java:1888)
       at android.app.job.IJobCallback$Stub$Proxy.dequeueWork(IJobCallback.java:191)
       at android.app.job.JobParameters.dequeueWork(JobParameters.java:196)
       at android.support.v4.app.JobIntentService$JobServiceEngineImpl.dequeueWork(JobIntentService.java:309)
       at android.support.v4.app.JobIntentService.dequeueWork(JobIntentService.java:627)
       at android.support.v4.app.JobIntentService$CommandProcessor.doInBackground(JobIntentService.java:384)
       at android.support.v4.app.JobIntentService$CommandProcessor.doInBackground(JobIntentService.java:377)
       at android.os.AsyncTask$2.call(AsyncTask.java:333)
       at java.util.concurrent.FutureTask.run(FutureTask.java:266)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
       at java.lang.Thread.run(Thread.java:764)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:61 (2 by maintainers)

github_iconTop GitHub Comments

33reactions
KennyGoerscommented, Nov 14, 2017

I’ve had over 127 users with this crash with production code. This error, closed, it should not be.

29reactions
xXxXxXxXxXamcommented, May 4, 2018

Interestingly, only seeing this issue reported from HUAWEI devices. Anyone else seeing that?

Read more comments on GitHub >

github_iconTop Results From Across the Web

java.lang.RuntimeException: An error occured while executing ...
You are running the AsyncTask like new MyAsyncTask().execute(); which means you are not passing any argument to it. But in doInBackground ...
Read more >
java.lang.RuntimeException: An error occurred while ... - GitLab
I have used FDroid for a fairly brief amount of time. ... An error occurred while executing doInBackground() at android.os.
Read more >
An error occured while executing doInBackground() at android ...
java.lang.RuntimeException: An error occured while executing doInBackground() at android.os.AsyncTask$3.done(AsyncTask.java) caused by: android.database.sqlite.
Read more >
java.lang.RuntimeException: An error occurred ... - Issue Tracker
java.lang.RuntimeException: An error occurred while executing doInBackground() at android.os.AsyncTask$3.done(AsyncTask.java:353) at java.util.
Read more >
An error occurred while executing doInBackground()
Hello i am following Udacity android data storage course.But just hit the wall. We are making pets app in witch user can add,update...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found