utopia-rise / fmod-gdextension

FMOD Studio GDExtension bindings for the Godot game engine
MIT License
485 stars 52 forks source link

Bug Report: Plugin does not work in Android Debug Builds #209

Open Connor-McCloskey opened 7 months ago

Connor-McCloskey commented 7 months ago

According to the documentation and the errors I've been encountering, this extension does not work in Android debug builds. Given the popularity of Godot for mobile development and the popularity of FMod, this seems like a pretty big bug.

Steps to reproduce:

  1. Create a minimal project including this extension
  2. Create a debug build, either as a standalone package or directly install it to an Android device via remote debugging
  3. Observe the crashes

It seems when I export this, I can pull some lines from adb logcat noting that there's a missing .so file: AndroidRuntime: java.lang.UnsatisfiedLinkError: dlopen failed: library "libfmod.so" not found

BSChad commented 1 week ago

Is this still an issue after the 4.3 changes? There was an issue in Godot that was fixed that made sure dependencies were loaded from the same location as the dll requesting them. This might have been on the Godot-side of things.

Connor-McCloskey commented 1 week ago

I'm actually not sure, my project shifted so I haven't tested latest releases on that platform. I did, eventually, solve this myself in my own fork of the project, so if you need to look further that information is out there/available.

piiertho commented 1 week ago

I'm actually not sure, my project shifted so I haven't tested latest releases on that platform. I did, eventually, solve this myself in my own fork of the project, so if you need to look further that information is out there/available.

I'm interested in how you solved this.