1*38e8c45fSAndroid Build Coastguard WorkerRepro steps: 2*38e8c45fSAndroid Build Coastguard Worker 3*38e8c45fSAndroid Build Coastguard Workerbuild, install and run the attached test program TestEgl.apk 4*38e8c45fSAndroid Build Coastguard Worker 5*38e8c45fSAndroid Build Coastguard WorkerThe program does not draw anything to the screen, it just prints to the log, so use adb logcat to watch the output. 6*38e8c45fSAndroid Build Coastguard Worker 7*38e8c45fSAndroid Build Coastguard WorkerExpected behavior: 8*38e8c45fSAndroid Build Coastguard Worker 9*38e8c45fSAndroid Build Coastguard Workerconstantly increasing "step" count: 10*38e8c45fSAndroid Build Coastguard Worker 11*38e8c45fSAndroid Build Coastguard Worker 12*38e8c45fSAndroid Build Coastguard WorkerW/TestActivity( 1885): ****** step 235 resume 13*38e8c45fSAndroid Build Coastguard WorkerW/TestActivity( 1885): step 236 pause 14*38e8c45fSAndroid Build Coastguard WorkerW/TestActivity( 1885): ****** step 236 resume 15*38e8c45fSAndroid Build Coastguard Worker 16*38e8c45fSAndroid Build Coastguard Workerand so on. 17*38e8c45fSAndroid Build Coastguard Worker 18*38e8c45fSAndroid Build Coastguard WorkerActual behavior: 19*38e8c45fSAndroid Build Coastguard Worker 20*38e8c45fSAndroid Build Coastguard WorkerW/TestActivity( 1466): ****** step 25 resume 21*38e8c45fSAndroid Build Coastguard WorkerW/TestActivity( 1466): step 26 pause 22*38e8c45fSAndroid Build Coastguard WorkerW/TestActivity( 1466): ****** step 26 resume 23*38e8c45fSAndroid Build Coastguard WorkerW/dalvikvm( 1466): threadid=8: thread exiting with uncaught exception (group=0x4001d7f0) 24*38e8c45fSAndroid Build Coastguard WorkerE/AndroidRuntime( 1466): FATAL EXCEPTION: GLThread 9 25*38e8c45fSAndroid Build Coastguard WorkerE/AndroidRuntime( 1466): java.lang.RuntimeException: createContext failed: EGL_BAD_ALLOC 26*38e8c45fSAndroid Build Coastguard WorkerE/AndroidRuntime( 1466): at android.opengl.GLSurfaceView$EglHelper.throwEglException(GLSurfaceView.java:1067) 27*38e8c45fSAndroid Build Coastguard WorkerE/AndroidRuntime( 1466): at android.opengl.GLSurfaceView$EglHelper.throwEglException(GLSurfaceView.java:1059) 28*38e8c45fSAndroid Build Coastguard WorkerE/AndroidRuntime( 1466): at android.opengl.GLSurfaceView$EglHelper.start(GLSurfaceView.java:925) 29*38e8c45fSAndroid Build Coastguard WorkerE/AndroidRuntime( 1466): at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1236) 30*38e8c45fSAndroid Build Coastguard WorkerE/AndroidRuntime( 1466): at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1106) 31*38e8c45fSAndroid Build Coastguard WorkerW/TestActivity( 1466): step 27 pause 32*38e8c45fSAndroid Build Coastguard WorkerW/TestActivity( 1466): ****** step 27 resume 33*38e8c45fSAndroid Build Coastguard WorkerW/TestActivity( 1466): step 28 pause 34*38e8c45fSAndroid Build Coastguard WorkerW/TestActivity( 1466): ****** step 28 resume 35*38e8c45fSAndroid Build Coastguard Worker 36*38e8c45fSAndroid Build Coastguard Worker 37*38e8c45fSAndroid Build Coastguard WorkerSee http://b/issue?id=2550745 for further details. 38