NewPipe
NewPipe copied to clipboard
App crashed after playing in audio-only mode
Checklist
- [X] I am able to reproduce the bug with the latest version.
- [X] I made sure that there are no existing issues - which I could contribute my information to.
- [X] I have read the FAQ and my problem isn't listed.
- [X] I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise.
- [X] This issue contains only one bug.
- [X] I have read and understood the contribution guidelines.
Affected version
0.26.1
Steps to reproduce the bug
- Open a channel
- Play a video in audio mode
- Add another video to current queue
- Go back.
Expected behavior
It shouldn't crash... (what else do you expect?)
Actual behavior
It crashed
Screen recording
https://github.com/TeamNewPipe/NewPipe/assets/68391650/46c4e083-69bc-4658-a207-3d33e8a7cc9d
Logs
- User Action: ui error
- Request: ACRA report
- Content Country: ID
- Content Language: in- (also anyone can explain why now NewPipe puts - at the last text?)
- App Language: in
- Service: none
- Version: 0.26.1
- OS: Linux samsung/a6ltedx/a6lte:10/QP1A.190711.020/A600GDXU9CUB1:user/release-keys 10 - 29
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:662)
at org.schabi.newpipe.util.NavigationHelper.enqueueOnPlayer(NavigationHelper.java:187)
at org.schabi.newpipe.util.NavigationHelper.enqueueOnPlayer(NavigationHelper.java:201)
at org.schabi.newpipe.info_list.dialog.StreamDialogDefaultEntry.lambda$static$2(StreamDialogDefaultEntry.java:54)
at org.schabi.newpipe.info_list.dialog.StreamDialogDefaultEntry.$r8$lambda$HrNW3ftQD3NQNetYZjrz1JDwzD4(StreamDialogDefaultEntry.java:0)
at org.schabi.newpipe.info_list.dialog.StreamDialogDefaultEntry$$ExternalSyntheticLambda15.accept(R8$$SyntheticClass:0)
at org.schabi.newpipe.util.SparseItemUtil.lambda$fetchItemInfoIfSparse$0(SparseItemUtil.java:60)
at org.schabi.newpipe.util.SparseItemUtil.$r8$lambda$rd2kSpgtBScfiwrztd_5JrCbEyQ(SparseItemUtil.java:0)
at org.schabi.newpipe.util.SparseItemUtil$$ExternalSyntheticLambda2.accept(R8$$SyntheticClass:0)
at org.schabi.newpipe.util.SparseItemUtil.lambda$fetchStreamInfoAndSaveToDatabase$4(SparseItemUtil.java:121)
at org.schabi.newpipe.util.SparseItemUtil.$r8$lambda$cfmnXoy0qdCzt8EeO-smvalxWsM(SparseItemUtil.java:0)
at org.schabi.newpipe.util.SparseItemUtil$$ExternalSyntheticLambda0.accept(R8$$SyntheticClass:0)
at io.reactivex.rxjava3.internal.observers.ConsumerSingleObserver.onSuccess(ConsumerSingleObserver.java:62)
at io.reactivex.rxjava3.internal.operators.single.SingleObserveOn$ObserveOnSingleObserver.run(SingleObserveOn.java:81)
at io.reactivex.rxjava3.android.schedulers.HandlerScheduler$ScheduledRunnable.run(HandlerScheduler.java:123)
at android.os.Handler.handleCallback(Handler.java:883)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:237)
at android.app.ActivityThread.main(ActivityThread.java:8167)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:496)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1100)
Affected Android/Custom ROM version
Android 10, OneUi 2.0
Affected device model
Samsung (see log)
Additional information
None
I noticed you are first tapping the video thumbnail and then the background button. You only need to do the 2nd action, not the first. Can you try reproducing it this way?
I tried that too (tap and holding the video, popup menu shows up, press "Play in background"), the same happens