-
Notifications
You must be signed in to change notification settings - Fork 190
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
pymunk kivy example apk crashing on android 5.1 #194
Comments
Thanks for the report! Is it possible for you to use Pymunk 6 instead? If so I have made a update recipe that would be great if you could try (it works fine on my phone). |
The updated recipe is here: https://gist.github.com/viblo/befb56e5415fc509c25f1ba0fd6c020c |
Meanwhile Ive opened a PR to the p4a project here: kivy/python-for-android#2389 |
yes I want to try ......Kivy with pymunk example code is looking great..I am interested |
New problem with 6.0.0 |
okkk . i have tested on Android 8.0 it is working well pymunk 6.0.0 .but crashing in ANDROID 5.1 see above runtime log for Android 5.1 |
Ah I see. I will have to test a bit more. Hopefully its enough to add a link to math. |
I managed to do some testing in the emulator, but only on x86 arch and there it seems to work now. I opened a PR in the Python for android project here: kivy/python-for-android#2399 |
Great.. Now this is working in Android 5.1 |
Great! |
I have build apk kivy example code but it is crashing ...runtime log shown below
######buildozer requiremnts is below
##requirements = python3,kivy==2.0.0,plyer,android,pyjnius,pymunk,cffi,pycparser
I/python (15523): [INFO ] [GL ] Texture max size <4096>
I/python (15523): [INFO ] [GL ] Texture max units <8>
I/python (15523): [INFO ] [Window ] auto add sdl2 input provider
I/python (15523): [INFO ] [Window ] virtual keyboard not allowed, single mode, not docked
I/python (15523): [INFO ] [Text ] Provider: sdl2
I/python (15523): /home/sahil/app_test_kivy/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/tone/cffi/cparser.py:162: UserWarning: Global variable '_cpBBNewForExtents' in cdef(): for consistency with C it should have a storage class specifier (usually 'extern')
I/python (15523): /home/sahil/app_test_kivy/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/tone/cffi/cparser.py:162: UserWarning: Global variable '_cpBBNewForCircle' in cdef(): for consistency with C it should have a storage class specifier (usually 'extern')
I/python (15523): /home/sahil/app_test_kivy/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/tone/cffi/cparser.py:162: UserWarning: Global variable '_cpBBIntersects' in cdef(): for consistency with C it should have a storage class specifier (usually 'extern')
I/python (15523): /home/sahil/app_test_kivy/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/tone/cffi/cparser.py:162: UserWarning: Global variable '_cpBBContainsBB' in cdef(): for consistency with C it should have a storage class specifier (usually 'extern')
I/python (15523): /home/sahil/app_test_kivy/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/tone/cffi/cparser.py:162: UserWarning: Global variable '_cpBBContainsVect' in cdef(): for consistency with C it should have a storage class specifier (usually 'extern')
I/python (15523): /home/sahil/app_test_kivy/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/tone/cffi/cparser.py:162: UserWarning: Global variable '_cpBBMerge' in cdef(): for consistency with C it should have a storage class specifier (usually 'extern')
I/python (15523): /home/sahil/app_test_kivy/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/tone/cffi/cparser.py:162: UserWarning: Global variable '_cpBBExpand' in cdef(): for consistency with C it should have a storage class specifier (usually 'extern')
I/python (15523): /home/sahil/app_test_kivy/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/tone/cffi/cparser.py:162: UserWarning: Global variable '_cpBBCenter' in cdef(): for consistency with C it should have a storage class specifier (usually 'extern')
I/python (15523): /home/sahil/app_test_kivy/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/tone/cffi/cparser.py:162: UserWarning: Global variable '_cpBBArea' in cdef(): for consistency with C it should have a storage class specifier (usually 'extern')
I/python (15523): /home/sahil/app_test_kivy/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/tone/cffi/cparser.py:162: UserWarning: Global variable '_cpBBMergedArea' in cdef(): for consistency with C it should have a storage class specifier (usually 'extern')
I/python (15523): /home/sahil/app_test_kivy/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/tone/cffi/cparser.py:162: UserWarning: Global variable '_cpBBSegmentQuery' in cdef(): for consistency with C it should have a storage class specifier (usually 'extern')
I/python (15523): /home/sahil/app_test_kivy/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/tone/cffi/cparser.py:162: UserWarning: Global variable '_cpBBIntersectsSegment' in cdef(): for consistency with C it should have a storage class specifier (usually 'extern')
I/python (15523): /home/sahil/app_test_kivy/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/tone/cffi/cparser.py:162: UserWarning: Global variable '_cpBBClampVect' in cdef(): for consistency with C it should have a storage class specifier (usually 'extern')
I/python (15523): Loading chipmunk for Linux (32bit) [/data/data/org.test.tone/files/app/_python_bundle/site-packages/pymunk/libchipmunk.so]
I/python (15523): Failed to load Pymunk library.
I/python (15523): This error usually means that you don't have a compiled version of Chipmunk in
I/python (15523): the correct spot where Pymunk can find it. If you tried to run Pymunk without
I/python (15523): installing it properly this can be the result.
I/python (15523): The good news is that it is usually enough (at least on *nix and OS X) to
I/python (15523): run the build command:
I/python (15523): You compile Chipmunk with
I/python (15523): > python setup.py build_ext --inplace
I/python (15523): and then verify with
I/python (15523): > python -m pymunk.test
I/python (15523): (for complete instructions please see the readme file)
I/python (15523): Another cause of this problem could be if you didnt included the Chipmunk
I/python (15523): library when using a freeze tool such as Py2exe or PyInstaller. Please see the
I/python (15523): examples for how to include the library file when freezing a binary.
I/python (15523): If it still doesnt work, please report as a bug on the issue tracker at
I/python (15523): https://github.com/viblo/pymunk/issues
I/python (15523): Remember to include information about your OS, which version of python you use
I/python (15523): and the version of pymunk you tried to run. A description of what you did to
I/python (15523): trigger the error is also good. Please include the exception traceback if any
I/python (15523): (usually found below this message).
I/python (15523): Traceback (most recent call last):
I/python (15523): File "/home/sahil/app_test_kivy/.buildozer/android/app/main.py", line 33, in
I/python (15523): File "/home/sahil/app_test_kivy/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/tone/pymunk/init.py", line 58, in
I/python (15523): File "/home/sahil/app_test_kivy/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/tone/pymunk/_chipmunk_cffi.py", line 3, in
I/python (15523): File "/home/sahil/app_test_kivy/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/tone/pymunk/_chipmunk_cffi_abi.py", line 1475, in
I/python (15523): File "/home/sahil/app_test_kivy/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/tone/pymunk/_libload.py", line 50, in load_library
I/python (15523): File "/home/sahil/app_test_kivy/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/tone/cffi/api.py", line 146, in dlopen
I/python (15523): File "/home/sahil/app_test_kivy/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/tone/cffi/api.py", line 828, in _make_ffi_library
I/python (15523): File "/home/sahil/app_test_kivy/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/tone/cffi/api.py", line 823, in _load_backend_lib
I/python (15523): OSError: cannot load library '/data/data/org.test.tone/files/app/_python_bundle/site-packages/pymunk/libchipmunk.so': dlopen failed: cannot locate symbol "__sF" referenced by "libchipmunk.so".... Additionally, ctypes.util.find_library() did not manage to locate a library called '/data/data/org.test.tone/files/app/_python_bundle/site-packages/pymunk/libchipmunk.so'
I/python (15523): Python for android ended.
The text was updated successfully, but these errors were encountered: