LuckSiege / LuckSiege/PictureSelector

Fatal Exception: android.media.MediaCodec$CodecException Error 0xffffec77

Open
#2,020 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
13.6k
Forks
3.1k
PR merge metrics
No merged PRs in 30d

Description

品牌:samsung
型号:Galaxy J4
Android 10

Fatal Exception: android.media.MediaCodec$CodecException: Error 0xffffec77
at android.media.MediaCodec.native_configure(MediaCodec.java)
at android.media.MediaCodec.configure(MediaCodec.java:2023)
at android.media.MediaCodec.configure(MediaCodec.java:1951)
at androidx.camera.core.VideoCapture.setupEncoder(VideoCapture.java:615)
at androidx.camera.core.VideoCapture.onSuggestedResolutionUpdated(VideoCapture.java:339)
at androidx.camera.core.UseCase.updateSuggestedResolution(UseCase.java:499)
at androidx.camera.core.internal.CameraUseCaseAdapter.addUseCases(CameraUseCaseAdapter.java:208)
at androidx.camera.lifecycle.LifecycleCamera.bind(LifecycleCamera.java:185)
at androidx.camera.lifecycle.LifecycleCameraRepository.bindToLifecycleCamera(LifecycleCameraRepository.java:276)
at androidx.camera.lifecycle.ProcessCameraProvider.bindToLifecycle(ProcessCameraProvider.java:459)
at androidx.camera.lifecycle.ProcessCameraProvider.bindToLifecycle(ProcessCameraProvider.java:310)
at androidx.camera.view.LifecycleCameraController.startCamera(LifecycleCameraController.java:135)
at androidx.camera.view.CameraController.startCameraAndTrackStates(CameraController.java:1107)
at androidx.camera.view.CameraController.setEnabledUseCases(CameraController.java:364)
at com.luck.picture.lib.camera.CustomCameraView$2.recordStart(CustomCameraView.java:164)
at com.luck.picture.lib.camera.view.CaptureLayout$2.recordStart(CaptureLayout.java:167)
at com.luck.picture.lib.camera.view.CaptureButton$2.onAnimationEnd(CaptureButton.java:280)
at android.animation.Animator$AnimatorListener.onAnimationEnd(Animator.java:554)
at android.animation.AnimatorSet.endAnimation(AnimatorSet.java:1301)
at android.animation.AnimatorSet.doAnimationFrame(AnimatorSet.java:1086)
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:994)
at android.view.Choreographer.doCallbacks(Choreographer.java:794)
at android.view.Choreographer.doFrame(Choreographer.java:725)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:981)
at android.os.Handler.handleCallback(Handler.java:883)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:237)
at android.app.ActivityThread.main(ActivityThread.java:7948)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1075)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the stack trace at androidx.camera.core.VideoCapture.setupEncoder and follow the call path through LifecycleCameraController and CameraController. Reproduce the failure on a Samsung Galaxy J4 running Android 10 while enabling video capture. Done means the reported MediaCodec configuration exception no longer crashes camera startup on that device.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.