I did the changes :
- Added in GameActivity.java the following code ( OpenFL also extend SDLActivity which have method loadLibraries) and add Support.java in
java/bind/
@Override
public void loadLibraries() {
super.loadLibraries();
// Initialize bind
bind.Support.setUseNativeRunnableStack(true);
bind.Support.setContext(this);
bind.Support.init();
} //loadLibraries
- In haxe code for
Lib.current.stage.addEventListener( Event.ENTER_FRAME, this._onUpdate );
call bind.java.Support.flushRunnables();
on every frame
but still got the errors ( the new one with Fatal signal 6 (SIGABRT) )
Maybe it’s not possible to use bind
with openfl .
For info here is the full log.
libc : Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 13399 (SDLThread), pid 13376 (SDLActivity)
DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
DEBUG : Build fingerprint: 'Nokia/TA-1024_00WW/ND1:9/PKQ1.181105.001/00WW_6_19B:user/release-keys'
DEBUG : Revision: '0'
DEBUG : ABI: 'arm64'
DEBUG : pid: 13376, tid: 13399, name: SDLThread >>> com.andr.testandroid <<<
DEBUG : signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
DEBUG : Abort message too long: claimed length = 531
DEBUG : x0 0000000000000000 x1 0000000000003457 x2 0000000000000006 x3 0000000000000008
DEBUG : x4 0000007a1e8b14d8 x5 0000007a1e8b14d8 x6 0000007a1e8b14d8 x7 00000000000006ad
DEBUG : x8 0000000000000083 x9 0000007a1e8aa230 x10 fffffff87ffffbdf x11 5ea8d4676e421c82
DEBUG : x12 5ea8d4676e421c82 x13 fffffff87ffffbdf x14 0000000000000001 x15 0000001000000000
DEBUG : x16 0000007a1e8e72b8 x17 0000007a1e809078 x18 0000000000000024 x19 0000000000003440
DEBUG : x20 0000000000003457 x21 0000000000000083 x22 0000007991fea800 x23 00000079839ec000
DEBUG : x24 0000000000000014 x25 0000000000000012 x26 0000000000000005 x27 000000799cf931f3
DEBUG : x28 000000799cf930a7 x29 0000007983bd06a0
DEBUG : sp 0000007983bd0660 lr 0000007a1e7fa150 pc 0000007a1e7fa17c
DEBUG :
DEBUG : backtrace:
DEBUG : #00 pc 000000000002217c /system/lib64/libc.so (abort+124)
DEBUG : #01 pc 000000000046ada8 /system/lib64/libart.so (art::Runtime::Abort(char const*)+1208)
DEBUG : #02 pc 0000000000008dec /system/lib64/libbase.so (android::base::LogMessage::~LogMessage()+724)
DEBUG : #03 pc 00000000002e8858 /system/lib64/libart.so (art::JavaVMExt::JniAbort(char const*, char const*)+1656)
DEBUG : #04 pc 00000000002e89cc /system/lib64/libart.so (art::JavaVMExt::JniAbortV(char const*, char const*, std::__va_list)+108)
DEBUG : #05 pc 00000000000fd5f8 /system/lib64/libart.so (art::(anonymous namespace)::ScopedCheck::AbortF(char const*, ...)+144)
DEBUG : #06 pc 00000000000fbfa8 /system/lib64/libart.so (art::(anonymous namespace)::ScopedCheck::CheckPossibleHeapValue(art::ScopedObjectAccess&, char, art::(anonymous namespace)::JniValueType)+1144)
DEBUG : #07 pc 00000000000fb31c /system/lib64/libart.so (art::(anonymous namespace)::ScopedCheck::Check(art::ScopedObjectAccess&, bool, char const*, art::(anonymous namespace)::JniValueType*)+628)
DEBUG : #08 pc 00000000000ff4c8 /system/lib64/libart.so (art::(anonymous namespace)::CheckJNI::GetMethodIDInternal(char const*, _JNIEnv*, _jclass*, char const*, char const*, bool)+688)
DEBUG : #09 pc 000000000097dba8 /data/app/com.andr.testandroid-XV36V-0GyUTay2TCJ8lzJQ==/lib/arm64/libApplicationMain.so
DEBUG : #10 pc 000000000097db08 /data/app/com.andr.testandroid-XV36V-0GyUTay2TCJ8lzJQ==/lib/arm64/libApplicationMain.so
DEBUG : #11 pc 00000000007d6988 /data/app/com.andr.testandroid-XV36V-0GyUTay2TCJ8lzJQ==/lib/arm64/libApplicationMain.so
DEBUG : #12 pc 00000000007d6710 /data/app/com.andr.testandroid-XV36V-0GyUTay2TCJ8lzJQ==/lib/arm64/libApplicationMain.so
DEBUG : #13 pc 00000000002d9400 /data/app/com.andr.testandroid-XV36V-0GyUTay2TCJ8lzJQ==/lib/arm64/libApplicationMain.so
DEBUG : #14 pc 00000000007d5a90 /data/app/com.andr.testandroid-XV36V-0GyUTay2TCJ8lzJQ==/lib/arm64/libApplicationMain.so
DEBUG : #15 pc 000000000030dfb8 /data/app/com.andr.testandroid-XV36V-0GyUTay2TCJ8lzJQ==/lib/arm64/libApplicationMain.so
DEBUG : #16 pc 0000000000d648a4 /data/app/com.andr.testandroid-XV36V-0GyUTay2TCJ8lzJQ==/lib/arm64/libApplicationMain.so (hxcpp_main+88)
DEBUG : #17 pc 000000000048f77c /data/app/com.andr.testandroid-XV36V-0GyUTay2TCJ8lzJQ==/lib/arm64/liblime.so (Java_org_libsdl_app_SDLActivity_nativeRunMain+484)
DEBUG : #18 pc 00000000005661e0 /system/lib64/libart.so (art_quick_generic_jni_trampoline+144)
DEBUG : #19 pc 000000000055d44c /system/lib64/libart.so (art_quick_invoke_static_stub+604)
DEBUG : #20 pc 00000000000cf760 /system/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+232)
DEBUG : #21 pc 00000000002823b0 /system/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+344)
DEBUG : #22 pc 000000000027c36c /system/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+948)
DEBUG : #23 pc 000000000052d98c /system/lib64/libart.so (MterpInvokeStatic+204)
DEBUG : #24 pc 000000000054f994 /system/lib64/libart.so (ExecuteMterpImpl+14612)
DEBUG : #25 pc 000000000000d6f4 /dev/ashmem/dalvik-classes.dex extracted in memory from /data/app/com.andr.testandroid-XV36V-0GyUTay2TCJ8lzJQ==/base.apk (deleted) (org.libsdl.app.SDLMain.run+156)
DEBUG : #26 pc 0000000000255e68 /system/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEb.llvm.2415914650+496)
DEBUG : #27 pc 000000000025b9e8 /system/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+216)
DEBUG : #28 pc 000000000027c350 /system/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+920)
DEBUG : #29 pc 000000000052d400 /system/lib64/libart.so (MterpInvokeInterface+1392)
DEBUG : #30 pc 000000000054fa14 /system/lib64/libart.so (ExecuteMterpImpl+14740)
DEBUG : #31 pc 00000000000ca876 /system/framework/boot-core-oj.vdex (java.lang.Thread.run+12)
DEBUG : #32 pc 0000000000255e68 /system/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEb.llvm.2415914650+496)
DEBUG : #33 pc 000000000051cbc8 /system/lib64/libart.so (artQuickToInterpreterBridge+1032)
DEBUG : #34 pc 00000000005662fc /system/lib64/libart.so (art_quick_to_interpreter_bridge+92)
DEBUG : #35 pc 000000000055d188 /system/lib64/libart.so (art_quick_invoke_stub+584)
DEBUG : #36 pc 00000000000cf740 /system/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+200)
DEBUG : #37 pc 0000000000463460 /system/lib64/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)+104)
DEBUG : #38 pc 0000000000464528 /system/lib64/libart.so (art::InvokeVirtualOrInterfaceWithJValues(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, jvalue*)+424)
DEBUG : #39 pc 000000000048f898 /system/lib64/libart.so (art::Thread::CreateCallback(void*)+1120)
DEBUG : #40 pc 00000000000963b4 /system/lib64/libc.so (__pthread_start(void*)+36)
DEBUG : #41 pc 0000000000023afc /system/lib64/libc.so (__start_thread+68)libc : Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 13399 (SDLThread), pid 13376 (SDLActivity)
DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
DEBUG : Build fingerprint: 'Nokia/TA-1024_00WW/ND1:9/PKQ1.181105.001/00WW_6_19B:user/release-keys'
DEBUG : Revision: '0'
DEBUG : ABI: 'arm64'
DEBUG : pid: 13376, tid: 13399, name: SDLThread >>> com.andr.testandroid <<<
DEBUG : signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
DEBUG : Abort message too long: claimed length = 531
DEBUG : x0 0000000000000000 x1 0000000000003457 x2 0000000000000006 x3 0000000000000008
DEBUG : x4 0000007a1e8b14d8 x5 0000007a1e8b14d8 x6 0000007a1e8b14d8 x7 00000000000006ad
DEBUG : x8 0000000000000083 x9 0000007a1e8aa230 x10 fffffff87ffffbdf x11 5ea8d4676e421c82
DEBUG : x12 5ea8d4676e421c82 x13 fffffff87ffffbdf x14 0000000000000001 x15 0000001000000000
DEBUG : x16 0000007a1e8e72b8 x17 0000007a1e809078 x18 0000000000000024 x19 0000000000003440
DEBUG : x20 0000000000003457 x21 0000000000000083 x22 0000007991fea800 x23 00000079839ec000
DEBUG : x24 0000000000000014 x25 0000000000000012 x26 0000000000000005 x27 000000799cf931f3
DEBUG : x28 000000799cf930a7 x29 0000007983bd06a0
DEBUG : sp 0000007983bd0660 lr 0000007a1e7fa150 pc 0000007a1e7fa17c
DEBUG :
DEBUG : backtrace:
DEBUG : #00 pc 000000000002217c /system/lib64/libc.so (abort+124)
DEBUG : #01 pc 000000000046ada8 /system/lib64/libart.so (art::Runtime::Abort(char const*)+1208)
DEBUG : #02 pc 0000000000008dec /system/lib64/libbase.so (android::base::LogMessage::~LogMessage()+724)
DEBUG : #03 pc 00000000002e8858 /system/lib64/libart.so (art::JavaVMExt::JniAbort(char const*, char const*)+1656)
DEBUG : #04 pc 00000000002e89cc /system/lib64/libart.so (art::JavaVMExt::JniAbortV(char const*, char const*, std::__va_list)+108)
DEBUG : #05 pc 00000000000fd5f8 /system/lib64/libart.so (art::(anonymous namespace)::ScopedCheck::AbortF(char const*, ...)+144)
DEBUG : #06 pc 00000000000fbfa8 /system/lib64/libart.so (art::(anonymous namespace)::ScopedCheck::CheckPossibleHeapValue(art::ScopedObjectAccess&, char, art::(anonymous namespace)::JniValueType)+1144)
DEBUG : #07 pc 00000000000fb31c /system/lib64/libart.so (art::(anonymous namespace)::ScopedCheck::Check(art::ScopedObjectAccess&, bool, char const*, art::(anonymous namespace)::JniValueType*)+628)
DEBUG : #08 pc 00000000000ff4c8 /system/lib64/libart.so (art::(anonymous namespace)::CheckJNI::GetMethodIDInternal(char const*, _JNIEnv*, _jclass*, char const*, char const*, bool)+688)
DEBUG : #09 pc 000000000097dba8 /data/app/com.andr.testandroid-XV36V-0GyUTay2TCJ8lzJQ==/lib/arm64/libApplicationMain.so
DEBUG : #10 pc 000000000097db08 /data/app/com.andr.testandroid-XV36V-0GyUTay2TCJ8lzJQ==/lib/arm64/libApplicationMain.so
DEBUG : #11 pc 00000000007d6988 /data/app/com.andr.testandroid-XV36V-0GyUTay2TCJ8lzJQ==/lib/arm64/libApplicationMain.so
DEBUG : #12 pc 00000000007d6710 /data/app/com.andr.testandroid-XV36V-0GyUTay2TCJ8lzJQ==/lib/arm64/libApplicationMain.so
DEBUG : #13 pc 00000000002d9400 /data/app/com.andr.testandroid-XV36V-0GyUTay2TCJ8lzJQ==/lib/arm64/libApplicationMain.so
DEBUG : #14 pc 00000000007d5a90 /data/app/com.andr.testandroid-XV36V-0GyUTay2TCJ8lzJQ==/lib/arm64/libApplicationMain.so
DEBUG : #15 pc 000000000030dfb8 /data/app/com.andr.testandroid-XV36V-0GyUTay2TCJ8lzJQ==/lib/arm64/libApplicationMain.so
DEBUG : #16 pc 0000000000d648a4 /data/app/com.andr.testandroid-XV36V-0GyUTay2TCJ8lzJQ==/lib/arm64/libApplicationMain.so (hxcpp_main+88)
DEBUG : #17 pc 000000000048f77c /data/app/com.andr.testandroid-XV36V-0GyUTay2TCJ8lzJQ==/lib/arm64/liblime.so (Java_org_libsdl_app_SDLActivity_nativeRunMain+484)
DEBUG : #18 pc 00000000005661e0 /system/lib64/libart.so (art_quick_generic_jni_trampoline+144)
DEBUG : #19 pc 000000000055d44c /system/lib64/libart.so (art_quick_invoke_static_stub+604)
DEBUG : #20 pc 00000000000cf760 /system/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+232)
DEBUG : #21 pc 00000000002823b0 /system/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+344)
DEBUG : #22 pc 000000000027c36c /system/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+948)
DEBUG : #23 pc 000000000052d98c /system/lib64/libart.so (MterpInvokeStatic+204)
DEBUG : #24 pc 000000000054f994 /system/lib64/libart.so (ExecuteMterpImpl+14612)
DEBUG : #25 pc 000000000000d6f4 /dev/ashmem/dalvik-classes.dex extracted in memory from /data/app/com.andr.testandroid-XV36V-0GyUTay2TCJ8lzJQ==/base.apk (deleted) (org.libsdl.app.SDLMain.run+156)
DEBUG : #26 pc 0000000000255e68 /system/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEb.llvm.2415914650+496)
DEBUG : #27 pc 000000000025b9e8 /system/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+216)
DEBUG : #28 pc 000000000027c350 /system/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+920)
DEBUG : #29 pc 000000000052d400 /system/lib64/libart.so (MterpInvokeInterface+1392)
DEBUG : #30 pc 000000000054fa14 /system/lib64/libart.so (ExecuteMterpImpl+14740)
DEBUG : #31 pc 00000000000ca876 /system/framework/boot-core-oj.vdex (java.lang.Thread.run+12)
DEBUG : #32 pc 0000000000255e68 /system/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEb.llvm.2415914650+496)
DEBUG : #33 pc 000000000051cbc8 /system/lib64/libart.so (artQuickToInterpreterBridge+1032)
DEBUG : #34 pc 00000000005662fc /system/lib64/libart.so (art_quick_to_interpreter_bridge+92)
DEBUG : #35 pc 000000000055d188 /system/lib64/libart.so (art_quick_invoke_stub+584)
DEBUG : #36 pc 00000000000cf740 /system/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+200)
DEBUG : #37 pc 0000000000463460 /system/lib64/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)+104)
DEBUG : #38 pc 0000000000464528 /system/lib64/libart.so (art::InvokeVirtualOrInterfaceWithJValues(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, jvalue*)+424)
DEBUG : #39 pc 000000000048f898 /system/lib64/libart.so (art::Thread::CreateCallback(void*)+1120)
DEBUG : #40 pc 00000000000963b4 /system/lib64/libc.so (__pthread_start(void*)+36)
DEBUG : #41 pc 0000000000023afc /system/lib64/libc.so (__start_thread+68)