Android CFFILoader: "Could not find function:hx_register_prim"

Hi all! I’m running into a problem with openfl 3.3.6, lime 2.6.6. I am unable to get the compiled apk to run on android. It craps out almost immediately with the following error:

E/CFFILoader.h( 4885): Could not API hx_register_prim
E/CFFILoader( 4885): Could not find function:hx_register_prim

I’ve tested this with openfl-samples 3.3.0 BunnyMark and PiratePig with the same effect. Here’s the gist.

I’m running OSX 10.9.5 if that makes a difference. Let me know if I can supply more info!

Oh, and I’m using a Samsung Galaxy S3.

Releasing incoming today with the fix :slight_smile:

1 Like

haha, awesome :smile: Looking forward to the fix!

Alright, I just pulled openfl 3.3.7 and lime 2.6.7. I now get an immediate crash but a different error:

I/haxe plugin( 8789): Got Load Proc 62eff4d8
I/haxe plugin( 8789): Got Load Proc 62eff4d8
I/haxe plugin( 8789): Got Load Proc 62eff4d8
F/libc    ( 8789): Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1), thread 8816 (SDLThread)

Full gist here. Let me know how I can get you more info!

Actually, BunnyMark works fine, just not my application… maybe it’s JNI related. I’ll start hacking at extensions.

That memory address is awesome :joy:

1 Like

More examples.

1 Like