Async http crash

When performing async http on android with the latest daily build (604), my app crashes sometimes (1 out of 3 times - easily reproducible).

I’m getting the following mess printed in adb logcat:
I/DEBUG ( 2943): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG ( 2943): Build fingerprint: ‘google/soju/crespo:2.3.4/GRJ22/121341:user/release-keys’
I/DEBUG ( 2943): pid: 3514, tid: 3524 >>> com.progrestar.shovelhero <<<
I/DEBUG ( 2943): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000070
I/DEBUG ( 2943): r0 00000070 r1 00000010 r2 00000010 r3 ffffd8f0
I/DEBUG ( 2943): r4 004fe1c0 r5 00000010 r6 80935ba4 r7 006e1170
I/DEBUG ( 2943): r8 44e0fb64 r9 809133f8 10 44d0feb0 fp 800a5368
I/DEBUG ( 2943): ip 808bace8 sp 44e0faf8 lr 8084ea6c pc 8084ea70 cpsr 60000010
I/DEBUG ( 2943): d0 0000000a00000000 d1 afd142b100000000
I/DEBUG ( 2943): d2 0000004044e0fa00 d3 006b5cf000000000
I/DEBUG ( 2943): d4 0000000100000000 d5 00000000000051cc
I/DEBUG ( 2943): d6 0000000000000000 d7 0000000000000000
I/DEBUG ( 2943): d8 0000000000000000 d9 0000000000000000
I/DEBUG ( 2943): d10 0000000000000000 d11 0000000000000000
I/DEBUG ( 2943): d12 0000000000000000 d13 0000000000000000
I/DEBUG ( 2943): d14 0000000000000000 d15 0000000000000000
I/DEBUG ( 2943): d16 0000000000000000 d17 3f95e3a6b16c8800
I/DEBUG ( 2943): d18 3fe0000000000000 d19 3fe0af1d358b6440
I/DEBUG ( 2943): d20 be940bf6c21fa464 d21 3e21272eb0d93ad5
I/DEBUG ( 2943): d22 bebbb3c4da7c5c7d d23 3fcd930389b3f000
I/DEBUG ( 2943): d24 3e66376972bea4d0 d25 c034000000000000
I/DEBUG ( 2943): d26 3ff0000000000000 d27 bf9d909e6e44e32e
I/DEBUG ( 2943): d28 bffc7208aec70c36 d29 3fcd9303fea2f7cc
I/DEBUG ( 2943): d30 3c37acd6d7860f0c d31 3e6d3bc1f3000000
I/DEBUG ( 2943): scr 20000013
I/DEBUG ( 2943):
I/DEBUG ( 2943): #00 pc 0004ea70 /data/data/com.progrestar.shovelhero/lib/libcorona.so
I/DEBUG ( 2943): #01 pc 000fad4c /data/data/com.progrestar.shovelhero/lib/libcorona.so
I/DEBUG ( 2943): #02 pc 000fad64 /data/data/com.progrestar.shovelhero/lib/libcorona.so
I/DEBUG ( 2943): #03 pc 000fadf0 /data/data/com.progrestar.shovelhero/lib/libcorona.so
I/DEBUG ( 2943): #04 pc 000e5350 /data/data/com.progrestar.shovelhero/lib/libcorona.so
I/DEBUG ( 2943): #05 pc 00017e34 /system/lib/libdvm.so
I/DEBUG ( 2943):
I/DEBUG ( 2943): code around pc:
I/DEBUG ( 2943): 8084ea50 e5843008 e28dd00c e8bd8030 e92d4070
I/DEBUG ( 2943): 8084ea60 e1a05002 e1a04000 ebfffb85 e1a01005
I/DEBUG ( 2943): 8084ea70 e5900000 eb00510d e5943008 e283c010
I/DEBUG ( 2943): 8084ea80 e584c008 e5902008 e1c000d0 e5832008
I/DEBUG ( 2943): 8084ea90 e1c300f0 e8bd8070 e92d4010 e1a04000
I/DEBUG ( 2943):
I/DEBUG ( 2943): code around lr:
I/DEBUG ( 2943): 8084ea4c e2833010 e5843008 e28dd00c e8bd8030
I/DEBUG ( 2943): 8084ea5c e92d4070 e1a05002 e1a04000 ebfffb85
I/DEBUG ( 2943): 8084ea6c e1a01005 e5900000 eb00510d e5943008
I/DEBUG ( 2943): 8084ea7c e283c010 e584c008 e5902008 e1c000d0
I/DEBUG ( 2943): 8084ea8c e5832008 e1c300f0 e8bd8070 e92d4010
I/DEBUG ( 2943):
I/DEBUG ( 2943): stack:
I/DEBUG ( 2943): 44e0fab8 002c9c00
I/DEBUG ( 2943): 44e0fabc 80d0d268
I/DEBUG ( 2943): 44e0fac0 00000000
I/DEBUG ( 2943): 44e0fac4 ac712737 /system/lib/libsurfaceflinger_client.so
I/DEBUG ( 2943): 44e0fac8 002da778
I/DEBUG ( 2943): 44e0facc 811004e0 /system/vendor/lib/libpvrANDROID_WSEGL.so
I/DEBUG ( 2943): 44e0fad0 002c9c00
I/DEBUG ( 2943): 44e0fad4 0051815c
I/DEBUG ( 2943): 44e0fad8 00000001
I/DEBUG ( 2943): 44e0fadc 002c9e78
I/DEBUG ( 2943): 44e0fae0 002c9e78
I/DEBUG ( 2943): 44e0fae4 80d081f4 /system/vendor/lib/libIMGegl.so
I/DEBUG ( 2943): 44e0fae8 00000000
I/DEBUG ( 2943): 44e0faec 00000000
I/DEBUG ( 2943): 44e0faf0 df002777
I/DEBUG ( 2943): 44e0faf4 e3a070ad
I/DEBUG ( 2943): #00 44e0faf8 00000001
I/DEBUG ( 2943): 44e0fafc 004fe1c0
I/DEBUG ( 2943): 44e0fb00 80935ba4 /data/data/com.progrestar.shovelhero/lib/libcorona.so
I/DEBUG ( 2943): 44e0fb04 808fad50 /data/data/com.progrestar.shovelhero/lib/libcorona.so
I/DEBUG ( 2943): #01 44e0fb08 44e0fb3c
I/DEBUG ( 2943): 44e0fb0c 808fad68 /data/data/com.progrestar.shovelhero/lib/libcorona.so
I/BootReceiver( 109): Copying /data/tombstones/tombstone_00 to DropBox (SYSTEM_TOMBSTONE)
D/Zygote ( 74): Process 3514 terminated by signal (11)
E/InputDispatcher( 109): channel ‘406e9890 com.progrestar.shovelhero/com.ansca.corona.CoronaActivity (server)’ ~ Consumer closed input channel or an
error occurred. events=0x8
E/InputDispatcher( 109): channel ‘406e9890 com.progrestar.shovelhero/com.ansca.corona.CoronaActivity (server)’ ~ Channel is unrecoverably broken and
will be disposed!
I/ActivityManager( 109): Process com.progrestar.shovelhero (pid 3514) has died.
I/WindowManager( 109): WIN DEATH: Window{406e9890 com.progrestar.shovelhero/com.ansca.corona.CoronaActivity paused=false}
I/WindowManager( 109): WIN DEATH: Window{409652f8 SurfaceView paused=false}
I/WindowManager( 109): Setting rotation to 0, animFlags=1
I/ActivityManager( 109): Config changed: { scale=1.0 imsi=0/0 loc=en_US touch=3 keys=1/1/2 nav=1/1 orien=1 layout=34 uiMode=17 seq=66}
V/RenderScript_jni( 200): surfaceCreated
V/RenderScript_jni( 200): surfaceChanged
V/RenderScript_jni( 200): surfaceChanged
W/InputManagerService( 109): Got RemoteException sending setActive(false) notification to pid 3514 uid 10055
D/dalvikvm( 109): GC_CONCURRENT freed 1093K, 63% free 6582K/17607K, external 1807K/2319K, paused 36ms+5ms
V/RenderScript_jni( 200): surfaceChanged
V/RenderScript_jni( 200): surfaceChanged
D/dalvikvm( 109): GC_EXPLICIT freed 742K, 66% free 6046K/17607K, external 1807K/2319K, paused 103ms
D/AudioHardware( 75): AudioHardware pcm playback is going to standby.
D/AudioHardware( 75): closePcmOut_l() mPcmOpenCnt: 1
Judging from the output, it looks like this is an internal problem, and not an incorrect usage of the engine (+ this didn’t use to happen :)).

I’m currently using the newer builds to be able to install the game on all devices ( http://developer.anscamobile.com/forum/2011/08/15/wont-install-some-android-22-devices ), so this is an important issue for me. Please help :). [import]uid: 8145 topic_id: 13907 reply_id: 313907[/import]

Hey There, I just ran into the same issue, I thought it was a problem with tableView but this seems to be it!! output below ><

I have ran into this as a possible solution but I doubt we can call these functions

http://stackoverflow.com/questions/4973310/signal-11-sigsegv-crash-android-solved

D/dalvikvm(15746): GC\_FOR\_MALLOC freed 5173 objects / 1163768 bytes in 30ms I/DEBUG ( 5459): \*\*\* \*\*\* \*\*\* \*\*\* \*\*\* \*\*\* \*\*\* \*\*\* \*\*\* \*\*\* \*\*\* \*\*\* \*\*\* \*\*\* \*\*\* \*\*\* I/DEBUG ( 5459): Build fingerprint: 'tmobile/htc\_glacier/glacier/glacier:2.2.1/FRG83/277036:user/release-keys' I/DEBUG ( 5459): pid: 15746, tid: 15755 \>\>\> com.deadmansproductions.tickerpickerpro \<\<\< I/DEBUG ( 5459): thread: Thread-11 I/DEBUG ( 5459): signal 11 (SIGSEGV), fault addr 0000001c I/DEBUG ( 5459): r0 00000000 r1 00000108 r2 00000108 r3 ffffd8f0 I/DEBUG ( 5459): r4 afd43764 r5 00000108 r6 80f35bac r7 00431938 I/DEBUG ( 5459): r8 49cd5b7c r9 80f13400 10 43f13eb0 fp 49cd5ed8 I/DEBUG ( 5459): ip 80ebacf0 sp 49cd5b10 lr 80e4ea78 pc 80e62eb0 cpsr 60000010 I/DEBUG ( 5459): d0 643a64696f72646e d1 6472656767756265 I/DEBUG ( 5459): d2 0000000000000000 d3 ffffffff00000004 I/DEBUG ( 5459): d4 0000000000001c07 d5 0000043f00890000 I/DEBUG ( 5459): d6 0000000000000000 d7 0000000000000008 I/DEBUG ( 5459): d8 0000000000000188 d9 0000000000000000 I/DEBUG ( 5459): d10 0000000000000000 d11 0000000000000000 I/DEBUG ( 5459): d12 0000000000000000 d13 0000000000000000 I/DEBUG ( 5459): d14 0000000000000000 d15 0000000000000000 I/DEBUG ( 5459): d16 00000080470e2fe8 d17 3fdd6efb249d4000 I/DEBUG ( 5459): d18 3fe0000000000000 d19 3fe148826db16000 I/DEBUG ( 5459): d20 3fe3333340000000 d21 3fd3333340000000 I/DEBUG ( 5459): d22 3fd51eb860000000 d23 40e01d100abe0000 I/DEBUG ( 5459): d24 40dd4c2013880000 d25 40ed4c1013880000 I/DEBUG ( 5459): d26 40cd4c4013880000 d27 3fa97b4b24760deb I/DEBUG ( 5459): d28 bfa2b4442c6a6c2f d29 0000000000000000 I/DEBUG ( 5459): d30 0000000000000000 d31 0000000000000000 I/DEBUG ( 5459): scr 20000012 I/DEBUG ( 5459): I/DEBUG ( 5459): #00 pc 00062eb0 /data/data/com.deadmansproductions.tickerpickerpro/lib/libcorona.so I/DEBUG ( 5459): #01 lr 80e4ea78 /data/data/com.deadmansproductions.tickerpickerpro/lib/libcorona.so I/DEBUG ( 5459): I/DEBUG ( 5459): code around pc: I/DEBUG ( 5459): 80e62e90 e5910000 e3e01000 e1e01311 e3811001 I/DEBUG ( 5459): 80e62ea0 ebff7dc1 e5940010 e0800281 e8bd8010 I/DEBUG ( 5459): 80e62eb0 e590c01c e2412001 e92d4010 ed2d8b02 I/DEBUG ( 5459): 80e62ec0 e152000c 2a000003 e590000c e0800202 I/DEBUG ( 5459): 80e62ed0 ecbd8b02 e8bd8010 ee071a90 eeb88be7 I/DEBUG ( 5459): I/DEBUG ( 5459): code around lr: I/DEBUG ( 5459): 80e4ea58 e8bd8030 e92d4070 e1a05002 e1a04000 I/DEBUG ( 5459): 80e4ea68 ebfffb85 e1a01005 e5900000 eb00510d I/DEBUG ( 5459): 80e4ea78 e5943008 e283c010 e584c008 e5902008 I/DEBUG ( 5459): 80e4ea88 e1c000d0 e5832008 e1c300f0 e8bd8070 I/DEBUG ( 5459): 80e4ea98 e92d4010 e1a04000 ebfffb77 e5941008 I/DEBUG ( 5459): I/DEBUG ( 5459): stack: I/DEBUG ( 5459): 49cd5ad0 afd4392c /system/lib/libc.so I/DEBUG ( 5459): 49cd5ad4 afd0fbf4 /system/lib/libc.so I/DEBUG ( 5459): 49cd5ad8 afd4392c /system/lib/libc.so I/DEBUG ( 5459): 49cd5adc afd0fc4c /system/lib/libc.so I/DEBUG ( 5459): 49cd5ae0 00004000 I/DEBUG ( 5459): 49cd5ae4 00000000 I/DEBUG ( 5459): 49cd5ae8 00296378 [heap] I/DEBUG ( 5459): 49cd5aec afd1044c /system/lib/libc.so I/DEBUG ( 5459): 49cd5af0 00000000 I/DEBUG ( 5459): 49cd5af4 00296178 [heap] I/DEBUG ( 5459): 49cd5af8 afd4392c /system/lib/libc.so I/DEBUG ( 5459): 49cd5afc afd0fbf4 /system/lib/libc.so I/DEBUG ( 5459): 49cd5b00 afd4392c /system/lib/libc.so I/DEBUG ( 5459): 49cd5b04 afd0fc4c /system/lib/libc.so I/DEBUG ( 5459): 49cd5b08 df002777 I/DEBUG ( 5459): 49cd5b0c e3a070ad I/DEBUG ( 5459): #00 49cd5b10 00000001 I/DEBUG ( 5459): 49cd5b14 afd43764 /system/lib/libc.so I/DEBUG ( 5459): 49cd5b18 80f35bac /data/data/com.deadmansproductions.tickerpickerpro/lib/libcorona.so I/DEBUG ( 5459): 49cd5b1c 80efad58 /data/data/com.deadmansproductions.tickerpickerpro/lib/libcorona.so I/DEBUG ( 5459): 49cd5b20 49cd5b54 I/DEBUG ( 5459): 49cd5b24 80efad70 /data/data/com.deadmansproductions.tickerpickerpro/lib/libcorona.so I/DEBUG ( 5459): 49cd5b28 49cd5b54 I/DEBUG ( 5459): 49cd5b2c afd43764 /system/lib/libc.so I/DEBUG ( 5459): 49cd5b30 00431938 [heap] I/DEBUG ( 5459): 49cd5b34 80efadfc /data/data/com.deadmansproductions.tickerpickerpro/lib/libcorona.so I/DEBUG ( 5459): 49cd5b38 80f51148 /data/data/com.deadmansproductions.tickerpickerpro/lib/libcorona.so I/DEBUG ( 5459): 49cd5b3c 49cd5b54 I/DEBUG ( 5459): 49cd5b40 000004d4 I/DEBUG ( 5459): 49cd5b44 80ee535c /data/data/com.deadmansproductions.tickerpickerpro/lib/libcorona.so I/DEBUG ( 5459): 49cd5b48 43f13f50 I/DEBUG ( 5459): 49cd5b4c 8120ce40 /system/lib/egl/libEGL\_adreno200.so I/DEBUG ( 5459): 49cd5b50 afd42328 /system/lib/libc.so I/DEBUG ( 5459): 49cd5b54 80f4fa80 /data/data/com.deadmansproductions.tickerpickerpro/lib/libcorona.so [import]uid: 58749 topic_id: 13907 reply_id: 52423[/import]

code please?

c. [import]uid: 24 topic_id: 13907 reply_id: 52540[/import]

Hi! i keep getting the same error…
Previously, this error occurred when I tried to access a disposed audio… I fixed it
Now even after disabling all audio… this occurs sometimes.

What other scenarios cause this error?
Any help is appreciated. [import]uid: 64174 topic_id: 13907 reply_id: 67358[/import]

i am experiencing this too, but not with build 984. newest build makes my android game crash all the time. [import]uid: 90610 topic_id: 13907 reply_id: 142874[/import]

Does anyone have some code to reproduce this problem? Also, what versions of Android are we talking?

I’ve run quite an extensive async HTTP test but I’m not triggering the issue. [import]uid: 199237 topic_id: 13907 reply_id: 142894[/import]

dingo,

As of daily build #1030, and by popular demand, we removed permissions INTERNET, READ_PHONE_STATE, and ACCESS_NETWORK_STATE from all Android builds. You now must opt-in to using them via your “build.settings” file.
https://developer.coronalabs.com/release/2013/1030

If your app is trying to use the network without the Android INTERNET permission, then that will now cause Android to throw an INTERNET permission exception, which Corona catches and turns into a Lua error. This is by design. This error will then be displayed to you on screen with the Java exception message and/or the Lua runtime error (with a Lua stack trace for debug builds), telling you exactly what went wrong so that you can fix it on your end. This error also gets outputted to the Android log.

So, bottom line, you need to add the following permission to your “build.settings” file…
[lua]
settings =
{
android =
{
usesPermissions =
{
“android.permission.INTERNET”,
}
}
}
[/lua]

Please have a look at the newest API documentation available on our daily build page. We’ve updated about 2 weeks ago to indicate which APIs require the above permissions. We’ve also updated all of the sample projects included with the newest version of the Corona SDK to include the above permissions when needed.
[import]uid: 32256 topic_id: 13907 reply_id: 142913[/import]

i am experiencing this too, but not with build 984. newest build makes my android game crash all the time. [import]uid: 90610 topic_id: 13907 reply_id: 142874[/import]

Does anyone have some code to reproduce this problem? Also, what versions of Android are we talking?

I’ve run quite an extensive async HTTP test but I’m not triggering the issue. [import]uid: 199237 topic_id: 13907 reply_id: 142894[/import]

dingo,

As of daily build #1030, and by popular demand, we removed permissions INTERNET, READ_PHONE_STATE, and ACCESS_NETWORK_STATE from all Android builds. You now must opt-in to using them via your “build.settings” file.
https://developer.coronalabs.com/release/2013/1030

If your app is trying to use the network without the Android INTERNET permission, then that will now cause Android to throw an INTERNET permission exception, which Corona catches and turns into a Lua error. This is by design. This error will then be displayed to you on screen with the Java exception message and/or the Lua runtime error (with a Lua stack trace for debug builds), telling you exactly what went wrong so that you can fix it on your end. This error also gets outputted to the Android log.

So, bottom line, you need to add the following permission to your “build.settings” file…
[lua]
settings =
{
android =
{
usesPermissions =
{
“android.permission.INTERNET”,
}
}
}
[/lua]

Please have a look at the newest API documentation available on our daily build page. We’ve updated about 2 weeks ago to indicate which APIs require the above permissions. We’ve also updated all of the sample projects included with the newest version of the Corona SDK to include the above permissions when needed.
[import]uid: 32256 topic_id: 13907 reply_id: 142913[/import]

i am experiencing this too, but not with build 984. newest build makes my android game crash all the time. [import]uid: 90610 topic_id: 13907 reply_id: 142874[/import]

Does anyone have some code to reproduce this problem? Also, what versions of Android are we talking?

I’ve run quite an extensive async HTTP test but I’m not triggering the issue. [import]uid: 199237 topic_id: 13907 reply_id: 142894[/import]

dingo,

As of daily build #1030, and by popular demand, we removed permissions INTERNET, READ_PHONE_STATE, and ACCESS_NETWORK_STATE from all Android builds. You now must opt-in to using them via your “build.settings” file.
https://developer.coronalabs.com/release/2013/1030

If your app is trying to use the network without the Android INTERNET permission, then that will now cause Android to throw an INTERNET permission exception, which Corona catches and turns into a Lua error. This is by design. This error will then be displayed to you on screen with the Java exception message and/or the Lua runtime error (with a Lua stack trace for debug builds), telling you exactly what went wrong so that you can fix it on your end. This error also gets outputted to the Android log.

So, bottom line, you need to add the following permission to your “build.settings” file…
[lua]
settings =
{
android =
{
usesPermissions =
{
“android.permission.INTERNET”,
}
}
}
[/lua]

Please have a look at the newest API documentation available on our daily build page. We’ve updated about 2 weeks ago to indicate which APIs require the above permissions. We’ve also updated all of the sample projects included with the newest version of the Corona SDK to include the above permissions when needed.
[import]uid: 32256 topic_id: 13907 reply_id: 142913[/import]

i am experiencing this too, but not with build 984. newest build makes my android game crash all the time. [import]uid: 90610 topic_id: 13907 reply_id: 142874[/import]

Does anyone have some code to reproduce this problem? Also, what versions of Android are we talking?

I’ve run quite an extensive async HTTP test but I’m not triggering the issue. [import]uid: 199237 topic_id: 13907 reply_id: 142894[/import]

dingo,

As of daily build #1030, and by popular demand, we removed permissions INTERNET, READ_PHONE_STATE, and ACCESS_NETWORK_STATE from all Android builds. You now must opt-in to using them via your “build.settings” file.
https://developer.coronalabs.com/release/2013/1030

If your app is trying to use the network without the Android INTERNET permission, then that will now cause Android to throw an INTERNET permission exception, which Corona catches and turns into a Lua error. This is by design. This error will then be displayed to you on screen with the Java exception message and/or the Lua runtime error (with a Lua stack trace for debug builds), telling you exactly what went wrong so that you can fix it on your end. This error also gets outputted to the Android log.

So, bottom line, you need to add the following permission to your “build.settings” file…
[lua]
settings =
{
android =
{
usesPermissions =
{
“android.permission.INTERNET”,
}
}
}
[/lua]

Please have a look at the newest API documentation available on our daily build page. We’ve updated about 2 weeks ago to indicate which APIs require the above permissions. We’ve also updated all of the sample projects included with the newest version of the Corona SDK to include the above permissions when needed.
[import]uid: 32256 topic_id: 13907 reply_id: 142913[/import]