Even with the additional information you sent me via e-mail, there's
not much more I can tell you.

For one, I recommend looking into the warnings I pointed out above -
what's with the double-resume? Are you doing something in onResume
that affects the status of your activity?

And again, I'm just wondering about all the memory allocations. Do you
have several threads running? Without any idea what the code does, I
can only stab in the dark.

-Mike



On May 7, 12:29 am, EboMike <[email protected]> wrote:
> Judging by the many times the GC kicks in, it sounds like something is
> constantly allocating memory.
>
> Did you run your app in the DDMS with the heap debug running?
>
> And again-
>
> 1. What exactly is happening?
>
> 2. Do you see the same problem with and without debugger attached?
>
> 3. What is your app? What's the name, what's the package name?
>
> 4. I see a few warnings/errors in the log, are they related to your
> app?
>
> 05-07 12:50:27.751: WARN/Checkin(57): Can't log event
> SYSTEM_SERVICE_LOOPING: java.lang.IllegalArgumentException: Unknown
> URL
> content://android.server.checkin/events
> 05-07 12:51:04.873: WARN/UsageStats(57): Unexpected resume of
> com.android.launcher while already resumed in org.myapp.first
>
> -Mike
>
> On May 7, 12:24 am, "Sasikumar.S" <[email protected]> wrote:
>
>
>
> > Please see my log cat msg :
>
> > 05-07 12:50:05.411: DEBUG/dalvikvm(979): GC freed 544 objects / 26080 bytes
> > in 251ms
> > 05-07 12:50:11.361: DEBUG/dalvikvm(999): GC freed 5234 objects / 431272
> > bytes in 208ms
> > 05-07 12:50:15.611: INFO/WindowManager(57): WIN DEATH: Window{43b51108
> > com.android.launcher/com.android.launcher.Launcher paused=false}
> > 05-07 12:50:15.681: INFO/ActivityManager(57): Process android.process.acore
> > (pid 979) has died.
> > 05-07 12:50:15.761: INFO/ActivityManager(57): Low Memory: No more background
> > processes.
> > 05-07 12:50:20.002: DEBUG/dalvikvm(999): GC freed 4502 objects / 407936
> > bytes in 390ms
> > 05-07 12:50:21.081: DEBUG/skia(983): purging 6K from font cache [1 entries]
> > 05-07 12:50:21.753: DEBUG/dalvikvm(983): GC freed 1008 objects / 77688 bytes
> > in 479ms
> > 05-07 12:50:21.792: DEBUG/DEBUG(999): 1
> > 05-07 12:50:22.691: WARN/IInputConnectionWrapper(999): finishComposingText
> > on inactive InputConnection
> > 05-07 12:50:24.352: DEBUG/dalvikvm(999): GC freed 1416 objects / 111352
> > bytes in 169ms
> > 05-07 12:50:26.161: DEBUG/skia(57): purging 8K from font cache [1 entries]
> > 05-07 12:50:26.613: DEBUG/dalvikvm(57): GC freed 2689 objects / 120408 bytes
> > in 403ms
> > 05-07 12:50:26.681: INFO/ActivityManager(57): Process
> > com.android.inputmethod.latin (pid 983) has died.
> > 05-07 12:50:26.792: WARN/ActivityManager(57): Scheduling restart of crashed
> > service com.android.inputmethod.latin/.LatinIME in 5000ms
> > 05-07 12:50:27.671: INFO/ActivityManager(57): Low Memory: No more background
> > processes.
> > 05-07 12:50:27.692: ERROR/ActivityThread(57): Failed to find provider info
> > for android.server.checkin
> > 05-07 12:50:27.751: WARN/Checkin(57): Can't log event
> > SYSTEM_SERVICE_LOOPING: java.lang.IllegalArgumentException: Unknown URL
> > content://android.server.checkin/events
> > 05-07 12:50:31.212: DEBUG/dalvikvm(999): GC freed 2145 objects / 107808
> > bytes in 251ms
> > 05-07 12:50:33.171: INFO/ActivityManager(57): Start proc
> > com.android.inputmethod.latin for service
> > com.android.inputmethod.latin/.LatinIME: pid=1018 uid=10001 gids={3003,
> > 1015}
> > 05-07 12:50:34.081: DEBUG/dalvikvm(102): GC freed 226 objects / 10072 bytes
> > in 563ms
> > 05-07 12:50:35.371: DEBUG/ddm-heap(1018): Got feature list request
> > 05-07 12:50:49.262: DEBUG/dalvikvm(1018): Trying to load lib
> > /system/lib/libjni_latinime.so 0x43ab5ad0
> > 05-07 12:50:49.452: DEBUG/dalvikvm(1018): Added shared lib
> > /system/lib/libjni_latinime.so 0x43ab5ad0
> > 05-07 12:50:50.971: DEBUG/dalvikvm(999): GC freed 8818 objects / 576712
> > bytes in 809ms
> > 05-07 12:50:51.062: INFO/ActivityManager(57): Start proc
> > android.process.acore for content provider
> > com.android.providers.userdictionary/.UserDictionaryProvider: pid=1031
> > uid=10001 gids={3003, 1015}
> > 05-07 12:50:52.741: DEBUG/ddm-heap(1031): Got feature list request
> > 05-07 12:50:59.192: WARN/ActivityManager(57): Timeout executing service:
> > ServiceRecord{43d25a00 com.android.inputmethod.latin/.LatinIME}
> > 05-07 12:51:00.201: INFO/ActivityManager(57): ANR in process:
> > com.android.inputmethod.latin
> > 05-07 12:51:00.201: INFO/ActivityManager(57): Annotation: Executing service
> > ComponentInfo{com.android.inputmethod.latin/com.android.inputmethod.latin.L 
> > atinIME}
> > 05-07 12:51:00.201: INFO/ActivityManager(57): CPU usage:
> > 05-07 12:51:00.201: INFO/ActivityManager(57): Load: 2.72 / 1.2 / 0.6
> > 05-07 12:51:00.201: INFO/ActivityManager(57): CPU usage from 9911ms to 786ms
> > ago:
> > 05-07 12:51:00.201: INFO/ActivityManager(57):
> > com.android.inputmethod.latin: 47% = 12% user + 34% kernel / faults: 6093
> > minor 438 major
> > 05-07 12:51:00.201: INFO/ActivityManager(57):   system_server: 32% = 7% user
> > + 25% kernel / faults: 4038 minor 311 major
> > 05-07 12:51:00.201: INFO/ActivityManager(57):   org.myapp.first: 28% = 7%
> > user + 20% kernel / faults: 2957 minor 249 major
> > 05-07 12:51:00.201: INFO/ActivityManager(57):   com.android.phone: 4% = 0%
> > user + 3% kernel / faults: 978 minor 39 major
> > 05-07 12:51:00.201: INFO/ActivityManager(57):   adbd: 1% = 0% user + 1%
> > kernel
> > 05-07 12:51:00.201: INFO/ActivityManager(57):   zygote: 1% = 0% user + 0%
> > kernel / faults: 140 minor 9 major
> > 05-07 12:51:00.201: INFO/ActivityManager(57):   kswapd0: 0% = 0% user + 0%
> > kernel
> > 05-07 12:51:00.201: INFO/ActivityManager(57):   logcat: 0% = 0% user + 0%
> > kernel / faults: 72 minor 5 major
> > 05-07 12:51:00.201: INFO/ActivityManager(57):   rild: 0% = 0% user + 0%
> > kernel / faults: 37 minor 3 major
> > 05-07 12:51:00.201: INFO/ActivityManager(57):   events/0: 0% = 0% user + 0%
> > kernel
> > 05-07 12:51:00.201: INFO/ActivityManager(57):   pdflush: 0% = 0% user + 0%
> > kernel
> > 05-07 12:51:00.201: INFO/ActivityManager(57):  +<pre-initialized>: 0% = 0%
> > user + 0% kernel
> > 05-07 12:51:00.201: INFO/ActivityManager(57): TOTAL: 100% = 19% user + 75%
> > kernel + 4% iowait + 0% softirq
> > 05-07 12:51:00.341: INFO/ActivityManager(57): Removing old ANR trace file
> > from /data/anr/traces.txt
> > 05-07 12:51:00.752: INFO/Process(57): Sending signal. PID: 1018 SIG: 3
> > 05-07 12:51:00.772: INFO/dalvikvm(1018): threadid=7: reacting to signal 3
> > 05-07 12:51:01.021: INFO/Process(57): Sending signal. PID: 57 SIG: 3
> > 05-07 12:51:01.042: INFO/dalvikvm(57): threadid=7: reacting to signal 3
> > 05-07 12:51:02.153: INFO/dalvikvm(1018): Wrote stack trace to
> > '/data/anr/traces.txt'
> > 05-07 12:51:03.471: INFO/ActivityThread(1031): Publishing provider
> > com.android.globalsearch.stats: com.android.globalsearch.StatsProvider
> > 05-07 12:51:03.912: INFO/dalvikvm(57): Wrote stack trace to
> > '/data/anr/traces.txt'
> > 05-07 12:51:04.002: INFO/WindowManager(57): WIN DEATH: Window{43c152e0
> > org.myapp.first/org.myapp.first.MainScreen paused=false}
> > 05-07 12:51:04.012: INFO/ActivityManager(57): Process org.myapp.first (pid
> > 999) has died.
> > 05-07 12:51:04.873: WARN/UsageStats(57): Unexpected resume of
> > com.android.launcher while already resumed in org.myapp.first
> > 05-07 12:51:04.882: INFO/ActivityManager(57): Low Memory: No more background
> > processes.
> > 05-07 12:51:04.903: INFO/Process(57): Sending signal. PID: 1031 SIG: 3
> > 05-07 12:51:04.923: INFO/dalvikvm(1031): threadid=7: reacting to signal 3
> > 05-07 12:51:05.022: INFO/dalvikvm(1031): Wrote stack trace to
> > '/data/anr/traces.txt'
> > 05-07 12:51:05.122: INFO/Process(57): Sending signal. PID: 102 SIG: 3
> > 05-07 12:51:05.158: INFO/dalvikvm(102): threadid=7: reacting to signal 3
> > 05-07 12:51:05.363: INFO/dalvikvm(102): Wrote stack trace to
> > '/data/anr/traces.txt'
> > 05-07 12:51:05.701: INFO/ActivityThread(1031): Publishing provider
> > com.android.launcher.settings: com.android.launcher.LauncherProvider
> > 05-07 12:51:06.242: INFO/ActivityThread(1031): Publishing provider
> > com.android.social: com.android.providers.contacts.SocialProvider
> > 05-07 12:51:08.551: INFO/ActivityThread(1031): Publishing provider
> > applications: com.android.providers.applications.ApplicationsProvider
> > 05-07 12:51:08.812: INFO/ActivityThread(1031): Publishing provider
> > contacts;com.android.contacts:
> > com.android.providers.contacts.ContactsProvider2
> > 05-07 12:51:09.572: WARN/ContactAggregator(1031): No more aggregation
> > requests
> > 05-07 12:51:10.162: INFO/ActivityThread(1031): Publishing provider
> > com.android.globalsearch.SuggestionProvider:
> > com.android.globalsearch.SuggestionProvider
> > 05-07 12:51:11.372: DEBUG/dalvikvm(1031): GC freed 3228 objects / 232520
> > bytes in 192ms
> > 05-07 12:51:11.792: INFO/ActivityThread(1031): Publishing provider call_log:
> > com.android.providers.contacts.CallLogProvider
> > 05-07 12:51:11.821: INFO/ActivityThread(1031): Publishing provider
> > user_dictionary: com.android.providers.userdictionary.UserDictionaryProvider
> > 05-07 12:51:12.672: WARN/InputManagerService(57): Client died receiving
> > input method
> > inputbindresult{com.android.internal.view.iinputmethodsession$stub$pr...@43b11d60com.android.inputmethod.latin/.LatinIME
> > #132}
> > 05-07 12:51:14.862: INFO/ActivityManager(57): Displayed activity
> > com.android.launcher/.Launcher: 10505 ms (total 10505 ms)
> > 05-07 12:51:14.872: WARN/ActivityManager(57): Activity idle timeout for
> > HistoryRecord{43bec310 com.android.launcher/.Launcher}
> > 05-07 12:51:14.962: DEBUG/HomeLoaders(1031):   ----> items cloned, ready to
> > refresh UI
>
> > On Fri, May 7, 2010 at 12:39 PM, EboMike <[email protected]> wrote:
> > > Let me rephrase my questions.
>
> > > 1. What EXACTLY happens?
>
> > > 2. How does it correlate to the message you're seeing?
>
> > > 3. Leaks can be anywhere, not just in the database. Having static
> > > members is an excellent way to create leaks, but there are lots of
> > > other potential problems.
>
> > > -Mike
>
> > > On May 7, 12:06 am, "Sasikumar.S" <[email protected]> wrote:
> > > > I'm not dealing with any bitmaps...
> > > > No memory leak in my DB.
> > > > Just retrieve data from DB and display in custom listview.
>
> > > > On Fri, May 7, 2010 at 12:10 PM, EboMike <[email protected]> wrote:
> > > > > 1. That's a somewhat common message, but can you actually correlate
>
> ...
>
> read more »

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to