For example I have a copy of an engine built with https://github.com/dapetcu21/defold-fmod and then attempt to target it from a Windows host copy of the editor running the engine crashes.
You didn’t build it yourself? And when you say engine do you mean APK or just the dmengine.so? What kind of crash? What does logcat say?
FMOD editor target crash.txt (52.9 KB)
Relevant log
It looks like it’s crashing in FMODBridge::cleanupLibraries():
/system/lib/libart.so (art::DumpNativeStack(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, int, BacktraceMap*, char const*, art::ArtMethod*, void*, bool)+134): com.example.todo
/system/lib/libart.so (art::Thread::DumpStack(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, bool, BacktraceMap*, bool) const+210): com.example.todo
/system/lib/libart.so (art::Thread::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, bool, BacktraceMap*, bool) const+34): com.example.todo
/system/lib/libart.so (art::JavaVMExt::JniAbort(char const*, char const*)+694): com.example.todo
/data/app/com.example.todo-jBIDoJTQHEinFwUojpnxxg==/lib/arm/libFMOD.so (_JNIEnv::CallStaticVoidMethod(_jclass*, _jmethodID*, ...)+36): com.example.todo
/data/app/com.example.todo-jBIDoJTQHEinFwUojpnxxg==/lib/arm/libFMOD.so (FMODBridge::cleanupLibraries()+104): com.example.todo
/data/app/com.example.todo-jBIDoJTQHEinFwUojpnxxg==/lib/arm/libFMOD.so (FinalizeDefoldFMOD(dmExtension::Params*)+12): com.example.todo
/data/app/com.example.todo-jBIDoJTQHEinFwUojpnxxg==/lib/arm/libFMOD.so (dmScript::InternalFinalizeExtensions(dmScript::Context*)+192): com.example.todo
/data/app/com.example.todo-jBIDoJTQHEinFwUojpnxxg==/lib/arm/libFMOD.so (dmScript::Finalize(dmScript::Context*)+48): com.example.todo
/data/app/com.example.todo-jBIDoJTQHEinFwUojpnxxg==/lib/arm/libFMOD.so (dmEngine::Delete(dmEngine::Engine*)+228): com.example.todo
/data/app/com.example.todo-jBIDoJTQHEinFwUojpnxxg==/lib/arm/libFMOD.so (_ZN8dmEngineL7InitRunEPN15dmEngineService13EngineServiceEiPPcPFvPNS_6EngineEPvES9_S7_+228): com.example.todo
/data/app/com.example.todo-jBIDoJTQHEinFwUojpnxxg==/lib/arm/libFMOD.so (_ZN8dmEngine6LaunchEiPPcPFvPNS_6EngineEPvES6_S4_+76): com.example.todo
/data/app/com.example.todo-jBIDoJTQHEinFwUojpnxxg==/lib/arm/libFMOD.so (engine_main(int, char**)+112): com.example.todo
/data/app/com.example.todo-jBIDoJTQHEinFwUojpnxxg==/lib/arm/libFMOD.so (main+24): com.example.todo
/data/app/com.example.todo-jBIDoJTQHEinFwUojpnxxg==/lib/arm/libFMOD.so (_glfwPreMain+248): com.example.todo
/data/app/com.example.todo-jBIDoJTQHEinFwUojpnxxg==/lib/arm/libFMOD.so (android_main+20): com.example.todo
/data/app/com.example.todo-jBIDoJTQHEinFwUojpnxxg==/lib/arm/libFMOD.so (android_app_entry+176): com.example.todo
/system/lib/libc.so (__pthread_start(void*)+22): com.example.todo
/system/lib/libc.so (__start_thread+24): com.example.todo
Have you looked into the native extension code and tried to figure out what could be wrong?
1 Like
I’ll make an issue for it on FMOD extension for now.
1 Like