java.lang.RuntimeException: start failed.

JIRA | JA Nache | 9 months ago
  1. 0

    Camera video record fails with every app I installed. A logcat when tap on record button show: [...] 03-10 11:41:51.914 282 7016 W AVUtils : Invalid HFR rate specified 03-10 11:41:51.914 282 6955 D mm-camera-intf: mm_stream_read_msm_frame: VIDIOC_DQBUF buf_index 0, frame_idx 281, stream type 1 03-10 11:41:51.914 282 6961 D QCamera2HWI: [KPI Perf] static void qcamera::QCamera2HardwareInterface::preview_stream_cb_routine(mm_camera_super_buf_t*, qcamera::QCameraStream*, void*) : BEGIN 03-10 11:41:51.917 282 6961 D QCamera2HWI: [KPI Perf] static void qcamera::QCamera2HardwareInterface::preview_stream_cb_routine(mm_camera_super_buf_t*, qcamera::QCameraStream*, void*) : END 03-10 11:41:51.917 282 7045 I MediaCodec: MediaCodec will operate in async mode 03-10 11:41:51.918 282 7046 I ACodec : setupVideoEncoder succeeded 03-10 11:41:51.918 282 7046 E OMXNodeInstance: setConfig(176:google.h264.encoder, ConfigPriority(0x6f800002)) ERROR: Undefined(0x80001001) 03-10 11:41:51.918 282 7046 I ACodec : codec does not support config priority (err -2147483648) 03-10 11:41:51.919 282 7016 W StagefrightRecorder: Intended audio encoding bit rate (156000) is too large and will be set to (96000) 03-10 11:41:51.919 282 7016 E AudioSystem: AudioSystem::getInputBufferSize failed sampleRate 48000 format 0x1 channelMask c 03-10 11:41:51.919 282 7016 E AudioRecord: AudioSystem could not query the input buffer size for sampleRate 48000, format 0x1, channelMask 0xc; status -22 03-10 11:41:51.919 282 7016 E StagefrightRecorder: audio source is not initialized 03-10 11:41:51.919 282 7016 D MPEG4Writer: Video track stopping 03-10 11:41:51.919 282 7016 E MPEG4Writer: Stop() called but track is not started 03-10 11:41:51.919 6559 6559 E MediaRecorder: start failed: -2147483648 03-10 11:41:51.919 282 7047 D SoftAVCEnc: Params width 1920 height 1080 level 41 colorFormat 1 03-10 11:41:51.920 6559 6559 E CAM_VideoModule: Could not start media recorder. 03-10 11:41:51.920 6559 6559 E CAM_VideoModule: java.lang.RuntimeException: start failed. 03-10 11:41:51.920 6559 6559 E CAM_VideoModule: at android.media.MediaRecorder.start(Native Method) 03-10 11:41:51.920 6559 6559 E CAM_VideoModule: at com.android.camera.VideoModule$11.onStorageUpdateDone(VideoModule.java:1384) 03-10 11:41:51.920 6559 6559 E CAM_VideoModule: at com.android.camera.CameraActivity$20.onPostExecute(CameraActivity.java:2424) 03-10 11:41:51.920 6559 6559 E CAM_VideoModule: at com.android.camera.CameraActivity$20.onPostExecute(CameraActivity.java:2419) 03-10 11:41:51.920 6559 6559 E CAM_VideoModule: at android.os.AsyncTask.finish(AsyncTask.java:651) 03-10 11:41:51.920 6559 6559 E CAM_VideoModule: at android.os.AsyncTask.-wrap1(AsyncTask.java) 03-10 11:41:51.920 6559 6559 E CAM_VideoModule: at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:668) 03-10 11:41:51.920 6559 6559 E CAM_VideoModule: at android.os.Handler.dispatchMessage(Handler.java:102) 03-10 11:41:51.920 6559 6559 E CAM_VideoModule: at android.os.Looper.loop(Looper.java:148) 03-10 11:41:51.920 6559 6559 E CAM_VideoModule: at android.app.ActivityThread.main(ActivityThread.java:5456) 03-10 11:41:51.920 6559 6559 E CAM_VideoModule: at java.lang.reflect.Method.invoke(Native Method) 03-10 11:41:51.920 6559 6559 E CAM_VideoModule: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) 03-10 11:41:51.920 6559 6559 E CAM_VideoModule: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) 03-10 11:41:51.920 6559 6559 E CAM_FatalErrorHandler: Handling Camera Access Failure: 03-10 11:41:51.920 6559 6559 E CAM_FatalErrorHandler: java.lang.Exception 03-10 11:41:51.920 6559 6559 E CAM_FatalErrorHandler: at com.android.camera.FatalErrorHandlerImpl.onGenericCameraAccessFailure(FatalErrorHandlerImpl.java:84) 03-10 11:41:51.920 6559 6559 E CAM_FatalErrorHandler: at com.android.camera.VideoModule$11.onStorageUpdateDone(VideoModule.java:1387) 03-10 11:41:51.920 6559 6559 E CAM_FatalErrorHandler: at com.android.camera.CameraActivity$20.onPostExecute(CameraActivity.java:2424) 03-10 11:41:51.920 6559 6559 E CAM_FatalErrorHandler: at com.android.camera.CameraActivity$20.onPostExecute(CameraActivity.java:2419) 03-10 11:41:51.920 6559 6559 E CAM_FatalErrorHandler: at android.os.AsyncTask.finish(AsyncTask.java:651) 03-10 11:41:51.920 6559 6559 E CAM_FatalErrorHandler: at android.os.AsyncTask.-wrap1(AsyncTask.java) 03-10 11:41:51.920 6559 6559 E CAM_FatalErrorHandler: at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:668) 03-10 11:41:51.920 6559 6559 E CAM_FatalErrorHandler: at android.os.Handler.dispatchMessage(Handler.java:102) 03-10 11:41:51.920 6559 6559 E CAM_FatalErrorHandler: at android.os.Looper.loop(Looper.java:148) 03-10 11:41:51.920 6559 6559 E CAM_FatalErrorHandler: at android.app.ActivityThread.main(ActivityThread.java:5456) 03-10 11:41:51.920 6559 6559 E CAM_FatalErrorHandler: at java.lang.reflect.Method.invoke(Native Method) 03-10 11:41:51.920 6559 6559 E CAM_FatalErrorHandler: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) 03-10 11:41:51.920 6559 6559 E CAM_FatalErrorHandler: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) 03-10 11:41:51.920 6559 6559 E CAM_CameraUtil: Show fatal error dialog 03-10 11:41:51.927 316 6940 E mm-camera-CORE: af_process_parse_stats: Invalid FV data! 03-10 11:41:51.933 316 6904 E mm-camera: cpp_hardware_process_frame:888] stream_status:0xb4e6c1c8, iden:0x10004, cur_frame_id:282 03-10 11:41:51.939 316 6939 E mm-camera: isp_save_aec_param:1315] sessionid = 1 bracket state 0 03-10 11:41:51.939 316 6939 E mm-camera: isp_save_aec_param:1341] gain 462.022430 lux 11.746094 03-10 11:41:51.939 316 6939 E mm-camera: port_isp_module_event: received AWB update event, identity = 0x10002 03-10 11:41:51.939 316 6939 E mm-camera: isp_set_awb_trigger_update:894] sessionid = 1 bracket state 0 03-10 11:41:51.939 316 6939 E mm-camera: isp_set_awb_trigger_update: session_id = 1, color_temp = 4965 gain 2.129869 1.000000 1.711409 03-10 11:41:51.939 282 6955 D mm-camera-intf: mm_stream_read_msm_frame: VIDIOC_DQBUF buf_index 5, frame_idx 282, stream type 7 [...]

    JIRA | 9 months ago | JA Nache
    java.lang.RuntimeException: start failed.
  2. 0

    Camera video record fails with every app I installed. A logcat when tap on record button show: [...] 03-10 11:41:51.914 282 7016 W AVUtils : Invalid HFR rate specified 03-10 11:41:51.914 282 6955 D mm-camera-intf: mm_stream_read_msm_frame: VIDIOC_DQBUF buf_index 0, frame_idx 281, stream type 1 03-10 11:41:51.914 282 6961 D QCamera2HWI: [KPI Perf] static void qcamera::QCamera2HardwareInterface::preview_stream_cb_routine(mm_camera_super_buf_t*, qcamera::QCameraStream*, void*) : BEGIN 03-10 11:41:51.917 282 6961 D QCamera2HWI: [KPI Perf] static void qcamera::QCamera2HardwareInterface::preview_stream_cb_routine(mm_camera_super_buf_t*, qcamera::QCameraStream*, void*) : END 03-10 11:41:51.917 282 7045 I MediaCodec: MediaCodec will operate in async mode 03-10 11:41:51.918 282 7046 I ACodec : setupVideoEncoder succeeded 03-10 11:41:51.918 282 7046 E OMXNodeInstance: setConfig(176:google.h264.encoder, ConfigPriority(0x6f800002)) ERROR: Undefined(0x80001001) 03-10 11:41:51.918 282 7046 I ACodec : codec does not support config priority (err -2147483648) 03-10 11:41:51.919 282 7016 W StagefrightRecorder: Intended audio encoding bit rate (156000) is too large and will be set to (96000) 03-10 11:41:51.919 282 7016 E AudioSystem: AudioSystem::getInputBufferSize failed sampleRate 48000 format 0x1 channelMask c 03-10 11:41:51.919 282 7016 E AudioRecord: AudioSystem could not query the input buffer size for sampleRate 48000, format 0x1, channelMask 0xc; status -22 03-10 11:41:51.919 282 7016 E StagefrightRecorder: audio source is not initialized 03-10 11:41:51.919 282 7016 D MPEG4Writer: Video track stopping 03-10 11:41:51.919 282 7016 E MPEG4Writer: Stop() called but track is not started 03-10 11:41:51.919 6559 6559 E MediaRecorder: start failed: -2147483648 03-10 11:41:51.919 282 7047 D SoftAVCEnc: Params width 1920 height 1080 level 41 colorFormat 1 03-10 11:41:51.920 6559 6559 E CAM_VideoModule: Could not start media recorder. 03-10 11:41:51.920 6559 6559 E CAM_VideoModule: java.lang.RuntimeException: start failed. 03-10 11:41:51.920 6559 6559 E CAM_VideoModule: at android.media.MediaRecorder.start(Native Method) 03-10 11:41:51.920 6559 6559 E CAM_VideoModule: at com.android.camera.VideoModule$11.onStorageUpdateDone(VideoModule.java:1384) 03-10 11:41:51.920 6559 6559 E CAM_VideoModule: at com.android.camera.CameraActivity$20.onPostExecute(CameraActivity.java:2424) 03-10 11:41:51.920 6559 6559 E CAM_VideoModule: at com.android.camera.CameraActivity$20.onPostExecute(CameraActivity.java:2419) 03-10 11:41:51.920 6559 6559 E CAM_VideoModule: at android.os.AsyncTask.finish(AsyncTask.java:651) 03-10 11:41:51.920 6559 6559 E CAM_VideoModule: at android.os.AsyncTask.-wrap1(AsyncTask.java) 03-10 11:41:51.920 6559 6559 E CAM_VideoModule: at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:668) 03-10 11:41:51.920 6559 6559 E CAM_VideoModule: at android.os.Handler.dispatchMessage(Handler.java:102) 03-10 11:41:51.920 6559 6559 E CAM_VideoModule: at android.os.Looper.loop(Looper.java:148) 03-10 11:41:51.920 6559 6559 E CAM_VideoModule: at android.app.ActivityThread.main(ActivityThread.java:5456) 03-10 11:41:51.920 6559 6559 E CAM_VideoModule: at java.lang.reflect.Method.invoke(Native Method) 03-10 11:41:51.920 6559 6559 E CAM_VideoModule: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) 03-10 11:41:51.920 6559 6559 E CAM_VideoModule: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) 03-10 11:41:51.920 6559 6559 E CAM_FatalErrorHandler: Handling Camera Access Failure: 03-10 11:41:51.920 6559 6559 E CAM_FatalErrorHandler: java.lang.Exception 03-10 11:41:51.920 6559 6559 E CAM_FatalErrorHandler: at com.android.camera.FatalErrorHandlerImpl.onGenericCameraAccessFailure(FatalErrorHandlerImpl.java:84) 03-10 11:41:51.920 6559 6559 E CAM_FatalErrorHandler: at com.android.camera.VideoModule$11.onStorageUpdateDone(VideoModule.java:1387) 03-10 11:41:51.920 6559 6559 E CAM_FatalErrorHandler: at com.android.camera.CameraActivity$20.onPostExecute(CameraActivity.java:2424) 03-10 11:41:51.920 6559 6559 E CAM_FatalErrorHandler: at com.android.camera.CameraActivity$20.onPostExecute(CameraActivity.java:2419) 03-10 11:41:51.920 6559 6559 E CAM_FatalErrorHandler: at android.os.AsyncTask.finish(AsyncTask.java:651) 03-10 11:41:51.920 6559 6559 E CAM_FatalErrorHandler: at android.os.AsyncTask.-wrap1(AsyncTask.java) 03-10 11:41:51.920 6559 6559 E CAM_FatalErrorHandler: at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:668) 03-10 11:41:51.920 6559 6559 E CAM_FatalErrorHandler: at android.os.Handler.dispatchMessage(Handler.java:102) 03-10 11:41:51.920 6559 6559 E CAM_FatalErrorHandler: at android.os.Looper.loop(Looper.java:148) 03-10 11:41:51.920 6559 6559 E CAM_FatalErrorHandler: at android.app.ActivityThread.main(ActivityThread.java:5456) 03-10 11:41:51.920 6559 6559 E CAM_FatalErrorHandler: at java.lang.reflect.Method.invoke(Native Method) 03-10 11:41:51.920 6559 6559 E CAM_FatalErrorHandler: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) 03-10 11:41:51.920 6559 6559 E CAM_FatalErrorHandler: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) 03-10 11:41:51.920 6559 6559 E CAM_CameraUtil: Show fatal error dialog 03-10 11:41:51.927 316 6940 E mm-camera-CORE: af_process_parse_stats: Invalid FV data! 03-10 11:41:51.933 316 6904 E mm-camera: cpp_hardware_process_frame:888] stream_status:0xb4e6c1c8, iden:0x10004, cur_frame_id:282 03-10 11:41:51.939 316 6939 E mm-camera: isp_save_aec_param:1315] sessionid = 1 bracket state 0 03-10 11:41:51.939 316 6939 E mm-camera: isp_save_aec_param:1341] gain 462.022430 lux 11.746094 03-10 11:41:51.939 316 6939 E mm-camera: port_isp_module_event: received AWB update event, identity = 0x10002 03-10 11:41:51.939 316 6939 E mm-camera: isp_set_awb_trigger_update:894] sessionid = 1 bracket state 0 03-10 11:41:51.939 316 6939 E mm-camera: isp_set_awb_trigger_update: session_id = 1, color_temp = 4965 gain 2.129869 1.000000 1.711409 03-10 11:41:51.939 282 6955 D mm-camera-intf: mm_stream_read_msm_frame: VIDIOC_DQBUF buf_index 5, frame_idx 282, stream type 7 [...]

    JIRA | 9 months ago | JA Nache
    java.lang.RuntimeException: start failed.
  3. 0

    GitHub comment 9#254043605

    GitHub | 2 months ago | ayufan
    java.lang.RuntimeException: start failed.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Android: MediaRecorder start failed : -16

    Stack Overflow | 4 years ago | user1797699
    java.lang.RuntimeException: start failed.
  6. 0

    Android - MediaRecorder start() throw IllegalStateException

    Stack Overflow | 3 years ago | Junior Programmer
    java.lang.IllegalStateException: Could not execute method of the activity

    5 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.RuntimeException

      start failed.

      at android.media.MediaRecorder.start()
    2. Android Platform
      MediaRecorder.start
      1. android.media.MediaRecorder.start(Native Method)
      1 frame
    3. com.android.camera
      CameraActivity$20.onPostExecute
      1. com.android.camera.VideoModule$11.onStorageUpdateDone(VideoModule.java:1384)
      2. com.android.camera.CameraActivity$20.onPostExecute(CameraActivity.java:2424)
      3. com.android.camera.CameraActivity$20.onPostExecute(CameraActivity.java:2419)
      3 frames
    4. Android Platform
      AsyncTask.finish
      1. android.os.AsyncTask.finish(AsyncTask.java:651)
      1 frame