Nook emulator on eclipse won't load (looping?) - android

I can't get the Nook emulator to actually start, it just gets caught in some kind of loop. Below is the logcat (this same pattern repeats over and over). Any thoughts?
12-14 03:09:08.784: D/dalvikvm(20852): GC_EXPLICIT freed 20K, 76% free 508K/2048K, paused 1ms+1ms
12-14 03:09:08.824: D/dalvikvm(20852): GC_EXPLICIT freed 27K, 74% free 535K/2048K, paused 1ms+1ms
12-14 03:09:08.854: D/dalvikvm(20852): GC_EXPLICIT freed 15K, 72% free 575K/2048K, paused 1ms+1ms
12-14 03:09:08.914: D/dalvikvm(20852): GC_EXPLICIT freed 27K, 71% free 601K/2048K, paused 1ms+1ms
12-14 03:09:08.984: D/dalvikvm(20852): GC_EXPLICIT freed 30K, 69% free 635K/2048K, paused 1ms+1ms
12-14 03:09:09.014: D/TextLayoutCache(20852): Using debug level: 0 - Debug Enabled: 0
12-14 03:09:09.034: W/Zygote(20852): Class not found for preloading: android.media.AudioManager$2
12-14 03:09:09.094: I/dalvikvm(20852): threadid=1: recursive native library load attempt (/system/lib/libmedia_jni.so)
12-14 03:09:09.094: D/MtpDeviceJNI(20852): register_android_mtp_MtpDevice
12-14 03:09:09.104: I/dalvikvm(20852): threadid=1: recursive native library load attempt (/system/lib/libmedia_jni.so)
12-14 03:09:09.104: I/dalvikvm(20852): threadid=1: recursive native library load attempt (/system/lib/libmedia_jni.so)
12-14 03:09:09.104: W/MediaProfiles(20852): could not find media config xml file
12-14 03:09:09.104: W/Zygote(20852): Class not found for preloading: android.media.IRemoteControlClientDispatcher
12-14 03:09:09.114: W/Zygote(20852): Class not found for preloading: android.media.IRemoteControlClientDispatcher$Stub
12-14 03:09:09.134: D/dalvikvm(20852): GC_EXPLICIT freed 19K, 68% free 675K/2048K, paused 1ms+1ms
12-14 03:09:09.384: D/dalvikvm(20852): GC_FOR_ALLOC freed 218K, 53% free 968K/2048K, paused 15ms
12-14 03:09:09.444: D/dalvikvm(20852): GC_EXPLICIT freed 43K, 50% free 1025K/2048K, paused 2ms+1ms
12-14 03:09:09.514: D/dalvikvm(20852): GC_EXPLICIT freed 27K, 49% free 1054K/2048K, paused 2ms+1ms
12-14 03:09:09.584: D/dalvikvm(20852): GC_EXPLICIT freed 8K, 47% free 1102K/2048K, paused 1ms+1ms
12-14 03:09:09.634: D/dalvikvm(20852): GC_EXPLICIT freed 23K, 43% free 1169K/2048K, paused 1ms+2ms
12-14 03:09:09.754: D/dalvikvm(20852): GC_EXPLICIT freed 48K, 30% free 1448K/2048K, paused 2ms+2ms
12-14 03:09:09.764: W/Zygote(20852): Class not found for preloading: android.text.TextDirectionHeuristics$CharCount
12-14 03:09:09.784: W/Zygote(20852): Class not found for preloading: android.text.method.WordIterator$1
12-14 03:09:09.844: D/dalvikvm(20852): GC_EXPLICIT freed 35K, 28% free 1482K/2048K, paused 2ms+2ms
12-14 03:09:09.904: D/dalvikvm(20852): GC_EXPLICIT freed 32K, 27% free 1504K/2048K, paused 2ms+2ms
12-14 03:09:10.034: I/dalvikvm(20852): threadid=1: recursive native library load attempt (/system/lib/libwebcore.so)
12-14 03:09:10.034: D/dalvikvm(20852): No JNI_OnLoad found in /system/lib/libchromium_net.so 0x0, skipping init
12-14 03:09:10.114: D/dalvikvm(20852): GC_EXPLICIT freed 26K, 25% free 1553K/2048K, paused 3ms+2ms
12-14 03:09:10.184: W/Zygote(20852): Class not found for preloading: android.widget.EdgeGlow
12-14 03:09:10.284: D/dalvikvm(20852): GC_EXPLICIT freed 25K, 23% free 1582K/2048K, paused 2ms+2ms
12-14 03:09:10.464: D/dalvikvm(20852): GC_EXPLICIT freed 71K, 21% free 1627K/2048K, paused 3ms+2ms
12-14 03:09:10.484: E/PhonePolicy(20852): Could not preload class for phone policy: com.android.internal.policy.impl.PhoneWindow$ContextMenuCallback
12-14 03:09:10.544: D/dalvikvm(20852): GC_EXPLICIT freed 32K, 20% free 1649K/2048K, paused 3ms+2ms
12-14 03:09:10.624: D/dalvikvm(20852): GC_EXPLICIT freed 28K, 19% free 1678K/2048K, paused 2ms+2ms
12-14 03:09:10.674: D/dalvikvm(20852): GC_EXPLICIT freed 26K, 17% free 1708K/2048K, paused 3ms+2ms
12-14 03:09:10.734: D/dalvikvm(20852): GC_EXPLICIT freed 32K, 16% free 1734K/2048K, paused 2ms+2ms
12-14 03:09:10.794: D/dalvikvm(20852): GC_EXPLICIT freed 31K, 14% free 1762K/2048K, paused 2ms+2ms
12-14 03:09:10.864: D/dalvikvm(20852): GC_EXPLICIT freed 71K, 12% free 1817K/2048K, paused 3ms+2ms
12-14 03:09:10.934: D/dalvikvm(20852): GC_EXPLICIT freed 39K, 11% free 1833K/2048K, paused 2ms+3ms
12-14 03:09:12.474: I/SurfaceFlinger(20856): SurfaceFlinger is starting
12-14 03:09:12.484: I/SurfaceFlinger(20856): SurfaceFlinger's main thread ready to run. Initializing graphics H/W...
12-14 03:09:12.494: D/gralloc_goldfish(20856): Emulator without GPU emulation detected.
12-14 03:09:12.494: E/FramebufferNativeWindow(20856): couldn't open framebuffer HAL (No such file or directory)
12-14 03:09:12.494: E/SurfaceFlinger(20856): Display subsystem failed to initialize. check logs. exiting...
12-14 03:09:12.704: D/AndroidRuntime(20859): >>>>>> AndroidRuntime START com.android.internal.os.ZygoteInit <<<<<<
12-14 03:09:12.704: D/AndroidRuntime(20859): CheckJNI is ON
12-14 03:09:13.134: I/SamplingProfilerIntegration(20859): Profiling disabled.
12-14 03:09:13.154: I/Zygote(20859): Preloading classes...
12-14 03:09:13.164: D/dalvikvm(20859): GC_EXPLICIT freed 36K, 81% free 408K/2048K, paused 1ms+1ms
12-14 03:09:13.204: D/dalvikvm(20859): GC_EXPLICIT freed 4K, 77% free 472K/2048K, paused 0ms+0ms

Related

My Application freezes

I am developing an android application for fingerprint reader, my operations include verifying user fingerprint(continuously), and registering new fingerprints(getting fingerprints from web API).
I am using Morpho MSO 1300 fingerprint reader.
when I run my application I am constantly getting following logcat messages
01-02 11:19:48.910 5286-11417/com.cms.attendance D/dalvikvm:
GC_FOR_ALLOC freed 293K, 20% free 3633K/4540K, paused 14ms, total 14ms
01-02 11:19:49.350 5286-11417/com.cms.attendance D/dalvikvm:
GC_FOR_ALLOC freed 295K, 20% free 3633K/4540K, paused 14ms, total 14ms
01-02 11:19:49.770 5286-11417/com.cms.attendance D/dalvikvm:
GC_FOR_ALLOC freed 293K, 20% free 3633K/4540K, paused 14ms, total 14ms
01-02 11:19:50.210 5286-11417/com.cms.attendance D/dalvikvm:
GC_FOR_ALLOC freed 295K, 20% free 3633K/4540K, paused 14ms, total 14ms
01-02 11:19:50.630 5286-11417/com.cms.attendance D/dalvikvm:
GC_FOR_ALLOC freed 293K, 20% free 3633K/4540K, paused 14ms, total 14ms
01-02 11:19:51.070 5286-11417/com.cms.attendance D/dalvikvm:
GC_FOR_ALLOC freed 293K, 20% free 3633K/4540K, paused 14ms, total 14ms
01-02 11:19:51.570 5286-11417/com.cms.attendance D/dalvikvm:
GC_FOR_ALLOC freed 295K, 20% free 3633K/4540K, paused 14ms, total 14ms
01-02 11:19:52.070 5286-11417/com.cms.attendance D/dalvikvm:
GC_FOR_ALLOC freed 293K, 20% free 3633K/4540K, paused 14ms, total 14ms
01-02 11:19:52.570 5286-11417/com.cms.attendance D/dalvikvm:
GC_FOR_ALLOC freed 295K, 20% free 3633K/4540K, paused 14ms, total 14ms
01-02 11:19:53.000 5286-11417/com.cms.attendance D/dalvikvm:
GC_FOR_ALLOC freed 293K, 20% free 3633K/4540K, paused 14ms, total 14ms
01-02 11:19:53.500 5286-11417/com.cms.attendance D/dalvikvm:
GC_FOR_ALLOC freed 295K, 20% free 3633K/4540K, paused 14ms, total 14ms
01-02 11:19:53.930 5286-11417/com.cms.attendance D/dalvikvm:
GC_FOR_ALLOC freed 293K, 20% free 3633K/4540K, paused 14ms, total 14ms
01-02 11:19:54.360 5286-11417/com.cms.attendance D/dalvikvm:
GC_FOR_ALLOC freed 295K, 20% free 3633K/4540K, paused 14ms, total 14ms
01-02 11:19:54.800 5286-11417/com.cms.attendance D/dalvikvm:
GC_FOR_ALLOC freed 293K, 20% free 3633K/4540K, paused 14ms, total 14ms
01-02 11:19:55.300 5286-11417/com.cms.attendance D/dalvikvm:
GC_FOR_ALLOC freed 336K, 20% free 3652K/4540K, paused 14ms, total 14ms
01-02 11:19:55.730 5286-11417/com.cms.attendance D/dalvikvm:
GC_FOR_ALLOC freed 301K, 20% free 3644K/4540K, paused 14ms, total 14ms
01-02 11:19:56.150 5286-11417/com.cms.attendance D/dalvikvm:
GC_FOR_ALLOC freed 295K, 20% free 3644K/4540K, paused 15ms, total 15ms
01-02 11:19:56.600 5286-11417/com.cms.attendance D/dalvikvm:
GC_FOR_ALLOC freed 293K, 20% free 3644K/4540K, paused 14ms, total 14ms
01-02 11:19:57.010 5286-11417/com.cms.attendance D/dalvikvm:
GC_FOR_ALLOC freed 293K, 20% free 3644K/4540K, paused 14ms, total 14ms
01-02 11:19:57.440 5286-11417/com.cms.attendance D/dalvikvm:
GC_FOR_ALLOC freed 295K, 20% free 3644K/4540K, paused 14ms, total 14ms
01-02 11:19:57.880 5286-11417/com.cms.attendance D/dalvikvm:
GC_FOR_ALLOC freed 293K, 20% free 3644K/4540K, paused 14ms, total 14ms
01-02 11:19:58.030 24732-24776/com.baidu.video.pad:download V/P2PBase:
[11:19:58:040][P2PBase] dns : media.p2sp.baidu.com resolve failed.
wait 3
As I increase data in my application, say I get 1000 users from web API and I try to process them and register them in fingerprint reader and sqlite database eventually my application freezes.
Any help will be appreciated.
This log means that Garbage collector just released the memory. You are making a lot of allocations and this is the reason why GC have to work frequently.
I recommend You to use Android Profiler (Android Studio 3.0) and try to overcome this problem: https://developer.android.com/studio/profile/memory-profiler.html
or past your code so that we can think about it together.

Android Studio: Virtual device (Nexus 4/5) is showing black screen for all versions of Android

I need to use Android Studio for my education, but I've been struggling getting it to work.
My hardware specs are: Intel SL9400 1.86 GHz Duo, 4 GB DDR3-1066 MHz, Integrated graphics, 1280x800 resoulution screen and 250 GB Samsung Evo SSD.
I've been searching Google for an explanation, but nothing of the suggestions seems to help. Some mentions OpenGL support?
The black screen is happening both with GPU-enabled as well as disabled, and I've tried Android versions below (including) version 15 and above up to 23.
Android Studio is updated to the newest version, and I've installed the latest SDK.
Below I've attached a snippet of the endless terminal output, as well as a screenshot the scenario.
I really hope that someone can help me out - I need this to work before Tuesday :(.
08-30 07:13:34.037 1495-1495/? D/dalvikvm﹕ GC_EXPLICIT freed 32K, 17% free 1712K/2048K, paused 1ms+0ms
08-30 07:13:34.107 1495-1495/? D/dalvikvm﹕ GC_EXPLICIT freed 35K, 16% free 1733K/2048K, paused 1ms+1ms
08-30 07:13:34.157 1495-1495/? D/dalvikvm﹕ GC_EXPLICIT freed 64K, 13% free 1785K/2048K, paused 1ms+0ms
08-30 07:13:34.268 1495-1495/? D/dalvikvm﹕ GC_EXPLICIT freed 39K, 13% free 1801K/2048K, paused 1ms+1ms
08-30 07:13:34.547 1495-1495/? I/System﹕ Loaded time zone names for in 244ms (242ms in ICU)
08-30 07:13:34.757 1495-1495/? I/System﹕ Loaded time zone names for en_US in 202ms (200ms in ICU)
08-30 07:13:34.797 1495-1495/? D/dalvikvm﹕ GC_EXPLICIT freed 304K, 15% free 1915K/2243K, paused 1ms+1ms
08-30 07:13:34.827 1495-1495/? D/dalvikvm﹕ GC_EXPLICIT freed 14K, 13% free 1973K/2243K, paused 10ms+0ms
08-30 07:13:34.897 1495-1495/? D/dalvikvm﹕ GC_EXPLICIT freed 49K, 11% free 2004K/2243K, paused 1ms+1ms
08-30 07:13:34.997 1495-1495/? D/dalvikvm﹕ GC_EXPLICIT freed 28K, 10% free 2034K/2243K, paused 0ms+1ms
08-30 07:13:35.077 1495-1495/? D/dalvikvm﹕ GC_EXPLICIT freed 37K, 9% free 2052K/2243K, paused 1ms+1ms
08-30 07:13:35.177 1495-1495/? D/dalvikvm﹕ GC_EXPLICIT freed 32K, 8% free 2074K/2243K, paused 1ms+0ms
08-30 07:13:35.207 1495-1495/? I/Zygote﹕ ...preloaded 2297 classes in 4030ms.
08-30 07:13:35.227 1495-1495/? D/dalvikvm﹕ GC_EXPLICIT freed 21K, 8% free 2077K/2243K, paused 1ms+2ms
08-30 07:13:35.227 1495-1495/? I/Zygote﹕ Preloading resources...
08-30 07:13:35.247 1495-1495/? W/Zygote﹕ Preloaded drawable resource #0x10804d7 (res/drawable-xhdpi/spinner_black_16.png) that varies with configuration!!
08-30 07:13:35.267 1495-1495/? W/Zygote﹕ Preloaded drawable resource #0x10804d8 (res/drawable-xhdpi/spinner_black_20.png) that varies with configuration!!
08-30 07:13:35.306 1495-1495/? W/Zygote﹕ Preloaded drawable resource #0x10804d9 (res/drawable-xhdpi/spinner_black_48.png) that varies with configuration!!
08-30 07:13:35.327 1495-1495/? D/dalvikvm﹕ GC_EXPLICIT freed 50K, 10% free 2194K/2435K, paused 1ms+1ms
08-30 07:13:35.377 1495-1495/? W/Zygote﹕ Preloaded drawable resource #0x10804da (res/drawable-xhdpi/spinner_black_76.png) that varies with configuration!!
08-30 07:13:35.456 1495-1495/? D/dalvikvm﹕ GC_EXPLICIT freed 83K, 14% free 2376K/2755K, paused 3ms+2ms
08-30 07:13:35.497 1495-1495/? W/Zygote﹕ Preloaded drawable resource #0x10804e8 (res/drawable-xhdpi/spinner_white_16.png) that varies with configuration!!
08-30 07:13:35.517 1495-1495/? W/Zygote﹕ Preloaded drawable resource #0x10804e9 (res/drawable-xhdpi/spinner_white_48.png) that varies with configuration!!
08-30 07:13:35.557 1495-1495/? D/dalvikvm﹕ GC_EXPLICIT freed 43K, 11% free 2467K/2755K, paused 0ms+1ms
08-30 07:13:35.636 1495-1495/? W/Zygote﹕ Preloaded drawable resource #0x10804ea (res/drawable-xhdpi/spinner_white_76.png) that varies with configuration!!
08-30 07:13:35.757 1495-1495/? D/dalvikvm﹕ GC_EXPLICIT freed 83K, 11% free 2649K/2947K, paused 1ms+1ms
08-30 07:13:35.787 1495-1495/? W/Zygote﹕ Preloaded drawable resource #0x1080096 (res/drawable-xhdpi/toast_frame.9.png) that varies with configuration!!
08-30 07:13:35.837 1495-1495/? D/dalvikvm﹕ GC_EXPLICIT freed 61K, 12% free 2784K/3139K, paused 1ms+1ms
08-30 07:13:35.877 1495-1495/? W/Zygote﹕ Preloaded drawable resource #0x10805d0 (res/drawable-xhdpi/toast_frame_holo.9.png) that varies with configuration!!
08-30 07:13:35.907 1495-1495/? D/dalvikvm﹕ GC_EXPLICIT freed 61K, 13% free 2920K/3331K, paused 2ms+2ms
08-30 07:13:35.948 1495-1495/? W/Zygote﹕ Preloaded drawable resource #0x1080106 (res/drawable-xhdpi/btn_check_on_selected.png) that varies with configuration!!
08-30 07:13:36.008 1499-1499/? I/SurfaceFlinger﹕ SurfaceFlinger is starting
08-30 07:13:36.008 1499-1500/? I/SurfaceFlinger﹕ SurfaceFlinger's main thread ready to run. Initializing graphics H/W...
08-30 07:13:36.077 1499-1500/? D/gralloc_goldfish﹕ Emulator without GPU emulation detected.
08-30 07:13:36.087 1495-1495/? D/dalvikvm﹕ GC_EXPLICIT freed 30K, 11% free 2984K/3331K, paused 3ms+2ms
08-30 07:13:36.108 1499-1500/? E/FramebufferNativeWindow﹕ couldn't open framebuffer HAL (No such file or directory)
08-30 07:13:36.108 1499-1500/? E/SurfaceFlinger﹕ Display subsystem failed to initialize. check logs. exiting...
08-30 07:13:36.127 1495-1495/? W/Zygote﹕ Preloaded drawable resource #0x1080105 (res/drawable-xhdpi/btn_check_on_pressed_holo_light.png) that varies with configuration!!
08-30 07:13:36.288 1502-1502/? D/AndroidRuntime﹕ >>>>>> AndroidRuntime START com.android.internal.os.ZygoteInit <<<<<<
08-30 07:13:36.318 1502-1502/? D/AndroidRuntime﹕ CheckJNI is ON
08-30 07:13:37.027 1502-1502/? I/SamplingProfilerIntegration﹕ Profiling disabled.
08-30 07:13:37.077 1502-1502/? I/Zygote﹕ Preloading classes...
08-30 07:13:37.086 1502-1502/? D/dalvikvm﹕ GC_EXPLICIT freed 35K, 81% free 400K/2048K, paused 0ms+0ms
08-30 07:13:37.117 1502-1502/? D/dalvikvm﹕ GC_EXPLICIT freed 3K, 78% free 463K/2048K, paused 0ms+0ms
08-30 07:13:37.347 1502-1502/? D/dalvikvm﹕ GC_EXPLICIT freed 20K, 76% free 498K/2048K, paused 0ms+1ms
08-30 07:13:37.447 1502-1502/? D/dalvikvm﹕ GC_EXPLICIT freed 27K, 75% free 526K/2048K, paused 1ms+0ms
08-30 07:13:37.506 1502-1502/? D/dalvikvm﹕ GC_EXPLICIT freed 14K, 73% free 567K/2048K, paused 1ms+0ms
08-30 07:13:37.617 1502-1502/? D/dalvikvm﹕ GC_EXPLICIT freed 26K, 71% free 594K/2048K, paused 0ms+1ms
08-30 07:13:37.726 1502-1502/? D/dalvikvm﹕ GC_EXPLICIT freed 27K, 70% free 623K/2048K, paused 1ms+0ms
08-30 07:13:37.747 1502-1502/? D/TextLayoutCache﹕ Using debug level: 0 - Debug Enabled: 0
08-30 07:13:37.776 1502-1502/? W/Zygote﹕ Class not found for preloading: android.media.AudioManager$2
08-30 07:13:37.836 1502-1502/? I/dalvikvm﹕ threadid=1: recursive native library load attempt (/system/lib/libmedia_jni.so)
08-30 07:13:37.836 1502-1502/? D/MtpDeviceJNI﹕ register_android_mtp_MtpDevice
08-30 07:13:37.847 1502-1502/? I/dalvikvm﹕ threadid=1: recursive native library load attempt (/system/lib/libmedia_jni.so)
08-30 07:13:37.847 1502-1502/? I/dalvikvm﹕ threadid=1: recursive native library load attempt (/system/lib/libmedia_jni.so)
08-30 07:13:37.857 1502-1502/? W/MediaProfiles﹕ could not find media config xml file
08-30 07:13:37.867 1502-1502/? W/Zygote﹕ Class not found for preloading: android.media.IRemoteControlClientDispatcher
08-30 07:13:37.867 1502-1502/? W/Zygote﹕ Class not found for preloading: android.media.IRemoteControlClientDispatcher$Stub
08-30 07:13:37.887 1502-1502/? D/dalvikvm﹕ GC_EXPLICIT freed 18K, 68% free 662K/2048K, paused 0ms+0ms
08-30 07:13:38.006 1502-1502/? D/dalvikvm﹕ GC_FOR_ALLOC freed 215K, 54% free 959K/2048K, paused 6ms
08-30 07:13:38.058 1502-1502/? D/dalvikvm﹕ GC_EXPLICIT freed 37K, 51% free 1006K/2048K, paused 1ms+0ms
08-30 07:13:38.230 1502-1502/? D/dalvikvm﹕ GC_EXPLICIT freed 27K, 50% free 1037K/2048K, paused 1ms+1ms
08-30 07:13:38.367 1502-1502/? D/dalvikvm﹕ GC_EXPLICIT freed 11K, 47% free 1088K/2048K, paused 1ms+0ms
08-30 07:13:38.406 1502-1502/? D/dalvikvm﹕ GC_EXPLICIT freed 19K, 44% free 1147K/2048K, paused 1ms+0ms
08-30 07:13:38.466 1502-1502/? D/dalvikvm﹕ GC_EXPLICIT freed 46K, 31% free 1418K/2048K, paused 1ms+1ms
08-30 07:13:38.487 1502-1502/? W/Zygote﹕ Class not found for preloading: android.text.TextDirectionHeuristics$CharCount
08-30 07:13:38.546 1502-1502/? W/Zygote﹕ Class not found for preloading: android.text.method.WordIterator$1
08-30 07:13:38.666 1502-1502/? D/dalvikvm﹕ GC_EXPLICIT freed 34K, 30% free 1452K/2048K, paused 2ms+0ms
08-30 07:13:38.786 1502-1502/? D/dalvikvm﹕ GC_EXPLICIT freed 31K, 28% free 1475K/2048K, paused 1ms+0ms
08-30 07:13:38.926 1502-1502/? I/dalvikvm﹕ threadid=1: recursive native library load attempt (/system/lib/libwebcore.so)
08-30 07:13:38.926 1502-1502/? D/dalvikvm﹕ No JNI_OnLoad found in /system/lib/libchromium_net.so 0x0, skipping init
08-30 07:13:38.976 1502-1502/? D/dalvikvm﹕ GC_EXPLICIT freed 25K, 26% free 1523K/2048K, paused 1ms+0ms
08-30 07:13:39.056 1502-1502/? W/Zygote﹕ Class not found for preloading: android.widget.EdgeGlow
08-30 07:13:39.146 1502-1502/? D/dalvikvm﹕ GC_EXPLICIT freed 24K, 25% free 1552K/2048K, paused 1ms+0ms
08-30 07:13:39.326 1502-1502/? D/dalvikvm﹕ GC_EXPLICIT freed 70K, 22% free 1597K/2048K, paused 2ms+1ms
08-30 07:13:39.376 1502-1502/? E/PhonePolicy﹕ Could not preload class for phone policy: com.android.internal.policy.impl.PhoneWindow$ContextMenuCallback
08-30 07:13:39.446 1502-1502/? D/dalvikvm﹕ GC_EXPLICIT freed 32K, 21% free 1618K/2048K, paused 1ms+1ms
08-30 07:13:39.556 1502-1502/? D/dalvikvm﹕ GC_EXPLICIT freed 27K, 20% free 1647K/2048K, paused 1ms+0ms
08-30 07:13:39.616 1502-1502/? D/dalvikvm﹕ GC_EXPLICIT freed 25K, 19% free 1677K/2048K, paused 1ms+0ms
08-30 07:13:39.666 1502-1502/? D/dalvikvm﹕ GC_EXPLICIT freed 32K, 17% free 1712K/2048K, paused 1ms+1ms
08-30 07:13:39.756 1502-1502/? D/dalvikvm﹕ GC_EXPLICIT freed 35K, 16% free 1733K/2048K, paused 1ms+0ms
08-30 07:13:39.806 1502-1502/? D/dalvikvm﹕ GC_EXPLICIT freed 64K, 13% free 1785K/2048K, paused 1ms+1ms
08-30 07:13:39.886 1502-1502/? D/dalvikvm﹕ GC_EXPLICIT freed 39K, 13% free 1801K/2048K, paused 1ms+1ms
08-30 07:13:40.196 1502-1502/? I/System﹕ Loaded time zone names for in 275ms (273ms in ICU)
08-30 07:13:40.456 1506-1506/? I/SurfaceFlinger﹕ SurfaceFlinger is starting
08-30 07:13:40.456 1506-1507/? I/SurfaceFlinger﹕ SurfaceFlinger's main thread ready to run. Initializing graphics H/W...
08-30 07:13:40.496 1506-1507/? D/gralloc_goldfish﹕ Emulator without GPU emulation detected.
08-30 07:13:40.496 1506-1507/? E/FramebufferNativeWindow﹕ couldn't open framebuffer HAL (No such file or directory)
08-30 07:13:40.496 1506-1507/? E/SurfaceFlinger﹕ Display subsystem failed to initialize. check logs. exiting...
08-30 07:13:40.616 1509-1509/? D/AndroidRuntime﹕ >>>>>> AndroidRuntime START com.android.internal.os.ZygoteInit <<<<<<
08-30 07:13:40.616 1509-1509/? D/AndroidRuntime﹕ CheckJNI is ON
08-30 07:13:41.106 1509-1509/? I/SamplingProfilerIntegration﹕ Profiling disabled.
08-30 07:13:41.156 1509-1509/? I/Zygote﹕ Preloading classes...
08-30 07:13:41.166 1509-1509/? D/dalvikvm﹕ GC_EXPLICIT freed 35K, 81% free 400K/2048K, paused 1ms+1ms
08-30 07:13:41.196 1509-1509/? D/dalvikvm﹕ GC_EXPLICIT freed 3K, 78% free 463K/2048K, paused 0ms+0ms
08-30 07:13:41.336 1509-1509/? D/dalvikvm﹕ GC_EXPLICIT freed 20K, 76% free 498K/2048K, paused 0ms+0ms
08-30 07:13:41.456 1509-1509/? D/dalvikvm﹕ GC_EXPLICIT freed 27K, 75% free 526K/2048K, paused 0ms+0ms
08-30 07:13:41.516 1509-1509/? D/dalvikvm﹕ GC_EXPLICIT freed 14K, 73% free 567K/2048K, paused 0ms+0ms
08-30 07:13:41.676 1509-1509/? D/dalvikvm﹕ GC_EXPLICIT freed 26K, 71% free 594K/2048K, paused 1ms+0ms
08-30 07:13:41.806 1509-1509/? D/dalvikvm﹕ GC_EXPLICIT freed 27K, 70% free 623K/2048K, paused 0ms+1ms
08-30 07:13:41.836 1509-1509/? D/TextLayoutCache﹕ Using debug level: 0 - Debug Enabled: 0
08-30 07:13:41.856 1509-1509/? W/Zygote﹕ Class not found for preloading: android.media.AudioManager$2
08-30 07:13:41.926 1509-1509/? I/dalvikvm﹕ threadid=1: recursive native library load attempt (/system/lib/libmedia_jni.so)
08-30 07:13:41.936 1509-1509/? D/MtpDeviceJNI﹕ register_android_mtp_MtpDevice
08-30 07:13:41.948 1509-1509/? I/dalvikvm﹕ threadid=1: recursive native library load attempt (/system/lib/libmedia_jni.so)
08-30 07:13:41.948 1509-1509/? I/dalvikvm﹕ threadid=1: recursive native library load attempt (/system/lib/libmedia_jni.so)
08-30 07:13:41.956 1509-1509/? W/MediaProfiles﹕ could not find media config xml file
08-30 07:13:41.966 1509-1509/? W/Zygote﹕ Class not found for preloading: android.media.IRemoteControlClientDispatcher
08-30 07:13:41.966 1509-1509/? W/Zygote﹕ Class not found for preloading: android.media.IRemoteControlClientDispatcher$Stub
08-30 07:13:41.986 1509-1509/? D/dalvikvm﹕ GC_EXPLICIT freed 18K, 68% free 662K/2048K, paused 0ms+0ms
08-30 07:13:42.116 1509-1509/? D/dalvikvm﹕ GC_FOR_ALLOC freed 216K, 54% free 957K/2048K, paused 6ms
08-30 07:13:42.176 1509-1509/? D/dalvikvm﹕ GC_EXPLICIT freed 36K, 51% free 1006K/2048K, paused 1ms+0ms
08-30 07:13:42.286 1509-1509/? D/dalvikvm﹕ GC_EXPLICIT freed 28K, 50% free 1037K/2048K, paused 0ms+1ms
08-30 07:13:42.376 1509-1509/? D/dalvikvm﹕ GC_EXPLICIT freed 11K, 47% free 1088K/2048K, paused 1ms+0ms
08-30 07:13:42.406 1509-1509/? D/dalvikvm﹕ GC_EXPLICIT freed 19K, 44% free 1147K/2048K, paused 1ms+0ms
08-30 07:13:42.486 1509-1509/? D/dalvikvm﹕ GC_EXPLICIT freed 46K, 31% free 1418K/2048K, paused 0ms+0ms
08-30 07:13:42.516 1509-1509/? W/Zygote﹕ Class not found for preloading: android.text.TextDirectionHeuristics$CharCount
08-30 07:13:42.576 1509-1509/? W/Zygote﹕ Class not found for preloading: android.text.method.WordIterator$1
08-30 07:13:42.626 1509-1509/? D/dalvikvm﹕ GC_EXPLICIT freed 34K, 30% free 1452K/2048K, paused 1ms+1ms
08-30 07:13:42.766 1509-1509/? D/dalvikvm﹕ GC_EXPLICIT freed 31K, 28% free 1475K/2048K, paused 1ms+1ms
08-30 07:13:42.976 1509-1509/? I/dalvikvm﹕ threadid=1: recursive native library load attempt (/system/lib/libwebcore.so)
08-30 07:13:42.976 1509-1509/? D/dalvikvm﹕ No JNI_OnLoad found in /system/lib/libchromium_net.so 0x0, skipping init
08-30 07:13:43.056 1509-1509/? D/dalvikvm﹕ GC_EXPLICIT freed 25K, 26% free 1523K/2048K, paused 1ms+1ms
08-30 07:13:43.167 1509-1509/? W/Zygote﹕ Class not found for preloading: android.widget.EdgeGlow
08-30 07:13:43.326 1509-1509/? D/dalvikvm﹕ GC_EXPLICIT freed 24K, 25% free 1551K/2048K, paused 1ms+0ms
08-30 07:13:43.727 1509-1509/? D/dalvikvm﹕ GC_EXPLICIT freed 70K, 23% free 1597K/2048K, paused 1ms+1ms
08-30 07:13:43.847 1509-1509/? E/PhonePolicy﹕ Could not preload class for phone policy: com.android.internal.policy.impl.PhoneWindow$ContextMenuCallback
08-30 07:13:43.946 1509-1509/? D/dalvikvm﹕ GC_EXPLICIT freed 32K, 21% free 1618K/2048K, paused 1ms+0ms

Framedrops --> Ideas for better Android Game rendering?

my simple application suffers from framedrop. I think this is due to my rendering method:
public void draw(Canvas canvas) {
drawBackground(canvas);
drawPlayer(canvas);
drawEnemy(canvas);
}
As you can see, the background gets drawn every single time this method is called, as well as player and enemy... the "drawBackground(canvas)" looks kinda like this:
public void paintBackground(Canvas canvas) {
canvas.drawBitmap(background, 0, 0, null);
}
drawPlayer and drawEnemy draw circles at the position my player/ or enemyobject returns.
Is there any better solution for displaying background, player and other objects, without constantly redrawing them?
Logcat:
02-14 17:30:11.904: D/dalvikvm(17783): GC_FOR_ALLOC freed 29K, 1% free 9069K/9132K, paused 17ms, total 18ms
02-14 17:30:11.912: I/dalvikvm-heap(17783): Grow heap (frag case) to 12.404MB for 3686416-byte allocation
02-14 17:30:11.927: D/dalvikvm(17783): GC_FOR_ALLOC freed <1K, 1% free 12669K/12736K, paused 20ms, total 20ms
02-14 17:30:12.341: D/dalvikvm(17783): GC_FOR_ALLOC freed 16K, 1% free 12696K/12748K, paused 24ms, total 24ms
02-14 17:30:12.349: I/dalvikvm-heap(17783): Grow heap (frag case) to 15.945MB for 3686416-byte allocation
02-14 17:30:12.373: D/dalvikvm(17783): GC_FOR_ALLOC freed <1K, 1% free 16296K/16352K, paused 24ms, total 24ms
02-14 17:30:12.560: D/OpenGLRenderer(17783): Enabling debug mode 0
02-14 17:30:18.045: D/dalvikvm(17783): GC_FOR_ALLOC freed 218K, 2% free 16377K/16632K, paused 20ms, total 20ms
02-14 17:30:18.052: I/dalvikvm-heap(17783): Grow heap (frag case) to 19.541MB for 3686416-byte allocation
02-14 17:30:18.076: D/dalvikvm(17783): GC_FOR_ALLOC freed 6K, 2% free 19971K/20236K, paused 21ms, total 22ms
02-14 17:30:28.529: D/dalvikvm(17783): GC_FOR_ALLOC freed 3899K, 20% free 16395K/20332K, paused 19ms, total 19ms
02-14 17:30:28.537: I/dalvikvm-heap(17783): Grow heap (frag case) to 19.557MB for 3686416-byte allocation
02-14 17:30:28.560: D/dalvikvm(17783): GC_FOR_ALLOC freed <1K, 2% free 19995K/20332K, paused 18ms, total 18ms
02-14 17:30:49.756: D/dalvikvm(17783): GC_FOR_ALLOC freed 4050K, 20% free 16464K/20552K, paused 20ms, total 34ms
02-14 17:30:49.763: I/dalvikvm-heap(17783): Grow heap (frag case) to 19.625MB for 3686416-byte allocation
02-14 17:30:49.779: D/dalvikvm(17783): GC_FOR_ALLOC freed 6K, 3% free 20057K/20552K, paused 21ms, total 21ms
02-14 17:30:57.107: D/dalvikvm(17783): GC_FOR_ALLOC freed 3938K, 21% free 16373K/20552K, paused 17ms, total 17ms
02-14 17:30:57.107: I/dalvikvm-heap(17783): Grow heap (frag case) to 19.536MB for 3686416-byte allocation
02-14 17:30:57.138: D/dalvikvm(17783): GC_FOR_ALLOC freed 14K, 3% free 19958K/20552K, paused 13ms, total 13ms
02-14 17:31:03.310: D/dalvikvm(17783): GC_FOR_ALLOC freed 3824K, 21% free 16370K/20552K, paused 31ms, total 31ms
02-14 17:31:03.310: I/dalvikvm-heap(17783): Grow heap (frag case) to 19.533MB for 3686416-byte allocation
02-14 17:31:03.381: D/dalvikvm(17783): GC_FOR_ALLOC freed 7K, 3% free 19962K/20552K, paused 30ms, total 30ms
02-14 17:33:31.943: D/dalvikvm(17783): GC_FOR_ALLOC freed 6253K, 27% free 17352K/23640K, paused 37ms, total 39ms
Thanks in advance

Android GC_concurrent pauses activity

I love garbage collector, and it does it work good. But the problem is I have too many objects in my activity because there are too many Hashmaps and arraylists and other objects. So when I switch to other activity this happens.
12-04 01:02:17.119: D/dalvikvm(1124): GC_CONCURRENT freed 0K, 46% free 26267K/48327K, paused 2ms+5ms
12-04 01:02:17.249: D/dalvikvm(1124): GC_CONCURRENT freed 8877K, 60% free 19436K/48327K, paused 2ms+5ms
12-04 01:02:17.359: D/dalvikvm(1124): GC_CONCURRENT freed 1593K, 59% free 19888K/48327K, paused 2ms+5ms
12-04 01:02:17.459: D/dalvikvm(1124): GC_CONCURRENT freed 1572K, 58% free 20363K/48327K, paused 2ms+5ms
12-04 01:02:17.559: D/ExchangeService(578): Received deviceId from Email app: null
12-04 01:02:17.559: D/ExchangeService(578): !!! deviceId unknown; stopping self and retrying
12-04 01:02:17.569: D/dalvikvm(1124): GC_CONCURRENT freed 1594K, 57% free 20816K/48327K, paused 2ms+6ms
12-04 01:02:17.679: D/dalvikvm(1124): GC_CONCURRENT freed 1582K, 56% free 21278K/48327K, paused 2ms+5ms
12-04 01:02:17.779: D/dalvikvm(1124): GC_CONCURRENT freed 1582K, 56% free 21741K/48327K, paused 2ms+5ms
12-04 01:02:17.889: D/dalvikvm(1124): GC_CONCURRENT freed 1582K, 55% free 22203K/48327K, paused 2ms+5ms
12-04 01:02:17.999: D/dalvikvm(1124): GC_CONCURRENT freed 1579K, 54% free 22669K/48327K, paused 2ms+6ms
12-04 01:02:18.109: D/dalvikvm(1124): GC_CONCURRENT freed 1585K, 53% free 23130K/48327K, paused 2ms+6ms
12-04 01:02:18.229: D/dalvikvm(1124): GC_CONCURRENT freed 1580K, 52% free 23592K/48327K, paused 2ms+6ms
12-04 01:02:18.339: D/dalvikvm(1124): GC_CONCURRENT freed 1584K, 51% free 24052K/48327K, paused 2ms+5ms
12-04 01:02:18.449: D/dalvikvm(1124): GC_CONCURRENT freed 1570K, 50% free 24527K/48327K, paused 2ms+5ms
12-04 01:02:18.569: D/dalvikvm(1124): GC_CONCURRENT freed 1563K, 49% free 25012K/48327K, paused 2ms+6ms
12-04 01:02:18.649: D/dalvikvm(1124): GC_FOR_ALLOC freed 623K, 48% free 25189K/48327K, paused 39ms
12-04 01:02:18.659: I/dalvikvm-heap(1124): Grow heap (frag case) to 29.909MB for 5510676-byte allocation
12-04 01:02:18.719: D/dalvikvm(1124): GC_CONCURRENT freed 0K, 37% free 30571K/48327K, paused 2ms+5ms
12-04 01:02:19.159: D/dalvikvm(1124): GC_CONCURRENT freed 1976K, 37% free 30571K/48327K, paused 2ms+5ms
12-04 01:02:19.599: D/dalvikvm(1124): GC_CONCURRENT freed 1972K, 37% free 30571K/48327K, paused 2ms+5ms
12-04 01:02:20.049: D/dalvikvm(1124): GC_CONCURRENT freed 1976K, 37% free 30571K/48327K, paused 2ms+6ms
So the problem is Switching to other activity pauses the application for like 4 to 5 seconds and it looks like the app is going to do Unfortunately and then ohter activity starts. So what can I do to NOT pause the activity the app
What I have tried
1. Starting Activity in async task. (Displaying the progressbar when GC does the above work)
but the progress dialog also pauses.
2. Do the same with handler and thread.
above things did not help.
So How can I display a progress dialog when GC does its work and not pause the activity? I don't want to manually remove manually.

Android OOM, memory is never released

I am developing on Android 2.3.3 API Lv10. My app uses the 'LoaderManager' interface to load images in the background, and the images are displayed in a ViewPager. If I repeat viewing the images, the app will crash eventually. It looks like the app allocate memory to fast, and the GC is not able to release some of it.
Is there any way to track which object is hold in memory?
02-02 18:02:05.564: D/dalvikvm(255): GC_EXPLICIT freed 500K, 55% free 2599K/5703K, external 1625K/2137K, paused 534ms
02-02 18:02:05.714: D/dalvikvm(389): GC_EXTERNAL_ALLOC freed 365K, 54% free 2680K/5703K, external 3045K/3338K, paused 54ms
02-02 18:02:06.074: D/dalvikvm(389): GC_EXTERNAL_ALLOC freed 59K, 54% free 2677K/5703K, external 4211K/5259K, paused 62ms
02-02 18:02:10.645: D/dalvikvm(316): GC_EXPLICIT freed 322K, **54% free** 2539K/5511K, external 1625K/2137K, paused 100ms
02-02 18:02:53.054: D/dalvikvm(389): GC_EXTERNAL_ALLOC freed 109K, **53% free** 2684K/5703K, external 6691K/6808K, paused 48ms
02-02 18:03:16.834: D/dalvikvm(389): GC_EXTERNAL_ALLOC freed 604K, 55% free 2720K/5959K, external 8954K/9904K, paused 52ms
02-02 18:03:18.304: D/dalvikvm(389): GC_EXTERNAL_ALLOC freed 114K, 55% free 2711K/5959K, external 6160K/6211K, paused 47ms
02-02 18:03:21.534: D/dalvikvm(389): GC_EXTERNAL_ALLOC freed 128K, 55% free 2731K/5959K, external 8375K/9165K, paused 38ms
02-02 18:03:29.154: D/dalvikvm(389): GC_EXTERNAL_ALLOC freed 612K, 55% free 2757K/6023K, external 10236K/11261K, paused 50ms
02-02 18:03:30.394: D/dalvikvm(389): GC_EXTERNAL_ALLOC freed 90K, 55% free 2719K/6023K, external 8070K/8080K, paused 45ms
02-02 18:03:33.944: D/dalvikvm(389): GC_EXTERNAL_ALLOC freed 571K, 54% free 2786K/6023K, external 9093K/10112K, paused 74ms
02-02 18:03:36.304: D/dalvikvm(389): GC_EXTERNAL_ALLOC freed 115K, 54% free 2777K/6023K, external 7952K/8724K, paused 45ms
02-02 18:03:41.194: D/dalvikvm(389): GC_EXTERNAL_ALLOC freed 319K, 53% free 2877K/6023K, external 10954K/10980K, paused 51ms
02-02 18:03:58.054: I/dalvikvm(389): Jit: resizing JitTable from 512 to 1024
02-02 18:03:58.454: D/dalvikvm(389): GC_CONCURRENT freed 1254K, 58% free 2841K/6727K, external 8152K/8375K, paused 4ms+5ms
02-02 18:04:01.314: D/dalvikvm(389): GC_EXTERNAL_ALLOC freed 80K, 58% free 2847K/6727K, external 8078K/8375K, paused 57ms
02-02 18:04:02.244: D/dalvikvm(389): GC_EXTERNAL_ALLOC freed 66K, 58% free 2884K/6727K, external 10625K/11366K, paused 40ms
02-02 18:04:07.614: D/dalvikvm(389): GC_EXTERNAL_ALLOC freed 191K, 58% free 2874K/6727K, external 13698K/14474K, paused 49ms
02-02 18:04:16.104: D/dalvikvm(389): GC_EXTERNAL_ALLOC freed 566K, 57% free 2925K/6727K, external 12504K/12547K, paused 41ms
02-02 18:04:16.574: D/dalvikvm(389): GC_EXTERNAL_ALLOC freed 194K, 58% free 2837K/6727K, external 8589K/9589K, paused 51ms
02-02 18:04:18.774: D/dalvikvm(389): GC_EXTERNAL_ALLOC freed 71K, 58% free 2862K/6727K, external 9048K/11075K, paused 40ms
02-02 18:04:20.705: D/dalvikvm(389): GC_EXTERNAL_ALLOC freed 108K, 58% free 2859K/6727K, external 11804K/12545K, paused 49ms
02-02 18:04:22.475: D/dalvikvm(389): GC_EXTERNAL_ALLOC freed 52K, 58% free 2861K/6727K, external 14210K/16258K, paused 40ms
02-02 18:04:24.044: D/dalvikvm(389): GC_EXTERNAL_ALLOC freed 52K, 58% free 2863K/6727K, external 16920K/18968K, paused 47ms
02-02 18:04:24.153: E/dalvikvm-heap(389): 1232160-byte external allocation too large for this process.
02-02 18:04:24.255: D/dalvikvm(389): GC_FOR_MALLOC freed <1K, 58% free 2863K/6727K, external 16920K/18968K, paused 29ms
02-02 18:04:24.265: W/dalvikvm(389): threadid=9: thread exiting with uncaught exception (group=0x40015560)
02-02 18:04:24.565: D/dalvikvm(389): GC_EXTERNAL_ALLOC freed 91K, 58% free 2850K/6727K, external 16967K/18968K, paused 149ms
02-02 18:04:25.664: D/dalvikvm(389): GC_FOR_MALLOC freed 0K, 58% free 2850K/6727K, external 17021K/18968K, paused 161ms
02-02 18:04:27.144: D/dalvikvm(389): GC_EXTERNAL_ALLOC freed 39K, 58% free 2880K/6727K, external 17000K/18968K, paused 49ms
02-02 18:04:27.364: I/dalvikvm-heap(389): Clamp target GC heap from 24.004MB to 24.000MB
02-02 18:04:27.374: D/dalvikvm(389): GC_FOR_MALLOC freed <1K, 58% free 2880K/6727K, external 17048K/18968K, paused 29ms
02-02 17:48:09.424: D/dalvikvm(337): GC_CONCURRENT freed 1400K, 61% free 2686K/6727K, external 3045K/3330K, paused 4ms+4ms
02-02 17:48:10.284: D/dalvikvm(337): GC_EXTERNAL_ALLOC freed 58K, 60% free 2707K/6727K, external 2972K/3330K, paused 37ms
02-02 17:48:11.664: D/dalvikvm(337): GC_EXTERNAL_ALLOC freed 78K, 60% free 2709K/6727K, external 3842K/4799K, paused 44ms
02-02 17:48:17.364: D/dalvikvm(337): GC_EXTERNAL_ALLOC freed 161K, 60% free 2719K/6727K, external 5843K/6032K, paused 41ms
02-02 17:48:25.824: D/dalvikvm(337): GC_EXTERNAL_ALLOC freed 157K, 60% free 2726K/6727K, external 8108K/8682K, paused 76ms
02-02 17:48:30.084: D/dalvikvm(337): GC_EXTERNAL_ALLOC freed 157K, 60% free 2732K/6727K, external 10488K/11355K, paused 63ms
02-02 17:48:39.704: D/dalvikvm(337): GC_CONCURRENT freed 742K, 58% free 2888K/6727K, external 12840K/13865K, paused 4ms+3ms
02-02 17:48:43.895: D/dalvikvm(337): GC_EXTERNAL_ALLOC freed 893K, 60% free 2749K/6727K, external 3941K/4896K, paused 52ms
02-02 17:48:58.414: D/dalvikvm(337): GC_EXTERNAL_ALLOC freed 160K, 60% free 2750K/6727K, external 6400K/6445K, paused 55ms
02-02 17:49:02.324: D/dalvikvm(337): GC_EXTERNAL_ALLOC freed 375K, 59% free 2821K/6727K, external 9503K/9541K, paused 43ms
02-02 17:49:03.755: D/dalvikvm(337): GC_EXTERNAL_ALLOC freed 320K, 59% free 2777K/6727K, external 4944K/5945K, paused 69ms
02-02 17:49:08.184: D/dalvikvm(337): GC_EXTERNAL_ALLOC freed 212K, 59% free 2767K/6727K, external 7593K/7630K, paused 46ms
02-02 17:49:10.914: D/dalvikvm(337): GC_EXTERNAL_ALLOC freed 451K, 59% free 2805K/6727K, external 5893K/6353K, paused 50ms
02-02 17:49:15.294: D/dalvikvm(337): GC_EXTERNAL_ALLOC freed 163K, 58% free 2843K/6727K, external 9263K/9265K, paused 39ms
02-02 17:49:16.434: D/dalvikvm(337): GC_EXTERNAL_ALLOC freed 499K, 58% free 2835K/6727K, external 6842K/7538K, paused 76ms
02-02 17:49:18.824: D/dalvikvm(337): GC_EXTERNAL_ALLOC freed 109K, 58% free 2831K/6727K, external 9008K/9765K, paused 43ms
02-02 17:49:25.774: D/dalvikvm(337): GC_EXTERNAL_ALLOC freed 645K, 59% free 2816K/6727K, external 12225K/12235K, paused 53ms
02-02 17:49:35.494: D/dalvikvm(337): GC_EXTERNAL_ALLOC freed 60K, 58% free 2864K/6727K, external 10256K/12304K, paused 54ms
02-02 17:49:59.824: D/dalvikvm(337): GC_EXTERNAL_ALLOC freed 1593K, 60% free 2905K/7111K, external 13747K/14632K, paused 58ms
02-02 17:50:02.764: D/dalvikvm(337): GC_EXTERNAL_ALLOC freed 114K, 59% free 2927K/7111K, external 11181K/12092K, paused 73ms
02-02 17:50:04.605: D/dalvikvm(337): GC_EXTERNAL_ALLOC freed 151K, 59% free 2935K/7111K, external 13655K/14466K, paused 47ms
02-02 17:50:09.174: D/dalvikvm(337): GC_EXTERNAL_ALLOC freed 513K, 59% free 2970K/7111K, external 15783K/15803K, paused 49ms
02-02 17:50:14.434: D/dalvikvm(337): GC_EXTERNAL_ALLOC freed 247K, 59% free 2926K/7111K, external 11360K/11714K, paused 52ms
02-02 17:50:20.464: D/dalvikvm(337): GC_EXTERNAL_ALLOC freed 608K, 59% free 2960K/7111K, external 13909K/14934K, paused 50ms
02-02 17:50:24.415: D/dalvikvm(337): GC_EXTERNAL_ALLOC freed 143K, 59% free 2980K/7111K, external 14651K/15393K, paused 43ms
02-02 17:50:24.655: D/dalvikvm(337): GC_EXTERNAL_ALLOC freed 0K, 59% free 2980K/7111K, external 14651K/15393K, paused 49ms
02-02 17:50:24.725: I/dalvikvm-heap(337): Clamp target GC heap from 24.113MB to 24.000MB
02-02 17:50:24.725: D/dalvikvm(337): GC_FOR_MALLOC freed <1K, 59% free 2980K/7111K, external 17058K/19106K, paused 59ms
02-02 17:50:24.805: D/dalvikvm(337): GC_EXTERNAL_ALLOC freed <1K, 59% free 2980K/7111K, external 17058K/19106K, paused 69ms
02-02 17:50:25.045: E/dalvikvm-heap(337): 2774400-byte external allocation too large for this process.
02-02 17:50:25.115: I/dalvikvm-heap(337): Clamp target GC heap from 24.112MB to 24.000MB
02-02 17:50:25.115: D/dalvikvm(337): GC_FOR_MALLOC freed 0K, 59% free 2980K/7111K, external 17058K/19106K, paused 56ms
02-02 17:50:25.304: E/GraphicsJNI(337): VM won't let us allocate 2774400 bytes
The links given by #JoxTraex are great. But to this issue, I finally found the root cause. It is the LoaderManager which holds a reference to the Loader object and the object returned by the Loader.loadInBackground method. After calling the LoaderManager.destroyLoader(id), the problem is gone forever.
This is quite a topic that is kind of hard to tackle, specifically if you keep a reference to your Bitmaps, then you start overloading memory. This is because images are VERY heavy in terms of memory/VM. You should have a look at what Romain Guy says about graphics and Bitmaps and how to handle it.
Here:
http://www.youtube.com/watch?v=duefsFTJXzc
http://www.youtube.com/watch?v=wJYTBjMZJh0
They are lengthy videos, but have lots of good information and some of this includes how to handle this with best practices.

Categories

Resources