Issue #86 resolved
Joseph Brower created an issue

When I try to launch my game apk, i get the following in logcat:

D/dalvikvm( 3338): Trying to load lib /data/app-lib/org.love2d.android-1/libgnustl_shared.so 0x41a1e5a0
D/dalvikvm( 3338): Added shared lib /data/app-lib/org.love2d.android-1/libgnustl_shared.so 0x41a1e5a0
D/dalvikvm( 3338): No JNI_OnLoad found in /data/app-lib/org.love2d.android-1/libgnustl_shared.so 0x41a1e5a0, skipping init
D/dalvikvm( 3338): Trying to load lib /data/app-lib/org.love2d.android-1/libmpg123.so 0x41a1e5a0
E/dalvikvm( 3338): dlopen("/data/app-lib/org.love2d.android-1/libmpg123.so") failed: Cannot load library: soinfo_relocate(linker.cpp:975): cannot locate symbol "atof" referenced by "libmpg123.so"...
W/dalvikvm( 3338): Exception Ljava/lang/UnsatisfiedLinkError; thrown while initializing Lorg/libsdl/app/SDLActivity;
W/dalvikvm( 3338): Class init failed in newInstance call (Lorg/love2d/android/GameActivity;)
D/AndroidRuntime( 3338): Shutting down VM
W/dalvikvm( 3338): threadid=1: thread exiting with uncaught exception (group=0x414b0930)
E/AndroidRuntime( 3338): FATAL EXCEPTION: main
E/AndroidRuntime( 3338): java.lang.ExceptionInInitializerError
E/AndroidRuntime( 3338):    at java.lang.Class.newInstanceImpl(Native Method)
E/AndroidRuntime( 3338):    at java.lang.Class.newInstance(Class.java:1319)
E/AndroidRuntime( 3338):    at android.app.Instrumentation.newActivity(Instrumentation.java:1054)
E/AndroidRuntime( 3338):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2097)
E/AndroidRuntime( 3338):    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
E/AndroidRuntime( 3338):    at android.app.ActivityThread.access$600(ActivityThread.java:141)
E/AndroidRuntime( 3338):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
E/AndroidRuntime( 3338):    at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 3338):    at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 3338):    at android.app.ActivityThread.main(ActivityThread.java:5039)
E/AndroidRuntime( 3338):    at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 3338):    at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime( 3338):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
E/AndroidRuntime( 3338):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
E/AndroidRuntime( 3338):    at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 3338): Caused by: java.lang.UnsatisfiedLinkError: Cannot load library: soinfo_relocate(linker.cpp:975): cannot locate symbol "atof" referenced by "libmpg123.so"...
E/AndroidRuntime( 3338):    at java.lang.Runtime.loadLibrary(Runtime.java:371)
E/AndroidRuntime( 3338):    at java.lang.System.loadLibrary(System.java:535)
E/AndroidRuntime( 3338):    at org.libsdl.app.SDLActivity.<clinit>(SDLActivity.java:55)

I don't fully know how to interpret all of that, but it seems related to mpg123 being broken somehow. I have tried this on two different devices (a Sero 7 and a Galaxy Note 3). I don't know if it's something I did wrong, but I am pretty sure I built the package correctly. I can provide the full APK if that would help.

Comments (8)

  1. Martin Felis repo owner

    Which NDK are you using? Can you provide a sample .love file that could be used for debugging?

  2. Joseph Brower reporter

    Sorry for the slow response. It looks like using NDK 9d stops the crash from occurring.

  3. Log in to comment