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

[BUG] App crash when downloading something #469

Open
NikunjKhangwal opened this issue Apr 25, 2024 · 6 comments
Open

[BUG] App crash when downloading something #469

NikunjKhangwal opened this issue Apr 25, 2024 · 6 comments
Labels
bug Something isn't working Waiting For Release Implemented but not released yet

Comments

@NikunjKhangwal
Copy link

Describe the bug
The app randomly crashed for me when downloading was going on in background

To Reproduce
Not sure

Expected behavior
Shouldn't crash

(please complete the following information):

  • Android Version: 12
  • App Version: 1.7.5
  • Other Device Information: Redmi 9 Android 12

Additional context

FATAL EXCEPTION: DefaultDispatcher-worker-3
Process: com.deniscerri.ytdl, PID: 11428
java.lang.RuntimeException: Only one Looper may be created per thread
	at android.os.Looper.prepare(Looper.java:119)
	at android.os.Looper.prepare(Looper.java:114)
	at com.deniscerri.ytdl.work.DownloadWorker$doWork$3$emit$4$1$4$2.invokeSuspend(SourceFile:914)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(SourceFile:9)
	at kotlinx.coroutines.DispatchedTask.run(Unknown Source:96)
	at kotlinx.coroutines.EventLoopImplBase.processNextEvent(SourceFile:139)
	at okio.Okio.runBlocking(SourceFile:102)
	at okio.Okio.runBlocking$default(SourceFile:3)
	at com.deniscerri.ytdl.work.DownloadWorker$doWork$3$emit$4$1.invokeSuspend(SourceFile:1227)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(SourceFile:9)
	at kotlinx.coroutines.DispatchedTask.run(Unknown Source:96)
	at androidx.work.Worker$2.run(SourceFile:13)
	at kotlinx.coroutines.scheduling.TaskImpl.run(Unknown Source:2)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(SourceFile:96)
	Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@f74b2d7, Dispatchers.IO]
@NikunjKhangwal NikunjKhangwal added the bug Something isn't working label Apr 25, 2024
@zaednasr
Copy link
Collaborator

image
looks like its hitting this piece of code. Noted

@headquarter8302
Copy link

Same issue here, same log error

@zaednasr
Copy link
Collaborator

I'm assuming you are downloading multiple items for this to hit correct?

@headquarter8302
Copy link

No, I was downloading a single video file, curiously. Unless the previously-failed download was queued... let me check my queue for a bit, I can't access my phone currently

@headquarter8302
Copy link

Weird, I wasn't able to replicate it, but I still support the crash to be fixed regardless

@zaednasr
Copy link
Collaborator

hopefully in the new update it wont happen again.

@zaednasr zaednasr added the Waiting For Release Implemented but not released yet label May 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Waiting For Release Implemented but not released yet
Projects
None yet
Development

No branches or pull requests

3 participants