-
-
Notifications
You must be signed in to change notification settings - Fork 36
Crash during boot loading, "Android Box SH940C-LN android jelly bean" #38
Comments
It's detected as an Android TV box correctly, so it gets to here and then it fails because getOverlay() requires Android 4.3 or newer. Maybe something like this would at least get NewPipe to function for you. public static void setupFocusObserver(final Dialog dialog) {
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.JELLY_BEAN_MR2)
return;
Rect displayRect = new Rect();
Window window = dialog.getWindow();
assert window != null;
View decor = window.getDecorView();
decor.getWindowVisibleDisplayFrame(displayRect);
FocusOverlayView overlay = new FocusOverlayView(dialog.getContext());
overlay.setBounds(0, 0, displayRect.width(), displayRect.height());
setupOverlay(window, overlay);
}
public static void setupFocusObserver(final Activity activity) {
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.JELLY_BEAN_MR2)
return;
Rect displayRect = new Rect();
Window window = activity.getWindow();
View decor = window.getDecorView();
decor.getWindowVisibleDisplayFrame(displayRect);
FocusOverlayView overlay = new FocusOverlayView(activity);
overlay.setBounds(0, 0, displayRect.width(), displayRect.height());
setupOverlay(window, overlay);
} Android Studio would normally warn you about issues like this and fail to compile the app, but for some reason NewPipe Legacy is setup to ignore these warnings. IMO this behavior should be changed @friendlyanon @TobiGr. |
I have used Legacy on OUYA, Linux Android 4.1.2 - 16, and I had the same problem. Until version 0.18.6 it is working. |
How do I apply this? I don't understand programming, and I don't have a computer, the only devices I have are an android phone (6.0) and an android tv box (4.2.2 Jelly Bean). Can you fix this? And send me the fixed legacy newpipe app to me? I am very grateful if you did that, please |
Take it easy =). If you read it, there is already an pull request, "Layout fixes # 31", about that. For now, you can use version 0.18.6, which works perfectly. |
But after i used version 0.18.6 a crash like this |
Did The program open or just close? If opened, what did you try to do? |
It opens and can enter the homepage normally, but when selecting video and play it crashes Same when searching for a video in the search field, always crashes, Is there a solution for me to be able to watch YouTube on this old & low end android tv box? I have tried many applications but they don't work perfectly, like yt vanced / OGyt / vidmate, which is almost perfect, only newpipe but after the 0.19 update it always crashes |
My pull request doesn't contain a fix for this issue. I just posted a comment with a possible fix, which @friendlyanon should be able to include when they release the next update. |
getOverlay() requires Android 4.3 or newer and someone thought that it was a good idea to configure NewPipe to ignore these critical errors. Fixes TeamNewPipe#38
getOverlay() requires Android 4.3 or newer and someone thought that it was a good idea to configure NewPipe to ignore these critical errors. Fixes TeamNewPipe#38
Is it ok for you to upload the apk with fix here @blackbox87 ? |
Anyone is welcome to download my version and compile it for themselves. I won't share a build here though because the devs have previously asked people not to post unofficial versions in issue reports such as this one. @friendlyanon @TobiGr @B0pol Trying to merge the unified player UI into NewPipe Legacy was a mistake IMO. And it obviously wasn't well tested on Android 4.1-4.4 devices as it's introduced dozens of new UI issues. Like I'm seeing text over avatars, overlapping buttons and the player constantly flickers if you scroll down the page even a little. I rolled back to v0.19.9 and then applied some extra fixes on top, which gives me a perfectly working version of NewPipe for all devices. And it's great for anyone who isn't a fan of the unified player UI in general. |
I tested the version 0.20.2 and it worked, but as you said, with UI issues as text over avatars and others related with commands like "auto play" option appearing mixed with the text "next". |
..but you can share apk build on your fork (if you want) by including source code hence by complying license conditions under GPL3. I have seen your work on NewPipe that's awesome.
Fully Agree. Though i thought @TobiGr was trying to release 0.19.9 Legacy pre-unified but build failed. I maybe wrong.
Thanks for all the work @blackbox87 "You are always willing to help" having seen your work on NewPipe and Legacy repo i can say that for sure. Still it would be great if you share your build on your fork as most of the users cannot build app by themselves by installing android studio. If need any help i am available, though i am not a computer programmer but a learner. |
@ShareASmile I've uploaded an APK. It includes 1 additional commit to disable update checks and error reports. The extractor might fail to retrieve the comments for some videos. It's a known bug and they're working on fixing it. @ElSicario22 You might want to try my version too as it should fix your problem. |
please fix this. NewPipe Legacy error on "ANDROID BOX SH940C-LN" android versi jelly bean
Exception
Crash log
The text was updated successfully, but these errors were encountered: