App Crash When Running On Android

I am experiencing a strange app crash when running on android.

It seems to have something to do with the native textfields and the keyboard on an htc evo.

What seems to cause the crash is a specific screen in my app. There are 3 text fields on top of 3 buttons. There is also a dropdown that is stored off screen and is attached to a different button. When you touch the dropdown button, the textfields are removed and the popup slides down. When you touch off of the popup, it slides back off screen and then textfields are recreated and their previous text values are restored. If you enter text into the text fields and then attempt to touch the popup button, the app crashes and prints a bunch of debug info. It does not force close, it just closes.

Hopefully you guys can help me to quickly resolve this issue as it is keeping me from releasing my app.

Here is the debug info that is printed after the crash.

06-05 14:51:42.198: INFO/DEBUG(61): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
06-05 14:51:42.198: INFO/DEBUG(61): Build fingerprint: 'sprint/htc_supersonic/supersonic/supersonic:2.2/FRF91/294884:user/release-keys'
06-05 14:51:42.198: INFO/DEBUG(61): pid: 10141, tid: 10150 >>> com.afroapps.collegetracker <<<
06-05 14:51:42.208: INFO/DEBUG(61): signal 11 (SIGSEGV), fault addr 0000003a
06-05 14:51:42.208: INFO/DEBUG(61): r0 0000003a r1 487f3b54 r2 00000001 r3 8092c970
06-05 14:51:42.208: INFO/DEBUG(61): r4 487f3b54 r5 487f3b54 r6 0000003a r7 0000003a
06-05 14:51:42.208: INFO/DEBUG(61): r8 487f3b7c r9 8090f55c 10 43201eb8 fp 487f3ed8
06-05 14:51:42.208: INFO/DEBUG(61): ip 00000001 sp 487f3b38 lr 808f0248 pc 808d0130 cpsr 20000010
06-05 14:51:42.208: INFO/DEBUG(61): d0 6472656767756265 d1 0000000000000000
06-05 14:51:42.208: INFO/DEBUG(61): d2 0000000000000005 d3 ffffffff00000001
06-05 14:51:42.208: INFO/DEBUG(61): d4 0000000000001c07 d5 0000043f00890000
06-05 14:51:42.208: INFO/DEBUG(61): d6 0000000000000000 d7 0000000000000008
06-05 14:51:42.208: INFO/DEBUG(61): d8 0000000000000000 d9 0000000000000000
06-05 14:51:42.208: INFO/DEBUG(61): d10 0000000000000000 d11 0000000000000000
06-05 14:51:42.208: INFO/DEBUG(61): d12 0000000000000000 d13 0000000000000000
06-05 14:51:42.208: INFO/DEBUG(61): d14 0000000000000000 d15 0000000000000000
06-05 14:51:42.208: INFO/DEBUG(61): d16 0000300046063810 d17 3fe0000000000000
06-05 14:51:42.208: INFO/DEBUG(61): d18 3fff8def8808b024 d19 465aa3f469f40e1c
06-05 14:51:42.208: INFO/DEBUG(61): d20 3fe3333340000000 d21 3fd3333340000000
06-05 14:51:42.208: INFO/DEBUG(61): d22 3fd51eb860000000 d23 40e01d100abe0000
06-05 14:51:42.208: INFO/DEBUG(61): d24 40dd4c2013880000 d25 40ed4c1013880000
06-05 14:51:42.218: INFO/DEBUG(61): d26 40cd4c4013880000 d27 b9938b6d15331805
06-05 14:51:42.218: INFO/DEBUG(61): d28 c000000000000002 d29 bcc98d4c957ef5fc
06-05 14:51:42.218: INFO/DEBUG(61): d30 b94b794ffffffffb d31 bb81414b5fc00000
06-05 14:51:42.218: INFO/DEBUG(61): scr 20000013
06-05 14:51:42.268: INFO/DEBUG(61): #00 pc 000d0130 /data/data/com.afroapps.collegetracker/lib/libcorona.so
06-05 14:51:42.268: INFO/DEBUG(61): #01 pc 000f0244 /data/data/com.afroapps.collegetracker/lib/libcorona.so
06-05 14:51:42.268: INFO/DEBUG(61): #02 pc 000db650 /data/data/com.afroapps.collegetracker/lib/libcorona.so
06-05 14:51:42.268: INFO/DEBUG(61): #03 pc 00017034 /system/lib/libdvm.so
06-05 14:51:42.268: INFO/DEBUG(61): code around pc:
06-05 14:51:42.268: INFO/DEBUG(61): 808d0110 e5802000 e8bd8010 e3a02000 e5802000
06-05 14:51:42.268: INFO/DEBUG(61): 808d0120 e12fff1e e3a02000 e5802000 e12fff1e
06-05 14:51:42.268: INFO/DEBUG(61): 808d0130 e5903000 e5d30000 e2700001 33a00000
06-05 14:51:42.268: INFO/DEBUG(61): 808d0140 e12fff1e e5903000 e5932000 e38220ff
06-05 14:51:42.268: INFO/DEBUG(61): 808d0150 e5832000 e12fff1e e3510000 e5801000
06-05 14:51:42.268: INFO/DEBUG(61): code around lr:
06-05 14:51:42.278: INFO/DEBUG(61): 808f0228 e1a00005 e3e01001 ebfd5726 eaffffef
06-05 14:51:42.278: INFO/DEBUG(61): 808f0238 e92d4070 e1a04001 e1a06000 ebff7fb9
06-05 14:51:42.278: INFO/DEBUG(61): 808f0248 e3500000 0a000013 e5965004 e3550000
06-05 14:51:42.278: INFO/DEBUG(61): 808f0258 0a000010 e5943000 e1a00004 e1a0e00f
06-05 14:51:42.278: INFO/DEBUG(61): 808f0268 e593f000 e1a01005 e1a02000 e1a00006
06-05 14:51:42.278: INFO/DEBUG(61): stack:
06-05 14:51:42.278: INFO/DEBUG(61): 487f3af8 0013a8d8 [heap]
06-05 14:51:42.278: INFO/DEBUG(61): 487f3afc 802716a7 /system/lib/libdvm.so
06-05 14:51:42.278: INFO/DEBUG(61): 487f3b00 afd43928 /system/lib/libc.so
06-05 14:51:42.278: INFO/DEBUG(61): 487f3b04 afd0fb9c /system/lib/libc.so
06-05 14:51:42.278: INFO/DEBUG(61): 487f3b08 00000000
06-05 14:51:42.278: INFO/DEBUG(61): 487f3b0c 4319946e /data/dalvik-cache/data@app@com.afroapps.collegetracker-1.apk@classes.dex
06-05 14:51:42.278: INFO/DEBUG(61): 487f3b10 00000004
06-05 14:51:42.278: INFO/DEBUG(61): 487f3b14 0000001f
06-05 14:51:42.278: INFO/DEBUG(61): 487f3b18 80b1232c /system/lib/egl/libEGL_adreno200.so
06-05 14:51:42.278: INFO/DEBUG(61): 487f3b1c 00000000
06-05 14:51:42.278: INFO/DEBUG(61): 487f3b20 00000000
06-05 14:51:42.278: INFO/DEBUG(61): 487f3b24 00000000
06-05 14:51:42.278: INFO/DEBUG(61): 487f3b28 00000000
06-05 14:51:42.278: INFO/DEBUG(61): 487f3b2c 8024dddb /system/lib/libdvm.so
06-05 14:51:42.278: INFO/DEBUG(61): 487f3b30 df002777
06-05 14:51:42.278: INFO/DEBUG(61): 487f3b34 e3a070ad
06-05 14:51:42.278: INFO/DEBUG(61): #01 487f3b38 8092de38 /data/data/com.afroapps.collegetracker/lib/libcorona.so
06-05 14:51:42.278: INFO/DEBUG(61): 487f3b3c 487f3b54
06-05 14:51:42.278: INFO/DEBUG(61): 487f3b40 000004d0
06-05 14:51:42.278: INFO/DEBUG(61): 487f3b44 808db654 /data/data/com.afroapps.collegetracker/lib/libcorona.so
06-05 14:51:42.937: INFO/BootReceiver(97): Copying /data/tombstones/tombstone_09 to DropBox (SYSTEM_TOMBSTONE)
06-05 14:51:42.947: DEBUG/Zygote(63): Process 10141 terminated by signal (11)
06-05 14:51:43.037: DEBUG/dalvikvm(97): GC_FOR_MALLOC freed 4271 objects / 785640 bytes in 100ms
06-05 14:51:43.037: INFO/WindowManager(97): WIN DEATH: Window{465394c8 SurfaceView paused=false}
06-05 14:51:43.047: INFO/ActivityManager(97): Process com.afroapps.collegetracker (pid 10141) has died.
06-05 14:51:43.047: INFO/WindowManager(97): WIN DEATH: Window{46497d00 com.afroapps.collegetracker/com.afroapps.collegetracker.MyCoronaActivity paused=false}
06-05 14:51:43.057: ERROR/ActivityManager(97): fail to set top app changed!
06-05 14:51:43.187: DEBUG/dalvikvm(97): GC_FOR_MALLOC freed 954 objects / 786648 bytes in 107ms
06-05 14:51:43.197: INFO/UsageStats(97): Unexpected resume of com.htc.launcher while already resumed in com.afroapps.collegetracker

I also recently have been getting "fail to set top app changed". Its very random. Sometimes I can play for a half hour and sometime only a few minutes and sometimes it doesnt happen at all. logcat says
"fail to set top app changed". This just started happening my app on sunday night. I don't really have to much text in my game though just a few numbers and a win and lose screen. Its probably something I did to my code over the weekend.

I'm experiencing almost the exact same thing, minus the "fail to set top app changed!" portion -- in fact, my log cat doesn't show any E/Error issues at all, only debug stuff.

My app also crashes with the native textfield and keyboard present, while executing very similar animation to what you're describing in your post, although mine is more intermittent while executing the same actions. It only happens about 75% of the time, while animating properly the remainder of the time.

Did either of you ever find a work around? Not having textfields isn't an option for me.

Thanks!

Hey guys,

I did end up fixing the issue. What I had to do was hide the text fields instead of deleting them. I only deleted them once I was completely finished with the screen that I was using. Also, I had to dismiss the keyboard before hiding the textfield. I used a timer to hide the textfields, waiting 150 milliseconds or so. As long as you hide the textfields instead of deleting them, and make sure that the keyboard is dismissed ( native.setKeyboardFocus(nil) ) before hiding the textfields you should be ok.

Hello deusduke,

Would you mind writing up a bug report with the information that you have posted here along with some sample code please? That will help expedite this matter.
Please see the "Report a Bug" link at the top of this page.

I will see if I can reproduce the error and submit a bug report with the relevant info and sample code.

Bug submitted case #7352

views:2347 update:2011/10/8 8:54:25
corona forums © 2003-2011