Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to call Surface.setFrameRate #300

Open
daidai962464 opened this issue Dec 24, 2024 · 0 comments
Open

Failed to call Surface.setFrameRate #300

daidai962464 opened this issue Dec 24, 2024 · 0 comments

Comments

@daidai962464
Copy link

[ ] E/BufferQueueProducer(24470): ImageReader-1x1f22m5-24470-8 cancelBuffer: BufferQueue has been abandoned
[ ] E/BufferQueueProducer(24470): ImageReader-1x1f22m5-24470-8 cancelBuffer: BufferQueue has been abandoned
[ ] I/MediaCodec(24470): [mId: 10] video-debug setState: UNINITIALIZED
[ +13 ms] E/VideoFrameReleaseHelper(24470): Failed to call Surface.setFrameRate
[ ] E/VideoFrameReleaseHelper(24470): java.lang.IllegalStateException: Surface has already been released.
[ ] E/VideoFrameReleaseHelper(24470): at android.view.Surface.checkNotReleasedLocked(Surface.java:817)
[ ] E/VideoFrameReleaseHelper(24470): at android.view.Surface.setFrameRate(Surface.java:1025)
[ ] E/VideoFrameReleaseHelper(24470): at android.view.Surface.setFrameRate(Surface.java:1070)
[ ] E/VideoFrameReleaseHelper(24470): at androidx.media3.exoplayer.video.VideoFrameReleaseHelper$Api30.setSurfaceFrameRate(VideoFrameReleaseHelper.java:436)
[ ] E/VideoFrameReleaseHelper(24470): at androidx.media3.exoplayer.video.VideoFrameReleaseHelper.clearSurfaceFrameRate(VideoFrameReleaseHelper.java:382)
[ ] E/VideoFrameReleaseHelper(24470): at androidx.media3.exoplayer.video.VideoFrameReleaseHelper.onStopped(VideoFrameReleaseHelper.java:232)
[ ] E/VideoFrameReleaseHelper(24470): at androidx.media3.exoplayer.video.VideoFrameReleaseControl.onStopped(VideoFrameReleaseControl.java:233)
[ ] E/VideoFrameReleaseHelper(24470): at androidx.media3.exoplayer.video.MediaCodecVideoRenderer.onStopped(MediaCodecVideoRenderer.java:872)
[ ] E/VideoFrameReleaseHelper(24470): at androidx.media3.exoplayer.BaseRenderer.stop(BaseRenderer.java:233)
[ ] E/VideoFrameReleaseHelper(24470): at androidx.media3.exoplayer.ExoPlayerImplInternal.ensureStopped(ExoPlayerImplInternal.java:1847)
[ ] E/VideoFrameReleaseHelper(24470): at androidx.media3.exoplayer.ExoPlayerImplInternal.disableRenderer(ExoPlayerImplInternal.java:1858)
[ ] E/VideoFrameReleaseHelper(24470): at androidx.media3.exoplayer.ExoPlayerImplInternal.resetInternal(ExoPlayerImplInternal.java:1577)
[ ] E/VideoFrameReleaseHelper(24470): at androidx.media3.exoplayer.ExoPlayerImplInternal.releaseInternal(ExoPlayerImplInternal.java:1548)
[ ] E/VideoFrameReleaseHelper(24470): at androidx.media3.exoplayer.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:629)
[ ] E/VideoFrameReleaseHelper(24470): at android.os.Handler.dispatchMessage(Handler.java:102)
[ ] E/VideoFrameReleaseHelper(24470): at android.os.Looper.loopOnce(Looper.java:224)
[ ] E/VideoFrameReleaseHelper(24470): at android.os.Looper.loop(Looper.java:318)
[ ] E/VideoFrameReleaseHelper(24470): at android.os.HandlerThread.run(HandlerThread.java:67)
[ ] I/MiMediaCodec(24470): send fps to display when stop, state:0 mLastSendedFps:25.000000 id:10
[ ] E/MediaCodec(24470): flush() is valid only at Executing states; currently at Released state
[ +20 ms] E/ExoPlayerImplInternal(24470): Disable failed.
[ ] E/ExoPlayerImplInternal(24470): java.lang.IllegalStateException: flush() is valid only at Executing states; currently at Released state
[ ] E/ExoPlayerImplInternal(24470):
[ ] E/ExoPlayerImplInternal(24470): at android.media.MediaCodec.native_flush(Native Method)
[ ] E/ExoPlayerImplInternal(24470): at android.media.MediaCodec.flush(MediaCodec.java:2504)
[ ] E/ExoPlayerImplInternal(24470): at androidx.media3.exoplayer.mediacodec.AsynchronousMediaCodecAdapter.flush(AsynchronousMediaCodecAdapter.java:265)
[ ] E/ExoPlayerImplInternal(24470): at androidx.media3.exoplayer.mediacodec.MediaCodecRenderer.flushCodec(MediaCodecRenderer.java:965)
[ ] E/ExoPlayerImplInternal(24470): at androidx.media3.exoplayer.mediacodec.MediaCodecRenderer.flushOrReleaseCodec(MediaCodecRenderer.java:958)
[ ] E/ExoPlayerImplInternal(24470): at androidx.media3.exoplayer.mediacodec.MediaCodecRenderer.onDisabled(MediaCodecRenderer.java:782)
[ ] E/ExoPlayerImplInternal(24470): at androidx.media3.exoplayer.video.MediaCodecVideoRenderer.onDisabled(MediaCodecVideoRenderer.java:890)
[ ] E/ExoPlayerImplInternal(24470): at androidx.media3.exoplayer.BaseRenderer.disable(BaseRenderer.java:244)
[ ] E/ExoPlayerImplInternal(24470): at androidx.media3.exoplayer.ExoPlayerImplInternal.disableRenderer(ExoPlayerImplInternal.java:1859)
[ ] E/ExoPlayerImplInternal(24470): at androidx.media3.exoplayer.ExoPlayerImplInternal.resetInternal(ExoPlayerImplInternal.java:1577)
[ ] E/ExoPlayerImplInternal(24470): at androidx.media3.exoplayer.ExoPlayerImplInternal.releaseInternal(ExoPlayerImplInternal.java:1548)
[ ] E/ExoPlayerImplInternal(24470): at androidx.media3.exoplayer.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:629)
[ ] E/ExoPlayerImplInternal(24470): at android.os.Handler.dispatchMessage(Handler.java:102)
[ ] E/ExoPlayerImplInternal(24470): at android.os.Looper.loopOnce(Looper.java:224)
[ ] E/ExoPlayerImplInternal(24470): at android.os.Looper.loop(Looper.java:318)
[ ] E/ExoPlayerImplInternal(24470): at android.os.HandlerThread.run(HandlerThread.java:67)
[ ] D/AudioTrack(24470): pause(sessionID=3921) pause(487): prior state:STATE_ACTIVE
[ +6 ms] D/MediaCodec(24470): [mId: 11] audio-debug Stats over last 5021ms:
[ ] D/MediaCodec(24470): [mId: 11] audio-debug configure: ClientName: com.xplayer.player_app ComponentName: c2.android.aac.decoder
[ ] D/MediaCodec(24470): [mId: 11] audio-debug Qinput: 203, DQinput: 0 success out of 0 tries
[ ] D/MediaCodec(24470): [mId: 11] audio-debug Render: 0, Drop: 192, DQoutput: 0 success out of 0 tries
[ ] I/MediaCodec(24470): [mId: 11] audio-debug setState: FLUSHING
[ +7 ms] I/CCodecBufferChannel(24470): [mId: 11] audio-debug flush: flushing 2 works
[ +209 ms] W/MessageQueue(24470): Handler (android.os.Handler) {b0fb20d} sending message to a Handler on a dead thread
[ ] W/MessageQueue(24470): java.lang.IllegalStateException: Handler (android.os.Handler) {b0fb20d} sending message to a Handler on a dead thread
[ ] W/MessageQueue(24470): at android.os.MessageQueue.enqueueMessage(MessageQueue.java:574)
[ ] W/MessageQueue(24470): at android.os.Handler.enqueueMessage(Handler.java:786)
[ ] W/MessageQueue(24470): at android.os.Handler.sendMessageAtTime(Handler.java:735)
[ ] W/MessageQueue(24470): at android.os.Handler.sendMessageDelayed(Handler.java:705)
[ ] W/MessageQueue(24470): at android.os.Handler.sendMessage(Handler.java:643)
[ ] W/MessageQueue(24470): at android.os.Message.sendToTarget(Message.java:484)
[ ] W/MessageQueue(24470): at androidx.media3.common.util.SystemHandlerWrapper$SystemMessage.sendToTarget(SystemHandlerWrapper.java:160)
[ ] W/MessageQueue(24470): at androidx.media3.exoplayer.ExoPlayerImplInternal.setPlayWhenReady(ExoPlayerImplInternal.java:353)
[ ] W/MessageQueue(24470): at androidx.media3.exoplayer.ExoPlayerImpl.updatePlaybackInfoForPlayWhenReadyAndSuppressionReasonStates(ExoPlayerImpl.java:2813)
[ ] W/MessageQueue(24470): at androidx.media3.exoplayer.ExoPlayerImpl.updatePlayWhenReady(ExoPlayerImpl.java:2796)
[ ] W/MessageQueue(24470): at androidx.media3.exoplayer.ExoPlayerImpl.setPlayWhenReady(ExoPlayerImpl.java:834)
[ ] W/MessageQueue(24470): at androidx.media3.common.BasePlayer.pause(BasePlayer.java:119)
[ ] W/MessageQueue(24470): at io.flutter.plugins.videoplayer.VideoPlayer.pause(VideoPlayer.java:135)
[ ] W/MessageQueue(24470): at io.flutter.plugins.videoplayer.VideoPlayerPlugin.pause(VideoPlayerPlugin.java:186)
[ ] W/MessageQueue(24470): at io.flutter.plugins.videoplayer.Messages$AndroidVideoPlayerApi$-CC.lambda$setUp$9(Messages.java:539)
[ ] W/MessageQueue(24470): at io.flutter.plugins.videoplayer.Messages$AndroidVideoPlayerApi$$ExternalSyntheticLambda1.onMessage(Unknown Source:2)
[ ] W/MessageQueue(24470): at io.flutter.plugin.common.BasicMessageChannel$IncomingMessageHandler.onMessage(BasicMessageChannel.java:261)
[ ] W/MessageQueue(24470): at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler(DartMessenger.java:292)
[ ] W/MessageQueue(24470): at io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue$0$io-flutter-embedding-engine-dart-DartMessenger(DartMessenger.java:319)
[ ] W/MessageQueue(24470): at io.flutter.embedding.engine.dart.DartMessenger$$ExternalSyntheticLambda0.run(Unknown Source:12)
[ ] W/MessageQueue(24470): at android.os.Handler.handleCallback(Handler.java:958)
[ ] W/MessageQueue(24470): at android.os.Handler.dispatchMessage(Handler.java:99)
[ ] W/MessageQueue(24470): at android.os.Looper.loopOnce(Looper.java:224)
[ ] W/MessageQueue(24470): at android.os.Looper.loop(Looper.java:318)
[ ] W/MessageQueue(24470): at android.app.ActivityThread.main(ActivityThread.java:8772)
[ ] W/MessageQueue(24470): at java.lang.reflect.Method.invoke(Native Method)
[ ] W/MessageQueue(24470): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:561)
[ ] W/MessageQueue(24470): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1013)
[ +585 ms] D/BufferPoolAccessor2.0(24470): evictor expired: 4, evicted: 0
[+4002 ms] D/BufferPoolAccessor2.0(24470): evictor expired: 2, evicted: 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant