polymorphicshade / NewPipe

A fork of NewPipe with SponsorBlock functionality.
GNU General Public License v3.0
3.21k stars 104 forks source link

Crashing #353

Open WoAnerges opened 1 year ago

WoAnerges commented 1 year ago

Checklist

Affected version

0252

Steps to reproduce the bug

It randomly crashes during playback all the time

Expected behavior

No response

Actual behavior

No response

Screenshots/Screen recordings

No response

Logs

Exception

java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.ContentResolver android.content.Context.getContentResolver()' on a null object reference
    at org.schabi.newpipe.util.DeviceUtils.hasAnimationsAnimatorDurationEnabled(DeviceUtils.java:294)
    at org.schabi.newpipe.local.feed.FeedFragment.showNewItemsLoaded$lambda$22(FeedFragment.kt:601)
    at org.schabi.newpipe.local.feed.FeedFragment.$r8$lambda$PS5ueo6OP7FchkK75lIOG7kK1ck(FeedFragment.kt:0)
    at org.schabi.newpipe.local.feed.FeedFragment$$ExternalSyntheticLambda14.run(R8$$SyntheticClass:0)
    at org.schabi.newpipe.ktx.ExecOnEndListener.onAnimationEnd(View.kt:279)
    at android.view.ViewPropertyAnimator$AnimatorEventListener.onAnimationEnd(ViewPropertyAnimator.java:1111)
    at android.animation.Animator$AnimatorListener.onAnimationEnd(Animator.java:554)
    at android.animation.ValueAnimator.endAnimation(ValueAnimator.java:1250)
    at android.animation.ValueAnimator.doAnimationFrame(ValueAnimator.java:1492)
    at android.animation.AnimationHandler.doAnimationFrame(AnimationHandler.java:146)
    at android.animation.AnimationHandler.access$100(AnimationHandler.java:37)
    at android.animation.AnimationHandler$1.doFrame(AnimationHandler.java:54)
    at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1054)
    at android.view.Choreographer.doCallbacks(Choreographer.java:878)
    at android.view.Choreographer.doFrame(Choreographer.java:807)
    at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1041)
    at android.os.Handler.handleCallback(Handler.java:938)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:248)
    at android.app.ActivityThread.main(ActivityThread.java:7787)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:952)


Affected Android/Custom ROM version

12

Affected device model

Samsung

Additional information

No response

Atemu commented 1 year ago

How does upstream NewPipe behave with the same settings and user data?

WoAnerges commented 1 year ago

How does upstream NewPipe behave with the same settings and user data?

It also crashes

Atemu commented 1 year ago

This issue has nothing to do with this fork then. Please read the template carefully, it's there for a reason.

WoAnerges commented 1 year ago

Sorry, I got confused with the downstream. !Correction: It doesn't crash upstream!