AnsweredAssumed Answered

i.MX53 - java.lang.RuntimeException startPreview failed

Question asked by Gwenael MANCEAU on Jun 5, 2015

Hi

 

I work with an IMX53.

In order taking photo I show a preview of the Camera.

Most of time it's working, but I don't know why, sometime there is an Exception on the Camera.startPreview() command. Therefore, the preview is empty.

 

Does anyone can help me to understand the problem?

 

(...)

06-04 12:41:33.800 I/FslOverlay( 2349): overlay_setParameter param 131 value 0

06-04 12:41:33.800 I/FslOverlay( 2349): overlay_setParameter OVERLAY_VISIBLE 0

06-04 12:41:33.800 I/FslOverlay( 2349): hardware/mx5x/liboverlay/overlay.cpp: overlay_commit

06-04 12:41:33.800 W/CameraService( 2202): Overlay create failed - retrying

06-04 12:41:33.800 I/FslOverlay( 2349): Overlay in destroy or invisible,flush queue as queued_count 0,queued_head 0

06-04 12:41:33.800 I/FslOverlay( 2349): output of calcOutputParam: 208/56/480/360

06-04 12:41:33.820 E/CameraService( 2202): Overlay Creation Failed!

06-04 12:41:33.830 E/IHM2    ( 2512): AndroidCameraView : java.lang.RuntimeException: startPreview failed

06-04 12:41:33.830 E/IHM2    ( 2512): AndroidCameraView :     at android.hardware.Camera.startPreview(Native Method)

06-04 12:41:33.830 E/IHM2    ( 2512): AndroidCameraView :     at com.bodet.bwt.android.AndroidCameraView$CameraPreview.surfaceCreated(AndroidCameraView.java:262)

06-04 12:41:33.830 E/IHM2    ( 2512): AndroidCameraView :     at android.view.SurfaceView.updateWindow(SurfaceView.java:543)

06-04 12:41:33.830 E/IHM2    ( 2512): AndroidCameraView :     at android.view.SurfaceView.dispatchDraw(SurfaceView.java:348)

06-04 12:41:33.830 E/IHM2    ( 2512): AndroidCameraView :     at android.view.ViewGroup.drawChild(ViewGroup.java:1645)

06-04 12:41:33.830 E/IHM2    ( 2512): AndroidCameraView :     at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1374)

06-04 12:41:33.830 E/IHM2    ( 2512): AndroidCameraView :     at android.view.ViewGroup.drawChild(ViewGroup.java:1645)

06-04 12:41:33.830 E/IHM2    ( 2512): AndroidCameraView :     at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1374)

06-04 12:41:33.830 E/IHM2    ( 2512): AndroidCameraView :     at android.view.ViewGroup.drawChild(ViewGroup.java:1645)

06-04 12:41:33.830 E/IHM2    ( 2512): AndroidCameraView :     at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1374)

06-04 12:41:33.830 E/IHM2    ( 2512): AndroidCameraView :     at android.view.View.draw(View.java:7165)

06-04 12:41:33.830 E/IHM2    ( 2512): AndroidCameraView :     at android.widget.FrameLayout.draw(FrameLayout.java:357)

06-04 12:41:33.840 E/IHM2    ( 2512): AndroidCameraView :     at com.android.internal.policy.impl.PhoneWindow$DecorView.draw(PhoneWindow.java:1862)

06-04 12:41:33.840 E/IHM2    ( 2512): AndroidCameraView :     at android.view.ViewRoot.draw(ViewRoot.java:1592)

06-04 12:41:33.840 E/IHM2    ( 2512): AndroidCameraView :     at android.view.ViewRoot.performTraversals(ViewRoot.java:1301)

06-04 12:41:33.850 E/IHM2    ( 2512): AndroidCameraView :     at android.view.ViewRoot.handleMessage(ViewRoot.java:1931)

06-04 12:41:33.850 E/IHM2    ( 2512): AndroidCameraView :     at android.os.Handler.dispatchMessage(Handler.java:99)

06-04 12:41:33.850 E/IHM2    ( 2512): AndroidCameraView :     at android.os.Looper.loop(Looper.java:130)

06-04 12:41:33.850 E/IHM2    ( 2512): AndroidCameraView :     at android.app.ActivityThread.main(ActivityThread.java:3683)

06-04 12:41:33.850 E/IHM2    ( 2512): AndroidCameraView :     at java.lang.reflect.Method.invokeNative(Native Method)

06-04 12:41:33.850 E/IHM2    ( 2512): AndroidCameraView :     at java.lang.reflect.Method.invoke(Method.java:507)

06-04 12:41:33.850 E/IHM2    ( 2512): AndroidCameraView :     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)

06-04 12:41:33.850 E/IHM2    ( 2512): AndroidCameraView :     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)

06-04 12:41:33.850 E/IHM2    ( 2512): AndroidCameraView :     at dalvik.system.NativeStart.main(Native Method)

Outcomes