Skip to content

Player Crashes when queuing #13350

@ZenerDeveloper

Description

@ZenerDeveloper

Checklist

  • I am able to reproduce the bug with the latest version given here: CLICK THIS LINK.
  • I made sure that there are no existing issues - open or closed - which I could contribute my information to.
  • I have read the FAQ and my problem isn't listed.
  • I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise.
  • This issue contains only one bug.
  • I have read and understood the contribution guidelines.
  • I have read and understood the AI policy. The content of this bug report is not generated by AI.

Affected version

0.28.4

Steps to reproduce the bug

  1. Play a video
  2. Enqueue another video (toast appears "Loading stream details...)
  3. Hit full screen before "enqueued" toast appears.

Expected behavior

The app should not crash when enqueuing another video and switching to full screen.

Actual behavior

The app crashes as the context is lost for the toast to be toasted from.

Screenshots/Screen recordings

Screen_Recording_20260315_230244_NewPipe.mp4

Logs

Exception

  • User Action: ui error
  • Request: ACRA report
  • Content Country: US
  • Content Language: en-US
  • App Language: en_US
  • Service: <unknown_service>
  • Timestamp: 2026-03-15T22:58:09.555-04:00
  • Package: org.schabi.newpipe
  • Service: <unknown_service>
  • Version: 0.28.4
  • OS: Linux samsung/e3quew/e3q:15/AP3A.240905.015.A2/S928U1UEU4BYD9:user/release-keys 15 - 35
Crash log

java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources android.content.Context.getResources()' on a null object reference
	at android.widget.Toast.makeText(Toast.java:839)
	at androidx.tracing.Trace.enqueueOnPlayer(r8-map-id-ce0307bac2c3f16e8dc2f832773b0599f307ee51c82b5550b73911d8a6d3ce37:16)
	at org.schabi.newpipe.info_list.dialog.StreamDialogDefaultEntry$$ExternalSyntheticLambda14.accept(r8-map-id-ce0307bac2c3f16e8dc2f832773b0599f307ee51c82b5550b73911d8a6d3ce37:94)
	at org.schabi.newpipe.util.SparseItemUtil$$ExternalSyntheticLambda0.accept(r8-map-id-ce0307bac2c3f16e8dc2f832773b0599f307ee51c82b5550b73911d8a6d3ce37:15)
	at kotlinx.coroutines.rx3.RxConvertKt$$ExternalSyntheticLambda0.accept(r8-map-id-ce0307bac2c3f16e8dc2f832773b0599f307ee51c82b5550b73911d8a6d3ce37:57)
	at io.reactivex.rxjava3.internal.observers.ConsumerSingleObserver.onSuccess(r8-map-id-ce0307bac2c3f16e8dc2f832773b0599f307ee51c82b5550b73911d8a6d3ce37:8)
	at io.reactivex.rxjava3.internal.operators.single.SingleObserveOn$ObserveOnSingleObserver.run(r8-map-id-ce0307bac2c3f16e8dc2f832773b0599f307ee51c82b5550b73911d8a6d3ce37:15)
	at io.reactivex.rxjava3.core.Scheduler$PeriodicDirectTask.run(r8-map-id-ce0307bac2c3f16e8dc2f832773b0599f307ee51c82b5550b73911d8a6d3ce37:10)
	at android.os.Handler.handleCallback(Handler.java:959)
	at android.os.Handler.dispatchMessage(Handler.java:100)
	at android.os.Looper.loopOnce(Looper.java:257)
	at android.os.Looper.loop(Looper.java:342)
	at android.app.ActivityThread.main(ActivityThread.java:9634)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:619)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:929)


Affected Android/Custom ROM version

Android 15 / OneUI 7.0

Affected device model

Samsung Galaxy S24 Ultra

Additional information

Might be a similar issue to #10749 however cannot recreate that as enqueuing from the homepage or a channel page just toasts "enqueued" This crash only occurs when enqueuing from the "next" section.

Metadata

Metadata

Labels

bugIssue is related to a buggood first issueEasy/simple issues perfect for newcomers to get involved in the projectplayerIssues related to any player (main, popup and background)queueIssue is related to queueing

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions