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

Android app crash on opening - Python Initialize #1987

Closed
npetitclerc opened this issue Sep 18, 2019 · 4 comments
Closed

Android app crash on opening - Python Initialize #1987

npetitclerc opened this issue Sep 18, 2019 · 4 comments
Labels

Comments

@npetitclerc
Copy link

Versions

  • Python: 3.7.1
  • OS: Building on macOS Mojave 10.14.6
    for Android (testing on Pixel and Samsung Galaxy S9)
  • Cython: 0.29.13

Description

I'm just trying to build and run the hello world app. I can build it using p4a, but it crashes instantly on 2 test devices (a Pixel and a Samsung Galaxy S9 - both running Android 9).
Using adb debugger I have narrowed it down to the call of Py_Initialize in .buildozer//android/platform/python-for-android/pythonforandroid/bootstraps/common/build/jni/application/src/start.c
which throws a
Fatal signal 6 (SIGABRT), code -6 (SI_TKILL)

Commands run to build APK:

conda create --name kivy_env3 python=3.7 -y
conda activate kivy_env3 
pip install --upgrade pip
pip3 uninstall cython
conda install cython <---- Using conda's cython is the trick that gets around the linking issues with cython

pip3 install git+https://github.com/kivy/python-for-android.git
Successfully installed python-for-android-2019.8.9.1.dev0

pip3 install --upgrade kivy

p4a clean_all
p4a apk 2>&1 | tee out.log

.p4a file:

--private /Users/nic/projects/kivy/hello_world3/
--package org.test.myhelloworld3
--name MyHelloWorld3
--version 0.1

--sdk_dir /Users/nic/Library/Android/sdk
--ndk_dir /Users/nic/projects/kivy/NDK/android-ndk-r20
--android_api 29

--arch arm64-v8a

--orientation portrait
--icon ic_launcher.png

--bootstrap sdl2
--requirements python3,kivy

--debug

Logs from running the app and adb debug with:

adb logcat | grep -E 'python|hello'

...
09-18 10:47:36.954  6323  6323 V pythonutil: Loading library: python2.7
09-18 10:47:36.955  6323  6323 V pythonutil: Library loading error: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/org.test.myhelloworld3-SgSyhd5hARBoBEXGn8Xztw==/base.apk"],nativeLibraryDirectories=[/data/app/org.test.myhelloworld3-SgSyhd5hARBoBEXGn8Xztw==/lib/arm64, /data/app/org.test.myhelloworld3-SgSyhd5hARBoBEXGn8Xztw==/base.apk!/lib/arm64-v8a, /system/lib64]]] couldn't find "libpython2.7.so"
09-18 10:47:36.955  6323  6323 V pythonutil: Loading library: python3.5m
09-18 10:47:36.956  6323  6323 V pythonutil: Library loading error: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/org.test.myhelloworld3-SgSyhd5hARBoBEXGn8Xztw==/base.apk"],nativeLibraryDirectories=[/data/app/org.test.myhelloworld3-SgSyhd5hARBoBEXGn8Xztw==/lib/arm64, /data/app/org.test.myhelloworld3-SgSyhd5hARBoBEXGn8Xztw==/base.apk!/lib/arm64-v8a, /system/lib64]]] couldn't find "libpython3.5m.so"
09-18 10:47:36.956  6323  6323 V pythonutil: Loading library: python3.6m
09-18 10:47:36.956  6323  6323 V pythonutil: Library loading error: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/org.test.myhelloworld3-SgSyhd5hARBoBEXGn8Xztw==/base.apk"],nativeLibraryDirectories=[/data/app/org.test.myhelloworld3-SgSyhd5hARBoBEXGn8Xztw==/lib/arm64, /data/app/org.test.myhelloworld3-SgSyhd5hARBoBEXGn8Xztw==/base.apk!/lib/arm64-v8a, /system/lib64]]] couldn't find "libpython3.6m.so"
09-18 10:47:36.956  6323  6323 V pythonutil: Loading library: python3.7m
09-18 10:47:36.958  6323  6323 V pythonutil: Loading library: main
09-18 10:47:36.960  6323  6323 V pythonutil: Failed to load _io.so or unicodedata.so...but that's okay.
09-18 10:47:36.960  6323  6323 V pythonutil: Unsatisfied linker when loading ctypes
09-18 10:47:36.960  6323  6323 V pythonutil: Loaded everything!
09-18 10:47:37.010  6469 17460 V WindowManager: Relayout Window{17e2a7b u0 org.test.myhelloworld3/org.kivy.android.PythonActivity}: viewVisibility=0 req=1080x2076 {(0,0)(fillxfill) sim={adjust=pan} ty=BASE_APPLICATION fmt=TRANSLUCENT wanim=0x1030001 sysuil=true
09-18 10:47:37.016  6084  6084 I SurfaceFlinger: id=3488 createSurf (1080x2076),4 flag=404, SurfaceView - org.test.myhelloworld3/org.kivy.android.PythonActivity@4ba47b1@0[6323]#0
09-18 10:47:37.017  6084  6084 I SurfaceFlinger: id=3489 createSurf (1080x2076),1024 flag=20404, Background for -SurfaceView - org.test.myhelloworld3/org.kivy.android.PythonActivity@4ba47b1@0[6323]#0
09-18 10:47:37.017  6323  6323 D SurfaceView: show() Surface(name=SurfaceView - org.test.myhelloworld3/org.kivy.android.PythonActivity@4ba47b1@0[6323])/@0x90ea496 org.libsdl.app.SDLSurface{4ba47b1 VFE...... .F....ID 0,0-1080,2076}
09-18 10:47:37.026  6084  6084 I SurfaceFlinger:      Device | 0x72d27f2500 | 0000 | RGBA_8888 |   0.0    0.0 1080.0 2076.0 |    0    0 1080 2076 | org.test.myhelloworld3/org.kivy.android.PythonActivity[6323]#0
09-18 10:47:37.030  6323  6360 V SDL     : Running main function SDL_main from library /data/app/org.test.myhelloworld3-SgSyhd5hARBoBEXGn8Xztw==/lib/arm64/libmain.so
09-18 10:47:37.030  6469 17460 D WindowManager: finishDrawingWindow: Window{17e2a7b u0 org.test.myhelloworld3/org.kivy.android.PythonActivity} mDrawState=HAS_DRAWN
09-18 10:47:37.031  6323  6360 I python  : Initializing Python for Android
09-18 10:47:37.031  6323  6360 I python  : Setting additional env vars from p4a_env_vars.txt
09-18 10:47:37.031  6323  6360 I python  : Changing directory to the one provided by ANDROID_ARGUMENT
09-18 10:47:37.031  6323  6360 I python  : /data/user/0/org.test.myhelloworld3/files/app
09-18 10:47:37.031  6323  6360 I python  : Preparing to initialize python
09-18 10:47:37.031  6323  6360 I python  : _python_bundle dir exists
09-18 10:47:37.031  6323  6360 I python  : calculated paths to be...
09-18 10:47:37.031  6323  6360 I python  : /data/user/0/org.test.myhelloworld3/files/app/_python_bundle/stdlib.zip:/data/user/0/org.test.myhelloworld3/files/app/_python_bundle/modules
09-18 10:47:37.032  6323  6360 I python  : set wchar paths...
09-18 10:47:37.034  6323  6323 V InputMethodManager: Starting input: tba=org.test.myhelloworld3 ic=null mNaviBarColor -855310 mIsGetNaviBarColorSuccess true , NavVisible : true , NavTrans : false
09-18 10:47:37.042  6469 17460 V WindowManager: Relayout Window{17e2a7b u0 org.test.myhelloworld3/org.kivy.android.PythonActivity}: viewVisibility=0 req=1080x2076 {(0,0)(fillxfill) sim={adjust=pan} ty=BASE_APPLICATION fmt=TRANSLUCENT wanim=0x1030001 sysuil=true
09-18 10:47:37.045  6469  6488 D WindowManager: setSystemUiVisibility: vis= 0x118, fullscreenVis= 0x0, dockedVis= 0x0, win=Window{17e2a7b u0 org.test.myhelloworld3/org.kivy.android.PythonActivity}
09-18 10:47:37.046  6323  6360 F libc    : Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 6360 (SDLThread), pid 6323 (t.myhelloworld3)
09-18 10:47:37.060  6323  6323 D SurfaceView: show() Surface(name=SurfaceView - org.test.myhelloworld3/org.kivy.android.PythonActivity@4ba47b1@0[6323])/@0x90ea496 org.libsdl.app.SDLSurface{4ba47b1 VFE...... .F....ID 0,0-1080,2004}
09-18 10:47:37.074  6469 15502 D WindowManager: finishDrawingWindow: Window{17e2a7b u0 org.test.myhelloworld3/org.kivy.android.PythonActivity} mDrawState=HAS_DRAWN
09-18 10:47:37.090  6084  6084 I SurfaceFlinger:      Device | 0x72d27f11c0 | 0000 | RGBA_8888 |   0.0    0.0 1080.0 2076.0 |    0    0 1080 2076 | org.test.myhelloworld3/org.kivy.android.PythonActivity[6323]#0
09-18 10:47:37.108  6365  6365 F DEBUG   : pid: 6323, tid: 6360, name: SDLThread  >>> org.test.myhelloworld3 <<<
09-18 10:47:37.109  6365  6365 F DEBUG   :     #01 pc 0000000000178cb4  /data/app/org.test.myhelloworld3-SgSyhd5hARBoBEXGn8Xztw==/lib/arm64/libpython3.7m.so
09-18 10:47:37.780  6469  6373 W ActivityManager: crash : org.test.myhelloworld3,0
09-18 10:47:37.784  6469  6373 W ActivityManager:   Force finishing activity org.test.myhelloworld3/org.kivy.android.PythonActivity
@z4nD4R
Copy link

z4nD4R commented Nov 11, 2019

Hello,

I'm facing similar issue with Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) message. Any application written in kivy works like charm on PC, but crashed immediately after start on my phone.

Python 3.7
Buildozer 0.39
Kivy 1.11.1
OS Ubuntu 18.04
Phone Samsung S9

@tsrift
Copy link

tsrift commented Nov 15, 2019

Help!
I'm struggling to make "Hello world" app running on android. It's crushing immediately after launching
with python 3.7.
[https://github.com/kivy/buildozer/issues/990]
In buildozer.spec
when requirements = python3,kivy
logcat is full of permissions errors, finishing with:
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe6 in position 77317: invalid continuation byte
And when I add these these requirements:
sqlite3,openssl,python3,kivy,requests,urllib3,chardet,certifi,idna,android,pyjnius,
logcat looks like this, also finishing with the same error:

11-04 18:53:50.139 1115 1150 D AutomaticBrightnessController: onSensorChanged: lux = 8.0
11-04 18:53:50.152 495 17699 D AudioTrackShared: front(25280), mIsOut(0), mAvailToClient=0 stepCount=320 minimum=320, FUTEX_WAKE
11-04 18:53:50.172 495 17699 D AudioTrackShared: front(25600), mIsOut(0), mAvailToClient=0 stepCount=320 minimum=320, FUTEX_WAKE
11-04 18:53:50.193 495 17699 D AudioTrackShared: front(25920), mIsOut(0), mAvailToClient=0 stepCount=320 minimum=320, FUTEX_WAKE
11-04 18:53:50.213 495 17699 D AudioTrackShared: front(26240), mIsOut(0), mAvailToClient=0 stepCount=320 minimum=320, FUTEX_WAKE
11-04 18:53:50.233 495 17699 D AudioTrackShared: front(26560), mIsOut(0), mAvailToClient=0 stepCount=320 minimum=320, FUTEX_WAKE
11-04 18:53:50.253 495 17699 D AudioTrackShared: front(26880), mIsOut(0), mAvailToClient=0 stepCount=320 minimum=320, FUTEX_WAKE
11-04 18:53:50.274 495 17699 D AudioTrackShared: front(27200), mIsOut(0), mAvailToClient=0 stepCount=320 minimum=320, FUTEX_WAKE
11-04 18:53:50.293 495 17699 D AudioTrackShared: front(27520), mIsOut(0), mAvailToClient=0 stepCount=320 minimum=320, FUTEX_WAKE
11-04 18:53:50.313 495 17699 D AudioTrackShared: front(27840), mIsOut(0), mAvailToClient=0 stepCount=320 minimum=320, FUTEX_WAKE
11-04 18:53:50.333 495 17699 D AudioTrackShared: front(28160), mIsOut(0), mAvailToClient=0 stepCount=320 minimum=320, FUTEX_WAKE
11-04 18:53:50.353 495 17699 D AudioTrackShared: front(28480), mIsOut(0), mAvailToClient=0 stepCount=320 minimum=320, FUTEX_WAKE
11-04 18:53:50.373 495 17699 D AudioTrackShared: front(28800), mIsOut(0), mAvailToClient=0 stepCount=320 minimum=320, FUTEX_WAKE
11-04 18:53:50.393 495 17699 D AudioTrackShared: front(29120), mIsOut(0), mAvailToClient=0 stepCount=320 minimum=320, FUTEX_WAKE
11-04 18:53:50.413 495 17699 D AudioTrackShared: front(29440), mIsOut(0), mAvailToClient=0 stepCount=320 minimum=320, FUTEX_WAKE
11-04 18:53:50.433 495 17699 D AudioTrackShared: front(29760), mIsOut(0), mAvailToClient=0 stepCount=320 minimum=320, FUTEX_WAKE
11-04 18:53:50.453 495 17699 D AudioTrackShared: front(30080), mIsOut(0), mAvailToClient=0 stepCount=320 minimum=320, FUTEX_WAKE
11-04 18:53:50.473 495 17699 D AudioTrackShared: front(30400), mIsOut(0), mAvailToClient=0 stepCount=320 minimum=320, FUTEX_WAKE
11-04 18:53:50.493 495 17699 D AudioTrackShared: front(30720), mIsOut(0), mAvailToClient=0 stepCount=320 minimum=320, FUTEX_WAKE
11-04 18:53:50.513 495 17699 D AudioTrackShared: front(31040), mIsOut(0), mAvailToClient=0 stepCount=320 minimum=320, FUTEX_WAKE
11-04 18:53:50.533 495 17699 D AudioTrackShared: front(31360), mIsOut(0), mAvailToClient=0 stepCount=320 minimum=320, FUTEX_WAKE
11-04 18:53:50.553 495 17699 D AudioTrackShared: front(31680), mIsOut(0), mAvailToClient=0 stepCount=320 minimum=320, FUTEX_WAKE
11-04 18:53:50.573 495 17699 D AudioTrackShared: front(32000), mIsOut(0), mAvailToClient=0 stepCount=320 minimum=320, FUTEX_WAKE
11-04 18:53:50.593 495 17699 D AudioTrackShared: front(32320), mIsOut(0), mAvailToClient=0 stepCount=320 minimum=320, FUTEX_WAKE
11-04 18:53:50.613 495 17699 D AudioTrackShared: front(32640), mIsOut(0), mAvailToClient=0 stepCount=320 minimum=320, FUTEX_WAKE
11-04 18:53:50.633 495 17699 D AudioTrackShared: front(32960), mIsOut(0), mAvailToClient=0 stepCount=320 minimum=320, FUTEX_WAKE
11-04 18:53:50.653 495 17699 D AudioTrackShared: front(33280), mIsOut(0), mAvailToClient=0 stepCount=320 minimum=320, FUTEX_WAKE
11-04 18:53:50.673 495 17699 D AudioTrackShared: front(33600), mIsOut(0), mAvailToClient=0 stepCount=320 minimum=320, FUTEX_WAKE
11-04 18:53:50.693 495 17699 D AudioTrackShared: front(33920), mIsOut(0), mAvailToClient=0 stepCount=320 minimum=320, FUTEX_WAKE
11-04 18:53:50.713 495 17699 D AudioTrackShared: front(34240), mIsOut(0), mAvailToClient=0 stepCount=320 minimum=320, FUTEX_WAKE
11-04 18:53:50.733 495 17699 D AudioTrackShared: front(34560), mIsOut(0), mAvailToClient=0 stepCount=320 minimum=320, FUTEX_WAKE
11-04 18:53:50.753 495 17699 D AudioTrackShared: front(34880), mIsOut(0), mAvailToClient=0 stepCount=320 minimum=320, FUTEX_WAKE
11-04 18:53:50.773 495 17699 D AudioTrackShared: front(35200), mIsOut(0), mAvailToClient=0 stepCount=320 minimum=320, FUTEX_WAKE
11-04 18:53:50.794 495 17699 D AudioTrackShared: front(35520), mIsOut(0), mAvailToClient=0 stepCount=320 minimum=320, FUTEX_WAKE
11-04 18:53:50.813 495 17699 D AudioTrackShared: front(35840), mIsOut(0), mAvailToClient=0 stepCount=320 minimum=320, FUTEX_WAKE
11-04 18:53:50.833 495 17699 D AudioTrackShared: front(36160), mIsOut(0), mAvailToClient=0 stepCount=320 minimum=320, FUTEX_WAKE
11-04 18:53:50.853 495 17699 D AudioTrackShared: front(36480), mIsOut(0), mAvailToClient=0 stepCount=320 minimum=320, FUTEX_WAKE
11-04 18:53:50.873 495 17699 D AudioTrackShared: front(36800), mIsOut(0), mAvailToClient=0 stepCount=320 minimum=320, FUTEX_WAKE
11-04 18:53:50.893 495 17699 D AudioTrackShared: front(37120), mIsOut(0), mAvailToClient=0 stepCount=320 minimum=320, FUTEX_WAKE
11-04 18:53:50.913 495 17699 D AudioTrackShared: front(37440), mIsOut(0), mAvailToClient=0 stepCount=320 minimum=320, FUTEX_WAKE
11-04 18:53:50.919 1115 1115 E WifiTrafficPoller: TRAFFIC_STATS_POLL true Token 300 num clients 17
11-04 18:53:50.920 1115 1115 E WifiTrafficPoller: packet count Tx=259921 Rx=432465
11-04 18:53:50.933 495 17699 D AudioTrackShared: front(37760), mIsOut(0), mAvailToClient=0 stepCount=320 minimum=320, FUTEX_WAKE
11-04 18:53:50.952 495 17699 D AudioTrackShared: front(38080), mIsOut(0), mAvailToClient=0 stepCount=320 minimum=320, FUTEX_WAKE
11-04 18:53:50.972 495 17699 D AudioTrackShared: front(38400), mIsOut(0), mAvailToClient=0 stepCount=320 minimum=320, FUTEX_WAKE
11-04 18:53:50.974 1115 1277 D WifiStateMachine: ConnectedState (when=-2ms what=131155 arg1=146!CMD_RSSI_POLL rt=100623738/141145452 146 0 "ARROW_017930" 0c:b9:12:01:79:30 rssi=-36 f=2422 sc=60 link=65 tx=0,0, 0,0, 0,0 rx=0,0 bcn=0 [on:0 tx:0 rx:0 period:2559] from screen [on:0 period:932000638] gl hn u24 rssi=-34 ag=0 hr ticks 0,0,15 ls-=0 [56,56,56,56,61] brc=0 lrc=0 offload-stoppedmmls=
11-04 18:53:50.974 1115 1277 D WifiStateMachine: Fail=4 Retry=27 MulRetry=17 ACKFail=369 FCSErr=454 TxOk=142 RxOk=236 Rst:Reason=0 Time=0 RoamFail:Times=0 Time=0 TxDone:IsARP=0 ArrDrv=0 EnQ=0 DeQ=0 LeaveDrv=0 Curr=0 CurrTime=0
11-04 18:53:50.974 1115 1277 D WifiStateMachine: fw log: 1 769 ScanCnt: 3 0 2 0 RoamCnt: 1 90 132 RFCnt: 3 3 0 0 0 CoexCnt: 0 0 1 LPCnt: 3354 3392 2 BBCnt: 0 0 0 0 0 0 0 0 0 0 50462752 41877504 MacRXCnt: 3613217 1289670 6 549915 229129 0 0 3624801901 0 0 0 0 0 MacTXCnt: 688988032 0
11-04 18:53:50.975 1115 1277 D WifiStateMachine: L2ConnectedState (when=-4ms what=131155 arg1=146!CMD_RSSI_POLL rt=100623739/141145453 146 0 "ARROW_017930" 0c:b9:12:01:79:30 rssi=-36 f=2422 sc=60 link=65 tx=0,0, 0,0, 0,0 rx=0,0 bcn=0 [on:0 tx:0 rx:0 period:1] from screen [on:0 period:932000639] gl hn u24 rssi=-34 ag=0 hr ticks 0,0,15 ls-=0 [56,56,56,56,61] brc=0 lrc=0 offload-stoppedmmls=
11-04 18:53:50.975 1115 1277 D WifiStateMachine: Fail=4 Retry=27 MulRetry=17 ACKFail=369 FCSErr=454 TxOk=142 RxOk=236 Rst:Reason=0 Time=0 RoamFail:Times=0 Time=0 TxDone:IsARP=0 ArrDrv=0 EnQ=0 DeQ=0 LeaveDrv=0 Curr=0 CurrTime=0
11-04 18:53:50.975 1115 1277 D WifiStateMachine: fw log: 1 769 ScanCnt: 3 0 2 0 RoamCnt: 1 90 132 RFCnt: 3 3 0 0 0 CoexCnt: 0 0 1 LPCnt: 3354 3392 2 BBCnt: 0 0 0 0 0 0 0 0 0 0 50462752 41877504 MacRXCnt: 3613217 1289670 6 549915 229129 0 0 3624801901 0 0 0 0 0 MacTXCnt: 688988032 0
11-04 18:53:50.979 1115 1277 D WifiStateMachine: get link layer stats 0
11-04 18:53:50.982 1115 1277 D WifiHW : enter -->wifi_send_command cmd=IFNAME=wlan0 SIGNAL_POLL
11-04 18:53:50.982 1332 1332 D wpa_supplicant: wlan0: Control interface command 'SIGNAL_POLL'
11-04 18:53:50.986 1115 1277 D WifiHW : leave --> reply=RSSI=-36
11-04 18:53:50.986 1115 1277 D WifiHW : LINKSPEED=65
11-04 18:53:50.986 1115 1277 D WifiHW : NOISE=9999
11-04 18:53:50.986 1115 1277 D WifiHW : FREQUENCY=2422
11-04 18:53:50.986 1115 1277 D WifiHW :
11-04 18:53:50.989 1115 1277 I WifiStateMachine: fetchRssiLinkSpeedAndFrequencyNative, newRssi:-36, newLinkSpeed:65, SSID:"ARROW_017930"
11-04 18:53:50.989 1115 1277 D WifiHW : enter -->wifi_send_command cmd=IFNAME=wlan0 DRIVER GET_STA_LINK_DETECT
11-04 18:53:50.989 1332 1332 D wpa_supplicant: wlan0: Control interface command 'DRIVER GET_STA_LINK_DETECT'
11-04 18:53:50.989 1332 1332 D wpa_supplicant: iface wlan0 recv cmd GET_STA_LINK_DETECT
11-04 18:53:50.989 1332 1332 D wpa_supplicant: get_sta_link_detect
11-04 18:53:50.989 1332 1332 D wpa_supplicant: nl80211: Test Mode buflen = 16, ifindex=23
11-04 18:53:50.992 495 17699 D AudioTrackShared: front(38400), mIsOut(0), mAvailToClient=320 stepCount=320 minimum=320, FUTEX_WAKE
11-04 18:53:50.996 1115 1277 D WifiHW : leave --> reply=
11-04 18:53:50.996 1115 1277 D WifiHW : Fail=0 Retry=8 MulRetry=2 ACKFail=16 FCSErr=57 TxOk=54 RxOk=37 Rst:Reason=0 Time=0 RoamFail:Times=0 Time=0 TxDone:IsARP=0 ArrDrv=0 EnQ=0 DeQ=0 LeaveDrv=0 Curr=0 CurrTime=0
11-04 18:53:50.996 1115 1277 D WifiHW : fw log: 1 100795137 ScanCnt: 29 7 34 0 RoamCnt: 1 90 132 RFCnt: 132 132 0 0 0 CoexCnt: 0 0 1 LPCnt: 3354 3392 0 BBCnt: 1043 789 0 653 221 0 22 2 98 100 50462752 41877504 MacRXCnt: 3613417 1289727 6 549952 229162 0 0 3627826587 0 0 0 0 0 MacTXCnt: 689237769 0
11-04 18:53:50.996 1115 1277 E WifiStateMachine: wifiLinkStatics=
11-04 18:53:50.996 1115 1277 E WifiStateMachine: Fail=0 Retry=8 MulRetry=2 ACKFail=16 FCSErr=57 TxOk=54 RxOk=37 Rst:Reason=0 Time=0 RoamFail:Times=0 Time=0 TxDone:IsARP=0 ArrDrv=0 EnQ=0 DeQ=0 LeaveDrv=0 Curr=0 CurrTime=0
11-04 18:53:50.996 1115 1277 E WifiStateMachine: fw log: 1 100795137 ScanCnt: 29 7 34 0 RoamCnt: 1 90 132 RFCnt: 132 132 0 0 0 CoexCnt: 0 0 1 LPCnt: 3354 3392 0 BBCnt: 1043 789 0 653 221 0 22 2 98 100 50462752 41877504 MacRXCnt: 3613417 1289727 6 549952 229162 0 0 3627826587 0 0 0 0 0 MacTXCnt: 689237769 0
11-04 18:53:50.996 1115 1277 D WifiStateMachine: mLastSignalLevel:4, newSignalLevel:4
11-04 18:53:50.997 1115 1277 E WifiConfigStore: updateConfiguration freq=2422 BSSID=0c:b9:12:01:79:30 RSSI=-36 "ARROW_017930"WPA_PSK
11-04 18:53:51.001 1115 1277 V ActivityManager: Broadcast sticky: Intent { act=android.net.wifi.RSSI_CHANGED flg=0x4000010 (has extras) } ordered=false userid=-1 callerApp=ProcessRecord{4a21b7f 1115:system/1000}
11-04 18:53:51.009 1115 1322 D WifiWatchdogStateMachine: RSSI current: 4 new: -36, 4
11-04 18:53:51.012 495 17699 D AudioTrackShared: front(38720), mIsOut(0), mAvailToClient=320 stepCount=320 minimum=320, FUTEX_WAKE
11-04 18:53:51.015 1394 1394 D StatusBar.NetworkController: slot=-10;action=android.net.wifi.RSSI_CHANGED
11-04 18:53:51.032 495 17699 D AudioTrackShared: front(38720), mIsOut(0), mAvailToClient=640 stepCount=320 minimum=320, FUTEX_WAKE
11-04 18:53:51.052 495 17699 D AudioTrackShared: front(39680), mIsOut(0), mAvailToClient=0 stepCount=320 minimum=320, FUTEX_WAKE
11-04 18:53:51.072 495 17699 D AudioTrackShared: front(40000), mIsOut(0), mAvailToClient=0 stepCount=320 minimum=320, FUTEX_WAKE
11-04 18:53:51.092 495 17699 D AudioTrackShared: front(40320), mIsOut(0), mAvailToClient=0 stepCount=320 minimum=320, FUTEX_WAKE
11-04 18:53:51.109 1115 1269 D InputReader: AP_PROF:AppLaunch_dispatchPtr:Down:100623873, ID:0, Index:2004799424
11-04 18:53:51.109 1115 1115 D SettingsInterface: from settings cache , name = three_gesture_screenshot , value = null
11-04 18:53:51.109 1115 1115 D SettingsInterface: from settings cache , name = is_show_three_gesture_alert , value = null
11-04 18:53:51.110 1115 1268 I PerfService: PerfServiceNative_boostEnableTimeoutMsAsync:3, 100
11-04 18:53:51.110 1115 1268 D PowerManagerService: userActivityFromNative
11-04 18:53:51.111 1115 1268 D PowerManagerService: userActivityNoUpdateLocked: eventTime=100623873, event=2, flags=0x0, uid=1000
11-04 18:53:51.112 1115 1268 D PowerManagerNotifier: onUserActivity: event=2, uid=1000
11-04 18:53:51.112 1115 1268 D PowerManagerService: updateUserActivitySummaryLocked: mWakefulness=Awake, mUserActivitySummary=0x1, nextTimeout=100665874 (in 41998 ms)
11-04 18:53:51.112 1115 1268 D DisplayPowerController: requestPowerState: policy=BRIGHT, useProximitySensor=false, screenBrightness=139, screenAutoBrightnessAdjustment=-0.14960629, brightnessSetByUser=true, useAutoBrightness=true, blockScreenOn=false, lowPowerMode=false, boostScreenBrightness=false, dozeScreenBrightness=-1, dozeScreenState=UNKNOWN, waitForNegativeProximity=false, changed=false
11-04 18:53:51.112 1115 1268 D PowerManagerService: updateDisplayPowerStateLocked: mDisplayReady=true, policy=3, mWakefulness=1, mWakeLockSummary=0x1, mUserActivitySummary=0x1, mBootCompleted=true, mScreenBrightnessBoostInProgress=false
11-04 18:53:51.112 1115 1268 I PerfService: PerfServiceNative_boostEnableTimeoutMsAsync:3, 100
11-04 18:53:51.115 495 17699 D AudioTrackShared: front(40640), mIsOut(0), mAvailToClient=0 stepCount=320 minimum=320, FUTEX_WAKE
11-04 18:53:51.116 1394 1394 V WallpaperService: Delivering touch event: MotionEvent { action=ACTION_DOWN, actionButton=0, id[0]=0, x[0]=945.1249, y[0]=800.583, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, metaState=0, flags=0x3, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=100623873, downTime=100623873, deviceId=2, source=0x1002 }
11-04 18:53:51.121 1115 1115 D SettingsInterface: from settings cache , name = three_gesture_screenshot , value = null
11-04 18:53:51.121 1115 1115 D SettingsInterface: from settings cache , name = is_show_three_gesture_alert , value = null
11-04 18:53:51.121 1115 1268 I PerfService: PerfServiceNative_boostEnableTimeoutMsAsync:3, 100
11-04 18:53:51.122 1115 1268 I PerfService: PerfServiceNative_boostEnableTimeoutMsAsync:3, 100
11-04 18:53:51.123 1394 1394 V WallpaperService: Delivering touch event: MotionEvent { action=ACTION_MOVE, actionButton=0, id[0]=0, x[0]=945.1249, y[0]=800.583, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, metaState=0, flags=0x3, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=100623879, downTime=100623873, deviceId=2, source=0x1002 }
11-04 18:53:51.124 1115 1115 D SettingsInterface: from settings cache , name = three_gesture_screenshot , value = null
11-04 18:53:51.125 1115 1115 D SettingsInterface: from settings cache , name = is_show_three_gesture_alert , value = null
11-04 18:53:51.125 1115 1268 I PerfService: PerfServiceNative_boostEnableTimeoutMsAsync:3, 100
11-04 18:53:51.125 1115 1268 I PerfService: PerfServiceNative_boostEnableTimeoutMsAsync:3, 100
11-04 18:53:51.129 1394 1394 V WallpaperService: Delivering touch event: MotionEvent { action=ACTION_MOVE, actionButton=0, id[0]=0, x[0]=945.1249, y[0]=800.583, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, metaState=0, flags=0x3, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=100623888, downTime=100623873, deviceId=2, source=0x1002 }
11-04 18:53:51.132 495 17699 D AudioTrackShared: front(40960), mIsOut(0), mAvailToClient=0 stepCount=320 minimum=320, FUTEX_WAKE
11-04 18:53:51.133 1115 1115 D SettingsInterface: from settings cache , name = three_gesture_screenshot , value = null
11-04 18:53:51.133 1115 1115 D SettingsInterface: from settings cache , name = is_show_three_gesture_alert , value = null
11-04 18:53:51.133 1115 1268 I PerfService: PerfServiceNative_boostEnableTimeoutMsAsync:3, 100
11-04 18:53:51.133 1115 1268 I PerfService: PerfServiceNative_boostEnableTimeoutMsAsync:3, 100
11-04 18:53:51.133 1394 1394 V WallpaperService: Delivering touch event: MotionEvent { action=ACTION_MOVE, actionButton=0, id[0]=0, x[0]=945.1249, y[0]=800.583, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, metaState=0, flags=0x3, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=100623897, downTime=100623873, deviceId=2, source=0x1002 }
11-04 18:53:51.138 1669 2519 D OpenGLRenderer: Allocate layer: 0x7f53cb7e80 256x256
11-04 18:53:51.141 1115 1115 D SettingsInterface: from settings cache , name = three_gesture_screenshot , value = null
11-04 18:53:51.141 1115 1115 D SettingsInterface: from settings cache , name = is_show_three_gesture_alert , value = null
11-04 18:53:51.142 1115 1268 I PerfService: PerfServiceNative_boostEnableTimeoutMsAsync:3, 100
11-04 18:53:51.142 1115 1268 I PerfService: PerfServiceNative_boostEnableTimeoutMsAsync:3, 100
11-04 18:53:51.142 1394 1394 V WallpaperService: Delivering touch event: MotionEvent { action=ACTION_MOVE, actionButton=0, id[0]=0, x[0]=945.1249, y[0]=800.583, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, metaState=0, flags=0x3, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=100623905, downTime=100623873, deviceId=2, source=0x1002 }
11-04 18:53:51.144 349 402 I BufferQueueProducer: com.miui.home/com.miui.home.launcher.Launcher queueBuffer: fps=0.60 dur=3307.25 max=2975.36 min=331.89
11-04 18:53:51.149 349 349 D MALI : eglCreateImageKHR:511: [Crop] 0 0 0 0 img[1080 1920]
11-04 18:53:51.150 1115 1115 D SettingsInterface: from settings cache , name = three_gesture_screenshot , value = null
11-04 18:53:51.150 1115 1115 D SettingsInterface: from settings cache , name = is_show_three_gesture_alert , value = null
11-04 18:53:51.150 1115 1268 I PerfService: PerfServiceNative_boostEnableTimeoutMsAsync:3, 100
11-04 18:53:51.151 1115 1268 I PerfService: PerfServiceNative_boostEnableTimeoutMsAsync:3, 100
11-04 18:53:51.151 1394 1394 V WallpaperService: Delivering touch event: MotionEvent { action=ACTION_MOVE, actionButton=0, id[0]=0, x[0]=945.1249, y[0]=800.583, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, metaState=0, flags=0x3, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=100623914, downTime=100623873, deviceId=2, source=0x1002 }
11-04 18:53:51.151 349 349 I SurfaceFlinger: [Built-in Screen (type:0)] fps:16.366062,dur:2994.00,max:2194.18,min:3.27
11-04 18:53:51.152 495 17699 D AudioTrackShared: front(41280), mIsOut(0), mAvailToClient=0 stepCount=320 minimum=320, FUTEX_WAKE
11-04 18:53:51.158 1115 1115 D SettingsInterface: from settings cache , name = three_gesture_screenshot , value = null
11-04 18:53:51.159 1115 1115 D SettingsInterface: from settings cache , name = is_show_three_gesture_alert , value = null
11-04 18:53:51.159 1115 1268 I PerfService: PerfServiceNative_boostEnableTimeoutMsAsync:3, 100
11-04 18:53:51.159 1115 1268 I PerfService: PerfServiceNative_boostEnableTimeoutMsAsync:3, 100
11-04 18:53:51.160 1394 1394 V WallpaperService: Delivering touch event: MotionEvent { action=ACTION_MOVE, actionButton=0, id[0]=0, x[0]=945.1249, y[0]=800.583, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, metaState=0, flags=0x3, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=100623922, downTime=100623873, deviceId=2, source=0x1002 }
11-04 18:53:51.168 1115 1115 D SettingsInterface: from settings cache , name = three_gesture_screenshot , value = null
11-04 18:53:51.168 1115 1115 D SettingsInterface: from settings cache , name = is_show_three_gesture_alert , value = null
11-04 18:53:51.168 1115 1268 I PerfService: PerfServiceNative_boostEnableTimeoutMsAsync:3, 100
11-04 18:53:51.168 1115 1268 I PerfService: PerfServiceNative_boostEnableTimeoutMsAsync:3, 100
11-04 18:53:51.171 1394 1394 V WallpaperService: Delivering touch event: MotionEvent { action=ACTION_MOVE, actionButton=0, id[0]=0, x[0]=945.1249, y[0]=800.583, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, metaState=0, flags=0x3, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=100623931, downTime=100623873, deviceId=2, source=0x1002 }
11-04 18:53:51.172 495 17699 D AudioTrackShared: front(41600), mIsOut(0), mAvailToClient=0 stepCount=320 minimum=320, FUTEX_WAKE
11-04 18:53:51.176 1115 1115 D SettingsInterface: from settings cache , name = three_gesture_screenshot , value = null
11-04 18:53:51.176 1115 1115 D SettingsInterface: from settings cache , name = is_show_three_gesture_alert , value = null
11-04 18:53:51.176 1115 1268 I PerfService: PerfServiceNative_boostEnableTimeoutMsAsync:3, 100
11-04 18:53:51.176 1115 1268 I PerfService: PerfServiceNative_boostEnableTimeoutMsAsync:3, 100
11-04 18:53:51.176 1394 1394 V WallpaperService: Delivering touch event: MotionEvent { action=ACTION_MOVE, actionButton=0, id[0]=0, x[0]=945.1249, y[0]=800.583, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, metaState=0, flags=0x3, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=100623939, downTime=100623873, deviceId=2, source=0x1002 }
11-04 18:53:51.184 1115 1115 D SettingsInterface: from settings cache , name = three_gesture_screenshot , value = null
11-04 18:53:51.184 1115 1115 D SettingsInterface: from settings cache , name = is_show_three_gesture_alert , value = null
11-04 18:53:51.184 1115 1268 I PerfService: PerfServiceNative_boostEnableTimeoutMsAsync:3, 100
11-04 18:53:51.185 1115 1268 I PerfService: PerfServiceNative_boostEnableTimeoutMsAsync:3, 100
11-04 18:53:51.185 1394 1394 V WallpaperService: Delivering touch event: MotionEvent { action=ACTION_MOVE, actionButton=0, id[0]=0, x[0]=945.1249, y[0]=800.583, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, metaState=0, flags=0x3, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=100623948, downTime=100623873, deviceId=2, source=0x1002 }
11-04 18:53:51.192 495 17699 D AudioTrackShared: front(41920), mIsOut(0), mAvailToClient=0 stepCount=320 minimum=320, FUTEX_WAKE
11-04 18:53:51.193 1115 1115 D SettingsInterface: from settings cache , name = three_gesture_screenshot , value = null
11-04 18:53:51.193 1115 1115 D SettingsInterface: from settings cache , name = is_show_three_gesture_alert , value = null
11-04 18:53:51.193 1115 1268 I PerfService: PerfServiceNative_boostEnableTimeoutMsAsync:3, 100
11-04 18:53:51.193 1115 1268 I PerfService: PerfServiceNative_boostEnableTimeoutMsAsync:3, 100
11-04 18:53:51.194 1394 1394 V WallpaperService: Delivering touch event: MotionEvent { action=ACTION_MOVE, actionButton=0, id[0]=0, x[0]=945.1249, y[0]=800.583, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, metaState=0, flags=0x3, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=100623957, downTime=100623873, deviceId=2, source=0x1002 }
11-04 18:53:51.201 1115 1115 D SettingsInterface: from settings cache , name = three_gesture_screenshot , value = null
11-04 18:53:51.201 1115 1115 D SettingsInterface: from settings cache , name = is_show_three_gesture_alert , value = null
11-04 18:53:5Traceback (most recent call last):
File "/home/jovan/anaconda3/envs/kivy/bin/buildozer", line 10, in
sys.exit(main())
File "/home/jovan/anaconda3/envs/kivy/lib/python3.7/site-packages/buildozer/scripts/client.py", line 13, in main
Buildozer().run_command(sys.argv[1:])
File "/home/jovan/anaconda3/envs/kivy/lib/python3.7/site-packages/buildozer/init.py", line 1044, in run_command
self.target.run_commands(args)
File "/home/jovan/anaconda3/envs/kivy/lib/python3.7/site-packages/buildozer/target.py", line 92, in run_commands
func(args)
File "/home/jovan/anaconda3/envs/kivy/lib/python3.7/site-packages/buildozer/targets/android.py", line 1223, in cmd_logcat
show_output=True)
File "/home/jovan/anaconda3/envs/kivy/lib/python3.7/site-packages/buildozer/init.py", line 316, in cmd
stderr.write(chunk.decode('utf-8'))
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe6 in position 77317: invalid continuation byte

@iruriksl
Copy link

iruriksl commented Nov 26, 2019

I am facing the same problem in running hello world app.

App build is successful. Running on phone and successfully installed on phone. After the splash screen the python build app crashes.

Kindly check the attached logcat logs of app runtime to diagnose why the app is crashing.

run_logcat_appcrash3_issue_aconda.txt

Copy link

👋 We use the issue tracker exclusively for bug reports and feature requests. However, this issue appears to be a support request. Please use our support channels to get help with the project.

If you're having trouble installing or using python-for-android, maybe you could be interested in our quickstart guide.

Let us know if this comment was made in error, and we'll be happy to reopen the issue.

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

No branches or pull requests

5 participants