java.lang.IllegalStateException: Handler (android.media.MediaRecorder$EventHandler) {1934a667} sending message to a Handler on a dead thread

Stack Overflow | Vaibhav Agarwal | 10 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Camera2Api Video Recording giving blank output file

    Stack Overflow | 10 months ago | Vaibhav Agarwal
    java.lang.IllegalStateException: Handler (android.media.MediaRecorder$EventHandler) {1934a667} sending message to a Handler on a dead thread

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Handler (android.media.MediaRecorder$EventHandler) {1934a667} sending message to a Handler on a dead thread

      at android.os.MessageQueue.enqueueMessage()
    2. Android Platform
      MediaRecorder.postEventFromNative
      1. android.os.MessageQueue.enqueueMessage(MessageQueue.java:325)
      2. android.os.Handler.enqueueMessage(Handler.java:631)
      3. android.os.Handler.sendMessageAtTime(Handler.java:600)
      4. android.os.Handler.sendMessageDelayed(Handler.java:570)
      5. android.os.Handler.sendMessage(Handler.java:507)
      6. android.media.MediaRecorder.postEventFromNative(MediaRecorder.java:1029)
      6 frames