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

Android; app.name in flow file breaks at runtime #176

Closed
JunoNgx opened this Issue Nov 22, 2014 · 3 comments

Comments

Projects
None yet
2 participants
@JunoNgx

JunoNgx commented Nov 22, 2014

Running the app on Android devices (in my case, were Nexus 5, Nexus 7 (2013) and Galaxy Nexus) results in the app crashing ("Unfortunately, [app name] has stopped.").

I'm far from an expert, but I believe this segment contains the log of the crash:

I/SDL     (10327): SDL_Android_Init()
I/SDL     (10327): SDL_Android_Init() finished!
--------- beginning of crash
E/AndroidRuntime(10327): FATAL EXCEPTION: SDLThread
E/AndroidRuntime(10327): Process: com.****.****, PID: 10327
E/AndroidRuntime(10327): java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.****.****-1/base.apk"],nativeLibraryDirectories=[/data/app/com.****.****/lib/arm, /vendor/lib, /system/lib]]] couldn't find "lib****.so"
E/AndroidRuntime(10327):        at java.lang.Runtime.loadLibrary(Runtime.java:366)
E/AndroidRuntime(10327):        at java.lang.System.loadLibrary(System.java:989)
@underscorediscovery

This comment has been minimized.

Show comment
Hide comment
@underscorediscovery

underscorediscovery Nov 22, 2014

Owner

interesting error, the only thing that stands out from the given information is the spaces in the lib name?

Could you try it without such spaces, and if it works, we can see if android actually allows this? Maybe its a path formatting issue (i.e it wants \ to escape spaces in the loadLibrary call).

If it's not allowed spaces at all, the build chain can error out early.
If it is allowed spaces, then the data must be corrected in the build process instead.

Owner

underscorediscovery commented Nov 22, 2014

interesting error, the only thing that stands out from the given information is the spaces in the lib name?

Could you try it without such spaces, and if it works, we can see if android actually allows this? Maybe its a path formatting issue (i.e it wants \ to escape spaces in the loadLibrary call).

If it's not allowed spaces at all, the build chain can error out early.
If it is allowed spaces, then the data must be corrected in the build process instead.

@JunoNgx

This comment has been minimized.

Show comment
Hide comment
@JunoNgx

JunoNgx Nov 22, 2014

You're right, changing the app name (app.name) in flow project file fixed this. I thought about this before but ended up changing the wrong item.

Thanks for the help. The issue may be closed.

JunoNgx commented Nov 22, 2014

You're right, changing the app name (app.name) in flow project file fixed this. I thought about this before but ended up changing the wrong item.

Thanks for the help. The issue may be closed.

@underscorediscovery

This comment has been minimized.

Show comment
Hide comment
@underscorediscovery

underscorediscovery Nov 22, 2014

Owner

Actually I think we can keep it open for now - I would like to investigate if the tools are mishandling the name, or if android dislikes it in the loadLibrary call.

Thanks for reporting/testing.

Owner

underscorediscovery commented Nov 22, 2014

Actually I think we can keep it open for now - I would like to investigate if the tools are mishandling the name, or if android dislikes it in the loadLibrary call.

Thanks for reporting/testing.

@underscorediscovery underscorediscovery changed the title from Error running built Android app to Android; app.name in flow file breaks at runtime Dec 2, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment