TeamNewPipe / NewPipe

A libre lightweight streaming front-end for Android.
https://newpipe.net
GNU General Public License v3.0
31.62k stars 3.07k forks source link

Crashing after openning any video (just clicking the video) #10727

Open iiD4x opened 10 months ago

iiD4x commented 10 months ago

Checklist

Affected version

v0.26.1

Steps to reproduce the bug

  1. Using android 5.1 with ar-EG as locale
  2. make sure you're on Arabic as default lang for system
  3. Open NewPipe
  4. Open any video image

Expected behavior

To open the video

Actual behavior

NewPipe Crashes and give error : java.lang.NullPointerException: Attempt to invoke virtual method 'int android.graphics.Typeface.getStyle()' on a null object reference image

Screenshots/Screen recordings

image

Logs

Newpipelog.txt

Exception

java.lang.NullPointerException: Attempt to invoke virtual method 'int android.graphics.Typeface.getStyle()' on a null object reference
    at android.text.style.StyleSpan.apply(StyleSpan.java:100)
    at android.text.style.StyleSpan.updateMeasureState(StyleSpan.java:78)
    at android.text.MeasuredText.addStyleRun(MeasuredText.java:225)
    at android.text.StaticLayout.generate(StaticLayout.java:321)
    at android.text.DynamicLayout.reflow(DynamicLayout.java:294)
    at android.text.DynamicLayout.<init>(DynamicLayout.java:180)
    at android.widget.TextView.makeSingleLayout(TextView.java:6513)
    at android.widget.TextView.makeNewLayout(TextView.java:6411)
    at android.widget.TextView.onMeasure(TextView.java:6828)
    at androidx.appcompat.widget.AppCompatTextView.onMeasure(AppCompatTextView.java:607)
    at android.view.View.measure(View.java:17930)
    at androidx.constraintlayout.widget.ConstraintLayout$Measurer.measure(ConstraintLayout.java:811)
    at androidx.constraintlayout.core.widgets.ConstraintWidgetContainer.measure(ConstraintWidgetContainer.java:632)
    at androidx.constraintlayout.core.widgets.analyzer.Direct.horizontalSolvingPass(Direct.java:323)
    at androidx.constraintlayout.core.widgets.analyzer.Direct.solveHorizontalMatchConstraint(Direct.java:709)
    at androidx.constraintlayout.core.widgets.analyzer.Direct.horizontalSolvingPass(Direct.java:422)
    at androidx.constraintlayout.core.widgets.analyzer.Direct.horizontalSolvingPass(Direct.java:357)
    at androidx.constraintlayout.core.widgets.analyzer.Direct.solvingPass(Direct.java:144)
    at androidx.constraintlayout.core.widgets.ConstraintWidgetContainer.layout(ConstraintWidgetContainer.java:693)
    at androidx.constraintlayout.core.widgets.analyzer.BasicMeasure.solveLinearSystem(BasicMeasure.java:160)
    at androidx.constraintlayout.core.widgets.analyzer.BasicMeasure.solverMeasure(BasicMeasure.java:291)
    at androidx.constraintlayout.core.widgets.ConstraintWidgetContainer.measure(ConstraintWidgetContainer.java:120)
    at androidx.constraintlayout.widget.ConstraintLayout.resolveSystem(ConstraintLayout.java:1594)
    at androidx.constraintlayout.widget.ConstraintLayout.onMeasure(ConstraintLayout.java:1708)
    at android.view.View.measure(View.java:17930)
    at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5735)
    at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1692)
    at android.widget.LinearLayout.measureVertical(LinearLayout.java:760)
    at android.widget.LinearLayout.onMeasure(LinearLayout.java:629)
    at android.view.View.measure(View.java:17930)
    at androidx.constraintlayout.widget.ConstraintLayout$Measurer.measure(ConstraintLayout.java:811)
    at androidx.constraintlayout.core.widgets.ConstraintWidgetContainer.measure(ConstraintWidgetContainer.java:632)
    at androidx.constraintlayout.core.widgets.analyzer.Direct.horizontalSolvingPass(Direct.java:323)
    at androidx.constraintlayout.core.widgets.analyzer.Direct.solveHorizontalMatchConstraint(Direct.java:709)
    at androidx.constraintlayout.core.widgets.analyzer.Direct.horizontalSolvingPass(Direct.java:374)
    at androidx.constraintlayout.core.widgets.analyzer.Direct.solvingPass(Direct.java:144)
    at androidx.constraintlayout.core.widgets.ConstraintWidgetContainer.layout(ConstraintWidgetContainer.java:693)
    at androidx.constraintlayout.core.widgets.analyzer.BasicMeasure.solveLinearSystem(BasicMeasure.java:160)
    at androidx.constraintlayout.core.widgets.analyzer.BasicMeasure.solverMeasure(BasicMeasure.java:291)
    at androidx.constraintlayout.core.widgets.ConstraintWidgetContainer.measure(ConstraintWidgetContainer.java:120)
    at androidx.constraintlayout.widget.ConstraintLayout.resolveSystem(ConstraintLayout.java:1594)
    at androidx.constraintlayout.widget.ConstraintLayout.onMeasure(ConstraintLayout.java:1708)
    at android.view.View.measure(View.java:17930)
    at androidx.core.widget.NestedScrollView.measureChildWithMargins(NestedScrollView.java:1917)
    at android.widget.FrameLayout.onMeasure(FrameLayout.java:465)
    at androidx.core.widget.NestedScrollView.onMeasure(NestedScrollView.java:642)
    at android.view.View.measure(View.java:17930)
    at androidx.viewpager.widget.ViewPager.onMeasure(ViewPager.java:1638)
    at android.view.View.measure(View.java:17930)
    at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5735)
    at androidx.coordinatorlayout.widget.CoordinatorLayout.onMeasureChild(CoordinatorLayout.java:760)
    at com.google.android.material.appbar.HeaderScrollingViewBehavior.onMeasureChild(HeaderScrollingViewBehavior.java:100)
    at com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior.onMeasureChild(AppBarLayout.java:2376)
    at androidx.coordinatorlayout.widget.CoordinatorLayout.onMeasure(CoordinatorLayout.java:831)
    at android.view.View.measure(View.java:17930)
    at android.widget.LinearLayout.measureHorizontal(LinearLayout.java:1473)
    at android.widget.LinearLayout.onMeasure(LinearLayout.java:631)
    at android.view.View.measure(View.java:17930)
    at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5735)
    at android.widget.FrameLayout.onMeasure(FrameLayout.java:465)
    at android.view.View.measure(View.java:17930)
    at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5735)
    at android.widget.FrameLayout.onMeasure(FrameLayout.java:465)
    at android.view.View.measure(View.java:17930)
    at com.google.android.material.bottomsheet.BottomSheetBehavior.onMeasureChild(BottomSheetBehavior.java:496)
    at androidx.coordinatorlayout.widget.CoordinatorLayout.onMeasure(CoordinatorLayout.java:831)
    at android.view.View.measure(View.java:17930)
    at androidx.drawerlayout.widget.DrawerLayout.onMeasure(DrawerLayout.java:1156)
    at android.view.View.measure(View.java:17930)
    at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5735)
    at android.widget.FrameLayout.onMeasure(FrameLayout.java:465)
    at androidx.appcompat.widget.ContentFrameLayout.onMeasure(ContentFrameLayout.java:145)
    at android.view.View.measure(View.java:17930)
    at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5735)
    at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1692)
    at android.widget.LinearLayout.measureVertical(LinearLayout.java:760)
    at android.widget.LinearLayout.onMeasure(LinearLayout.java:629)
    at android.view.View.measure(View.java:17930)
    at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5735)
    at android.widget.FrameLayout.onMeasure(FrameLayout.java:465)
    at android.view.View.measure(View.java:17930)
    at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5735)
    at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1692)
    at android.widget.LinearLayout.measureVertical(LinearLayout.java:760)
    at android.widget.LinearLayout.onMeasure(LinearLayout.java:629)
    at android.view.View.measure(View.java:17930)
    at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5735)
    at android.widget.FrameLayout.onMeasure(FrameLayout.java:465)
    at com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:2731)
    at android.view.View.measure(View.java:17930)
    at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:2412)
    at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1414)
    at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1638)
    at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1292)
    at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6598)
    at android.view.Choreographer$CallbackRecord.run(Choreographer.java:800)
    at android.view.Choreographer.doCallbacks(Choreographer.java:603)
    at android.view.Choreographer.doFrame(Choreographer.java:572)
    at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:786)
    at android.os.Handler.handleCallback(Handler.java:815)
    at android.os.Handler.dispatchMessage(Handler.java:104)
    at android.os.Looper.loop(Looper.java:194)
    at android.app.ActivityThread.main(ActivityThread.java:5682)
    at java.lang.reflect.Method.invoke(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:372)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:982)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:777)


Affected Android/Custom ROM version

Android 5.1

Affected device model

Geely Car Running GKUI 19 Android 5.1

Additional information

I Was using NewPipe on same device for years now last working version was 0.25.2 after that the error above started to appear with every video

Hint : if i changed my device language to english there's no issues.

iiD4x commented 10 months ago

@opusforlife2 im not sure if its localization issue, as switching App Language to english (While system still on Arabic) still crashes too i've attached full log above