Random crash on Android: "Fatal signal 11", very hard to track the root cause, need your help!

1,793 views
Skip to first unread message

Rocks Wang

unread,
Sep 5, 2013, 12:53:07 PM9/5/13
to haxe...@googlegroups.com
My OpenFL app crashs on android very often, the crash looks occurring randomly. 

In logcat, the log is something like "09-05 23:53:52.264 F/libc    ( 9556): Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 9667 (Thread-7328)" following by lot's of hex addresses, in which I cannot locate the root cause at all.

My environment:
WinXP
Haxe 3
Android NDK r8c
hxcpp: 3.0.2 haxelib version
nme: git version
openfl-native: git version
Android devices: Samsung GT-I9268 (4.1.2), Huawei C8813Q (4.1.2), MI-ONE Plus (2.3.5)


Here's a typical crash output of the debug build of my app.
Though the below crash shows it occurs during the jpg encoding, however it's not crash everytime in the very location, and crash also occurs elsewhere:

======================================================================
09-05 23:53:52.264 F/libc    ( 9556): Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 9667 (Thread-7328)
09-05 23:53:52.374 I/DEBUG   (  115): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
09-05 23:53:52.374 I/DEBUG   (  115): Build fingerprint: 'samsung/superiorzm/superiorcmcc:4.1.2/JZO54K/I9268ZMBMF1:user/release-keys'
09-05 23:53:52.374 I/DEBUG   (  115): pid: 9556, tid: 9667, name: Thread-7328  >>> com.weiplus.client <<<
09-05 23:53:52.374 I/DEBUG   (  115): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000000
09-05 23:53:53.084 I/dalvikvm(10381): Turning on JNI app bug workarounds for target SDK version 5...
09-05 23:53:53.139 D/StatusBar.NetworkController(  455): refreshSignalCluster: else : 
09-05 23:53:53.139 D/STATUSBAR-SignalClusterView(  455): mSeparateMobileGroup=8
09-05 23:53:53.147 I/TRACE   (10381): SledogApplication:onCreate()
09-05 23:53:53.147 I/TRACE   (10381): registercom.sg.sledog.receiver.SMSReceiver@41a69d80
09-05 23:53:53.147 D/STATUSBAR-SignalClusterView(  455): mSeparateMobileGroup=8
09-05 23:53:53.147 D/STATUSBAR-SignalClusterView(  455): mSeparateMobileGroup=8
09-05 23:53:53.170 I/TRACE   (10381): SledogDatabase:create
09-05 23:53:53.186 D/dalvikvm(10381): Trying to load lib /data/data/com.sg.sledog/lib/libDIAL.so 0x41a397e8
09-05 23:53:53.186 D/dalvikvm(10381): Added shared lib /data/data/com.sg.sledog/lib/libDIAL.so 0x41a397e8
09-05 23:53:53.217 W/Service (10381): setForeground: ignoring old API call on com.sg.sledog.ui.NotificationService
09-05 23:53:53.225 V/TRACE   (10381): PhoneStateListener--CALL_STATE_IDLE:
09-05 23:53:53.225 W/Service (10381): setForeground: ignoring old API call on com.sg.sledog.ui.NotificationService
09-05 23:53:53.295 D/dalvikvm(10381): GC_CONCURRENT freed 132K, 4% free 12486K/12999K, paused 21ms+37ms, total 92ms
09-05 23:53:53.319 I/ActivityManager(  359): Killing proc 10381:com.sg.sledog/u0a121: kill background
09-05 23:53:53.342 I/DEBUG   (  115):     r0 6404791c  r1 4004b0e0  r2 00000004  r3 00000000
09-05 23:53:53.342 I/DEBUG   (  115):     r4 64047918  r5 5a1e2e00  r6 00000004  r7 5aa3df3c
09-05 23:53:53.342 I/DEBUG   (  115):     r8 5e5bac70  r9 5aa3df34  sl 5aa09478  fp 5e5bac84
09-05 23:53:53.342 I/DEBUG   (  115):     ip 00004000  sp 5e5ba7c0  lr 5d775aa0  pc 00000000  cpsr 80000010
09-05 23:53:53.342 I/DEBUG   (  115):     d0  403b7d2f0000001b  d1  3f9c26146f59c000
09-05 23:53:53.342 I/DEBUG   (  115):     d2  403b7d2ff4bda580  d3  000000000006f869
09-05 23:53:53.342 I/DEBUG   (  115):     d4  3cf1366666666666  d5  003408000001d400
09-05 23:53:53.350 I/DEBUG   (  115):     d6  000183000001c0ef  d7  7149f2ca3f000000
09-05 23:53:53.350 I/DEBUG   (  115):     d8  0000000000000000  d9  0000000000000000
09-05 23:53:53.350 I/DEBUG   (  115):     d10 0000000000000000  d11 0000000000000000
09-05 23:53:53.350 I/DEBUG   (  115):     d12 0000000000000000  d13 0000000000000000
09-05 23:53:53.350 I/DEBUG   (  115):     d14 0000000000000000  d15 0000000000000000
09-05 23:53:53.350 I/DEBUG   (  115):     d16 000000c141a30858  d17 000000c141a67ca8
09-05 23:53:53.350 I/DEBUG   (  115):     d18 00000000000574f0  d19 3fe0000000000000
09-05 23:53:53.350 I/DEBUG   (  115):     d20 3fe0000803e3d040  d21 393377ce858a5d48
09-05 23:53:53.350 I/DEBUG   (  115):     d22 3fa555555555554c  d23 bc91a62633145c07
09-05 23:53:53.350 I/DEBUG   (  115):     d24 c0033a271474ba7e  d25 3fc55555407f4358
09-05 23:53:53.350 I/DEBUG   (  115):     d26 3d121e7c00000000  d27 3fdb6db6db6fabff
09-05 23:53:53.350 I/DEBUG   (  115):     d28 3fe3333333333303  d29 0000000000000000
09-05 23:53:53.350 I/DEBUG   (  115):     d30 4000000000000000  d31 0000000000000000
09-05 23:53:53.350 I/DEBUG   (  115):     scr 20000010
09-05 23:53:53.374 I/DEBUG   (  115): 
09-05 23:53:53.374 I/DEBUG   (  115): backtrace:
09-05 23:53:53.374 I/DEBUG   (  115):     #00  pc 00000000  <unknown>
09-05 23:53:53.374 I/DEBUG   (  115):     #01  pc 004e6a9c  /data/data/com.weiplus.client/lib/libApplicationMain.so (hx::MarkContext::PushMark(hx::Object*)+96)
09-05 23:53:53.374 I/DEBUG   (  115):     #02  pc 004e6f50  /data/data/com.weiplus.client/lib/libApplicationMain.so (hx::MarkObjectAlloc(hx::Object*, hx::MarkContext*)+552)
09-05 23:53:53.374 I/DEBUG   (  115):     #03  pc 004f1ff0  /data/data/com.weiplus.client/lib/libApplicationMain.so (hx::IntHash::__Mark(hx::MarkContext*)+132)
09-05 23:53:53.374 I/DEBUG   (  115):     #04  pc 004e6a9c  /data/data/com.weiplus.client/lib/libApplicationMain.so (hx::MarkContext::PushMark(hx::Object*)+96)
09-05 23:53:53.374 I/DEBUG   (  115):     #05  pc 004e6f50  /data/data/com.weiplus.client/lib/libApplicationMain.so (hx::MarkObjectAlloc(hx::Object*, hx::MarkContext*)+552)
09-05 23:53:53.374 I/DEBUG   (  115):     #06  pc 0006f468  /data/data/com.weiplus.client/lib/libApplicationMain.so (void hx::MarkMember<Dynamic>(Dynamic&, hx::MarkContext*)+48)
09-05 23:53:53.374 I/DEBUG   (  115):     #07  pc 001a757c  /data/data/com.weiplus.client/lib/libApplicationMain.so (haxe::ds::IntMap_obj::__Mark(hx::MarkContext*)+72)
09-05 23:53:53.374 I/DEBUG   (  115):     #08  pc 004e6a9c  /data/data/com.weiplus.client/lib/libApplicationMain.so (hx::MarkContext::PushMark(hx::Object*)+96)
09-05 23:53:53.374 I/DEBUG   (  115):     #09  pc 004e6f50  /data/data/com.weiplus.client/lib/libApplicationMain.so (hx::MarkObjectAlloc(hx::Object*, hx::MarkContext*)+552)
09-05 23:53:53.374 I/DEBUG   (  115):     #10  pc 001a634c  /data/data/com.weiplus.client/lib/libApplicationMain.so (void hx::MarkMember<haxe::ds::IntMap_obj>(hx::ObjectPtr<haxe::ds::IntMap_obj>&, hx::MarkContext*)+48)
09-05 23:53:53.374 I/DEBUG   (  115):     #11  pc 001e23c0  /data/data/com.weiplus.client/lib/libApplicationMain.so (format::jpg::Writer_obj::__Mark(hx::MarkContext*)+352)
09-05 23:53:53.381 I/DEBUG   (  115):     #12  pc 004e6a9c  /data/data/com.weiplus.client/lib/libApplicationMain.so (hx::MarkContext::PushMark(hx::Object*)+96)
09-05 23:53:53.381 I/DEBUG   (  115):     #13  pc 004e6f50  /data/data/com.weiplus.client/lib/libApplicationMain.so (hx::MarkObjectAlloc(hx::Object*, hx::MarkContext*)+552)
09-05 23:53:53.381 I/DEBUG   (  115):     #14  pc 004ea278  /data/data/com.weiplus.client/lib/libApplicationMain.so (LocalAllocator::MarkConservative(int*, int*, hx::MarkContext*)+348)
09-05 23:53:53.381 I/DEBUG   (  115):     #15  pc 004ea09c  /data/data/com.weiplus.client/lib/libApplicationMain.so (LocalAllocator::Mark(hx::MarkContext*)+104)
09-05 23:53:53.381 I/DEBUG   (  115):     #16  pc 004ea42c  /data/data/com.weiplus.client/lib/libApplicationMain.so (MarkLocalAlloc(LocalAllocator*, hx::MarkContext*)+24)
09-05 23:53:53.381 I/DEBUG   (  115):     #17  pc 004e8b30  /data/data/com.weiplus.client/lib/libApplicationMain.so (GlobalAllocator::MarkAll(bool)+472)
09-05 23:53:53.381 I/DEBUG   (  115):     #18  pc 004e8d4c  /data/data/com.weiplus.client/lib/libApplicationMain.so (GlobalAllocator::Collect(bool, bool)+400)
09-05 23:53:53.381 I/DEBUG   (  115): 
09-05 23:53:53.381 I/DEBUG   (  115): stack:
09-05 23:53:53.381 I/DEBUG   (  115):          5e5ba780  4004b0e0  
09-05 23:53:53.381 I/DEBUG   (  115):          5e5ba784  640a0434  
09-05 23:53:53.381 I/DEBUG   (  115):          5e5ba788  1b00800d  
09-05 23:53:53.381 I/DEBUG   (  115):          5e5ba78c  640a040f  
09-05 23:53:53.381 I/DEBUG   (  115):          5e5ba790  1b000000  
09-05 23:53:53.381 I/DEBUG   (  115):          5e5ba794  684be00f  
09-05 23:53:53.381 I/DEBUG   (  115):          5e5ba798  5d911264  
09-05 23:53:53.381 I/DEBUG   (  115):          5e5ba79c  5d911264  
09-05 23:53:53.381 I/DEBUG   (  115):          5e5ba7a0  4004b0e0  
09-05 23:53:53.381 I/DEBUG   (  115):          5e5ba7a4  5d911268  
09-05 23:53:53.381 I/DEBUG   (  115):          5e5ba7a8  4004b0e0  
09-05 23:53:53.389 I/DEBUG   (  115):          5e5ba7ac  640a0420  
09-05 23:53:53.389 I/DEBUG   (  115):          5e5ba7b0  00000001  
09-05 23:53:53.389 I/DEBUG   (  115):          5e5ba7b4  5d775aa0  /data/data/com.weiplus.client/lib/libApplicationMain.so (hx::MarkContext::PushMark(hx::Object*)+100)
09-05 23:53:53.389 I/DEBUG   (  115):          5e5ba7b8  df0027ad  
09-05 23:53:53.389 I/DEBUG   (  115):          5e5ba7bc  00000000  
09-05 23:53:53.389 I/DEBUG   (  115):     #00  5e5ba7c0  6404791c  
09-05 23:53:53.389 I/DEBUG   (  115):          ........  ........
09-05 23:53:53.389 I/DEBUG   (  115):     #01  5e5ba7c0  6404791c  
09-05 23:53:53.389 I/DEBUG   (  115):          5e5ba7c4  4004b0e0  
09-05 23:53:53.389 I/DEBUG   (  115):          5e5ba7c8  4004b0e0  
09-05 23:53:53.389 I/DEBUG   (  115):          5e5ba7cc  5d775f54  /data/data/com.weiplus.client/lib/libApplicationMain.so (hx::MarkObjectAlloc(hx::Object*, hx::MarkContext*)+556)
09-05 23:53:53.389 I/DEBUG   (  115):     #02  5e5ba7d0  4004b0e0  
09-05 23:53:53.389 I/DEBUG   (  115):          5e5ba7d4  6404791c  
09-05 23:53:53.389 I/DEBUG   (  115):          5e5ba7d8  4004b0e0  
09-05 23:53:53.389 I/DEBUG   (  115):          5e5ba7dc  5f9cf8a0  
09-05 23:53:53.389 I/DEBUG   (  115):          5e5ba7e0  00000002  
09-05 23:53:53.389 I/DEBUG   (  115):          5e5ba7e4  5f9cf8a4  
09-05 23:53:53.389 I/DEBUG   (  115):          5e5ba7e8  640400f2  
09-05 23:53:53.389 I/DEBUG   (  115):          5e5ba7ec  64040000  
09-05 23:53:53.389 I/DEBUG   (  115):          5e5ba7f0  1b0e000d  
09-05 23:53:53.389 I/DEBUG   (  115):          5e5ba7f4  6404791b  
09-05 23:53:53.389 I/DEBUG   (  115):          5e5ba7f8  5d912fc0  
09-05 23:53:53.389 I/DEBUG   (  115):          5e5ba7fc  5d780ff4  /data/data/com.weiplus.client/lib/libApplicationMain.so (hx::IntHash::__Mark(hx::MarkContext*)+136)
09-05 23:53:53.397 I/DEBUG   (  115): 
09-05 23:53:53.397 I/DEBUG   (  115): memory near r0:
09-05 23:53:53.397 I/DEBUG   (  115):     640478fc 1b6e800a 5d8774d0 0000000f 1a00800d  ..n..t.]........
09-05 23:53:53.397 I/DEBUG   (  115):     6404790c 1a7a8009 5d875428 6404791c 1b0e000d  ..z.(T.].y.d....
09-05 23:53:53.397 I/DEBUG   (  115):     6404791c 64047938 00000000 00000001 1a1a8009  8y.d............
09-05 23:53:53.397 I/DEBUG   (  115):     6404792c 5d8774d0 00000009 1a2a0019 00000000  .t.]......*.....
09-05 23:53:53.397 I/DEBUG   (  115):     6404793c 00000004 4004e3fc 6404792c 64047a50  .......@,y.dPz.d
09-05 23:53:53.397 I/DEBUG   (  115): 
09-05 23:53:53.397 I/DEBUG   (  115): memory near r1:
09-05 23:53:53.397 I/DEBUG   (  115):     4004b0c0 00000000 0000009b 5d8755b0 00008972  .........U.]r...
09-05 23:53:53.397 I/DEBUG   (  115):     4004b0d0 02800000 02d79820 00630074 0079f4a0  .... ...t.c...y.
09-05 23:53:53.397 I/DEBUG   (  115):     4004b0e0 00000004 00000000 5a8b8008 0000011e  ...........Z....
09-05 23:53:53.397 I/DEBUG   (  115):     4004b0f0 00000000 6268a0f8 00000020 00000035  ......hb ...5...
09-05 23:53:53.397 I/DEBUG   (  115):     4004b100 000000b9 0000007c 5f88a300 0000002b  ....|......_+...
09-05 23:53:53.397 I/DEBUG   (  115): 
09-05 23:53:53.397 I/DEBUG   (  115): memory near r4:
09-05 23:53:53.397 I/DEBUG   (  115):     640478f8 0000000f 1b6e800a 5d8774d0 0000000f  ......n..t.]....
09-05 23:53:53.397 I/DEBUG   (  115):     64047908 1a00800d 1a7a8009 5d875428 6404791c  ......z.(T.].y.d
09-05 23:53:53.397 I/DEBUG   (  115):     64047918 1b0e000d 64047938 00000000 00000001  ....8y.d........
09-05 23:53:53.397 I/DEBUG   (  115):     64047928 1a1a8009 5d8774d0 00000009 1a2a0019  .....t.]......*.
09-05 23:53:53.397 I/DEBUG   (  115):     64047938 00000000 00000004 4004e3fc 6404792c  ...........@,y.d
09-05 23:53:53.397 I/DEBUG   (  115): 
09-05 23:53:53.397 I/DEBUG   (  115): memory near r5:
09-05 23:53:53.397 I/DEBUG   (  115):     5a1e2de0 00000006 4004e5f4 00000006 4004e63c  .......@....<..@
09-05 23:53:53.397 I/DEBUG   (  115):     5a1e2df0 00000005 4004e684 00000002 4004e6cc  .......@.......@
09-05 23:53:53.397 I/DEBUG   (  115):     5a1e2e00 00000005 4004e714 00000006 4004e75c  .......@....\..@
09-05 23:53:53.397 I/DEBUG   (  115):     5a1e2e10 00000004 4004e7a4 00000005 4004e7ec  .......@.......@
09-05 23:53:53.397 I/DEBUG   (  115):     5a1e2e20 00000008 4004e83c 00000008 4004e894  ....<..@.......@
09-05 23:53:53.397 I/DEBUG   (  115): 
09-05 23:53:53.397 I/DEBUG   (  115): memory near r7:
09-05 23:53:53.397 I/DEBUG   (  115):     5aa3df1c 00000000 5aa3df48 5cc6c970 572ceef8  ....H..Zp..\..,W
09-05 23:53:53.397 I/DEBUG   (  115):     5aa3df2c 00000000 00000000 5aa3df6c 587eb60a  ........l..Z..~X
09-05 23:53:53.397 I/DEBUG   (  115):     5aa3df3c 572cce58 5cc6c970 00000000 41a64fc8  X.,Wp..\.....O.A
09-05 23:53:53.397 I/DEBUG   (  115):     5aa3df4c 00000000 41a67928 41bac848 5aa3dfdc  ....(y.AH..A...Z
09-05 23:53:53.397 I/DEBUG   (  115):     5aa3df5c 587ebc04 572cd5e0 587eb60a 00000000  ..~X..,W..~X....
09-05 23:53:53.397 I/DEBUG   (  115): 
09-05 23:53:53.397 I/DEBUG   (  115): memory near r8:
09-05 23:53:53.397 I/DEBUG   (  115):     5e5bac50 6f59c000 5d14b394 41a6fc98 5aa09998  ..Yo...]...A...Z
09-05 23:53:53.397 I/DEBUG   (  115):     5e5bac60 5aa09468 00000000 572ceef8 40824eb4  h..Z......,W.N.@
09-05 23:53:53.397 I/DEBUG   (  115):     5e5bac70 5aa3df34 00000001 41a6fc98 00000008  4..Z.......A....
09-05 23:53:53.397 I/DEBUG   (  115):     5e5bac80 00000000 40854107 5aa3df34 5ccc9d3e  .....A.@4..Z>..\
09-05 23:53:53.397 I/DEBUG   (  115):     5e5bac90 5d14b31c 5aa09478 41a6fc98 00000000  ...]x..Z...A....
09-05 23:53:53.397 I/DEBUG   (  115): 
09-05 23:53:53.397 I/DEBUG   (  115): memory near r9:
09-05 23:53:53.405 I/DEBUG   (  115):     5aa3df14 00000000 41a64fc8 00000000 5aa3df48  .....O.A....H..Z
09-05 23:53:53.405 I/DEBUG   (  115):     5aa3df24 5cc6c970 572ceef8 00000000 00000000  p..\..,W........
09-05 23:53:53.405 I/DEBUG   (  115):     5aa3df34 5aa3df6c 587eb60a 572cce58 5cc6c970  l..Z..~XX.,Wp..\
09-05 23:53:53.405 I/DEBUG   (  115):     5aa3df44 00000000 41a64fc8 00000000 41a67928  .....O.A....(y.A
09-05 23:53:53.405 I/DEBUG   (  115):     5aa3df54 41bac848 5aa3dfdc 587ebc04 572cd5e0  H..A...Z..~X..,W
09-05 23:53:53.405 I/DEBUG   (  115): 
09-05 23:53:53.405 I/DEBUG   (  115): memory near sl:
09-05 23:53:53.405 I/DEBUG   (  115):     5aa09458 6564616f 65640072 00000020 00000453  oader.de ...S...
09-05 23:53:53.405 I/DEBUG   (  115):     5aa09468 5cc6c970 5aa3df34 572cce58 5a785000  p..\4..ZX.,W.PxZ
09-05 23:53:53.405 I/DEBUG   (  115):     5aa09478 41a67928 00000140 5e5bada8 00000000  (y.A@.....[^....
09-05 23:53:53.405 I/DEBUG   (  115):     5aa09488 5e5baddc 0000000e 00010008 40829f00  ..[^...........@
09-05 23:53:53.405 I/DEBUG   (  115):     5aa09498 00000000 00000000 56570170 5aa3a300  ........p.WV...Z
09-05 23:53:53.405 I/DEBUG   (  115): 
09-05 23:53:53.405 I/DEBUG   (  115): memory near fp:
09-05 23:53:53.405 I/DEBUG   (  115):     5e5bac64 00000000 572ceef8 40824eb4 5aa3df34  ......,W.N.@4..Z
09-05 23:53:53.405 I/DEBUG   (  115):     5e5bac74 00000001 41a6fc98 00000008 00000000  .......A........
09-05 23:53:53.405 I/DEBUG   (  115):     5e5bac84 40854107 5aa3df34 5ccc9d3e 5d14b31c  .A.@4..Z>..\...]
09-05 23:53:53.405 I/DEBUG   (  115):     5e5bac94 5aa09478 41a6fc98 00000000 00000033  x..Z...A....3...
09-05 23:53:53.405 I/DEBUG   (  115):     5e5baca4 40170a4c 00001000 5a583490 00000000  L..@.....4XZ....
09-05 23:53:53.405 I/DEBUG   (  115): 
09-05 23:53:53.405 I/DEBUG   (  115): memory near ip:
09-05 23:53:53.405 I/DEBUG   (  115):     00003fe0 ffffffff ffffffff ffffffff ffffffff  ................
09-05 23:53:53.405 I/DEBUG   (  115):     00003ff0 ffffffff ffffffff ffffffff ffffffff  ................
09-05 23:53:53.405 I/DEBUG   (  115):     00004000 ffffffff ffffffff ffffffff ffffffff  ................
09-05 23:53:53.405 I/DEBUG   (  115):     00004010 ffffffff ffffffff ffffffff ffffffff  ................
09-05 23:53:53.405 I/DEBUG   (  115):     00004020 ffffffff ffffffff ffffffff ffffffff  ................
09-05 23:53:53.405 I/DEBUG   (  115): 
09-05 23:53:53.405 I/DEBUG   (  115): memory near sp:
09-05 23:53:53.405 I/DEBUG   (  115):     5e5ba7a0 4004b0e0 5d911268 4004b0e0 640a0420  ...@h..]...@ ..d
09-05 23:53:53.405 I/DEBUG   (  115):     5e5ba7b0 00000001 5d775aa0 df0027ad 00000000  .....Zw].'......
09-05 23:53:53.405 I/DEBUG   (  115):     5e5ba7c0 6404791c 4004b0e0 4004b0e0 5d775f54  .y.d...@...@T_w]
09-05 23:53:53.405 I/DEBUG   (  115):     5e5ba7d0 4004b0e0 6404791c 4004b0e0 5f9cf8a0  ...@.y.d...@..._
09-05 23:53:53.405 I/DEBUG   (  115):     5e5ba7e0 00000002 5f9cf8a4 640400f2 64040000  ......._...d...d
09-05 23:53:53.405 I/DEBUG   (  115): 
09-05 23:53:53.405 I/DEBUG   (  115): code around pc:
09-05 23:53:53.405 I/DEBUG   (  115):     00000000 ffffffff ffffffff ffffffff ffffffff  ................
09-05 23:53:53.405 I/DEBUG   (  115):     00000010 ffffffff ffffffff ffffffff ffffffff  ................
09-05 23:53:53.405 I/DEBUG   (  115):     00000020 ffffffff ffffffff ffffffff ffffffff  ................
09-05 23:53:53.405 I/DEBUG   (  115):     00000030 ffffffff ffffffff ffffffff ffffffff  ................
09-05 23:53:53.405 I/DEBUG   (  115):     00000040 ffffffff ffffffff ffffffff ffffffff  ................
09-05 23:53:53.405 I/DEBUG   (  115): 
09-05 23:53:53.405 I/DEBUG   (  115): code around lr:
09-05 23:53:53.405 I/DEBUG   (  115):     5d775a80 e59d3004 e5832000 e59d3000 e5933000  .0... ...0...0..
09-05 23:53:53.405 I/DEBUG   (  115):     5d775a90 e5933000 e59d0000 e59d1004 e12fff33  .0..........3./.
09-05 23:53:53.405 I/DEBUG   (  115):     5d775aa0 e59d3004 e5933000 e2432001 e59d3004  .0...0... C..0..
09-05 23:53:53.405 I/DEBUG   (  115):     5d775ab0 e5832000 e28dd00c e8bd8000 e52de004  . ............-.
09-05 23:53:53.405 I/DEBUG   (  115):     5d775ac0 e24dd00c e58d0004 ea000009 e59d3004  ..M..........0..
09-05 23:53:53.569 I/DEBUG   (  115): !@dumpstate -k -t -z -d -o /data/log/dumpstate_app_native -m 9556

David Elahee

unread,
Sep 5, 2013, 12:58:32 PM9/5/13
to haxe...@googlegroups.com

This has affected us too. It tends to happen less in release build with fewer logs... I would advise you do what we had delayed. Put up with an open source sample demonstrating the issue and publish it.

Good luck :)

--
To post to this group haxe...@googlegroups.com
http://groups.google.com/group/haxelang?hl=en
---
You received this message because you are subscribed to the Google Groups "Haxe" group.
For more options, visit https://groups.google.com/groups/opt_out.

Nicolas Cannasse

unread,
Sep 6, 2013, 4:57:16 AM9/6/13
to haxe...@googlegroups.com
Le 05/09/2013 18:58, David Elahee a �crit :
> This has affected us too. It tends to happen less in release build with
> fewer logs... I would advise you do what we had delayed. Put up with an
> open source sample demonstrating the issue and publish it.

Looks like a HxCPP Garbage Collector related problem. Not sure if Hugh
has fixed some of them recently or not.

Best,
Nicolas

Julian Liebl

unread,
Sep 6, 2013, 5:21:17 AM9/6/13
to haxe...@googlegroups.com
By any chance you are not using HaxeObject in your project? I refer to this bug: https://haxenme.atlassian.net/browse/NME-252

Cauê Waneck

unread,
Sep 6, 2013, 6:44:02 AM9/6/13
to haxe...@googlegroups.com
Le vendredi 6 septembre 2013, Julian Liebl a écrit :
By any chance you are not using HaxeObject in your project? I refer to this bug: https://haxenme.atlassian.net/browse/NME-252

Seems to me that this bug is related with the hxcpp collector being called from a different thread (e.g. Android's main UI thread)
AFAIK, hxcpp needs that all threads that may call the GC to be registered.


--
Sent from Gmail Mobile

Cauê Waneck

unread,
Sep 6, 2013, 6:55:16 AM9/6/13
to haxe...@googlegroups.com
You can probably force a more "reliable" crash by calling cpp.vm.Gc.collect(true) inside the function that is being called through Java

Daniel Uranga

unread,
Sep 6, 2013, 2:56:24 PM9/6/13
to haxe...@googlegroups.com
Also to help debugging JNI problems try compiling using a newer target SDK, so you dont see this "Turning on JNI app bug workarounds for target SDK version 5..." in the log.


2013/9/6 Cauê Waneck <wan...@gmail.com>
--

Rocks Wang

unread,
Sep 9, 2013, 10:54:11 AM9/9/13
to haxe...@googlegroups.com
Yes I was using a worker thread to do jpeg encoding, however I don't do any explicit GC call in my code, are there any API cause implicit GC collection?

在 2013年9月6日星期五UTC+8下午6时44分02秒,Cauê Waneck写道:
Reply all
Reply to author
Forward
0 new messages