All camera apps crash when opened

Has anybody else had problems with camera-related apps all crashing? Has anybody managed to solve this problem?

I’ve got an FP1U, and every camera-related app that I open does, in fact, open, but then immediately becomes unresponsive. This includes flashlight apps that use the camera LED.

This problem occurred out-of-the-box, before I had installed any apps. It happenned the very first time I opened the camera app, and has persisted since through reboots, clearing the cache of the camera app, and upgrading to Cherry.

The problem is nearly completely consistent: exactly once I randomly opened the app and it did not crash. Next time I opened the camera app, it was back to crashing. AFAIK I had done nothing special that time.

Apps I’ve confirmed the problem with:

  • "Camera (stock camera app)
    • Opens with camera UI over black background (as opposed to camera UI over moving picture of what the camera is seeing).
    • does not respond to input.
    • quits with the message “Unfortunately, Gallery has stopped”
    • simply opening the Gallery app (to browse pictures) works, however, so perhaps that means a different Gallery
  • Camera (available from F-Droid, "this is the camera2 package which is a new package in Android 4.4, but it’s compatible with Android 4.0)
  • Open Flashlight
    • If I’m quick enough I can hit the toggle button and turn on/off the camera LED before the app freezes.

Below is the log I recored while trying to open the stock Camera app. I’ve googled the phrase java.lang.RuntimeException: startPreview failed, but that only turned up people doing their own Android programming.

If more info is needed, I shall gladly post it. If anybody else has had this problem: did you solve it in the end? If so, how?

11-30 22:06:48.686 E/EISDrv  (134): [setMBInterval_H] mediatek/platform/mt6589/hardware/camera/core/featureio/drv/eis/eis_drv.cpp ERR( 1170):wrong boundary
11-30 22:06:48.741 E/DrmMtkUtil/DrmUtil(134): checkDcf: not dcf type, dcf version value [79]
11-30 22:06:48.741 E/DrmMtkUtil/DrmUtil(134): checkDcf: not dcf type, dcf version value [79]
11-30 22:06:48.742 E/DrmMtkUtil/DrmUtil(134): checkDcf: not dcf type, dcf version value [79]
11-30 22:06:48.742 E/DrmMtkUtil/DrmUtil(134): checkDcf: not dcf type, dcf version value [79]
11-30 22:06:48.747 E/OMXCodec(134): @@ [OUT] def.nBufferSize = 32768
11-30 22:06:48.747 E/OMXCodec(134): @@ [OUT] totalSize = 131584
11-30 22:06:48.748 E/OMXCodec(134): @@ [OUT] def.nBufferSize = 32768
11-30 22:06:48.748 E/OMXCodec(134): @@ [OUT] totalSize = 131584
11-30 22:06:48.760 E/OMXCodec(134): [OMX.MTK.AUDIO.DECODER.VORBIS] No more output data in fillOutputBuffer, mFilledBuffers size=0
11-30 22:06:48.760 E/OMXCodec(134): [OMX.MTK.AUDIO.DECODER.VORBIS] read() final return
11-30 22:06:48.781 E/OMXCodec(134): [OMX.MTK.AUDIO.DECODER.VORBIS] No more output data in fillOutputBuffer, mFilledBuffers size=2
11-30 22:06:48.781 E/OMXCodec(134): [OMX.MTK.AUDIO.DECODER.VORBIS] No more output data in fillOutputBuffer, mFilledBuffers size=1
11-30 22:06:48.781 E/OMXCodec(134): [OMX.MTK.AUDIO.DECODER.VORBIS] No more output data in fillOutputBuffer, mFilledBuffers size=0
11-30 22:06:48.781 E/OMXCodec(134): [OMX.MTK.AUDIO.DECODER.VORBIS] read() final return
11-30 22:06:48.820 E/PhotoDataAdapter(1573): fireDataChange: enterCameraPreview
11-30 22:06:48.946 E/PhotoDataAdapter(1573): fireDataChange: enterCameraPreview
11-30 22:06:53.637 E/IspDrv  (134): {IspDrv} [mediatek/platform/mt6589/hardware/camera/core/drv/isp/isp_drv.cpp, waitIrq, line1991] ERROR: ISP_WAIT_IRQ fail(-1). Clear(1), Type(0), Status(0x00000400), Timeout(5000).
11-30 22:06:53.637 E/iio/ifunc(134): [mediatek/platform/mt6589/hardware/camera/core/imageio/drv/cam/isp_function.cpp, waitBufReady, line4457] ERROR: waitIrq( irq_TG1_DONE ) fail
11-30 22:06:53.637 E/iio/pathp1(134): [mediatek/platform/mt6589/hardware/camera/core/imageio/drv/cam/cam_path_pass1.cpp, dequeueBuf, line0236] ERROR: waitBufReady fail
11-30 22:06:53.637 E/iio/camio(134): [mediatek/platform/mt6589/hardware/camera/core/imageio/pipe/CamIOPipe/CamIOPipe.cpp, dequeOutBuf, line0399] ERROR: ERROR:dequeueBuf
11-30 22:06:53.637 E/MtkCam/VSSScen(134): [deque] mpCamIOPipe->dequeOutBuf fail (deque){#737:mediatek/platform/mt6589/hardware/camera/core/hwscenario/VSSScenario.cpp}
11-30 22:06:54.832 E/hwcomposer_v1.0(130): [WKR] Timed out waiting for FrameSyncThread...
11-30 22:06:58.626 E/IspDrv  (134): {IspDrv} [mediatek/platform/mt6589/hardware/camera/core/drv/isp/isp_drv.cpp, waitIrq, line1991] ERROR: ISP_WAIT_IRQ fail(-1). Clear(1), Type(0), Status(0x00000400), Timeout(5000).
11-30 22:06:58.626 E/iio/ifunc(134): [mediatek/platform/mt6589/hardware/camera/core/imageio/drv/cam/isp_function.cpp, waitBufReady, line4457] ERROR: waitIrq( irq_TG1_DONE ) fail
11-30 22:06:58.627 E/iio/pathp1(134): [mediatek/platform/mt6589/hardware/camera/core/imageio/drv/cam/cam_path_pass1.cpp, dequeueBuf, line0236] ERROR: waitBufReady fail
11-30 22:06:58.627 E/iio/camio(134): [mediatek/platform/mt6589/hardware/camera/core/imageio/pipe/CamIOPipe/CamIOPipe.cpp, dequeOutBuf, line0399] ERROR: ERROR:dequeueBuf
11-30 22:06:58.627 E/MtkCam/VSSScen(134): [deque] mpCamIOPipe->dequeOutBuf fail (deque){#737:mediatek/platform/mt6589/hardware/camera/core/hwscenario/VSSScenario.cpp}
11-30 22:06:58.627 E/MtkCam/PrvCQT(134): (1829)[dropFrame] still failed. (dropFrame){#1451:mediatek/platform/mt6589/hardware/camera/hal/adapter/MtkPhoto/Preview/PreviewCmdQueThread.cpp}
11-30 22:07:03.506 E/IspDrv  (134): {IspDrv} [mediatek/platform/mt6589/hardware/camera/core/drv/isp/isp_drv.cpp, waitIrq, line1991] ERROR: ISP_WAIT_IRQ fail(-1). Clear(1), Type(0), Status(0x00000400), Timeout(5000).
11-30 22:07:03.506 E/iio/ifunc(134): [mediatek/platform/mt6589/hardware/camera/core/imageio/drv/cam/isp_function.cpp, waitBufReady, line4457] ERROR: waitIrq( irq_TG1_DONE ) fail
11-30 22:07:03.507 E/iio/pathp1(134): [mediatek/platform/mt6589/hardware/camera/core/imageio/drv/cam/cam_path_pass1.cpp, dequeueBuf, line0236] ERROR: waitBufReady fail
11-30 22:07:03.507 E/iio/camio(134): [mediatek/platform/mt6589/hardware/camera/core/imageio/pipe/CamIOPipe/CamIOPipe.cpp, dequeOutBuf, line0399] ERROR: ERROR:dequeueBuf
11-30 22:07:03.507 E/MtkCam/VSSScen(134): [deque] mpCamIOPipe->dequeOutBuf fail (deque){#737:mediatek/platform/mt6589/hardware/camera/core/hwscenario/VSSScenario.cpp}
11-30 22:07:08.496 E/IspDrv  (134): {IspDrv} [mediatek/platform/mt6589/hardware/camera/core/drv/isp/isp_drv.cpp, waitIrq, line1991] ERROR: ISP_WAIT_IRQ fail(-1). Clear(1), Type(0), Status(0x00000400), Timeout(5000).
11-30 22:07:08.496 E/iio/ifunc(134): [mediatek/platform/mt6589/hardware/camera/core/imageio/drv/cam/isp_function.cpp, waitBufReady, line4457] ERROR: waitIrq( irq_TG1_DONE ) fail
11-30 22:07:08.497 E/iio/pathp1(134): [mediatek/platform/mt6589/hardware/camera/core/imageio/drv/cam/cam_path_pass1.cpp, dequeueBuf, line0236] ERROR: waitBufReady fail
11-30 22:07:08.497 E/iio/camio(134): [mediatek/platform/mt6589/hardware/camera/core/imageio/pipe/CamIOPipe/CamIOPipe.cpp, dequeOutBuf, line0399] ERROR: ERROR:dequeueBuf
11-30 22:07:08.497 E/MtkCam/VSSScen(134): [deque] mpCamIOPipe->dequeOutBuf fail (deque){#737:mediatek/platform/mt6589/hardware/camera/core/hwscenario/VSSScenario.cpp}
11-30 22:07:08.497 E/MtkCam/PrvCQT(134): (1829)[dropFrame] still failed. (dropFrame){#1451:mediatek/platform/mt6589/hardware/camera/hal/adapter/MtkPhoto/Preview/PreviewCmdQueThread.cpp}
11-30 22:07:08.497 E/MtkCam/CamAdapter(134): (134)(MtkPhoto)[onHandleStartPreview] StartPreview stage 2 (delay): fail (onHandleStartPreview){#140:mediatek/platform/mt6589/hardware/camera/hal/adapter/MtkPhoto/Preview/MtkPhotoCamAdapter.Preview.cpp}
11-30 22:07:08.497 E/MtkCam/CamDevice(134): (134)(Default:0)[CamDevice::startPreview] startPreview() in CameraAdapter returns: [Function not implemented(38)] (startPreview){#343:mediatek/hardware/camera/device/CamDevice/CamDevice.cpp}
11-30 22:07:13.416 E/IspDrv  (134): {IspDrv} [mediatek/platform/mt6589/hardware/camera/core/drv/isp/isp_drv.cpp, waitIrq, line1991] ERROR: ISP_WAIT_IRQ fail(-1). Clear(1), Type(0), Status(0x00000400), Timeout(5000).
11-30 22:07:13.417 E/iio/ifunc(134): [mediatek/platform/mt6589/hardware/camera/core/imageio/drv/cam/isp_function.cpp, waitBufReady, line4457] ERROR: waitIrq( irq_TG1_DONE ) fail
11-30 22:07:13.417 E/iio/pathp1(134): [mediatek/platform/mt6589/hardware/camera/core/imageio/drv/cam/cam_path_pass1.cpp, dequeueBuf, line0236] ERROR: waitBufReady fail
11-30 22:07:13.417 E/iio/camio(134): [mediatek/platform/mt6589/hardware/camera/core/imageio/pipe/CamIOPipe/CamIOPipe.cpp, dequeOutBuf, line0399] ERROR: ERROR:dequeueBuf
11-30 22:07:13.744 E/AndroidRuntime(1573): FATAL EXCEPTION: Camera Handler Thread
11-30 22:07:13.744 E/AndroidRuntime(1573): java.lang.RuntimeException: startPreview failed
11-30 22:07:13.744 E/AndroidRuntime(1573):     at android.hardware.Camera.startPreview(Native Method)
11-30 22:07:13.744 E/AndroidRuntime(1573):     at com.mediatek.camera.AndroidCamera.startPreview(AndroidCamera.java:178)
11-30 22:07:13.744 E/AndroidRuntime(1573):     at com.android.camera.CameraManager$CameraHandler.handleMessage(CameraManager.java:173)
11-30 22:07:13.744 E/AndroidRuntime(1573):     at android.os.Handler.dispatchMessage(Handler.java:99)
11-30 22:07:13.744 E/AndroidRuntime(1573):     at android.os.Looper.loop(Looper.java:153)
11-30 22:07:13.744 E/AndroidRuntime(1573):     at android.os.HandlerThread.run(HandlerThread.java:60)
11-30 22:07:13.757 E/AppErrorDialog(517): Failed to get ILowStorageHandle instance

Maybe something went wrong during installation at the factory. Have you performed a hard reset?

If this doesn’t solve the problem it seems like a hardware issue.

What happens if you deinstall all apps save the original one?

My camera app regularly refuses to open until I reboot which is a bit later than when I want to snap the shot. How do I stop this happening so that the camera opens when I want it to?

Just for info, there are fixes for the android Camera app in the next update. This may fix your issue.

1 Like