PDA

View Full Version : Illegal state



jonathan80
02-20-2015, 12:05 PM
Why is this appearing in my logcat for sample applications, it appears that threading is causing the application to go into an illegal state, how will this affect the integrity of my application please?


02-20 10:02:40.837 1933-1933/com.example.android.camera2basic I/art﹕ Not late-enabling -Xcheck:jni (already on)
02-20 10:02:41.093 1933-1933/com.example.android.camera2basic W/ContextImpl﹕ Failed to ensure directory: /storage/sdcard/Android/data/com.example.android.camera2basic/files
02-20 10:02:41.186 1933-1965/com.example.android.camera2basic D/OpenGLRenderer﹕ Render dirty regions requested: true
02-20 10:02:41.188 1933-1933/com.example.android.camera2basic D/﹕ HostConnection::get() New Host Connection established 0xae0fa440, tid 1933
02-20 10:02:41.271 1933-1933/com.example.android.camera2basic D/Atlas﹕ Validating map...
02-20 10:02:41.331 1933-1965/com.example.android.camera2basic D/﹕ HostConnection::get() New Host Connection established 0xae0fabc0, tid 1965
02-20 10:02:41.381 1933-1965/com.example.android.camera2basic I/OpenGLRenderer﹕ Initialized EGL, version 1.4
02-20 10:02:41.421 1933-1965/com.example.android.camera2basic D/OpenGLRenderer﹕ Enabling debug mode 0
02-20 10:02:41.487 1933-1965/com.example.android.camera2basic W/EGL_emulation﹕ eglSurfaceAttrib not implemented
02-20 10:02:41.487 1933-1965/com.example.android.camera2basic W/OpenGLRenderer﹕ Failed to set EGL_SWAP_BEHAVIOR on surface 0xa6b7b140, error=EGL_SUCCESS
02-20 10:02:41.592 1933-1933/com.example.android.camera2basic E/Camera2BasicFragment﹕ Couldn't find any suitable preview size
02-20 10:02:41.595 1933-1933/com.example.android.camera2basic I/CameraManager﹕ Using legacy camera HAL.
02-20 10:02:41.830 1933-1962/com.example.android.camera2basic I/CameraDeviceState﹕ Legacy camera service transitioning to state CONFIGURING
02-20 10:02:41.904 1933-1994/com.example.android.camera2basic I/RequestThread-0﹕ Configure outputs: 2 surfaces configured.
02-20 10:02:41.904 1933-1994/com.example.android.camera2basic D/Camera﹕ app passed NULL surface
02-20 10:02:41.937 1933-1994/com.example.android.camera2basic I/RequestThread-0﹕ configureOutputs - set take picture size to 640x480
02-20 10:02:42.019 1933-1996/com.example.android.camera2basic D/﹕ HostConnection::get() New Host Connection established 0xa55f23b0, tid 1996
02-20 10:02:42.228 1933-1996/com.example.android.camera2basic E/EGL_emulation﹕ tid 1996: eglCreateContext(877): error 0x3005 (EGL_BAD_CONFIG)
02-20 10:02:42.228 1933-1996/com.example.android.camera2basic E/CameraDeviceGLThread-0﹕ Received exception on GL render thread:
java.lang.IllegalStateException: eglCreateContext: EGL error: 0x3005
at android.hardware.camera2.legacy.SurfaceTextureRend erer.checkEglError(SurfaceTextureRenderer.java:487 )
at android.hardware.camera2.legacy.SurfaceTextureRend erer.configureEGLContext(SurfaceTextureRenderer.ja va:386)
at android.hardware.camera2.legacy.SurfaceTextureRend erer.configureSurfaces(SurfaceTextureRenderer.java :600)
at android.hardware.camera2.legacy.GLThreadManager$1. handleMessage(GLThreadManager.java:87)
at android.os.Handler.dispatchMessage(Handler.java:98 )
at android.os.Looper.loop(Looper.java:135)
at android.os.HandlerThread.run(HandlerThread.java:61 )
02-20 10:02:42.229 1933-1996/com.example.android.camera2basic I/CameraDeviceState﹕ Legacy camera service transitioning to state ERROR
02-20 10:13:36.587 1933-1939/com.example.android.camera2basic I/art﹕ Thread[2,tid=1939,WaitingInMainSignalCatcherLoop,Thread*= 0xae768400,peer=0x12c00080,"Signal Catcher"]: reacting to signal 3
02-20 10:13:36.587 1933-1939/com.example.android.camera2basic I/art﹕ [ 02-20 10:13:36.637 1933: 1939 I/art ]
Wrote stack traces to '/data/anr/traces.txt'
https://code.google.com/p/android/issues/detail?can=2&start=0&num=100&q=&colspec=ID%20Type%20Status%20Owner%20Summary%20Sta rs&groupby=&sort=&id=153204