polymorphicshade / NewPipe

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

Error on exiting from full screen #312

Closed Milenpkurian closed 1 year ago

Milenpkurian commented 1 year ago

Checklist

Affected version

0 25.0

Steps to reproduce the bug

1.Fullscreen any video 2.Try to change the resolution of the video 3.Try to disable full screen

Expected behavior

No response

Actual behavior

No response

Screenshots/Screen recordings

No response

Logs

Exception

com.google.android.exoplayer2.ExoPlaybackException: Unexpected runtime error
    at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:616)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loopOnce(Looper.java:201)
    at android.os.Looper.loop(Looper.java:288)
    at android.os.HandlerThread.run(HandlerThread.java:67)
Caused by: java.lang.IllegalArgumentException
    at android.media.MediaCodec.native_setSurface(Native Method)
    at android.media.MediaCodec.setOutputSurface(MediaCodec.java:2234)
    at com.google.android.exoplayer2.mediacodec.AsynchronousMediaCodecAdapter$$ExternalSyntheticApiModelOutline0.m(R8$$SyntheticClass:0)
    at com.google.android.exoplayer2.mediacodec.AsynchronousMediaCodecAdapter.setOutputSurface(AsynchronousMediaCodecAdapter.java:262)
    at com.google.android.exoplayer2.video.MediaCodecVideoRenderer.setOutputSurfaceV23(MediaCodecVideoRenderer.java:1451)
    at com.google.android.exoplayer2.video.MediaCodecVideoRenderer.setOutput(MediaCodecVideoRenderer.java:646)
    at com.google.android.exoplayer2.video.MediaCodecVideoRenderer.handleMessage(MediaCodecVideoRenderer.java:584)
    at com.google.android.exoplayer2.ExoPlayerImplInternal.deliverMessage(ExoPlayerImplInternal.java:1546)
    at com.google.android.exoplayer2.ExoPlayerImplInternal.sendMessageToTarget(ExoPlayerImplInternal.java:1510)
    at com.google.android.exoplayer2.ExoPlayerImplInternal.sendMessageInternal(ExoPlayerImplInternal.java:1485)
    at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:521)
    ... 4 more


Affected Android/Custom ROM version

Crdroid 9.0 android 13

Affected device model

Realme 3 pro (RMX1851)

Additional information

No response

Atemu commented 1 year ago

Looks like an exoplayer bug or your OS' fault. Nothing we can do about it.

s2r commented 1 year ago

it feels like its a newpipe bug, @Atemu im having the same issue on my tablet samsung and mobile google, its this and random crashes, so doesnt feel like a OS fault, more a newpipe bug...

Atemu commented 1 year ago

The stack trace leads me to believe this has absolutely nothing to do with this fork and likely nothing with upstream NewPipe either. The error occurred deep inside exoplayer internals.

polymorphicshade commented 1 year ago

Closing as this isn't relevant to my fork.