Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash on loading libpng16.so #2

Open
BrianOn99 opened this issue Nov 23, 2016 · 9 comments
Open

Crash on loading libpng16.so #2

BrianOn99 opened this issue Nov 23, 2016 · 9 comments

Comments

@BrianOn99
Copy link

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.

@sadaharusong
Copy link

Hello, I use libpng.so instead libpng16.so to solve the problem . But now, I have a new problem, it is missing libarcade.so in the file. Do you miss the file ?

@BrianOn99
Copy link
Author

I don't have this file.

@sadaharusong
Copy link

Well, Did you find other repository like this ? If you find , could you please share to me ?

@BrianOn99
Copy link
Author

@sadaharusong : No. If you find one, please also share it with me 😛

@sadaharusong
Copy link

@BrianOn99 Google opened a library of open source recently , named tensorflow . You can see it on github or go to official website to see it . It's great !

@sadaharusong
Copy link

@BrianOn99 Could you please find this file path Arcade\arcade\src\main\obj\local\armeabi-v7a . The libarcade.so maybe in there , I didn't build it success.

@huyn
Copy link

huyn commented Feb 14, 2017

Same to me.
System.loadLibrary("png16"); and System.loadLibrary("png"); meet the same error:
error loading module 'libpng' from file '/data/app/com.aube.artflow-1/lib/arm/libpng.so': undefined symbol: luaopen_libpng

@BrianOn99
Copy link
Author

I have deleted my build and have no time to try it again.

@sadaharusong
Copy link

@huyn @BrianOn99 I talk to the author . He will try to revisit the project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants