Android ByteArray uncompress() malloc

I’m getting this error randomly on android when attempting to uncompress a byte array with the default compression algorithm…
sometimes it works, sometime doesn’t…

haxe 3.2.1
openfl 3.4.0
lime 2.7.0

here is the stack:

12-13 05:59:14.826   369   369 F DEBUG   :     #00 pc 0003f070  [anon:libc_malloc]
12-13 05:59:14.826   369   369 F DEBUG   :     #01 pc 05003c64  /data/app/com.demo-2/lib/arm/libApplicationMain.so (hx::RunFinalizers()+168)
12-13 05:59:14.826   369   369 F DEBUG   :     #02 pc 05005f88  /data/app/com.demo-2/lib/arm/libApplicationMain.so (GlobalAllocator::MarkAll()+712)
12-13 05:59:14.826   369   369 F DEBUG   :     #03 pc 05006190  /data/app/com.demo-2/lib/arm/libApplicationMain.so (GlobalAllocator::Collect(bool, bool, bool)+436)
12-13 05:59:14.826   369   369 F DEBUG   :     #04 pc 05007c18  /data/app/com.demo-2/lib/arm/libApplicationMain.so (CollectFromThisThread(bool)+68)
12-13 05:59:14.827   369   369 F DEBUG   :     #05 pc 05005224  /data/app/com.demo-2/lib/arm/libApplicationMain.so (GlobalAllocator::AllocLarge(int, bool)+104)
12-13 05:59:14.827   369   369 F DEBUG   :     #06 pc 050084a0  /data/app/com.demo-2/lib/arm/libApplicationMain.so (hx::InternalRealloc(void*, int)+284)
12-13 05:59:14.827   369   369 F DEBUG   :     #07 pc 05057d6c  /data/app/com.demo-2/lib/arm/libApplicationMain.so (hx::ArrayBase::Realloc(int) const+284)
12-13 05:59:14.827   369   369 F DEBUG   :     #08 pc 002b42a0  /data/app/com.demo-2/lib/arm/libApplicationMain.so (hx::ArrayBase::EnsureSize(int) const+64)
12-13 05:59:14.827   369   369 F DEBUG   :     #09 pc 002ed2b8  /data/app/com.demo-2/lib/arm/libApplicationMain.so (Array_obj<unsigned char>::push(unsigned char)+52)
12-13 05:59:14.827   369   369 F DEBUG   :     #10 pc 0443c428  /data/app/com.demo-2/lib/arm/libApplicationMain.so (haxe::zip::Uncompress_obj::run(hx::ObjectPtr<haxe::io::Bytes_obj>, Dynamic)+5552)
12-13 05:59:14.827   369   369 F DEBUG   :     #11 pc 04b30f04  /data/app/com.demo-2/lib/arm/libApplicationMain.so (lime::utils::ByteArray_obj::uncompress(hx::ObjectPtr<lime::utils::CompressionAlgorithm_obj>)+2496)

any ideas?

Have you tried using different HXCPP versions? Perhaps there’s a bug in the GC code in the version you are using?

I’m using 3,2,193,
I’ll try downgrading to 3,2,180 and update on the results

this did not fix the issue…
any recommended version to rollback to?

Alright, looking at this again, this is occurring in the Haxe std haxe.zip.Uncompress class. Perhaps we should report an issue on either the Haxe Github or HXCPP Github, do you know an easy way to reproduce this issue?