Skip to content

[Bug] Enqueue-ing a passed video crashes #2662

Description

@juleshotc

Checklist

  • I make sure that the issue is NOT a duplicate of pinned issues
  • I make sure I am using the LATEST version - check here
  • I understand that issues with limited impact, such as those occurring on specific devices or under specific network conditions, will not be fixed
  • I have attached the error report in the issue

Describe the bug

Queueing up a video that has already passed crashes the app

Version

5.2.3-beta

Frequency

Always (100% of the time)

Device

Android 16

Steps to reproduce the bug

  1. watch a video
  2. queue another video (so when the video ends, another video automatically starts)
  3. wait until the video is about to end
  4. go to the suggested next videos and hold, so the "enqueue" button shows up
  5. let the video end and automatically continue on to the next video
  6. click enqueue
  7. the app crashes

Video: https://drive.google.com/file/d/1y5A6zwMBK3b3M28W77sFour4XFPebt6w/view?usp=drivesdk

Additional context

java.lang.IllegalStateException: Fragment RelatedItemsFragment{465323e} (7b9211a3-0264-4b18-baa1-adc1465d684a) not attached to a context.
	at okhttp3.internal._UtilJvmKt$$ExternalSyntheticLambda0.m$2(r8-map-id-e91444551cd6c13a0c007ffccf8dba424ddff2166555a655c499e0f6501b2247:25)
	at androidx.fragment.app.Fragment.requireContext(r8-map-id-e91444551cd6c13a0c007ffccf8dba424ddff2166555a655c499e0f6501b2247:16)
	at org.schabi.newpipe.about.AboutActivity$$ExternalSyntheticLambda0.onClick(r8-map-id-e91444551cd6c13a0c007ffccf8dba424ddff2166555a655c499e0f6501b2247:11)
	at org.schabi.newpipe.local.feed.FeedFragment$$ExternalSyntheticLambda21.onClick(r8-map-id-e91444551cd6c13a0c007ffccf8dba424ddff2166555a655c499e0f6501b2247:325)
	at androidx.appcompat.app.AlertController$AlertParams$3.onItemClick(r8-map-id-e91444551cd6c13a0c007ffccf8dba424ddff2166555a655c499e0f6501b2247:9)
	at android.widget.AdapterView.performItemClick(AdapterView.java:380)
	at android.widget.AbsListView.performItemClick(AbsListView.java:1393)
	at android.widget.AbsListView$PerformClick.run(AbsListView.java:3714)
	at android.widget.AbsListView$3.run(AbsListView.java:4913)
	at android.os.Handler.handleCallback(Handler.java:1070)
	at android.os.Handler.dispatchMessage(Handler.java:125)
	at android.os.Looper.dispatchMessage(Looper.java:358)
	at android.os.Looper.loopOnce(Looper.java:288)
	at android.os.Looper.loop(Looper.java:392)
	at android.app.ActivityThread.main(ActivityThread.java:10346)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:638)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:972)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions