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

App Crashes When a Video is Marked as Watched #6188

Closed
3 tasks done
Repressed8077 opened this issue Jun 27, 2024 · 5 comments
Closed
3 tasks done

App Crashes When a Video is Marked as Watched #6188

Repressed8077 opened this issue Jun 27, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@Repressed8077
Copy link

Repressed8077 commented Jun 27, 2024

Steps to reproduce

  1. Open the app after it has been killed by the OS (usually happens after long hours of inactivity)
  2. Go to a video you wish to mark as watched
  3. After tapping mark as watched the app crashes resulting in the error log attached below

Expected behavior

The video should be marked as watched without the app crashing

Actual behavior

The app crashes instantly after tapping mark as watched. However after relaunching and tapping on mark as watched on other videos the app doesn't crash. Also, the video previously marked as watched prior to crashing is marked as watched after relaunching the app.

LibreTube version

0.23.2

Android version

Android 13

Other details

java.lang.NullPointerException
at androidx.navigation.NavController$restoreStateInternal$1.invoke(SourceFile:48)
at kotlin.collections.CollectionsKt__MutableCollectionsKt.removeAll(SourceFile:57)
at com.github.libretube.ui.sheets.VideoOptionsBottomSheet$onCreate$2.invokeSuspend(SourceFile:530)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(SourceFile:9)
at kotlinx.coroutines.DispatchedTask.run(SourceFile:115)
at android.os.Handler.handleCallback(Handler.java:942)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:226)
at android.os.Looper.loop(Looper.java:313)
at android.app.ActivityThread.main(ActivityThread.java:8762)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:604)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1067)
Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@8e89427, Dispatchers.Main.immediate]

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.
@Repressed8077 Repressed8077 added the bug Something isn't working label Jun 27, 2024
@FineFindus
Copy link
Contributor

Does the app only crash when marking a video as watched above the new video indicator?
In that case it should be fixed with #6142

@Repressed8077
Copy link
Author

Does the app only crash when marking a video as watched above the new video indicator? In that case it should be fixed with #6142

Yes

@Repressed8077
Copy link
Author

Repressed8077 commented Jul 4, 2024

Screen_Recording_20240704_095529_LibreTube.mp4

@FineFindus I tried to mark videos below the new indicator and it seems the app crashes regardless of the video publication date

I'll give the nightly builds a try

@akano12
Copy link
Collaborator

akano12 commented Jul 5, 2024

@Repressed8077 did you retest nightly or not yet?

@Repressed8077
Copy link
Author

@Repressed8077 did you retest nightly or not yet?

I've tested it and everything works fine

@akano12 akano12 closed this as completed Jul 6, 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
Projects
None yet
Development

No branches or pull requests

3 participants