Newpipe: version 530f745 2020-09-08 crush when i click on video

Created on 10 Sep 2020  Â·  20Comments  Â·  Source: TeamNewPipe/NewPipe

Version


-

Steps to reproduce the bug

Expected behavior

Actual behaviour

Screenshots/Screen recordings

Logs


I have test apk on android 4.4 and apk version 530f745 2020-09-08 block my phone when crash
Demostration video https://streamable.com/e/ygkbwt

bug devicsoftware specific

All 20 comments

Does it happen with the 2020-09-06 version?

Yes, please, test previous versions too which will help to find the cause. And say which one started to do this crash first. Even better would be to receive logs from adb logcat if you know how to get them.

@opusforlife2 version a801d09 2020-09-06 not have this problem work normal

@Stypox Could have been caused by #3909, then?

@opusforlife2 by #3909 or by #4154. We would need to do a git bisect until we find the specific commit causing the issue, but it is complicated to do this without instant feedback. Let me try anyway based on some guesses:

@Domiuns could you try the apks above? Thank you in advance for you patience. By the way, since the apks above are in chronological order, if already the second one does not work, you don't have to test the third one, as that would obviously not work.

@Stypox why it keeps crashing without showing error activity? What's s way the user can use to send us logs (without obvious adb logcat)?

@Stypox why it keeps crashing without showing error activity?

I don't know, but it seems like the crash is so severe not even ACRA is able to catch it... and this is really strange. We would need an adb logcat to be sure though, maybe this is an issue with ACRA.

What if debug versions of Newpipe have logging functionality added? A user could install a debug APK, enable logging from the Debug menu, reproduce a crash, and send the log.

@avently: Our ACRA implementation doesn't handle multidex or big crash logs properly.

What is the official site for adb .... I have unistall android studio 5-6 month ago and now i want download only adb.

https://developer.android.com/studio/releases/platform-tools

Download file for your OS, open cmd/terminal, drag and drop adb onto cmd/terminal, type after adb path : logcat
So you'll see something like:
pathdoadb\adb.exe logcat
and press enter

I have make this file with (adb logcat > logcat.txt)
logcat.txt

@Domiuns Stypox gave you 3 apks. Which one did you try?

@Domiuns thank you for the log!

java.lang.NoClassDefFoundError: android.view.accessibility.CaptioningManager

The code from stacktrace says that Android can't find CaptioningManager which is available on API 19 and later (you have API 19 if your Android is 4.4.4, right?) https://developer.android.com/reference/android/view/accessibility/CaptioningManager

The code from that shown in stack trace:

E/ACRA    ( 4202): java.lang.NoClassDefFoundError: android.view.accessibility.CaptioningManager

E/ACRA    ( 4202):  at org.schabi.newpipe.player.helper.PlayerHelper.getCaptionScale(PlayerHelper.java:330)

E/ACRA    ( 4202):  at org.schabi.newpipe.player.VideoPlayer.initViews(VideoPlayer.java:204)

E/ACRA    ( 4202):  at org.schabi.newpipe.player.VideoPlayerImpl.initViews(VideoPlayerImpl.java:279)

E/ACRA    ( 4202):  at org.schabi.newpipe.player.VideoPlayer.setup(VideoPlayer.java:180)

E/ACRA    ( 4202):  at org.schabi.newpipe.player.MainPlayer.createView(MainPlayer.java:128)

E/ACRA    ( 4202):  at org.schabi.newpipe.player.MainPlayer.onCreate(MainPlayer.java:121)

E/ACRA    ( 4202):  at android.app.ActivityThread.handleCreateService(ActivityThread.java:2671)

E/ACRA    ( 4202):  at android.app.ActivityThread.access$1600(ActivityThread.java:156)

E/ACRA    ( 4202):  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1422)

E/ACRA    ( 4202):  at android.os.Handler.dispatchMessage(Handler.java:99)

E/ACRA    ( 4202):  at android.os.Looper.loop(Looper.java:153)

E/ACRA    ( 4202):  at android.app.ActivityThread.main(ActivityThread.java:5297)

E/ACRA    ( 4202):  at java.lang.reflect.Method.invokeNative(Native Method)

E/ACRA    ( 4202):  at java.lang.reflect.Method.invoke(Method.java:511)

E/ACRA    ( 4202):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:833)

E/ACRA    ( 4202):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)

E/ACRA    ( 4202):  at dalvik.system.NativeStart.main(Native Method)

This is the link for the cause of crash:
https://github.com/TeamNewPipe/NewPipe/blob/dev/app/src/main/java/org/schabi/newpipe/player/helper/PlayerHelper.java#L330

This is when the code was changed:
https://github.com/TeamNewPipe/NewPipe/commit/06d54ef77ea33117237cd89aa5fc10fc4d2a0e23#diff-d9a56593590a61716be0fc107ac247f7

Looks like your code @TacoTheDank causes the crash but the problem is that the code is fine:) Either @Domiuns device is not KitKat (or Android API is less than 19 for some reason), either device's developers have removed the class for some reason in him's device.

@avently: He's running some weird Android 4.4 ROM on his device that came with an older Android version…

I'm 100% sure that this issue https://github.com/TeamNewPipe/NewPipe/issues/4179 is related to the same problem.
So I recommend you, @Domiuns, to update your ROM to a normal version if possible or to buy another phone. It will save your time in trying to fix the errors that come from here and there.

I have install ROM android 4.4.4 to my phone (buyed on 2014) i think at this point is time to change device or rom

@avently Interesting... 🤔

@Domiuns You could also use the legacy version for now: https://github.com/TeamNewPipe/NewPipe-legacy/releases

Oh. Forgot to close this.

Was this page helpful?
0 / 5 - 0 ratings