NewPipe
NewPipe copied to clipboard
Crashed when tapping-and-holding "PIP" button with video currently playing
Checklist
- [x] I am able to reproduce the bug with the latest version.
- [X] I made sure that there are no existing issues - open or closed - 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.23.3
Steps to reproduce the bug
- Open NewPipe.
- Make a playlist and put a video on it.
- Open any video, and play it.
- Go to previously made playlist.
- Hold "Popup", and toast "Added" appears.
- Now go back to the video player UI, and rotate your phone (or just click the fullscreen button in bottom-right corner if device rotation is disabled).
Expected behavior
Not crashing after rotating the phone.
Actual behavior
Crashed after rotating the phone.
Screenshots/Screen recordings
https://user-images.githubusercontent.com/68391650/187025750-06fb70ab-891e-4553-8d45-633f7c8011dc.mp4
Logs
Exception
- User Action: ui error
- Request: ACRA report
- Content Country: ID
- Content Language: id
- App Language: in
- Service: none
- Version: 0.23.3
- OS: Linux samsung/a6ltedx/a6lte:10/QP1A.190711.020/A600GDXU9CUB1:user/release-keys 10 - 29
Crash log
java.lang.RuntimeException: Error receiving broadcast Intent { act=android.intent.action.CONFIGURATION_CHANGED flg=0x70200010 } in org.schabi.newpipe.player.Player$4@e719fea
at android.app.LoadedApk$ReceiverDispatcher$Args.lambda$getRunnable$0$LoadedApk$ReceiverDispatcher$Args(LoadedApk.java:1656)
at android.app.-$$Lambda$LoadedApk$ReceiverDispatcher$Args$_BumDX2UKsnxLVrE6UJsJZkotuA.run(Unknown Source:2)
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)
Caused by: java.lang.NullPointerException: Attempt to read from field 'int android.view.ViewGroup$LayoutParams.width' on a null object reference
at org.schabi.newpipe.player.Player.onBroadcastReceived(Player.java:1314)
at org.schabi.newpipe.player.Player.-$$Nest$monBroadcastReceived(Unknown Source:0)
at org.schabi.newpipe.player.Player$4.onReceive(Player.java:1228)
at android.app.LoadedApk$ReceiverDispatcher$Args.lambda$getRunnable$0$LoadedApk$ReceiverDispatcher$Args(LoadedApk.java:1646)
... 8 more
Affected Android/Custom ROM version
One UI 2.0 (Android 10)
Affected device model
Samsung A6
Additional information
the bug can also be triggered by holding PIP button in the player UI, And the playlist can be anything as long as it having a video in it