Help with force close occurrences in my app
- by Ken
This is the last issue with this app. Periodic force close situations. I think something
should be on another thread but I'm not sure what. Anyway, I can always count on a freeze
on first install. If I wait, eventually (maybe 10 seconds) the app comes around, maybe more.
here is an excerpt from logcat--the three lines occur after full layout is displayed and I attempt to touch a [game] 'peg' which should spawn a sprite, but the freeze occurs there.
Can anybody tell what the issue might be?:
I/System.out( 279): TouchDown (17.0,106.0)
I/System.out( 279): checking (17,106
I/System.out( 279): hit for bounds Rect(3, 98 - 32, 130)
[FREEZE BEGINS]
W/webcore ( 279): Can't get the viewWidth after the first layout
W/WindowManager( 60): Key dispatching timed out sending to com.live.brainbuilderfree/com.live.brainbuilderfree.BrainBuilderFree
W/WindowManager( 60): Previous dispatch state: null
W/WindowManager( 60): Current dispatch state: {{null to Window{43fd87a0 com.live.brainbuilderfree/com.live.brainbuilderfree.BrainBuilderFree paused=false} @ 1295232880017 lw=Window{43fd87a0 com.live.brainbuilderfree/com.live.brainbuilderfree.BrainBuilderFree paused=false} lb=android.os.BinderProxy@440523b8 fin=false gfw=true ed=true tts=0 wf=false fp=false mcf=Window{43fd87a0 com.live.brainbuilderfree/com.live.brainbuilderfree.BrainBuilderFree paused=false}}}
I/Process ( 60): Sending signal. PID: 279 SIG: 3
I/dalvikvm( 279): threadid=3: reacting to signal 3
D/dalvikvm( 124): GC_EXPLICIT freed 1754 objects / 106104 bytes in 7365ms
I/Process ( 60): Sending signal. PID: 60 SIG: 3
I/dalvikvm( 60): threadid=3: reacting to signal 3
I/dalvikvm( 60): Wrote stack traces to '/data/anr/traces.txt'
I/Process ( 60): Sending signal. PID: 263 SIG: 3
I/dalvikvm( 263): threadid=3: reacting to signal 3
I/dalvikvm( 279): Wrote stack traces to '/data/anr/traces.txt'
I/Process ( 60): Sending signal. PID: 117 SIG: 3
I/dalvikvm( 117): threadid=3: reacting to signal 3
I/dalvikvm( 117): Wrote stack traces to '/data/anr/traces.txt'
I/Process ( 60): Sending signal. PID: 254 SIG: 3
I/Process ( 60): Sending signal. PID: 121 SIG: 3
I/dalvikvm( 121): threadid=3: reacting to signal 3
D/AudioSink( 34): bufferCount (4) is too small and increased to 12
I/System.out( 279): making white sprite
I/Process ( 60): Sending signal. PID: 186 SIG: 3
I/Process ( 60): Sending signal. PID: 232 SIG: 3
D/MillennialMediaAdSDK( 279): size: 1
D/MillennialMediaAdSDK( 279): num: 1
D/AdWhirl SDK( 279): Millennial success
D/AdWhirl SDK( 279): Will call rotateAd() in 120 seconds
I/dalvikvm( 232): threadid=3: reacting to signal 3
I/dalvikvm( 121): Wrote stack traces to '/data/anr/traces.txt'
I/Process ( 60): Sending signal. PID: 222 SIG: 3
I/MillennialMediaAdSDK( 279): Millennial ad return success
D/MillennialMediaAdSDK( 279): View height: 0
D/MillennialMediaAdSDK( 279): nextUrl: [deleted]
I/Process ( 60): Sending signal. PID: 239 SIG: 3
I/Process ( 60): Sending signal. PID: 213 SIG: 3
D/AdWhirl SDK( 279): Added subview
D/AdWhirl SDK( 279): Pinging URL: [deleted]
I/Process ( 60): Sending signal. PID: 197 SIG: 3
I/dalvikvm( 197): threadid=3: reacting to signal 3
I/Process ( 60): Sending signal. PID: 164 SIG: 3
I/dalvikvm( 164): threadid=3: reacting to signal 3
D/dalvikvm( 279): GC_FOR_MALLOC freed 7735 objects / 639688 bytes in 217ms
I/Process ( 60): Sending signal. PID: 124 SIG: 3
I/dalvikvm( 124): threadid=3: reacting to signal 3
I/Process ( 60): Sending signal. PID: 158 SIG: 3
I/dalvikvm( 158): threadid=3: reacting to signal 3
I/Process ( 60): Sending signal. PID: 127 SIG: 3
E/ActivityManager( 60): ANR in com.live.brainbuilderfree (com.live.brainbuilderfree/.BrainBuilderFree)
E/ActivityManager( 60): Reason: keyDispatchingTimedOut
E/ActivityManager( 60): Load: 3.46 / 1.69 / 0.65
E/ActivityManager( 60): CPU usage from 28095ms to 140ms ago:
E/ActivityManager( 60): system_server: 30% = 25% user + 4% kernel / faults: 3119 minor 66 major
E/ActivityManager( 60): mediaserver: 11% = 7% user + 4% kernel / faults: 746 minor 17 major
E/ActivityManager( 60): com.svox.pico: 1% = 0% user + 1% kernel / faults: 2833 minor 8 major
E/ActivityManager( 60): d.process.acore: 1% = 0% user + 0% kernel / faults: 1146 minor 36 major
E/ActivityManager( 60): ndroid.launcher: 1% = 0% user + 0% kernel / faults: 852 minor 6 major
E/ActivityManager( 60): m.android.phone: 0% = 0% user + 0% kernel / faults: 621 minor 7 major
E/ActivityManager( 60): kswapd0: 0% = 0% user + 0% kernel
E/ActivityManager( 60): ronsoft.openwnn: 0% = 0% user + 0% kernel / faults: 337 minor 2 major
E/ActivityManager( 60): adbd: 0% = 0% user + 0% kernel / faults: 3 minor
E/ActivityManager( 60): zygote: 0% = 0% user + 0% kernel / faults: 169 minor
E/ActivityManager( 60): events/0: 0% = 0% user + 0% kernel
E/ActivityManager( 60): rild: 0% = 0% user + 0% kernel / faults: 103 minor 3 major
E/ActivityManager( 60): pdflush: 0% = 0% user + 0% kernel
E/ActivityManager( 60): .quicksearchbox: 0% = 0% user + 0% kernel / faults: 61 minor
E/ActivityManager( 60): id.defcontainer: 0% = 0% user + 0% kernel / faults: 12 minor
E/ActivityManager( 60): +rainbuilderfree: 0% = 0% user + 0% kernel
E/ActivityManager( 60): +sh: 0% = 0% user + 0% kernel
E/ActivityManager( 60): +app_process: 0% = 0% user + 0% kernel
E/ActivityManager( 60): TOTAL: 100% = 76% user + 21% kernel + 2% iowait + 0% irq + 0% softirq
I/dalvikvm( 127): threadid=3: reacting to signal 3
I/dalvikvm( 186): threadid=3: reacting to signal 3
D/dalvikvm( 60): GC_FOR_MALLOC freed 3747 objects / 228920 bytes in 609ms
I/dalvikvm-heap( 60): Grow heap (frag case) to 4.759MB for 36896-byte allocation
I/dalvikvm( 239): threadid=3: reacting to signal 3
D/dalvikvm( 60): GC_FOR_MALLOC freed 226 objects / 9952 bytes in 546ms
I/dalvikvm( 213): threadid=3: reacting to signal 3
D/dalvikvm( 60): GC_FOR_MALLOC freed 105 objects / 5816 bytes in 492ms
I/dalvikvm-heap( 60): Grow heap (frag case) to 4.815MB for 49188-byte allocation
I/dalvikvm( 222): threadid=3: reacting to signal 3
D/dalvikvm( 60): GC_FOR_MALLOC freed 77 objects / 5232 bytes in 546ms
I/dalvikvm( 254): threadid=3: reacting to signal 3
D/dalvikvm( 60): GC_FOR_MALLOC freed 105 objects / 55856 bytes in 521ms
I/dalvikvm-heap( 60): Grow heap (frag case) to 4.876MB for 98360-byte allocation
D/dalvikvm( 60): GC_FOR_MALLOC freed 58 objects / 3632 bytes in 340ms
D/dalvikvm( 60): GC_FOR_MALLOC freed 1093 objects / 185256 bytes in 572ms
W/WindowManager( 60): Continuing to wait for key to be dispatched
I/System.out( 279): TouchMove (117.0,124.0)
I/System.out( 279): TouchUP (117.0,124.0)
D/dalvikvm( 60): GC_FOR_MALLOC freed 141 objects / 108328 bytes in 564ms
I/ARMAssembler( 60): generated scanline__00000077:03515104_00000000_00000000 [ 33 ipp] (47 ins) at [0x313d78:0x313e34] in 11621593 ns
W/InputManagerService( 60): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@43f66a10
I/dalvikvm( 239): Wrote stack traces to '/data/anr/traces.txt'
I/dalvikvm( 263): Wrote stack traces to '/data/anr/traces.txt'
etc...