java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.demosurfaceview/com.example.demosurfaceview.MainActivity}: java.lang.IllegalArgumentException: The surface has been released

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via blogspot.com by Unknown author, 1 year ago
Unable to start activity ComponentInfo{com.example.demosurfaceview/com.example.demosurfaceview.MainActivity}: java.lang.IllegalArgumentException: The surface has been released
via Stack Overflow by AndroidOptimist
, 2 years ago
Unable to start activity ComponentInfo{com.msense.msenseplayer/com.msense.msenseplayer.VideoSample1}: java.lang.IllegalArgumentException: The surface has been released
via Stack Overflow by El Duderino
, 1 year ago
Unable to start activity ComponentInfo{de.lochmann.einkaufsliste/de.lochmann.einkaufsliste.AC_Main}: j java.lang.IllegalStateException: Activity has been destroyed
via Stack Overflow by Raman Branavitski
, 2 years ago
Unable to start activity ComponentInfo{com.example.jlabproject/com.example.jlabproject.MainActivity}: java.lang.IllegalStateException: Activity has been destroyed
via Stack Overflow by Sound Conception
, 2 years ago
Unable to start activity ComponentInfo{com.example.nestedfragmenttest/com.example.nestedfragmenttest.MainActivity}: java.lang.IllegalStateException: Activity has been destroyed
via Stack Overflow by jhon
, 2 years ago
Unable to start activity ComponentInfo{com.kt.narendramodi/com.kt.narendramodi.ModiForIndia}: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.kt.narendramodi/com.kt.narendramodi.InfoNarendraModi}: java.lang.IllegalArgumentException: Cannot bind argument at index 2 because the index is out of range. The statement has 0 parameters.
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.demosurfaceview/com.example.demosurfaceview.MainActivity}: java.lang.IllegalArgumentException: The surface has been released
at android.media.MediaPlayer._setVideoSurface(Native Method)
at android.media.MediaPlayer.setDisplay(MediaPlayer.java:668)
at com.example.demosurfaceview.MainActivity.Create_Surface(MainActivity.java:87)
at com.example.demosurfaceview.MainActivity.onCreate(MainActivity.java:54)
at android.app.Activity.performCreate(Activity.java:5104)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2144)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
at android.app.ActivityThread.access$600(ActivityThread.java:141)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5039)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.