kivy / buildozer

Generic Python packager for Android and iOS
https://buildozer.readthedocs.io
MIT License
1.73k stars 499 forks source link

libpython wait4 linker error #92

Closed kuldeepdhaka closed 10 years ago

kuldeepdhaka commented 10 years ago
D/dalvikvm(32727): GC_CONCURRENT freed 387K, 21% free 4117K/5188K, paused 1ms+2ms, total 13ms
V/codec_audio_pad( 1292): in normal mode, headset or speaker on,****LINE:43,FUNC:set_normal_path��headset_on=0,headphone_on=0
V/codec_audio_pad( 1292): in normal mode, headset or speaker on,****LINE:53,FUNC:set_normal_path
I/ActivityManager( 2000): START u0 {act=com.android.systemui.recent.action.TOGGLE_RECENTS flg=0x10800000 cmp=com.android.systemui/.recent.RecentsActivity} from pid 2605
I/ActivityManager( 2000): Displayed com.android.systemui/.recent.RecentsActivity: +149ms
D/dalvikvm( 4461): GC_CONCURRENT freed 405K, 21% free 4182K/5272K, paused 1ms+1ms, total 15ms
I/ActivityManager( 2000): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.testapp.app/org.renpy.android.PythonActivity} from pid 2720
D/dalvikvm( 1773): Late-enabling CheckJNI
I/ActivityManager( 2000): Start proc com.testapp.app:python for activity com.testapp.app/org.renpy.android.PythonActivity: pid=1773 uid=10063 gids={50063, 1023, 1015, 1028}
I/dalvikvm( 1773): Turning on JNI app bug workarounds for target SDK version 8...
V/WindowManager( 2000): rotationForOrientationLw(orient=0, last=1); user=2 
V/python  ( 1773): metadata fullscreen is1
I/SDLSurface( 1773): Surface will NOT be transparent
D/dalvikvm( 1773): Trying to load lib /mnt/asec/com.testapp.app-2/lib/libsdl.so 0x42526b98
D/dalvikvm( 1773): Added shared lib /mnt/asec/com.testapp.app-2/lib/libsdl.so 0x42526b98
D/dalvikvm( 1773): Trying to load lib /mnt/asec/com.testapp.app-2/lib/libsdl_image.so 0x42526b98
D/dalvikvm( 1773): Added shared lib /mnt/asec/com.testapp.app-2/lib/libsdl_image.so 0x42526b98
D/dalvikvm( 1773): No JNI_OnLoad found in /mnt/asec/com.testapp.app-2/lib/libsdl_image.so 0x42526b98, skipping init
D/dalvikvm( 1773): Trying to load lib /mnt/asec/com.testapp.app-2/lib/libsdl_ttf.so 0x42526b98
D/dalvikvm( 1773): Added shared lib /mnt/asec/com.testapp.app-2/lib/libsdl_ttf.so 0x42526b98
D/dalvikvm( 1773): No JNI_OnLoad found in /mnt/asec/com.testapp.app-2/lib/libsdl_ttf.so 0x42526b98, skipping init
D/dalvikvm( 1773): Trying to load lib /mnt/asec/com.testapp.app-2/lib/libsdl_mixer.so 0x42526b98
D/dalvikvm( 1773): Added shared lib /mnt/asec/com.testapp.app-2/lib/libsdl_mixer.so 0x42526b98
D/dalvikvm( 1773): No JNI_OnLoad found in /mnt/asec/com.testapp.app-2/lib/libsdl_mixer.so 0x42526b98, skipping init
D/dalvikvm( 1773): Trying to load lib /mnt/asec/com.testapp.app-2/lib/libpython2.7.so 0x42526b98
E/dalvikvm( 1773): dlopen("/mnt/asec/com.testapp.app-2/lib/libpython2.7.so") failed: Cannot load library: soinfo_relocate(linker.cpp:975): cannot locate symbol "wait4" referenced by "libpython2.7.so"...
W/dalvikvm( 1773): threadid=11: thread exiting with uncaught exception (group=0x4207e930)
E/AndroidRuntime( 1773): FATAL EXCEPTION: Thread-551
E/AndroidRuntime( 1773): java.lang.UnsatisfiedLinkError: Cannot load library: soinfo_relocate(linker.cpp:975): cannot locate symbol "wait4" referenced by "libpython2.7.so"...
E/AndroidRuntime( 1773):    at java.lang.Runtime.loadLibrary(Runtime.java:371)
E/AndroidRuntime( 1773):    at java.lang.System.loadLibrary(System.java:535)
E/AndroidRuntime( 1773):    at org.renpy.android.PythonActivity.run(PythonActivity.java:254)
E/AndroidRuntime( 1773):    at java.lang.Thread.run(Thread.java:856)
V/PhoneStatusBar( 2605): setLightsOn(true)
W/ActivityManager( 2000):   Force finishing activity com.testapp.app/org.renpy.android.PythonActivity
D/libEGL  ( 1773): loaded /vendor/lib/egl/libEGL_POWERVR_SGX544_115.so
W/DropBoxManagerService( 2000): Dropping: data_app_crash (522 > 0 bytes)
D/libEGL  ( 1773): loaded /vendor/lib/egl/libGLESv1_CM_POWERVR_SGX544_115.so
D/libEGL  ( 1773): loaded /vendor/lib/egl/libGLESv2_POWERVR_SGX544_115.so
D/OpenGLRenderer( 1773): Enabling debug mode 0
D/dalvikvm( 2000): GC_FOR_ALLOC freed 2788K, 32% free 12431K/18060K, paused 90ms, total 90ms
V/WindowManager( 2000): rotationForOrientationLw(orient=-1, last=1); user=2 
I/SDLSurface( 1773): Choose egl configuration
I/SDLSurface( 1773): Try to use graphics config R8G8B8A8S8
W/ThrottleService( 2000): unable to find stats for iface rmnet0
W/SDLSurface( 1773): Create egl surface
D/dalvikvm( 1773): GC_CONCURRENT freed 68K, 15% free 4413K/5168K, paused 6ms+1ms, total 26ms
D/dalvikvm( 1773): WAIT_FOR_CONCURRENT_GC blocked 9ms
I/dalvikvm-heap( 1773): Grow heap (frag case) to 5.473MB for 524304-byte allocation
D/dalvikvm( 1773): GC_FOR_ALLOC freed 1K, 14% free 4924K/5684K, paused 17ms, total 17ms
D/dalvikvm( 1773): GC_CONCURRENT freed <1K, 14% free 4925K/5684K, paused 2ms+1ms, total 19ms
W/InputMethodManagerService( 2000): Focus gain on non-focused client com.android.internal.view.IInputMethodClient$Stub$Proxy@4251f348 (uid=10063 pid=1773)
I/ActivityManager( 2000): Displayed com.testapp.app/org.renpy.android.PythonActivity: +567ms
D/AndroidRuntime( 1773): Shutting down VM
W/dalvikvm( 1773): threadid=1: thread exiting with uncaught exception (group=0x4207e930)
I/Process ( 1773): Sending signal. PID: 1773 SIG: 9
I/ActivityManager( 2000): Process com.testapp.app:python (pid 1773) has died.
I/WindowState( 2000): WIN DEATH: Window{429a8de8 u0 SurfaceView EXITING}
W/InputDispatcher( 2000): channel '42bbecf8 com.testapp.app/org.renpy.android.PythonActivity (server)' ~ Consumer closed input channel or an error occurred.  events=0x9
E/InputDispatcher( 2000): channel '42bbecf8 com.testapp.app/org.renpy.android.PythonActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
W/InputDispatcher( 2000): Attempted to unregister already unregistered input channel '42bbecf8 com.testapp.app/org.renpy.android.PythonActivity (server)'
I/WindowState( 2000): WIN DEATH: Window{42bbecf8 u0 com.testapp.app/org.renpy.android.PythonActivity EXITING}
W/InputMethodManagerService( 2000): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@4251a310 attribute=null, token = android.os.BinderProxy@42c166b0
D/dalvikvm( 4461): GC_CONCURRENT freed 409K, 21% free 4167K/5264K, paused 2ms+1ms, total 15ms
D/dalvikvm( 4461): GC_CONCURRENT freed 385K, 21% free 4172K/5264K, paused 1ms+2ms, total 14ms
D/dalvikvm( 4461): GC_CONCURRENT freed 389K, 21% free 4173K/5264K, paused 1ms+1ms, total 21ms
D/dalvikvm( 4461): GC_CONCURRENT freed 390K, 21% free 4173K/5264K, paused 1ms+2ms, total 14ms

Android 4.2.2 - Simmtronics XPADMini reference: https://github.com/kivy/buildozer/issues/91 (after feeding the absolute path, installed the app on tablet)

example: http://python-for-android.readthedocs.org/en/latest/examples/

kuldeepdhaka commented 10 years ago

compiling with ndk9 (ie 9d) and api19 -> error compiling with ndk9 (ie 9d) and api18 ->works

tito commented 10 years ago

This is unfortunately not something we can fix, as yes, this is possible that it doesn't work.

The build have failed before in your #91 report, so maybe it was something bad during the previous compilation. Best is either restart from scratch (buildozer android clean) when you change the API. I never experienced this, and i tried to reproduce, without success.

Also, please give more informations / summary with the issues you're reporting.

massivespace commented 10 years ago

Just in case anyone stumbles across this. I had the same issue outside of Kivy. It's because google removed an inline wait4() declaration in the NDK platform android-19. The original problem was that wait4() was exposed in the headers but not declared anywhere. So they went in and added it to libc.so, but libc.so is shipped with the O/S, so API's older than 18 (when it went into the libc.so I believe) would not have wait4, so they patched it by adding an inlined wait4() method in NDK platforms android-10 through android-18 and took it out in android-19. This is why it fails for you. I was told I should not build against android-19 if I wanted the app to run on devices older than API 18. Here is a link to the problem.

https://code.google.com/p/android/issues/detail?id=19854