Closed
Description
I think this is a p4a issue rather than a kivy one or a buildozer one. I get an apk from the build process. I install it on my android device. It installs ok. It never runs successfully. The relevant bit of adb logcat pasted is below.
Versions
- Python 3.7.1:
- OS: Android
- Kivy: github/master
- Cython: 0.28.6
Description
Aborts on every run on Android 8.1
buildozer.spec
[app]
title = ZAPS Mahjong Scorer
package.name = ZAPSMahjongScorer
package.domain = es.bacchant.mahjong
source.dir = /src/src
source.exclude_dirs = images
version.regex = __version__ = ['"](.*)['"]
version.filename = %(source.dir)s/main.py
requirements = python3,kivy,sqlite3,requests,urllib3,chardet,certifi,idna,android,openssl,pyjnius
presplash.filename = %(source.dir)s/images/chipmunk.jpg
icon.filename = %(source.dir)s/images/icon1.png
orientation = portrait
osx.python_version = 3
osx.kivy_version = 1.9.1
fullscreen = 1
android.api = 27
android.minapi = 21
android.ndk = 17c
android.ndk_api = 21
android.private_storage = True
android.ndk_path = /opt/crystax-ndk-10.3.2
android.sdk_path = /opt/android/android-sdk/
p4a.branch = master
android.arch = armeabi-v7a
p4a.bootstrap = sdl2
[buildozer]
log_level = 2
warn_on_root = 1
build_dir = /home/user/build
bin_dir = /src
Logs
10240 10265 I SDL : SDL_Android_Init()
10240 10265 I SDL : SDL_Android_Init() finished!
10240 10265 I python : Initializing Python for Android
10240 10265 I python : Changing directory to the one provided by ANDROID_ARGUMENT
10240 10265 I python : /mnt/expand/e6b17011-5846-4bcf-bf8e-d115767da9f0/user/0/es.bacchant.mahjong.zapsmahjongscorer/files/app
10240 10265 I python : Preparing to initialize python
10240 10265 I python : _python_bundle dir exists
10240 10265 I python : calculated paths to be...
10240 10265 I python : /mnt/expand/e6b17011-5846-4bcf-bf8e-d115767da9f0/user/0/es.bacchant.mahjong.zapsmahjongscorer/files/app/_python_bundle/stdlib.zip:/mnt/expand/e6b17011-5846-4bcf-bf8e-d115767da9f0/user/0/es.bacchant.mahjong.zapsmahjongscor
10240 10265 I python : set wchar paths...
of crash
10240 10265 F libc : Fatal signal 6 (SIGABRT), code -6 in tid 10265 (SDLThread), pid 10240 (psmahjongscorer)
10270 10270 W crash_dump32: type=1400 audit(0.0:43620): avc: denied { search } for uid=10242 name="/" dev="tmpfs" ino=15416 scontext=u:r:crash_dump:s0:c512,c768 tcontext=u:object_r:tmpfs:s0 tclass=dir permissive=0
10270 10270 I chatty : uid=10242(es.bacchant.mahjong.zapsmahjongscorer) crash_dump32 identical 8 lines
10270 10270 W crash_dump32: type=1400 audit(0.0:43629): avc: denied { search } for uid=10242 name="/" dev="tmpfs" ino=15416 scontext=u:r:crash_dump:s0:c512,c768 tcontext=u:object_r:tmpfs:s0 tclass=dir permissive=0
10270 10270 W crash_dump32: type=1400 audit(0.0:43630): avc: denied { search } for uid=10242 name="app" dev="dm-2" ino=4522 scontext=u:r:crash_dump:s0:c512,c768 tcontext=u:object_r:app_data_file:s0:c512,c768 tclass=dir permissive=0
10270 10270 W crash_dump32: type=1400 audit(0.0:43631): avc: denied { search } for uid=10242 name="app" dev="dm-2" ino=4522 scontext=u:r:crash_dump:s0:c512,c768 tcontext=u:object_r:app_data_file:s0:c512,c768 tclass=dir permissive=0
10270 10270 I crash_dump32: obtaining output fd from tombstoned, type: kDebuggerdTombstone
2202 2202 I /system/bin/tombstoned: received crash request for pid 10240
10270 10270 I crash_dump32: performing dump of process 10240 (target tid = 10265)
10270 10270 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
10270 10270 F DEBUG : Build fingerprint: 'motorola/cedric/cedric:8.1.0/OPPS28.85-13-2/d04a4:user/release-keys'
10270 10270 F DEBUG : Revision: 'p500'
10270 10270 F DEBUG : ABI: 'arm'
10270 10270 F DEBUG : pid: 10240, tid: 10265, name: SDLThread >>> es.bacchant.mahjong.zapsmahjongscorer <<<
10270 10270 F DEBUG : signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
10270 10270 F DEBUG : r0 00000000 r1 00002819 r2 00000006 r3 00000008
10270 10270 F DEBUG : r4 00002800 r5 00002819 r6 97c55a74 r7 0000010c
10270 10270 F DEBUG : r8 00000000 r9 00000000 sl 00000000 fp 97c55ab8
10270 10270 F DEBUG : ip 00000000 sp 97c55a60 lr b464290d pc b463c3fa cpsr 200e0030
10270 10270 W crash_dump32: type=1400 audit(0.0:43632): avc: denied { search } for uid=10242 name="/" dev="tmpfs" ino=15416 scontext=u:r:crash_dump:s0:c512,c768 tcontext=u:object_r:tmpfs:s0 tclass=dir permissive=0
10270 10270 F DEBUG :
10270 10270 F DEBUG : backtrace:
10270 10270 F DEBUG : #00 pc 0001a3fa /system/lib/libc.so (abort+63)
10270 10270 F DEBUG : #01 pc 0016f88c /mnt/expand/e6b17011-5846-4bcf-bf8e-d115767da9f0/app/es.bacchant.mahjong.zapsmahjongscorer-tjLqIM63scHBfuTisLfQ4g==/lib/arm/libpython3.7m.so