Hi.
I am running Android Studio 1.5.1 in Windows 7 on a Dell i7 with 8 GB memory of which I have allocated 2 GB to Android, presumably its exclusive sandbox.
I've created a simple Gradle and downloaded several system images to test the various o/s versions.
I have created 2 Android Virtual Devices for :
Nexus 4 API 21 (arm)
Nexus 5 API 23 x86
The intention is to test the Java code using each of those environment.
Next I clicked Run -> Run 'app' -> checked launch emulator and selected Nexus 4 API 21 -> OK
Studio displayed the AVD and I can see various apps loading e.g. time, battery charging etc.
Then, after a few minutes, it crashed with a lot of messages saying "...too much work..."
Here is a sample from the console:
12-22 17:14:45.701 1099-1099/com.hfad.myfirstapp I/art: Not late-enabling -Xcheck:jni (already on)
12-22 17:14:47.925 1099-1106/com.hfad.myfirstapp W/art: Suspending all threads took: 265.654ms
12-22 17:14:50.938 1099-1111/com.hfad.myfirstapp I/art: Background sticky concurrent mark sweep GC freed 2743(244KB) AllocSpace objects, 0(0B) LOS objects, 29% free, 804KB/1135KB, paused 4.812ms total 359.103ms
12-22 17:14:51.150 1099-1126/com.hfad.myfirstapp D/OpenGLRenderer: Render dirty regions requested: true
12-22 17:14:51.247 1099-1099/com.hfad.myfirstapp D/Atlas: Validating map...
12-22 17:14:51.279 1099-1111/com.hfad.myfirstapp I/art: Background partial concurrent mark sweep GC freed 362(66KB) AllocSpace objects, 0(0B) LOS objects, 51% free, 949KB/1973KB, paused 1.251ms total 194.452ms
12-22 17:14:51.580 1099-1126/com.hfad.myfirstapp I/OpenGLRenderer: Initialized EGL, version 1.4
12-22 17:14:51.608 1099-1126/com.hfad.myfirstapp D/OpenGLRenderer: Enabling debug mode 0
12-22 17:14:51.734 1099-1126/com.hfad.myfirstapp W/EGL_emulation: eglSurfaceAttrib not implemented
12-22 17:14:51.734 1099-1126/com.hfad.myfirstapp W/OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xaeee6f00, error=EGL_SUCCESS
12-22 17:14:52.009 1099-1099/com.hfad.myfirstapp I/Choreographer: Skipped 41 frames! The application may be doing too much work on its main thread.
12-22 17:14:52.976 1099-1099/com.hfad.myfirstapp I/Choreographer: Skipped 57 frames! The application may be doing too much work on its main thread.
12-22 17:16:23.477 1099-1099/com.hfad.myfirstapp I/Choreographer: Skipped 62 frames! The application may be doing too much work on its main thread.
12-22 17:16:23.773 1099-1126/com.hfad.myfirstapp W/EGL_emulation: eglSurfaceAttrib not implemented
12-22 17:16:23.773 1099-1126/com.hfad.myfirstapp W/OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xaeee6f00, error=EGL_SUCCESS
12-22 17:16:24.169 1099-1099/com.hfad.myfirstapp I/Choreographer: Skipped 39 frames! The application may be doing too much work on its main thread.
12-22 17:16:25.184 1099-1099/com.hfad.myfirstapp I/Choreographer: Skipped 33 frames! The application may be doing too much work on its main thread.
12-22 17:20:06.481 1099-1106/com.hfad.myfirstapp W/art: Suspending all threads took: 10.226ms
12-22 17:21:25.135 1099-1106/com.hfad.myfirstapp W/art: Suspending all threads took: 7.085ms
12-22 17:25:30.072 1099-1106/com.hfad.myfirstapp W/art: Suspending all threads took: 10.219ms
What have I done wrong and how do I fix it?
Perhaps delete the other AVD, the Nexus 5 ?
I am running Android Studio 1.5.1 in Windows 7 on a Dell i7 with 8 GB memory of which I have allocated 2 GB to Android, presumably its exclusive sandbox.
I've created a simple Gradle and downloaded several system images to test the various o/s versions.
I have created 2 Android Virtual Devices for :
Nexus 4 API 21 (arm)
Nexus 5 API 23 x86
The intention is to test the Java code using each of those environment.
Next I clicked Run -> Run 'app' -> checked launch emulator and selected Nexus 4 API 21 -> OK
Studio displayed the AVD and I can see various apps loading e.g. time, battery charging etc.
Then, after a few minutes, it crashed with a lot of messages saying "...too much work..."
Here is a sample from the console:
12-22 17:14:45.701 1099-1099/com.hfad.myfirstapp I/art: Not late-enabling -Xcheck:jni (already on)
12-22 17:14:47.925 1099-1106/com.hfad.myfirstapp W/art: Suspending all threads took: 265.654ms
12-22 17:14:50.938 1099-1111/com.hfad.myfirstapp I/art: Background sticky concurrent mark sweep GC freed 2743(244KB) AllocSpace objects, 0(0B) LOS objects, 29% free, 804KB/1135KB, paused 4.812ms total 359.103ms
12-22 17:14:51.150 1099-1126/com.hfad.myfirstapp D/OpenGLRenderer: Render dirty regions requested: true
12-22 17:14:51.247 1099-1099/com.hfad.myfirstapp D/Atlas: Validating map...
12-22 17:14:51.279 1099-1111/com.hfad.myfirstapp I/art: Background partial concurrent mark sweep GC freed 362(66KB) AllocSpace objects, 0(0B) LOS objects, 51% free, 949KB/1973KB, paused 1.251ms total 194.452ms
12-22 17:14:51.580 1099-1126/com.hfad.myfirstapp I/OpenGLRenderer: Initialized EGL, version 1.4
12-22 17:14:51.608 1099-1126/com.hfad.myfirstapp D/OpenGLRenderer: Enabling debug mode 0
12-22 17:14:51.734 1099-1126/com.hfad.myfirstapp W/EGL_emulation: eglSurfaceAttrib not implemented
12-22 17:14:51.734 1099-1126/com.hfad.myfirstapp W/OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xaeee6f00, error=EGL_SUCCESS
12-22 17:14:52.009 1099-1099/com.hfad.myfirstapp I/Choreographer: Skipped 41 frames! The application may be doing too much work on its main thread.
12-22 17:14:52.976 1099-1099/com.hfad.myfirstapp I/Choreographer: Skipped 57 frames! The application may be doing too much work on its main thread.
12-22 17:16:23.477 1099-1099/com.hfad.myfirstapp I/Choreographer: Skipped 62 frames! The application may be doing too much work on its main thread.
12-22 17:16:23.773 1099-1126/com.hfad.myfirstapp W/EGL_emulation: eglSurfaceAttrib not implemented
12-22 17:16:23.773 1099-1126/com.hfad.myfirstapp W/OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xaeee6f00, error=EGL_SUCCESS
12-22 17:16:24.169 1099-1099/com.hfad.myfirstapp I/Choreographer: Skipped 39 frames! The application may be doing too much work on its main thread.
12-22 17:16:25.184 1099-1099/com.hfad.myfirstapp I/Choreographer: Skipped 33 frames! The application may be doing too much work on its main thread.
12-22 17:20:06.481 1099-1106/com.hfad.myfirstapp W/art: Suspending all threads took: 10.226ms
12-22 17:21:25.135 1099-1106/com.hfad.myfirstapp W/art: Suspending all threads took: 7.085ms
12-22 17:25:30.072 1099-1106/com.hfad.myfirstapp W/art: Suspending all threads took: 10.219ms
What have I done wrong and how do I fix it?
Perhaps delete the other AVD, the Nexus 5 ?