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

crash - there is stacktrace, but it is not clear how to reproduce it #5893

Closed
3 tasks done
matkoniecz opened this issue Apr 12, 2024 · 0 comments · Fixed by #5903
Closed
3 tasks done

crash - there is stacktrace, but it is not clear how to reproduce it #5893

matkoniecz opened this issue Apr 12, 2024 · 0 comments · Fixed by #5903
Labels
bug Something isn't working

Comments

@matkoniecz
Copy link

Steps to reproduce

Not sure, seems to be related to downloaded files, maybe cancelled downloads. Similar crashes were in #5237

But I have stacktrace - maybe it is useful already?

Expected behavior

App does not crash.

Actual behavior

App crashed.

java.lang.NullPointerException: Attempt to read from field 'int com.github.libretube.db.obj.DownloadItem.id' on a null object reference
	at com.github.libretube.services.DownloadService.downloadFile(SourceFile:359)
	at com.github.libretube.services.DownloadService$resume$2.invokeSuspend(SourceFile:66)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(SourceFile:9)
	at kotlinx.coroutines.DispatchedTask.run(SourceFile:115)
	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:919)
	Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@8492b1b, java.util.concurrent.Executors$FinalizableDelegatedExecutorService@42bc4b8]

LibreTube version

v0.22.2

Android version

Android 10

Other details

No response

Acknowledgements

  • I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open issue.
  • I have written a short but informative title.
  • I will fill out all of the requested information in this form.
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

Successfully merging a pull request may close this issue.

1 participant