java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1995, result=-1, data=Intent { (has extras) }} to activity {MainActivity}: java.lang.IllegalStateException: failed to get surface

Stack Overflow | Umer Farooq | 6 months ago
  1. 0

    java.lang.IllegalStateException: failed to get surface

    Stack Overflow | 11 months ago | PL13
    java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=22, result=-1, data=Intent { (has extras) }} to activity {gr.awm.clrecorder/gr.awm.clrecorder.MainActivity}: java.lang.IllegalStateException: failed to get surface
  2. 0

    MediaRecorder.GetSurface() returning null

    Stack Overflow | 6 months ago | Umer Farooq
    java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1995, result=-1, data=Intent { (has extras) }} to activity {MainActivity}: java.lang.IllegalStateException: failed to get surface
  3. 0
    You should define the TestContext class in your classpath
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    All look like I had something else running on my machine that was interfering with it. Once I rebooted it runs without issue.
  6. 0
    The solution is to run as root using sudo or to set different port in "application.properties" file, e.g. server.port=${port:8181}

    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.IllegalStateException

      failed to get surface

      at android.media.MediaRecorder.getSurface()
    2. Android Platform
      MediaRecorder.getSurface
      1. android.media.MediaRecorder.getSurface(Native Method)
      1 frame