I am using the android emulator with eclipse but the problem that is when i start the emulator it freeze and still display the word ANDROID with no change
can anyone help me to fix this problem ???
and this is the
logCat
10-21 14:55:18.623: I/DEBUG(33): debuggerd: Mar 27 2012 23:11:09
10-21 14:55:18.658: I/qemu-props(31): connected to 'boot-properties' qemud service.
10-21 14:55:18.713: I/qemu-props(31): receiving..
10-21 14:55:18.713: I/qemu-props(31): received: dalvik.vm.heapsize=32m
10-21 14:55:18.934: I/qemu-props(31): receiving..
10-21 14:55:18.934: I/qemu-props(31): received: qemu.sf.lcd_density=240
10-21 14:55:18.993: I/qemu-props(31): receiving..
10-21 14:55:18.993: I/qemu-props(31): received: qemu.hw.mainkeys=1
10-21 14:55:19.070: I/qemu-props(31): receiving..
10-21 14:55:19.070: I/qemu-props(31): received: qemu.sf.fake_camera=none
10-21 14:55:19.073: I/qemu-props(31): receiving..
10-21 14:55:19.073: I/qemu-props(31): exiting (4 properties set).
10-21 14:55:19.233: I/Vold(30): Vold 2.1 (the revenge) firing up
10-21 14:55:19.385: D/Vold(30): Volume sdcard state changing -1 (Initializing) -> 0 (No-Media)
10-21 14:55:19.475: I/Netd(32): Netd 1.0 starting
10-21 14:55:20.065: E/Netd(32): Unable to bind netlink socket: No such file or directory
10-21 14:55:20.065: E/Netd(32): Unable to open quota2 logging socket
10-21 14:55:24.582: D/AndroidRuntime(36): >>>>>> AndroidRuntime START com.android.internal.os.ZygoteInit <<<<<<
10-21 14:55:24.622: D/AndroidRuntime(36): CheckJNI is ON
10-21 14:55:25.436: I/SurfaceFlinger(35): SurfaceFlinger is starting
10-21 14:55:25.492: I/SurfaceFlinger(35): SurfaceFlinger's main thread ready to run. Initializing graphics H/W...
10-21 14:55:25.596: D/gralloc_goldfish(35): Emulator without GPU emulation detected.
10-21 14:55:25.602: I/gralloc(35): using (fd=10)
10-21 14:55:25.602: I/gralloc(35): id =
10-21 14:55:25.602: I/gralloc(35): xres = 480 px
10-21 14:55:25.602: I/gralloc(35): yres = 800 px
10-21 14:55:25.602: I/gralloc(35): xres_virtual = 480 px
10-21 14:55:25.602: I/gralloc(35): yres_virtual = 1600 px
10-21 14:55:25.602: I/gralloc(35): bpp = 16
10-21 14:55:25.602: I/gralloc(35): r = 11:5
10-21 14:55:25.602: I/gralloc(35): g = 5:6
10-21 14:55:25.602: I/gralloc(35): b = 0:5
10-21 14:55:25.602: I/gralloc(35): width = 74 mm (164.756760 dpi)
10-21 14:55:25.602: I/gralloc(35): height = 123 mm (165.203247 dpi)
10-21 14:55:25.602: I/gralloc(35): refresh rate = 260.42 Hz
10-21 14:55:25.673: D/libEGL(35): Emulator without GPU support detected. Fallback to software renderer.
10-21 14:55:25.692: D/libEGL(35): loaded /system/lib/egl/libGLES_android.so
10-21 14:55:25.826: I/SurfaceFlinger(35): EGL informations:
10-21 14:55:25.826: I/SurfaceFlinger(35): # of configs : 8
10-21 14:55:25.826: I/SurfaceFlinger(35): vendor : Android
10-21 14:55:25.826: I/SurfaceFlinger(35): version : 1.4 Android META-EGL
10-21 14:55:25.826: I/SurfaceFlinger(35): extensions: EGL_KHR_image_base EGL_ANDROID_image_native_buffer
10-21 14:55:25.826: I/SurfaceFlinger(35): Client API: OpenGL ES
10-21 14:55:25.826: I/SurfaceFlinger(35): EGLSurface: 5-6-5-0, config=0x0
10-21 14:55:25.826: I/SurfaceFlinger(35): OpenGL informations:
10-21 14:55:25.826: I/SurfaceFlinger(35): vendor : Android
10-21 14:55:25.826: I/SurfaceFlinger(35): renderer : Android PixelFlinger 1.4
10-21 14:55:25.826: I/SurfaceFlinger(35): version : OpenGL ES-CM 1.0
10-21 14:55:25.826: I/SurfaceFlinger(35): extensions: GL_OES_byte_coordinates GL_OES_fixed_point GL_OES_single_precision GL_OES_read_format GL_OES_compressed_paletted_texture GL_OES_draw_texture GL_OES_matrix_get GL_OES_query_matrix GL_OES_EGL_image GL_OES_compressed_ETC1_RGB8_texture GL_ARB_texture_compression GL_ARB_texture_non_power_of_two GL_ANDROID_user_clip_plane GL_ANDROID_vertex_buffer_object GL_ANDROID_generate_mipmap
10-21 14:55:25.826: I/SurfaceFlinger(35): GL_MAX_TEXTURE_SIZE = 4096
10-21 14:55:25.826: I/SurfaceFlinger(35): GL_MAX_VIEWPORT_DIMS = 4096 x 4096
10-21 14:55:25.826: I/SurfaceFlinger(35): flags = 00040000
10-21 14:55:25.852: W/SurfaceFlinger(35): hwcomposer module not found
10-21 14:55:27.292: D/libEGL(65): Emulator without GPU support detected. Fallback to software renderer.
10-21 14:55:27.362: D/libEGL(65): loaded /system/lib/egl/libGLES_android.so
10-21 14:55:27.587: D/gralloc_goldfish(65): Emulator without GPU emulation detected.
10-21 14:55:28.164: I/(37): ServiceManager: 0xf958
10-21 14:55:28.263: I/AudioFlinger(37): Loaded primary audio interface from LEGACY Audio HW HAL (audio)
10-21 14:55:28.263: I/AudioFlinger(37): Using 'LEGACY Audio HW HAL' (audio.primary) as the primary audio interface
10-21 14:55:28.263: D/AudioHardwareInterface(37): setMode(NORMAL)
10-21 14:55:28.447: I/CameraService(37): CameraService started (pid=37)
10-21 14:55:28.699: D/EmulatedCamera_QemuClient(37): Emulated camera list:
10-21 14:55:28.746: D/EmulatedCamera_FakeCamera(37): Initialize: Fake camera is facing none
10-21 14:55:28.793: V/EmulatedCamera_Factory(37): 1 cameras are being emulated. Fake camera ID is 0
10-21 14:55:28.838: I/ARMAssembler(65): generated scanline__00000077:03010102_00000A01_00000000 [ 9 ipp] (30 ins) at [0x409a51e8:0x409a5260] in 36130839 ns
10-21 14:55:28.873: I/ARMAssembler(65): generated scanline__00000077:03545402_00000A01_00000000 [ 31 ipp] (52 ins) at [0x409a5268:0x409a5338] in 6793919 ns
10-21 14:55:29.068: I/AudioFlinger(37): AudioFlinger's thread 0x10fe0 ready to run
10-21 14:55:29.073: W/AudioFlinger(37): Thread AudioOut_1 cannot connect to the power manager service
10-21 14:55:29.123: W/AudioFlinger(37): Thread AudioOut_1 cannot connect to the power manager service
10-21 14:55:29.243: I/AudioPolicyService(37): Loaded audio policy from LEGACY Audio Policy HAL (audio_policy)
10-21 14:55:47.112: I/SamplingProfilerIntegration(36): Profiling disabled.
10-21 14:55:48.342: I/Zygote(36): Preloading classes...
10-21 14:55:48.779: D/dalvikvm(36): GC_EXPLICIT freed 36K, 81% free 408K/2048K, paused 69ms+44ms
10-21 14:55:50.192: D/dalvikvm(36): GC_EXPLICIT freed 4K, 77% free 472K/2048K, paused 58ms+3ms
10-21 14:55:52.003: D/dalvikvm(36): GC_EXPLICIT freed 20K, 76% free 508K/2048K, paused 61ms+59ms
10-21 14:55:53.773: D/dalvikvm(36): GC_EXPLICIT freed 27K, 74% free 535K/2048K, paused 59ms+69ms
10-21 14:55:54.858: D/dalvikvm(36): GC_EXPLICIT freed 15K, 72% free 575K/2048K, paused 68ms+4ms
10-21 14:55:57.183: D/dalvikvm(36): GC_EXPLICIT freed 27K, 71% free 601K/2048K, paused 42ms+4ms
10-21 14:56:02.243: D/dalvikvm(36): GC_EXPLICIT freed 30K, 69% free 634K/2048K, paused 208ms+68ms
10-21 14:56:03.483: D/TextLayoutCache(36): Using debug level: 0 - Debug Enabled: 0
10-21 14:56:04.083: W/Zygote(36): Class not found for preloading: android.media.AudioManager$2
10-21 14:56:06.523: I/dalvikvm(36): threadid=1: recursive native library load attempt (/system/lib/libmedia_jni.so)
10-21 14:56:06.573: D/MtpDeviceJNI(36): register_android_mtp_MtpDevice
10-21 14:56:06.693: I/dalvikvm(36): threadid=1: recursive native library load attempt (/system/lib/libmedia_jni.so)
10-21 14:56:06.752: I/dalvikvm(36): threadid=1: recursive native library load attempt (/system/lib/libmedia_jni.so)
10-21 14:56:06.764: W/MediaProfiles(36): could not find media config xml file
10-21 14:56:07.003: W/Zygote(36): Class not found for preloading: android.media.IRemoteControlClientDispatcher
10-21 14:56:07.052: W/Zygote(36): Class not found for preloading: android.media.IRemoteControlClientDispatcher$Stub
10-21 14:56:07.723: D/dalvikvm(36): GC_EXPLICIT freed 19K, 68% free 674K/2048K, paused 49ms+11ms
10-21 14:56:17.053: D/dalvikvm(36): GC_FOR_ALLOC freed 216K, 53% free 970K/2048K, paused 600ms
10-21 14:56:19.553: D/dalvikvm(36): GC_EXPLICIT freed 44K, 50% free 1025K/2048K, paused 59ms+7ms
10-21 14:56:22.693: D/dalvikvm(36): GC_EXPLICIT freed 27K, 49% free 1054K/2048K, paused 6ms+60ms
10-21 14:56:26.273: D/dalvikvm(36): GC_EXPLICIT freed 8K, 47% free 1102K/2048K, paused 8ms+60ms
10-21 14:56:28.338: D/dalvikvm(36): GC_EXPLICIT freed 23K, 43% free 1169K/2048K, paused 41ms+114ms
10-21 14:56:31.913: D/dalvikvm(36): GC_EXPLICIT freed 48K, 30% free 1447K/2048K, paused 44ms+93ms
10-21 14:56:32.263: W/Zygote(36): Class not found for preloading: android.text.TextDirectionHeuristics$CharCount
10-21 14:56:32.732: W/Zygote(36): Class not found for preloading: android.text.method.WordIterator$1
10-21 14:56:34.956: D/dalvikvm(36): GC_EXPLICIT freed 35K, 28% free 1482K/2048K, paused 68ms+63ms
10-21 14:56:37.202: D/dalvikvm(36): GC_EXPLICIT freed 32K, 27% free 1504K/2048K, paused 109ms+81ms
10-21 14:56:43.169: I/dalvikvm(36): threadid=1: recursive native library load attempt (/system/lib/libwebcore.so)
10-21 14:56:43.267: D/dalvikvm(36): No JNI_OnLoad found in /system/lib/libchromium_net.so 0x0, skipping init
10-21 14:56:46.233: D/dalvikvm(36): GC_EXPLICIT freed 26K, 25% free 1553K/2048K, paused 65ms+50ms
10-21 14:56:49.036: W/Zygote(36): Class not found for preloading: android.widget.EdgeGlow
10-21 14:56:52.633: D/dalvikvm(36): GC_EXPLICIT freed 25K, 23% free 1582K/2048K, paused 109ms+18ms
10-21 14:56:59.212: D/dalvikvm(36): GC_EXPLICIT freed 71K, 21% free 1627K/2048K, paused 94ms+21ms
10-21 14:56:59.982: E/PhonePolicy(36): Could not preload class for phone policy: com.android.internal.policy.impl.PhoneWindow$ContextMenuCallback
10-21 14:57:01.882: D/dalvikvm(36): GC_EXPLICIT freed 33K, 20% free 1649K/2048K, paused 63ms+215ms
10-21 14:57:04.853: D/dalvikvm(36): GC_EXPLICIT freed 28K, 19% free 1677K/2048K, paused 129ms+31ms
10-21 14:57:06.868: D/dalvikvm(36): GC_EXPLICIT freed 26K, 17% free 1708K/2048K, paused 10ms+50ms
10-21 14:57:10.253: D/dalvikvm(36): GC_EXPLICIT freed 32K, 16% free 1734K/2048K, paused 470ms+30ms
10-21 14:57:12.463: D/dalvikvm(36): GC_EXPLICIT freed 31K, 14% free 1762K/2048K, paused 68ms+64ms
10-21 14:57:14.973: D/dalvikvm(36): GC_EXPLICIT freed 71K, 12% free 1817K/2048K, paused 67ms+112ms
10-21 14:57:17.073: D/dalvikvm(36): GC_EXPLICIT freed 39K, 11% free 1833K/2048K, paused 79ms+45ms
10-21 14:58:06.766: I/System(36): Loaded time zone names for in 47518ms (47180ms in ICU)
10-21 14:58:43.909: I/System(36): Loaded time zone names for en_US in 37082ms (36678ms in ICU)
10-21 14:58:45.473: D/dalvikvm(36): GC_EXPLICIT freed 324K, 16% free 1950K/2307K, paused 58ms+162ms
10-21 14:58:47.273: D/dalvikvm(36): GC_EXPLICIT freed 15K, 13% free 2011K/2307K, paused 64ms+67ms
10-21 14:58:50.708: D/dalvikvm(36): GC_EXPLICIT freed 51K, 12% free 2043K/2307K, paused 67ms+69ms
10-21 14:58:53.003: D/dalvikvm(36): GC_EXPLICIT freed 28K, 11% free 2074K/2307K, paused 13ms+54ms
10-21 14:58:55.225: D/dalvikvm(36): GC_EXPLICIT freed 37K, 10% free 2091K/2307K, paused 52ms+174ms
10-21 14:58:57.722: D/dalvikvm(36): GC_EXPLICIT freed 32K, 9% free 2113K/2307K, paused 158ms+136ms
10-21 14:58:58.116: I/Zygote(36): ...preloaded 2297 classes in 189775ms.
10-21 14:58:59.318: D/dalvikvm(36): GC_EXPLICIT freed 23K, 9% free 2117K/2307K, paused 84ms+29ms
10-21 14:58:59.318: I/Zygote(36): Preloading resources...
10-21 14:58:59.982: W/Zygote(36): Preloaded drawable resource #0x10804d7 (res/drawable-hdpi/spinner_black_16.png) that varies with configuration!!
10-21 14:59:00.269: W/Zygote(36): Preloaded drawable resource #0x10804d8 (res/drawable-hdpi/spinner_black_20.png) that varies with configuration!!
10-21 14:59:00.544: W/Zygote(36): Preloaded drawable resource #0x10804d9 (res/drawable-hdpi/spinner_black_48.png) that varies with configuration!!
10-21 14:59:00.932: W/Zygote(36): Preloaded drawable resource #0x10804da (res/drawable-hdpi/spinner_black_76.png) that varies with configuration!!
10-21 14:59:02.246: D/dalvikvm(36): GC_EXPLICIT freed 4K, 8% free 2202K/2371K, paused 139ms+55ms
10-21 14:59:02.358: W/Zygote(36): Preloaded drawable resource #0x10804e8 (res/drawable-hdpi/spinner_white_16.png) that varies with configuration!!
10-21 14:59:02.595: W/Zygote(36): Preloaded drawable resource #0x10804e9 (res/drawable-hdpi/spinner_white_48.png) that varies with configuration!!
10-21 14:59:02.842: W/Zygote(36): Preloaded drawable resource #0x10804ea (res/drawable-hdpi/spinner_white_76.png) that varies with configuration!!
10-21 14:59:04.143: D/dalvikvm(36): GC_EXPLICIT freed 4K, 7% free 2270K/2435K, paused 102ms+64ms
10-21 14:59:04.483: W/Zygote(36): Preloaded drawable resource #0x1080096 (res/drawable-hdpi/toast_frame.9.png) that varies with configuration!!
10-21 14:59:04.673: W/Zygote(36): Preloaded drawable resource #0x10805d0 (res/drawable-hdpi/toast_frame_holo.9.png) that varies with configuration!!
10-21 14:59:06.137: D/dalvikvm(36): GC_EXPLICIT freed 2K, 7% free 2339K/2499K, paused 98ms+115ms
10-21 14:59:06.333: W/Zygote(36): Preloaded drawable resource #0x1080106 (res/drawable-hdpi/btn_check_on_selected.png) that varies with configuration!!
10-21 14:59:06.583: W/Zygote(36): Preloaded drawable resource #0x1080105 (res/drawable-hdpi/btn_check_on_pressed_holo_light.png) that varies with configuration!!
10-21 14:59:06.793: W/Zygote(36): Preloaded drawable resource #0x1080104 (res/drawable-hdpi/btn_check_on_pressed_holo_dark.png) that varies with configuration!!
10-21 14:59:07.053: W/Zygote(36): Preloaded drawable resource #0x1080103 (res/drawable-hdpi/btn_check_on_pressed.png) that varies with configuration!!
10-21 14:59:08.583: D/dalvikvm(36): GC_EXPLICIT freed 5K, 7% free 2391K/2563K, paused 89ms+116ms
10-21 14:59:08.755: W/Zygote(36): Preloaded drawable resource #0x1080102 (res/drawable-hdpi/btn_check_on_holo_light.png) that varies with configuration!!
10-21 14:59:09.013: W/Zygote(36): Preloaded drawable resource #0x1080101 (res/drawable-hdpi/btn_check_on_holo_dark.png) that varies with configuration!!
10-21 14:59:09.283: W/Zygote(36): Preloaded drawable resource #0x10800ff (res/drawable-hdpi/btn_check_on_focused_holo_light.png) that varies with configuration!!
10-21 14:59:09.373: W/Zygote(36): Preloaded drawable resource #0x10800fe (res/drawable-hdpi/btn_check_on_focused_holo_dark.png) that varies with configuration!!
10-21 14:59:09.533: W/Zygote(36): Preloaded drawable resource #0x10800fd (res/drawable-hdpi/btn_check_on_disabled_holo_light.png) that varies with configuration!!
10-21 14:59:11.163: D/dalvikvm(36): GC_EXPLICIT freed 6K, 8% free 2438K/2627K, paused 74ms+105ms
10-21 14:59:11.343: W/Zygote(36): Preloaded drawable resource #0x10800fc (res/drawable-hdpi/btn_check_on_disabled_holo_dark.png) that varies with configuration!!
10-21 14:59:11.565: W/Zygote(36): Preloaded drawable resource #0x10800fb (res/drawable-hdpi/btn_check_on_disabled_focused_holo_light.png) that varies with configuration!!
10-21 14:59:11.673: W/Zygote(36): Preloaded drawable resource #0x10800fa (res/drawable-hdpi/btn_check_on_disabled_focused_holo_dark.png) that varies with configuration!!
10-21 14:59:11.745: W/Zygote(36): Preloaded drawable resource #0x10800f6 (res/drawable-hdpi/btn_check_on_disable_focused.png) that varies with configuration!!
You can use Virtual Android Machine, VirtualBox for example, and connect it to Eclipse like this:
[path_to_adb.exe] connect [device_ip]
in my case, i do this commands to connect:
D:
cd android\sdk-d\platform-tools
adb.exe connect 192.168.56.101
To download "ready to use" .ova file, you can visit this page.
Related
I am making a SIP client using PortSIP library made based on AndroidSIPSample project. I get the following error:
01-09 02:00:52.730: A/libc(750): Fatal signal 11 (SIGSEGV) at 0x00000c0d (code=1), thread 750 (ovative.innovox)
The error is not coming when I am running AndroidSIPSample project downloaded from PortSIP website.
Following is my logcat output:
01-09 02:00:47.910: D/dalvikvm(750): Trying to load lib /data/app-lib/in.innovative.innovox-2/libportsipcore.so 0x416fc190
01-09 02:00:47.981: D/dalvikvm(750): Added shared lib /data/app-lib/in.innovative.innovox-2/libportsipcore.so 0x416fc190
01-09 02:00:48.400: D/dalvikvm(750): GC_FOR_ALLOC freed 63K, 8% free 2656K/2876K, paused 81ms, total 91ms
01-09 02:00:48.432: I/dalvikvm-heap(750): Grow heap (frag case) to 5.087MB for 2457616-byte allocation
01-09 02:00:48.510: D/dalvikvm(750): GC_FOR_ALLOC freed 2K, 5% free 5053K/5280K, paused 70ms, total 70ms
01-09 02:00:49.530: D/dalvikvm(750): GC_FOR_ALLOC freed 28K, 4% free 5351K/5540K, paused 53ms, total 57ms
01-09 02:00:49.550: I/dalvikvm-heap(750): Grow heap (frag case) to 6.451MB for 1127536-byte allocation
01-09 02:00:49.630: D/dalvikvm(750): GC_FOR_ALLOC freed 1K, 3% free 6450K/6644K, paused 73ms, total 73ms
01-09 02:00:51.990: I/Choreographer(750): Skipped 167 frames! The application may be doing too much work on its main thread.
01-09 02:00:52.010: D/gralloc_goldfish(750): Emulator without GPU emulation detected.
01-09 02:00:52.730: A/libc(750): Fatal signal 11 (SIGSEGV) at 0x00000c0d (code=1), thread 750 (ovative.innovox)
I don't know what is causing it, I even put images in xhdpi drawable folder for xhdpi devices according to this answer. But still getting the error.
Please help me solve this error.
I was getting the error because I was passing wrong argument to a method of the PortSIP library, so because of that the library was throwing error.
I am developing a live wallpaper using andengine. Initially i used about 20 texture atlas for each sprite but then in one of the posts in andengine forum I saw that to many texture atlas is not a good thing to have in your app so I changed it to texture packer and now i have 3 texture packers. Everything is ok except when the wallpaper gain focus (either on unlock or closing another app), the wallpaper freezes for about 1-2 sec. Freezing was there even when i had individual texture atlas for each sprite. I added comments in onResume method and the first animation method to see what goes in between the execution of these two lines (first and last line in the following logcat output) and following is the logcat output. Can someone please direct me in right direction. I have already searched a lot on andengine freezing issues but none of them explain's my issue.
12-10 21:23:05.816: E/LiveWallpaperSettings(21831): Resume // <<< onResume Called
12-10 21:23:05.896: D/AndEngine(21831): VERSION: OpenGL ES 2.0
12-10 21:23:05.896: D/AndEngine(21831): RENDERER: Mali-400 MP
12-10 21:23:05.896: D/AndEngine(21831): EGLCONFIG: EGLConfig(Red=5, Green=6, Blue=5, Alpha=0, Depth=0, Stencil=0)
12-10 21:23:05.896: D/AndEngine(21831): EXTENSIONS: GL_OES_texture_npot GL_OES_compressed_ETC1_RGB8_texture GL_OES_standard_derivatives GL_OES_EGL_image GL_OES_depth24 GL_ARM_rgba8 GL_ARM_mali_shader_binary GL_OES_depth_texture GL_OES_packed_depth_stencil
12-10 21:23:05.906: D/AndEngine(21831): MAX_VERTEX_ATTRIBS: 16
12-10 21:23:05.906: D/AndEngine(21831): MAX_VERTEX_UNIFORM_VECTORS: 128
12-10 21:23:05.906: D/AndEngine(21831): MAX_FRAGMENT_UNIFORM_VECTORS: 1024
12-10 21:23:05.906: D/AndEngine(21831): MAX_TEXTURE_IMAGE_UNITS: 8
12-10 21:23:05.906: D/AndEngine(21831): MAX_TEXTURE_SIZE: 4096
12-10 21:23:05.906: D/AndEngine(21831): LiveWallpaperTemplate.onSurfaceCreated #(Thread: 'GLThread 11')
12-10 21:23:05.906: D/AndEngine(21831): LiveWallpaperTemplate.onReloadResources #(Thread: 'GLThread 11')
12-10 21:23:05.906: D/AndEngine(21831): LiveWallpaperTemplate.onSurfaceChanged(Width=480, Height=800) #(Thread: 'GLThread 11')
12-10 21:23:06.156: D/dalvikvm(21831): GC_FOR_MALLOC freed 39K, 81% free 2725K/13639K, external 3900K/3900K, paused 12ms
12-10 21:23:06.161: I/dalvikvm-heap(21831): Grow heap (frag case) to 12.774MB for 3932176-byte allocation
12-10 21:23:06.191: D/dalvikvm(21831): GC_FOR_MALLOC freed 0K, 52% free 6565K/13639K, external 3900K/3900K, paused 10ms
12-10 21:23:06.256: D/dalvikvm(21831): GC_CONCURRENT freed 0K, 52% free 6565K/13639K, external 3900K/3900K, paused 1ms+2ms
12-10 21:23:06.301: D/dalvikvm(21831): GC_EXTERNAL_ALLOC freed 3843K, 81% free 2725K/13639K, external 60K/3900K, paused 16ms
12-10 21:23:06.661: D/dalvikvm(21831): GC_FOR_MALLOC freed 4096K, 81% free 2724K/13639K, external 4156K/4156K, paused 9ms
12-10 21:23:06.666: I/dalvikvm-heap(21831): Grow heap (frag case) to 13.274MB for 4194320-byte allocation
12-10 21:23:06.696: D/dalvikvm(21831): GC_FOR_MALLOC freed <1K, 50% free 6820K/13639K, external 4156K/4156K, paused 10ms
12-10 21:23:06.741: D/dalvikvm(21831): GC_CONCURRENT freed <1K, 50% free 6820K/13639K, external 4156K/4156K, paused 1ms+1ms
12-10 21:23:06.911: D/dalvikvm(21831): GC_FOR_MALLOC freed 4096K, 81% free 2724K/13639K, external 4156K/4156K, paused 10ms
12-10 21:23:06.916: I/dalvikvm-heap(21831): Grow heap (frag case) to 13.274MB for 4194320-byte allocation
12-10 21:23:06.946: D/dalvikvm(21831): GC_FOR_MALLOC freed 0K, 50% free 6820K/13639K, external 4156K/4156K, paused 10ms
12-10 21:23:06.996: D/dalvikvm(21831): GC_CONCURRENT freed <1K, 50% free 6820K/13639K, external 4156K/4156K, paused 1ms+2ms
12-10 21:23:07.076: D/dalvikvm(21831): GC_EXPLICIT freed 4100K, 81% free 2724K/13639K, external 60K/572K, paused 16ms
12-10 21:23:07.106: E/LiveWallpaperSettings(21831): Backward loop // animation method called
I have 1700 markers with strings holding a description for each marker on the map. I am getting the out of memory error since I am holding so many strings for each markers "click for more info" next screen activity. How can I better hold this data and share it on marker click and not have this memory issue? I am pulling my data from an XML based file.
Here is my error log after crash:
10-07 13:42:55.383: D/dalvikvm(4431): GC_FOR_MALLOC freed 1063K, 57% free 9611K/21959K, external 2506K/2804K, paused 77ms
10-07 13:42:57.109: D/dalvikvm(4431): GC_FOR_MALLOC freed 1580K, 56% free 9821K/21959K, external 2551K/2804K, paused 114ms
10-07 13:42:57.320: D/dalvikvm(4431): GC_FOR_MALLOC freed 427K, 55% free 10016K/21959K, external 2365K/2804K, paused 97ms
10-07 13:42:57.656: D/dalvikvm(4431): GC_FOR_MALLOC freed 168K, 54% free 10142K/21959K, external 2365K/2804K, paused 166ms
10-07 13:42:57.804: D/dalvikvm(4431): GC_FOR_MALLOC freed 118K, 54% free 10218K/21959K, external 2365K/2804K, paused 85ms
10-07 13:42:57.922: D/dalvikvm(4431): GC_FOR_MALLOC freed 47K, 54% free 10320K/21959K, external 2365K/2804K, paused 71ms
10-07 13:42:58.031: D/dalvikvm(4431): GC_FOR_MALLOC freed 119K, 54% free 10297K/21959K, external 2365K/2804K, paused 70ms
10-07 13:42:58.148: D/dalvikvm(4431): GC_FOR_MALLOC freed 51K, 53% free 10342K/21959K, external 2365K/2804K, paused 69ms
10-07 13:42:58.148: I/dalvikvm-heap(4431): Grow heap (frag case) to 14.855MB for 33642-byte allocation
10-07 13:42:58.226: D/dalvikvm(4431): GC_FOR_MALLOC freed <1K, 53% free 10375K/22023K, external 2365K/2804K, paused 77ms
10-07 13:42:58.328: D/dalvikvm(4431): GC_FOR_MALLOC freed 83K, 54% free 10343K/22023K, external 2365K/2804K, paused 73ms
10-07 13:42:58.336: I/dalvikvm-heap(4431): Grow heap (frag case) to 14.863MB for 40183-byte allocation
10-07 13:42:58.406: D/dalvikvm(4431): GC_FOR_MALLOC freed 0K, 53% free 10383K/22087K, external 2365K/2804K, paused 72ms
10-07 13:42:58.476: D/dalvikvm(4431): GC_FOR_MALLOC freed 42K, 54% free 10379K/22087K, external 2365K/2804K, paused 71ms
10-07 13:42:58.609: D/dalvikvm(4431): GC_FOR_MALLOC freed 62K, 53% free 10381K/22087K, external 2365K/2804K, paused 78ms
10-07 13:42:58.750: D/dalvikvm(4431): GC_FOR_MALLOC freed 44K, 53% free 10421K/22087K, external 2365K/2804K, paused 79ms
10-07 13:42:58.758: I/dalvikvm-heap(4431): Grow heap (frag case) to 15.005MB for 111024-byte allocation
10-07 13:42:58.844: D/dalvikvm(4431): GC_FOR_MALLOC freed <1K, 53% free 10529K/22215K, external 2365K/2804K, paused 75ms
10-07 13:42:58.961: D/dalvikvm(4431): GC_EXTERNAL_ALLOC freed 10K, 53% free 10528K/22215K, external 2365K/2804K, paused 111ms
10-07 13:42:58.992: E/dalvikvm-heap(4431): 32-byte external allocation too large for this process.
10-07 13:42:58.992: W/OSMemory(4431): External allocation of 32 bytes was rejected
10-07 13:42:59.070: D/dalvikvm(4431): GC_FOR_MALLOC freed 0K, 53% free 10528K/22215K, external 2365K/2804K, paused 68ms
10-07 13:42:59.187: D/dalvikvm(4431): GC_FOR_MALLOC freed 32K, 53% free 10535K/22215K, external 2365K/2804K, paused 69ms
10-07 13:42:59.187: I/dalvikvm-heap(4431): Forcing collection of SoftReferences for 40194-byte allocation
10-07 13:42:59.250: D/dalvikvm(4431): GC_FOR_MALLOC freed <1K, 53% free 10534K/22215K, external 2365K/2804K, paused 67ms
10-07 13:42:59.258: E/dalvikvm-heap(4431): Out of memory on a 40194-byte allocation.
10-07 13:42:59.258: I/dalvikvm(4431): "its_ter" prio=5 tid=13 RUNNABLE
10-07 13:42:59.258: I/dalvikvm(4431): | group="main" sCount=0 dsCount=0 obj=0x4058b398 self=0xfcfe0
10-07 13:42:59.258: I/dalvikvm(4431): | sysTid=4443 nice=10 sched=0/0 cgrp=bg_non_interactive handle=1036568
10-07 13:42:59.258: I/dalvikvm(4431): at java.io.ByteArrayOutputStream.toByteArray(ByteArrayOutputStream.java:~122)
10-07 13:42:59.258: I/dalvikvm(4431): at maps.m.y.a((null):-1)
10-07 13:42:59.258: I/dalvikvm(4431): at maps.k.d.a((null):-1)
10-07 13:42:59.258: I/dalvikvm(4431): at maps.k.g.handleMessage((null):-1)
10-07 13:42:59.265: I/dalvikvm(4431): at android.os.Handler.dispatchMessage(Handler.java:99)
10-07 13:42:59.281: I/dalvikvm(4431): at android.os.Looper.loop(Looper.java:130)
10-07 13:42:59.281: I/dalvikvm(4431): at maps.k.d.c((null):-1)
10-07 13:42:59.281: I/dalvikvm(4431): at maps.ao.b.run((null):-1)
10-07 13:42:59.289: W/System.err(4431): OutOfMemory
10-07 13:42:59.429: D/dalvikvm(4431): GC_EXPLICIT freed 32K, 53% free 10567K/22215K, external 2365K/2804K, paused 128ms
10-07 13:42:59.539: D/dalvikvm(4431): GC_FOR_MALLOC freed 435K, 54% free 10235K/22215K, external 2365K/2804K, paused 75ms
10-07 13:42:59.539: I/dalvikvm-heap(4431): Forcing collection of SoftReferences for 119952-byte allocation
10-07 13:42:59.633: D/dalvikvm(4431): GC_FOR_MALLOC freed 111K, 55% free 10123K/22215K, external 2365K/2804K, paused 97ms
10-07 13:42:59.734: D/dalvikvm(4431): GC_EXTERNAL_ALLOC freed 2K, 54% free 10241K/22215K, external 2365K/2804K, paused 85ms
10-07 13:42:59.765: E/dalvikvm-heap(4431): 32-byte external allocation too large for this process.
10-07 13:42:59.765: W/OSMemory(4431): External allocation of 32 bytes was rejected
10-07 13:42:59.844: D/dalvikvm(4431): GC_FOR_MALLOC freed 0K, 54% free 10241K/22215K, external 2365K/2804K, paused 69ms
10-07 13:42:59.890: W/dalvikvm(4431): threadid=13: thread exiting with uncaught exception (group=0x40015560)
10-07 13:42:59.914: W/dalvikvm(4431): threadid=20: thread exiting with uncaught exception (group=0x40015560)
10-07 13:42:59.922: I/Process(4431): Sending signal. PID: 4431 SIG: 9
I am posting them on the map like so:
BitmapDescriptor icon = BitmapDescriptorFactory
.fromResource(R.drawable.snotel_marker);
int nsize = visibleMarkers.size();
for (int i = 0; i < nsize; i++) {
MapMarkers marks = new MapMarkers();
String title = visibleMarkers.valueAt(i).getTitle();
String desc = visibleMarkers.valueAt(i).getDesc();
Float latitude = visibleMarkers.valueAt(i).getLat();
Float longitude = visibleMarkers.valueAt(i).getLon();
m = map.addMarker(new MarkerOptions()
.position(new LatLng(latitude, longitude))
.title(title).icon(icon));
marks.setTitle(title);
marks.setDesc(desc);
m.setData(marks);
On Info Window Click the next activity is populated like so:
getSupportActionBar().setTitle(extras.getString("name"));
webview.loadDataWithBaseURL(null, extras.getString("description"),
"text/html", "utf-8", null);
The app runs fine on my GNex, but on my old Droid, it populates the map, then after clicking on 3 or 4 markers and moving the map around I get the out of memory error. Any other output I can share to try and figure this out?
EDIT heap dump from MAT - String is the issue according to this:
Problem Suspect 1
9,566 instances of "java.lang.String", loaded by "<system class loader>" occupy 2,299,848 (34.18%) bytes.
Keywords
java.lang.String
Details »
Problem Suspect 2
3,381 instances of "java.lang.Class", loaded by "<system class loader>" occupy 960,088 (14.27%) bytes.
Biggest instances:
•class android.text.Html$HtmlParser # 0x4018c9d0 - 126,632 (1.88%) bytes.
Keywords
java.lang.Class
Details »
An Android app I've written is producing the following error message when run on one user's Galaxy Nexus:
E/IMGSRV (31994): :0: WSEGL_WaitNative: Unrecognized engine
Strangely, when running on several other devices it does not generate this error message. Does anyone know of some possible causes for this error? Google isn't pulling up anything useful for me. I'll try and put together a simple test case and post it here (the project is rather large, so difficult to pinpoint a relevant piece of code to post).
For reference, here is the full logcat output from the app:
D/alogcat (31968): stopped
D/alogcat (31968): starting ...
D/dalvikvm( 250): GC_FOR_ALLOC freed 437K, 32% free 16157K/23559K, paused 19ms
D/dalvikvm( 250): GC_FOR_ALLOC freed 28K, 31% free 16385K/23559K, paused 22ms
I/dalvikvm-heap( 250): Grow heap (frag case) to 17.046MB for 1048592-byte allocation
D/dalvikvm( 250): GC_CONCURRENT freed 0K, 30% free 17409K/24647K, paused 3ms+2ms
D/dalvikvm( 250): GC_CONCURRENT freed 313K, 27% free 18185K/24647K, paused 2ms+3ms
W/ResourceType( 178): Invalid package identifier when getting bag for resource number 0x7f0c0008
D/dalvikvm( 250): GC_FOR_ALLOC freed 37K, 22% free 19298K/24647K, paused 25ms
I/dalvikvm-heap( 250): Grow heap (frag case) to 19.112MB for 230416-byte allocation
D/dalvikvm( 250): GC_FOR_ALLOC freed 4K, 22% free 19519K/24903K, paused 28ms
V/alogcat (31968): save instance
V/alogcat (31968): paused
D/dalvikvm(31994): Late-enabling CheckJNI
I/dalvikvm(31994): Turning on JNI app bug workarounds for target SDK version 9...
I/InputReader( 178): Reconfiguring input devices. changes=0x00000004
I/InputReader( 178): Device reconfigured: id=6, name='Melfas MMSxxx Touchscreen', surface size is now 720x1280, mode is 1
D/OpenGLRenderer( 250): Flushing caches (mode 0)
D/dalvikvm(31994): GC_FOR_ALLOC freed 63K, 2% free 14079K/14339K, paused 11ms
I/dalvikvm-heap(31994): Grow heap (frag case) to 14.257MB for 486264-byte allocation
D/dalvikvm(31994): GC_CONCURRENT freed <1K, 3% free 14553K/14855K, paused 1ms+1ms
D/OpenGLRenderer( 250): Flushing caches (mode 0)
D/OpenGLRenderer( 250): Flushing caches (mode 0)
D/OpenGLRenderer( 250): Flushing caches (mode 0)
D/dalvikvm(31994): GC_FOR_ALLOC freed 0K, 3% free 14554K/14855K, paused 11ms
I/dalvikvm-heap(31994): Grow heap (frag case) to 16.112MB for 1945008-byte allocation
D/dalvikvm(31994): GC_CONCURRENT freed 0K, 2% free 16453K/16775K, paused 2ms+4ms
V/PhoneStatusBar( 250): setLightsOn(true)
I/System.out(31994): libSDL: Starting data downloader
I/System.out(31994): libSDL: Starting downloader
I/ActivityManager( 178): Displayed paulscode.android.mupen64plus.test/paulscode.android.mupen64plus.MainActivity: +536ms
I/InputReader( 178): Reconfiguring input devices. changes=0x00000004
I/InputReader( 178): Device reconfigured: id=6, name='Melfas MMSxxx Touchscreen', surface size is now 720x1280, mode is 1
W/IInputConnectionWrapper(31968): showStatusIcon on inactive InputConnection
D/OpenGLRenderer( 250): Flushing caches (mode 0)
D/OpenGLRenderer( 250): Flushing caches (mode 0)
D/OpenGLRenderer( 250): Flushing caches (mode 0)
I/ActivityManager( 178): Displayed paulscode.android.mupen64plus.test/paulscode.android.mupen64plus.MenuActivity: +276ms
D/dalvikvm(31968): GC_FOR_ALLOC freed 364K, 9% free 14394K/15687K, paused 17ms
I/dalvikvm-heap(31968): Grow heap (frag case) to 14.211MB for 115216-byte allocation
V/PhoneStatusBar( 250): setLightsOn(true)
D/dalvikvm(31968): GC_FOR_ALLOC freed <1K, 9% free 14507K/15815K, paused 17ms
D/alogcat (31968): stopping ...
D/alogcat (31968): stopped
D/dalvikvm(31994): GC_CONCURRENT freed 2742K, 17% free 14481K/17287K, paused 1ms+2ms
V/PhoneStatusBar( 250): setLightsOn(true)
I/ActivityManager( 178): Displayed paulscode.android.mupen64plus.test/paulscode.android.mupen64plus.FileChooserActivity: +395ms
D/dalvikvm( 178): GC_EXPLICIT freed 2120K, 18% free 22700K/27527K, paused 6ms+6ms
D/dalvikvm(31994): Trying to load lib /data/data/paulscode.android.mupen64plus.test/lib/libSDL.so 0x41816530
D/dalvikvm(31994): GC_CONCURRENT freed 208K, 16% free 14694K/17287K, paused 2ms+1ms
D/dalvikvm(31994): Added shared lib /data/data/paulscode.android.mupen64plus.test/lib/libSDL.so 0x41816530
D/dalvikvm(31994): Trying to load lib /data/data/paulscode.android.mupen64plus.test/lib/libcore.so 0x41816530
D/dalvikvm(31994): Added shared lib /data/data/paulscode.android.mupen64plus.test/lib/libcore.so 0x41816530
D/dalvikvm(31994): No JNI_OnLoad found in /data/data/paulscode.android.mupen64plus.test/lib/libcore.so 0x41816530, skipping init
D/dalvikvm(31994): Trying to load lib /data/data/paulscode.android.mupen64plus.test/lib/libfront-end.so 0x41816530
D/dalvikvm(31994): Added shared lib /data/data/paulscode.android.mupen64plus.test/lib/libfront-end.so 0x41816530
I/InputReader( 178): Reconfiguring input devices. changes=0x00000004
I/InputReader( 178): Device reconfigured: id=6, name='Melfas MMSxxx Touchscreen', surface size is now 720x1280, mode is 1
D/OpenGLRenderer( 250): Flushing caches (mode 0)
D/OpenGLRenderer( 250): Flushing caches (mode 0)
D/OpenGLRenderer( 250): Flushing caches (mode 0)
D/dalvikvm(31994): Trying to load lib /data/data/paulscode.android.mupen64plus.test/lib/libgles2n64.so 0x41816530
D/dalvikvm(31994): Added shared lib /data/data/paulscode.android.mupen64plus.test/lib/libgles2n64.so 0x41816530
D/dalvikvm(31994): No JNI_OnLoad found in /data/data/paulscode.android.mupen64plus.test/lib/libgles2n64.so 0x41816530, skipping init
D/dalvikvm(31994): Trying to load lib /data/data/paulscode.android.mupen64plus.test/lib/libaudio-sdl.so 0x41816530
D/dalvikvm(31994): Added shared lib /data/data/paulscode.android.mupen64plus.test/lib/libaudio-sdl.so 0x41816530
D/dalvikvm(31994): No JNI_OnLoad found in /data/data/paulscode.android.mupen64plus.test/lib/libaudio-sdl.so 0x41816530, skipping init
D/dalvikvm(31994): Trying to load lib /data/data/paulscode.android.mupen64plus.test/lib/libinput-sdl.so 0x41816530
D/dalvikvm(31994): Added shared lib /data/data/paulscode.android.mupen64plus.test/lib/libinput-sdl.so 0x41816530
D/dalvikvm(31994): No JNI_OnLoad found in /data/data/paulscode.android.mupen64plus.test/lib/libinput-sdl.so 0x41816530, skipping init
D/dalvikvm(31994): Trying to load lib /data/data/paulscode.android.mupen64plus.test/lib/librsp-hle.so 0x41816530
D/dalvikvm( 380): GC_CONCURRENT freed 538K, 20% free 16276K/20103K, paused 2ms+11ms
D/dalvikvm(31994): Added shared lib /data/data/paulscode.android.mupen64plus.test/lib/librsp-hle.so 0x41816530
D/dalvikvm(31994): No JNI_OnLoad found in /data/data/paulscode.android.mupen64plus.test/lib/librsp-hle.so 0x41816530, skipping init
V/SDLActivity.java(31994): CPU info available from file /proc/cpuinfo:
V/SDLActivity.java(31994): Processor : ARMv7 Processor rev 10 (v7l)
V/SDLActivity.java(31994): processor : 0
V/SDLActivity.java(31994): BogoMIPS : 2047.70
V/SDLActivity.java(31994):
V/SDLActivity.java(31994): processor : 1
V/SDLActivity.java(31994): BogoMIPS : 2047.70
V/SDLActivity.java(31994):
V/SDLActivity.java(31994): Features : swp half thumb fastmult vfp edsp thumbee neon vfpv3
V/SDLActivity.java(31994): CPU implementer : 0x41
V/SDLActivity.java(31994): CPU architecture: 7
V/SDLActivity.java(31994): CPU variant : 0x2
V/SDLActivity.java(31994): CPU part : 0xc09
V/SDLActivity.java(31994): CPU revision : 10
V/SDLActivity.java(31994):
V/SDLActivity.java(31994): Hardware : Tuna
V/SDLActivity.java(31994): Revision : 0009
V/SDLActivity.java(31994): Serial : 0146a5b20b01300f
V/SDLActivity.java(31994): �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������
D/dalvikvm(31994): GC_CONCURRENT freed 427K, 15% free 14768K/17287K, paused 1ms+4ms
D/dalvikvm(31994): GC_CONCURRENT freed 59K, 13% free 15206K/17287K, paused 2ms+1ms
D/dalvikvm(31994): GC_CONCURRENT freed 199K, 11% free 15493K/17287K, paused 1ms+2ms
D/dalvikvm(31994): GC_FOR_ALLOC freed 99K, 10% free 15714K/17287K, paused 21ms
D/dalvikvm(31994): GC_CONCURRENT freed 288K, 8% free 15978K/17287K, paused 2ms+2ms
D/dalvikvm(31994): GC_CONCURRENT freed 229K, 6% free 16382K/17287K, paused 2ms+1ms
D/dalvikvm(31994): GC_CONCURRENT freed 266K, 3% free 16795K/17287K, paused 2ms+2ms
V/SDLSurface(31994): SDLSurface changed
I/SDL (31994): SDL_Android_Init()
V/front_end(31994): __ __ __ _ _ ____ _
V/front_end(31994): | \/ |_ _ _ __ ___ _ __ / /_ | || | | _ \| |_ _ ___
V/front_end(31994): | |\/| | | | | '_ \ / _ \ '_ \| '_ \| || |_| |_) | | | | / __|
V/front_end(31994): | | | | |_| | |_) | __/ | | | (_) |__ _| __/| | |_| \__ \
V/front_end(31994): |_| |_|\__,_| .__/ \___|_| |_|\___/ |_| |_| |_|\__,_|___/
V/front_end(31994): |_| http://code.google.com/p/mupen64plus/
V/front_end(31994): Mupen64Plus Console User-Interface Version 1.99.4
V/front_end(31994):
V/core_interface(31994): UI-console: attached to core library 'Mupen64Plus Core' version 1.99.4
V/core_interface(31994): Includes support for Dynamic Recompiler.
V/PhoneStatusBar( 250): setLightsOn(true)
I/ActivityManager( 178): Displayed paulscode.android.mupen64plus.test/paulscode.android.mupen64plus.SDLActivity: +816ms
V/front_end(31994): Core: Goodname: Super Mario 64 (E) (M3) [!]
V/front_end(31994): Core: Name: SUPER MARIO 64
V/front_end(31994): Core: MD5: 45676429EF6B90E65B517129B700308E
V/front_end(31994): Core: CRC: 36f03ca0 d2c5c1bc
V/front_end(31994): Core: Imagetype: .z64 (native)
V/front_end(31994): Core: Rom size: 8388608 bytes (or 8 Mb or 64 Megabits)
V/front_end(31994): Core: Version: 46140000
V/front_end(31994): Core: Manufacturer: 4e000000
V/front_end(31994): Core: Country: Europe (0x50)
V/cheat (31994): UI-Console: Cheat codes disabled.
V/gles2N64(31994): About to get max frameskip
V/SDL-android(31994): About to call midGetMaxFrameSkip
V/SDL-android(31994): Android_JNI_GetMaxFrameSkip returning 2
V/gles2N64(31994): Max frameskip: 2
V/gles2N64(31994): About to setSkips to AUTO
V/gles2N64(31994): Finished setting skips
V/front-end(31994): UI-console: using Video plugin: 'gles2n64' v0.0.5
V/front-end(31994): UI-console: using Audio plugin: 'Mupen64Plus SDL Audio Plugin' v1.99.4
V/front_end(31994): Input: No auto-configuration found for device 'Android accelerometer'
V/front_end(31994): Input: N64 Controller #1: Forcing default keyboard configuration
V/front_end(31994): Input: Using auto-configuration for device 'Keyboard'
V/front-end(31994): UI-console: using Input plugin: 'Mupen64Plus SDL Input Plugin' v1.99.4
V/front-end(31994): UI-console: using RSP plugin: 'Hacktarux/Azimer High-Level Emulation RSP Plugin' v1.99.4
D/gles2n64(31994): [gles2n64]: Loading Config from data/gles2n64.conf
D/gles2n64(31994): Rom is PAL
D/gles2n64(31994): [gles2N64]: Searching data/gles2n64rom.conf Database for "SUPER MARIO 64" ROM
D/gles2n64(31994): Initializing SDL video subsystem...
D/gles2n64(31994): Setting video mode 1196x720...
I/SDL (31994): [STUB] GL_LoadLibrary
V/SDLSurface(31994): Starting up OpenGL ES 2.0
D/libEGL (31994): loaded /system/lib/egl/libGLES_android.so
D/libEGL (31994): loaded /vendor/lib/egl/libEGL_POWERVR_SGX540_120.so
D/libEGL (31994): loaded /vendor/lib/egl/libGLESv1_CM_POWERVR_SGX540_120.so
D/libEGL (31994): loaded /vendor/lib/egl/libGLESv2_POWERVR_SGX540_120.so
I/SDL (31994): [STUB] GL_SetSwapInterval
I/SDL (31994): [STUB] GL_GetSwapInterval
E/IMGSRV (31994): :0: WSEGL_WaitNative: Unrecognized engine
V/gles2N64 (OpenGL)(31994): Hardware profile not recognized, using default settings (-0.2f, -0.2f)
E/IMGSRV (31994): :0: WSEGL_WaitNative: Unrecognized engine
V/front_end(31994): Input: N64 Controller #1: Using keyboard/mouse
V/front_end(31994): Input: 1 controller(s) found, 1 plugged in and usable in the emulator
V/front_end(31994): Input: Mupen64Plus SDL Input Plugin version 1.99.4 initialized.
V/front_end(31994): Audio: Initializing SDL audio subsystem...
V/SDL (31994): SDL audio: opening device
V/front_end(31994): Core: Starting R4300 emulator: Dynamic Recompiler
V/SDL (31994): SDL audio: opening device
D/gles2n64(31994): UCODE CRC=0x26eabb5c
E/IMGSRV (31994): :0: WSEGL_WaitNative: Unrecognized engine
D/dalvikvm( 178): GC_EXPLICIT freed 399K, 18% free 22591K/27527K, paused 6ms+5ms
E/IMGSRV (31994): :0: WSEGL_WaitNative: Unrecognized engine
***(Repeated for a while)***
E/IMGSRV (31994): :0: WSEGL_WaitNative: Unrecognized engine
V/front_end(31994): Core Status: Saved state to: Mupen64PlusAE_LastSession.sav
E/IMGSRV (31994): :0: WSEGL_WaitNative: Unrecognized engine
E/IMGSRV (31994): :0: WSEGL_WaitNative: Unrecognized engine
I/InputReader( 178): Reconfiguring input devices. changes=0x00000004
I/InputReader( 178): Device reconfigured: id=6, name='Melfas MMSxxx Touchscreen', surface size is now 720x1280, mode is 1
D/OpenGLRenderer( 250): Flushing caches (mode 0)
D/OpenGLRenderer( 250): Flushing caches (mode 0)
D/OpenGLRenderer( 250): Flushing caches (mode 0)
D/dalvikvm( 250): GC_FOR_ALLOC freed 3922K, 35% free 16327K/24903K, paused 19ms
D/dalvikvm( 250): GC_FOR_ALLOC freed 121K, 34% free 16462K/24903K, paused 15ms
I/dalvikvm-heap( 250): Grow heap (frag case) to 17.123MB for 1048592-byte allocation
D/dalvikvm( 250): GC_CONCURRENT freed 40K, 30% free 17446K/24903K, paused 3ms+2ms
W/ResourceType( 178): Invalid package identifier when getting bag for resource number 0x7f0c0008
D/dalvikvm( 250): GC_CONCURRENT freed 324K, 27% free 18242K/24903K, paused 2ms+3ms
D/dalvikvm( 250): GC_CONCURRENT freed 35K, 22% free 19574K/24903K, paused 3ms+2ms
D/dalvikvm( 178): GC_EXPLICIT freed 381K, 19% free 22365K/27527K, paused 6ms+4ms
D/alogcat (31968): stopping ...
D/alogcat (31968): canceling periodic saves
D/alogcat (31968): starting ...
V/alogcat (31968): started
V/alogcat (31968): resumed
D/OpenGLRenderer( 430): Flushing caches (mode 1)
V/PhoneStatusBar( 250): setLightsOn(true)
D/OpenGLRenderer( 430): Flushing caches (mode 0)
D/OpenGLRenderer( 250): Flushing caches (mode 0)
D/dalvikvm(31968): GC_FOR_ALLOC freed 168K, 8% free 14612K/15815K, paused 13ms
I/dalvikvm-heap(31968): Grow heap (frag case) to 14.391MB for 80656-byte allocation
D/dalvikvm(31968): GC_FOR_ALLOC freed 14K, 8% free 14677K/15943K, paused 20ms
This was caused by the following line:
egl.eglWaitNative( EGL10.EGL_NATIVE_RENDERABLE, null );
Which should have been written as:
egl.eglWaitNative( EGL10.EGL_CORE_NATIVE_ENGINE, null );
I'm pretty sure I have all the necessary installations. I created the AVD and tried to run one of the sample applications included in the SDK ("Jetboy"). When I hit run the program emulator starts up and eventually loads android but no applications start.
this is the output:
[2011-12-14 16:16:24 - JetBoy] ------------------------------
[2011-12-14 16:16:24 - JetBoy] Android Launch!
[2011-12-14 16:16:24 - JetBoy] adb is running normally.
[2011-12-14 16:16:24 - JetBoy] Performing com.example.android.jetboy.JetBoy activity launch
[2011-12-14 16:16:24 - JetBoy] Automatic Target Mode: launching new emulator with compatible AVD 'my_avd'
[2011-12-14 16:16:24 - JetBoy] Launching a new emulator with Virtual Device 'my_avd'
[2011-12-14 16:16:24 - Emulator] emulator: warning: opening audio input failed
[2011-12-14 16:16:24 - Emulator]
[2011-12-14 16:16:28 - Emulator] emulator: WARNING: Unable to create sensors port: Unknown error
[2011-12-14 16:16:28 - JetBoy] New emulator found: emulator-5554
[2011-12-14 16:16:28 - JetBoy] Waiting for HOME ('android.process.acore') to be launched...
[2011-12-14 16:17:04 - JetBoy] HOME is up on device 'emulator-5554'
[2011-12-14 16:17:04 - JetBoy] Uploading JetBoy.apk onto device 'emulator-5554'
[2011-12-14 16:17:07 - JetBoy] Installing JetBoy.apk...
[2011-12-14 16:17:35 - JetBoy] Success!
[2011-12-14 16:17:35 - JetBoy] Starting activity com.example.android.jetboy.JetBoy on device emulator-5554
[2011-12-14 16:17:36 - JetBoy] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.example.android.jetboy/.JetBoy }
Here is the logcat, as advised in comments below:
12-14 16:33:05.194: D/dalvikvm(539): GC_FOR_ALLOC freed <1K, 7% free 14070K/15047K, paused 35ms
12-14 16:33:05.214: I/dalvikvm-heap(539): Grow heap (frag case) to 15.801MB for 2073616-byte allocation
12-14 16:33:05.264: D/dalvikvm(539): GC_CONCURRENT freed 0K, 6% free 16095K/17095K, paused 4ms+5ms
12-14 16:33:05.594: D/dalvikvm(539): GC_FOR_ALLOC freed 1414K, 10% free 16481K/18119K, paused 41ms
12-14 16:33:05.784: D/JetBoy(539): ### done creating view!
12-14 16:33:05.954: I/WindowManager(89): createSurface Window{416061c8 com.example.android.jetboy/com.example.android.jetboy.JetBoy paused=false}: DRAW NOW PENDING
12-14 16:33:06.094: I/WindowManager(89): createSurface Window{41615788 SurfaceView paused=false}: DRAW NOW PENDING
12-14 16:33:06.194: D/dalvikvm(539): GC_FOR_ALLOC freed 425K, 5% free 17308K/18119K, paused 58ms
12-14 16:33:06.224: I/dalvikvm-heap(539): Grow heap (frag case) to 19.776MB for 2926096-byte allocation
12-14 16:33:06.354: D/dalvikvm(539): GC_FOR_ALLOC freed 5K, 4% free 20159K/20999K, paused 54ms
12-14 16:33:06.475: D/gralloc_goldfish(539): Emulator without GPU emulation detected.
12-14 16:33:06.614: D/dalvikvm(539): GC_CONCURRENT freed 0K, 4% free 20160K/20999K, paused 6ms+36ms
12-14 16:33:06.835: D/dalvikvm(539): GC_FOR_ALLOC freed 2025K, 14% free 18135K/20999K, paused 35ms
12-14 16:33:06.894: I/dalvikvm-heap(539): Grow heap (frag case) to 20.583MB for 2926096-byte allocation
12-14 16:33:07.085: D/dalvikvm(539): GC_CONCURRENT freed <1K, 13% free 20992K/23879K, paused 17ms+5ms
12-14 16:33:07.554: I/ActivityManager(89): Displayed com.example.android.jetboy/.JetBoy: +4s900ms (total +42s207ms)
12-14 16:33:07.564: I/ActivityManager(89): Displayed com.android.launcher/com.android.launcher2.Launcher: +42s215ms
12-14 16:33:07.594: V/PhoneStatusBar(143): setLightsOn(true)
12-14 16:33:08.984: W/NetworkManagementSocketTagger(89): setKernelCountSet(10005, 0) failed with errno -2
12-14 16:33:55.095: W/ThrottleService(89): unable to find stats for iface rmnet0
2nd log, trying now with "Skeleton Application" as sample
12-14 16:50:28.033: I/DEBUG(33): debuggerd: Nov 23 2011 22:48:31
12-14 16:50:28.133: I/qemu-props(31): connected to 'boot-properties' qemud service.
12-14 16:50:28.133: I/qemu-props(31): receiving..
12-14 16:50:28.133: I/qemu-props(31): received: dalvik.vm.heapsize=24m
12-14 16:50:28.234: I/qemu-props(31): receiving..
12-14 16:50:28.234: I/qemu-props(31): received: qemu.sf.lcd_density=240
12-14 16:50:28.234: I/qemu-props(31): receiving..
12-14 16:50:28.234: I/qemu-props(31): received: qemu.hw.mainkeys=1
12-14 16:50:28.234: I/qemu-props(31): receiving..
12-14 16:50:28.234: I/qemu-props(31): received: qemu.sf.fake_camera=back
12-14 16:50:28.234: I/qemu-props(31): receiving..
12-14 16:50:28.234: I/qemu-props(31): exiting (4 properties set).
12-14 16:50:28.283: I/Vold(30): Vold 2.1 (the revenge) firing up
12-14 16:50:28.313: I/Netd(32): Netd 1.0 starting
12-14 16:50:28.353: D/Vold(30): Volume sdcard state changing -1 (Initializing) -> 0 (No-Media)
12-14 16:50:28.443: E/Netd(32): Unable to bind netlink socket: No such file or directory
12-14 16:50:28.443: E/Netd(32): Unable to open quota2 logging socket
12-14 16:50:29.562: D/AndroidRuntime(36): >>>>>> AndroidRuntime START com.android.internal.os.ZygoteInit <<<<<<
12-14 16:50:29.562: D/AndroidRuntime(36): CheckJNI is ON
12-14 16:50:35.692: I/(37): ServiceManager: 0xf958
12-14 16:50:35.692: I/AudioFlinger(37): Loaded primary audio interface from LEGACY Audio HW HAL (audio)
12-14 16:50:35.692: I/AudioFlinger(37): Using 'LEGACY Audio HW HAL' (audio.primary) as the primary audio interface
12-14 16:50:35.692: D/AudioHardwareInterface(37): setMode(NORMAL)
12-14 16:50:35.702: I/CameraService(37): CameraService started (pid=37)
12-14 16:50:35.712: D/EmulatedCamera_QemuClient(37): Emulated camera list:
12-14 16:50:35.712: D/EmulatedCamera_FakeCamera(37): Initialize: Fake camera is facing back
12-14 16:50:35.712: V/EmulatedCamera_Factory(37): 1 cameras are being emulated. Fake camera ID is 0
12-14 16:50:35.732: I/AudioFlinger(37): AudioFlinger's thread 0x10f60 ready to run
12-14 16:50:35.732: W/AudioFlinger(37): Thread AudioOut_1 cannot connect to the power manager service
12-14 16:50:35.742: I/AudioPolicyService(37): Loaded audio policy from LEGACY Audio Policy HAL (audio_policy)
12-14 16:50:35.812: I/SurfaceFlinger(35): SurfaceFlinger is starting
12-14 16:50:35.822: I/SurfaceFlinger(35): SurfaceFlinger's main thread ready to run. Initializing graphics H/W...
12-14 16:50:35.832: D/gralloc_goldfish(35): Emulator without GPU emulation detected.
12-14 16:50:35.832: I/gralloc(35): using (fd=11)
12-14 16:50:35.832: I/gralloc(35): id =
12-14 16:50:35.832: I/gralloc(35): xres = 480 px
12-14 16:50:35.832: I/gralloc(35): yres = 800 px
12-14 16:50:35.832: I/gralloc(35): xres_virtual = 480 px
12-14 16:50:35.832: I/gralloc(35): yres_virtual = 1600 px
12-14 16:50:35.832: I/gralloc(35): bpp = 16
12-14 16:50:35.832: I/gralloc(35): r = 11:5
12-14 16:50:35.832: I/gralloc(35): g = 5:6
12-14 16:50:35.832: I/gralloc(35): b = 0:5
12-14 16:50:35.832: I/gralloc(35): width = 74 mm (164.756760 dpi)
12-14 16:50:35.832: I/gralloc(35): height = 123 mm (165.203247 dpi)
12-14 16:50:35.832: I/gralloc(35): refresh rate = 260.42 Hz
12-14 16:50:35.842: D/libEGL(35): Emulator without GPU support detected. Fallback to software renderer.
12-14 16:50:35.842: D/libEGL(35): loaded /system/lib/egl/libGLES_android.so
12-14 16:50:35.862: I/SurfaceFlinger(35): EGL informations:
12-14 16:50:35.862: I/SurfaceFlinger(35): # of configs : 8
12-14 16:50:35.862: I/SurfaceFlinger(35): vendor : Android
12-14 16:50:35.862: I/SurfaceFlinger(35): version : 1.4 Android META-EGL
12-14 16:50:35.862: I/SurfaceFlinger(35): extensions: EGL_KHR_image EGL_KHR_image_base EGL_KHR_image_pixmap EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image EGL_KHR_fence_sync EGL_ANDROID_image_native_buffer EGL_ANDROID_swap_rectangle EGL_NV_system_time
12-14 16:50:35.862: I/SurfaceFlinger(35): Client API: OpenGL ES
12-14 16:50:35.862: I/SurfaceFlinger(35): EGLSurface: 5-6-5-0, config=0x0
12-14 16:50:35.862: I/SurfaceFlinger(35): OpenGL informations:
12-14 16:50:35.862: I/SurfaceFlinger(35): vendor : Android
12-14 16:50:35.862: I/SurfaceFlinger(35): renderer : Android PixelFlinger 1.4
12-14 16:50:35.862: I/SurfaceFlinger(35): version : OpenGL ES-CM 1.0
12-14 16:50:35.862: I/SurfaceFlinger(35): extensions: GL_OES_byte_coordinates GL_OES_fixed_point GL_OES_single_precision GL_OES_read_format GL_OES_compressed_paletted_texture GL_OES_draw_texture GL_OES_matrix_get GL_OES_query_matrix GL_OES_EGL_image GL_OES_compressed_ETC1_RGB8_texture GL_ARB_texture_compression GL_ARB_texture_non_power_of_two GL_ANDROID_user_clip_plane GL_ANDROID_vertex_buffer_object GL_ANDROID_generate_mipmap
12-14 16:50:35.862: I/SurfaceFlinger(35): GL_MAX_TEXTURE_SIZE = 4096
12-14 16:50:35.862: I/SurfaceFlinger(35): GL_MAX_VIEWPORT_DIMS = 4096 x 4096
12-14 16:50:35.862: I/SurfaceFlinger(35): flags = 000c0000
12-14 16:50:35.882: W/SurfaceFlinger(35): hwcomposer module not found
12-14 16:50:36.082: D/libEGL(72): Emulator without GPU support detected. Fallback to software renderer.
12-14 16:50:36.082: D/libEGL(72): loaded /system/lib/egl/libGLES_android.so
12-14 16:50:36.122: D/gralloc_goldfish(72): Emulator without GPU emulation detected.
12-14 16:50:36.302: I/ARMAssembler(72): generated scanline__00000077:03010102_00000A01_00000000 [ 9 ipp] (30 ins) at [0x40aa11e8:0x40aa1260] in 4108822 ns
12-14 16:50:36.322: I/ARMAssembler(72): generated scanline__00000077:03545402_00000A01_00000000 [ 31 ipp] (52 ins) at [0x40aa1268:0x40aa1338] in 1259607 ns
12-14 16:50:36.942: I/SamplingProfilerIntegration(36): Profiling disabled.
12-14 16:50:36.992: I/Zygote(36): Preloading classes...
12-14 16:50:37.012: D/dalvikvm(36): GC_EXPLICIT freed 36K, 81% free 406K/2048K, paused 1ms+2ms
12-14 16:50:37.072: D/dalvikvm(36): GC_EXPLICIT freed 4K, 77% free 471K/2048K, paused 2ms+2ms
12-14 16:50:37.152: D/dalvikvm(36): GC_EXPLICIT freed 18K, 76% free 505K/2048K, paused 1ms+1ms
12-14 16:50:37.222: D/dalvikvm(36): GC_EXPLICIT freed 28K, 74% free 532K/2048K, paused 0ms+1ms
12-14 16:50:37.253: D/dalvikvm(36): GC_EXPLICIT freed 15K, 72% free 573K/2048K, paused 1ms+1ms
12-14 16:50:37.392: D/dalvikvm(36): GC_EXPLICIT freed 28K, 71% free 600K/2048K, paused 1ms+1ms
12-14 16:50:37.582: D/TextLayoutCache(36): Using debug level: 0 - Debug Enabled: 0
12-14 16:50:37.612: D/dalvikvm(36): GC_EXPLICIT freed 25K, 70% free 631K/2048K, paused 1ms+1ms
12-14 16:50:37.622: W/Zygote(36): Class not found for preloading: android.media.AudioManager$2
12-14 16:50:37.752: I/dalvikvm(36): threadid=1: recursive native library load attempt (/system/lib/libmedia_jni.so)
12-14 16:50:37.752: D/MtpDeviceJNI(36): register_android_mtp_MtpDevice
12-14 16:50:37.752: I/dalvikvm(36): threadid=1: recursive native library load attempt (/system/lib/libmedia_jni.so)
12-14 16:50:37.763: I/dalvikvm(36): threadid=1: recursive native library load attempt (/system/lib/libmedia_jni.so)
12-14 16:50:37.763: W/MediaProfiles(36): could not find media config xml file
12-14 16:50:37.763: W/Zygote(36): Class not found for preloading: android.media.IRemoteControlClientDispatcher
12-14 16:50:37.763: W/Zygote(36): Class not found for preloading: android.media.IRemoteControlClientDispatcher$Stub
12-14 16:50:37.792: D/dalvikvm(36): GC_EXPLICIT freed 20K, 68% free 667K/2048K, paused 1ms+1ms
12-14 16:50:38.202: D/dalvikvm(36): GC_FOR_ALLOC freed 216K, 53% free 962K/2048K, paused 19ms
12-14 16:50:38.292: D/dalvikvm(36): GC_EXPLICIT freed 42K, 51% free 1017K/2048K, paused 2ms+1ms
12-14 16:50:38.443: D/dalvikvm(36): GC_EXPLICIT freed 27K, 49% free 1046K/2048K, paused 3ms+2ms
12-14 16:50:38.613: D/dalvikvm(36): GC_EXPLICIT freed 8K, 47% free 1094K/2048K, paused 1ms+2ms
12-14 16:50:38.702: D/dalvikvm(36): GC_EXPLICIT freed 23K, 44% free 1160K/2048K, paused 2ms+3ms
12-14 16:50:38.882: D/dalvikvm(36): GC_EXPLICIT freed 48K, 30% free 1439K/2048K, paused 2ms+3ms
12-14 16:50:38.892: W/Zyg
I had this problem for a while, but I found that my emulator target was too high for my application. Check that your emulator's API level is <= android:minSdkVersion in your manifest . Not a very helpful error message though is it?!
emulator is not perfect... try going to the application menu i start it from there...
i have noticed sometimes it does not show up on its own.
Starting activity com.example.android.jetboy.JetBoy on device emulator-5554
line of logcat says that your avd tried to start your application. you can post more details from logcat. Restart your emulator, clean and build your project and see what happens.
I had the same error while I was working with a new App which used SQLite.
Anyways, the issue was that even after you close your Eclipse and Emulator.. in Task Manager the process adb.exe or abd.exe*32 was still running.
Steps:
1. Close eclipse and emulator.
2. Kill the process adb.exe or abd.exe*32.
3. Start your eclipse, clean build your app once and its almost like new.
Happy coding.