Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crashing JobIntentService while preparing outgoing media #1304

Open
daniele-athome opened this issue Aug 20, 2020 · 0 comments
Open

Crashing JobIntentService while preparing outgoing media #1304

daniele-athome opened this issue Aug 20, 2020 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@daniele-athome
Copy link
Member

Caused by java.lang.IllegalArgumentException: Given work is not active: JobWorkItem{id=1 intent=Intent { act=org.kontalk.action.PREPARE_MESSAGE dat=file:///data/user/0/org.kontalk/cache/DCIM/IMG_20200819_135304016.jpg cmp=org.kontalk/.service.MediaService (has extras) } dcount=1}
       at android.app.job.JobParameters.completeWork(JobParameters.java:268)
       at androidx.core.app.JobIntentService$JobServiceEngineImpl$WrapperWorkItem.complete(JobIntentService.java:268)
       at androidx.core.app.JobIntentService$CommandProcessor.doInBackground(JobIntentService.java:394)
       at androidx.core.app.JobIntentService$CommandProcessor.doInBackground(JobIntentService.java:383)
       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:1167)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
       at java.lang.Thread.run(Thread.java:764)

Reported to Google: https://issuetracker.google.com/issues/63622293

It might be a bug "induced" by a misuse of JobIntentService.

Other references:

@daniele-athome daniele-athome added the bug Something isn't working label Aug 20, 2020
@daniele-athome daniele-athome added this to the Next milestone Aug 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant