The video or audio(when playing in background) starts playing, the screen starts flickering , in the sense that display gets on and off , flickers for some time displaying the messege -- 'System UI keeps stopping' (giving two options -- app info or close app). The app gets closed for the latter option, but if pressed anywhere else on the screen the video plays continuosly with audio, screen flickering for some time and then phone gets restarted.
The video to be played till the end.

None
Happens to me to on latest official Sony Xperia XZ2 Compact firmware (Android 10).
This basically makes the software unusable.
Related logcat logs: https://pastebin.com/raw/c65CcAyN
Same here, same issue with my Sony Xperia XZ2 Compact...
@k3a
I think it may be the same problem. But in my case, I was using normal player (no background one). The app opened fine, allowed me to search a query. Clicking on a search result started playing the video but soon after System UI would crash, forcing the lock screen to appear. As I have fingerprint unlocking I was able to unlock, then after a second or two, System UI would crash again and so on until I force-closed NewPipe from the multitask switcher quickly. After hour or so I tried to open NewPipe again and the same thing would happen, suggesting it is a bug. Then I found this github issue.
EDIT: It does not crash for me for some videos but it crashes for me for "Queen - I Want to Break Free (Official Video)" as in the issue description. Maybe it is related to DRM or some special stream types?
Because i have a ~10digit unlock code the time is to short to kill the app. It sounds like the same bug and i also noticed that some links are working and others result into locking.
Crashing example link: https://www.youtube.com/watch?v=bwmSjveL3Lc
Working example link:
https://www.youtube.com/watch?v=dISNgvVpWlo
Any word on this?
Crashes my phone on some videos, sometimes restarts in a terminal mode.
Would love if we could just disable the new UI, 0.19 was perfect but sadly it doesn't work any more.
(Xiaomi MI A2, Android 10).
FYI happens still in 0.20.2 version installed from the release apk.
I can confirm the crashing and working links of @UserX404 but also simply the Queen mentioned in the issue description causes the SystemUI crash.
None of the links crash and all play ok under lineage-17.1-20201021 on Xperia XZ2 (also Android 10; custom ROM).
Looks like the bug is triggered only for some SystemUI builds (some ROMs only). But it's pity it happens under the official Xperia XZ2c ROM and it doesn't happen under unofficial XZ2 (maybe also XZ2c, can't test) ROM :P .
None of the links crash and all play ok under lineage-17.1-20201021 on Xperia XZ2 (also Android 10; custom ROM).
Looks like the bug is triggered only for some SystemUI builds (some ROMs only).
Thanks for confirming that.
Tested with UserX404's links, can confirm the first one crashes and the second one plays fine.
Not sure how to figure out what SystemUI build I have but the app info says Version 10.
I also have MI A2 with original android one launcher as @nonremittal and can confirm it also crashes with 0.20.0-0.20.2 versions only for specific youtube on bg player.
As a workaround, I disable notifications on settings of the device for newpipe app. Then everything works (and music continues play) but I can not access queue playlist of the player because it can be accessed only from notification bar.
As a workaround, I disable notifications on settings of the device for newpipe app
Can everyone else try this workaround and comment whether it works?
Can everyone else try this workaround and comment whether it works?
Will test if 0.20.2 appear on FDroid. 0.20.1 could not decrypt links anymore.
## Exception
* __User Action:__ requested stream
* __Request:__ https://www.youtube.com/watch?v=Rgw5dQOyySc
* __Content Country:__ GB
* __Content Language:__ en
* __App Language:__ de_AT
* __Service:__ YouTube
* __Version:__ 0.20.1
* __OS:__ Linux Android 10 - 29
<details><summary><b>Crash log </b></summary><p>
org.schabi.newpipe.extractor.exceptions.ParsingException: YouTube did not provide player config even after three attempts
at org.schabi.newpipe.extractor.services.youtube.extractors.YoutubeStreamExtractor.onFetchPage(YoutubeStreamExtractor.java:664)
at org.schabi.newpipe.extractor.Extractor.fetchPage(Extractor.java:56)
at org.schabi.newpipe.extractor.stream.StreamInfo.getInfo(StreamInfo.java:68)
at org.schabi.newpipe.extractor.stream.StreamInfo.getInfo(StreamInfo.java:64)
at org.schabi.newpipe.util.ExtractorHelper.lambda$getStreamInfo$3(ExtractorHelper.java:116)
at org.schabi.newpipe.util.-$$Lambda$ExtractorHelper$5fJcha6Sq5APJBLdG6osaJby-mc.call(Unknown Source:4)
at io.reactivex.internal.operators.single.SingleFromCallable.subscribeActual(SingleFromCallable.java:44)
at io.reactivex.Single.subscribe(Single.java:3666)
at io.reactivex.internal.operators.single.SingleDoOnSuccess.subscribeActual(SingleDoOnSuccess.java:35)
at io.reactivex.Single.subscribe(Single.java:3666)
at io.reactivex.internal.operators.maybe.MaybeFromSingle.subscribeActual(MaybeFromSingle.java:41)
at io.reactivex.Maybe.subscribe(Maybe.java:4290)
at io.reactivex.internal.operators.maybe.MaybeConcatArray$ConcatMaybeObserver.drain(MaybeConcatArray.java:153)
at io.reactivex.internal.operators.maybe.MaybeConcatArray$ConcatMaybeObserver.request(MaybeConcatArray.java:78)
at io.reactivex.internal.operators.flowable.FlowableElementAtMaybe$ElementAtSubscriber.onSubscribe(FlowableElementAtMaybe.java:66)
at io.reactivex.internal.operators.maybe.MaybeConcatArray.subscribeActual(MaybeConcatArray.java:42)
at io.reactivex.Flowable.subscribe(Flowable.java:14935)
at io.reactivex.internal.operators.flowable.FlowableElementAtMaybe.subscribeActual(FlowableElementAtMaybe.java:36)
at io.reactivex.Maybe.subscribe(Maybe.java:4290)
at io.reactivex.internal.operators.maybe.MaybeToSingle.subscribeActual(MaybeToSingle.java:46)
at io.reactivex.Single.subscribe(Single.java:3666)
at io.reactivex.internal.operators.single.SingleSubscribeOn$SubscribeOnObserver.run(SingleSubscribeOn.java:89)
at io.reactivex.Scheduler$DisposeTask.run(Scheduler.java:578)
at io.reactivex.internal.schedulers.ScheduledRunnable.run(ScheduledRunnable.java:66)
at io.reactivex.internal.schedulers.ScheduledRunnable.call(ScheduledRunnable.java:57)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:301)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:919)
</details>
<hr>
I can confirm disabling "NewPipe Notification" notification category fixes this on my Xperia XZ2c with the official FW.
@Stypox
Can confirm disabling notifications works for me too.
However as @arielshulman says, this means I can't access the background player queue. In fact, queueing doesn't work at all (it just stops playing after the first item, even if I add more).
Same issue that people have above and can confirm disabling "NewPipe Notification" notification fixes this on my Xperia XZ2c as well.
Can confirm disabling notifications works for me too.
However as @arielshulman says, this means I can't access the background player queue. In fact, queueing doesn't work at all (it just stops playing after the first item, even if I add more).
Same.
Can confirm.
Same here on XZ2c.
Same behaviour on MI A2 with stock rom.
I have the same problem on my Mi A2 (fully updated) with the newest NewPipe v0.20.2. This video consistently crashes System UI. I have to restart the phone, unless I am able to quickly fingerprint-unlock the phone and immediately pause the video before the next crash.
Has this been fixed in 0.20.2?
Pretty serious bug.
Well, I'm not really an Android developer, but this crashes drived me crazy so I've tried search for clues.
I've downloaded the Android Studio and tried debug the code directly on my phone.
I've managed to get from my phone logs the exception that crashes my systemui:
2020-11-14 21:10:17 system_app_crash (text, 2003 bytes)
Process: com.android.systemui
PID: 12456
UID: 10120
Flags: 0x30c83e0d
Package: com.android.systemui v29 (10)
Foreground: No
Build: xiaomi/jasmine/jasmine_sprout:10/QKQ1.190910.002/V11.0.15.0.QDIMIXM:user/release-keys
java.lang.RuntimeException: An error occurred while executing doInBackground()
at android.os.AsyncTask$4.done(AsyncTask.java:399)
at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:383)
at java.util.concurrent.FutureTask.setException(FutureTask.java:252)
at java.util.concurrent.FutureTask.run(FutureTask.java:271)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:289)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:919)
Caused by: java.lang.IllegalArgumentException: Bitmap is not valid
at androidx.palette.graphics.Palette$Builder.<init>(Palette.java:611)
at androidx.palette.graphics.Palette.from(Palette.java:103)
at com.android.systemui.statusbar.notification.MediaNotificationProcessor.generateArtworkPaletteBuilder(MediaNotificationProcessor.java:307)
at com.android.systemui.statusbar.notification.MediaNotificationProcessor.findBackgroundSwatch(MediaNotificationProcessor.java:251)
at com.android.systemui.statusbar.MediaArtworkProcessor.processArtwork(MediaArtworkProcessor.kt:74)
at com.android.systemui.statusbar.NotificationMediaManager.processArtwork(NotificationMediaManager.java:649)
at com.android.systemui.statusbar.NotificationMediaManager.access$600(NotificationMediaManager.java:84)
at com.android.systemui.statusbar.NotificationMediaManager$ProcessArtworkTask.doInBackground(NotificationMediaManager.java:679)
at com.android.systemui.statusbar.NotificationMediaManager$ProcessArtworkTask.doInBackground(NotificationMediaManager.java:660)
at android.os.AsyncTask$3.call(AsyncTask.java:378)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
... 4 more
As I saw it, I've searched in the code something related to thumbnail bitmap. I've found this:
https://github.com/TeamNewPipe/NewPipe/blob/c4a739bef66aaed3149595b7e4f4f38fde716961/app/src/main/java/org/schabi/newpipe/player/BasePlayer.java#L1460-L1465
so I've done this dummy change to the code:
@Nullable
public Bitmap getThumbnail() {
return BitmapFactory.decodeResource(context.getResources(), R.drawable.dummy_thumbnail);
}
and for my surprise it worked, the app does not crash (and does not show a thumbnail on the notification bar ofcourse).
I hope this will lead a real developer to solve this issue 馃
And if someone wants to validate by his phone that's this solves the crashing, here is an apk for my build:
Most helpful comment
Well, I'm not really an Android developer, but this crashes drived me crazy so I've tried search for clues.
I've downloaded the Android Studio and tried debug the code directly on my phone.
I've managed to get from my phone logs the exception that crashes my systemui:
As I saw it, I've searched in the code something related to thumbnail bitmap. I've found this:
https://github.com/TeamNewPipe/NewPipe/blob/c4a739bef66aaed3149595b7e4f4f38fde716961/app/src/main/java/org/schabi/newpipe/player/BasePlayer.java#L1460-L1465
so I've done this dummy change to the code:
and for my surprise it worked, the app does not crash (and does not show a thumbnail on the notification bar ofcourse).
I hope this will lead a real developer to solve this issue 馃
And if someone wants to validate by his phone that's this solves the crashing, here is an apk for my build: