Skip to content

Crash on loading libpng16.so #2

@BrianOn99

Description

@BrianOn99

This app is a great idea, but does not work for me with many attempts.

Sure, I am running the app on armeabi-v7a cpu.

Fresh download from google play, it crash when begin styling:

E/AndroidRuntime(12631): java.lang.UnsatisfiedLinkError: dlopen failed: could not load library "libpng16.so.16" needed by "libarcade.so"; caused by library "libpng16.so.16" not found
E/AndroidRuntime(12631): 	at java.lang.Runtime.loadLibrary(Runtime.java:371)
E/AndroidRuntime(12631): 	at java.lang.System.loadLibrary(System.java:989)
E/AndroidRuntime(12631): 	at com.naman14.arcade.library.Arcade.<clinit>(Arcade.java:31)
E/AndroidRuntime(12631): 	at com.naman14.arcade.library.ArcadeBuilder.build(ArcadeBuilder.java:164)
E/AndroidRuntime(12631): 	at com.naman14.arcade.ArcadeService.beginStyling(ArcadeService.java:52)
E/AndroidRuntime(12631): 	at com.naman14.arcade.ArcadeService.onHandleIntent(ArcadeService.java:36)
E/AndroidRuntime(12631): 	at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)
E/AndroidRuntime(12631): 	at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime(12631): 	at android.os.Looper.loop(Looper.java:145)
E/AndroidRuntime(12631): 	at android.os.HandlerThread.run(HandlerThread.java:61)

The same crash when I git clone and ndk-build.

I to ported from ndk-build to cmake, and finally get pass that error. However, it crashed later with:

11-23 10:21:10.827 2969-8545/com.naman14.arcade I/Arcade: error loading module 'libpng' from file '/data/app/com.naman14.arcade-1/lib/arm/libpng.so':
                                                          	undefined symbol: luaopen_libpng

,which occurs on neural_style.lua line 55.

I noticed that libpng.so is the same as libpng16.so, and there is no symbol luaopen_libpng in the binary, so I go to torch-android in github and build it myself. I found luaopen_libpng
in the resulting .so, but replacing the libpng.so still give that error.

How did you ever run the app successfully?

I am interested in this project and I would like to contribute to it after I get pass this error. I could share my branch if needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions