question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Compiled good but app crash

See original GitHub issue

Hi my problem is. Im compile from you buildozer.spec. Compiling have no error, but when i start app in my device, app crash.

This is log file: logcat please help!!!

--------- beginning of main
--------- beginning of system
01-25 15:55:28.560 31372 31393 I python  : Initializing Python for Android
01-25 15:55:28.560 31372 31393 I python  : Setting additional env vars from p4a_
env_vars.txt
01-25 15:55:28.560 31372 31393 I python  : Changing directory to the one provide
d by ANDROID_ARGUMENT
01-25 15:55:28.560 31372 31393 I python  : /data/user/0/com.soft.amour.dkcam/fil
es/app
01-25 15:55:28.560 31372 31393 I python  : Preparing to initialize python
01-25 15:55:28.560 31372 31393 I python  : _python_bundle dir exists
01-25 15:55:28.560 31372 31393 I python  : calculated paths to be...
01-25 15:55:28.560 31372 31393 I python  : /data/user/0/com.soft.amour.dkcam/fil
es/app/_python_bundle/stdlib.zip:/data/user/0/com.soft.amour.dkcam/files/app/_py
thon_bundle/modules
01-25 15:55:28.561 31372 31393 I python  : set wchar paths...
01-25 15:55:28.727 31372 31393 I python  : Initialized python
01-25 15:55:28.727 31372 31393 I python  : AND: Init threads
01-25 15:55:28.730 31372 31393 I python  : testing python print redirection
01-25 15:55:28.734 31372 31393 I python  : Android path ['.', '/data/user/0/com.
soft.amour.dkcam/files/app/_python_bundle/stdlib.zip', '/data/user/0/com.soft.am
our.dkcam/files/app/_python_bundle/modules', '/data/user/0/com.soft.amour.dkcam/
files/app/_python_bundle/site-packages']
01-25 15:55:28.736 31372 31393 I python  : os.environ is environ({'PATH': '/sbin
:/vendor/bin:/system/sbin:/system/bin:/system/xbin', 'ANDROID_BOOTLOGO': '1', 'A
NDROID_ROOT': '/system', 'ANDROID_ASSETS': '/system/app', 'ANDROID_DATA': '/data
', 'ANDROID_STORAGE': '/storage', 'EXTERNAL_STORAGE': '/sdcard', 'ASEC_MOUNTPOIN
T': '/mnt/asec', 'BOOTCLASSPATH': '/system/framework/core-oj.jar:/system/framewo
rk/core-libart.jar:/system/framework/conscrypt.jar:/system/framework/okhttp.jar:
/system/framework/core-junit.jar:/system/framework/bouncycastle.jar:/system/fram
ework/ext.jar:/system/framework/framework.jar:/system/framework/telephony-common
.jar:/system/framework/voip-common.jar:/system/framework/ims-common.jar:/system/
framework/apache-xml.jar:/system/framework/org.apache.http.legacy.boot.jar:/syst
em/framework/mediatek-common.jar:/system/framework/mediatek-framework.jar:/syste
m/framework/mediatek-telephony-common.jar', 'SYSTEMSERVERCLASSPATH': '/system/fr
amework/services.jar:/system/framework/ethernet-service.jar:/system/framework/wi
fi-service.jar', 'ANDROID_SOCKET_zygote': '9', 'ANDROID_ENTRYPOINT': 'main.pyc',
 'ANDROID_ARGUMENT': '/data/user/0/com.soft.amour.dkcam/files/app', 'ANDROID_APP
_PATH': '/data/user/0/com.soft.amour.dkcam/files/app', 'ANDROID_PRIVATE': '/data
/user/0/com.soft.amour.dkcam/files', 'ANDROID_UNPACK': '/data/user/0/com.soft.am
our.dkcam/files/app', 'PYTHONHOME': '/data/user/0/com.soft.amour.dkcam/files/app
', 'PYTHONPATH': '/data/user/0/com.soft.amour.dkcam/files/app:/data/user/0/com.s
oft.amour.dkcam/files/app/lib', 'PYTHONOPTIMIZE': '2', 'P4A_BOOTSTRAP': 'SDL2',
'PYTHON_NAME': 'python', 'P4A_IS_WINDOWED': 'True', 'P4A_ORIENTATION': 'portrait
', 'P4A_NUMERIC_VERSION': 'None', 'P4A_MINSDK': '21', 'LC_CTYPE': 'C.UTF-8'})
01-25 15:55:28.736 31372 31393 I python  : Android kivy bootstrap done. __name__
 is __main__
01-25 15:55:28.736 31372 31393 I python  : AND: Ran string
01-25 15:55:28.736 31372 31393 I python  : Run user program, change dir and exec
ute entrypoint
01-25 15:55:29.190 31372 31393 I python  : [INFO   ] [Logger      ] Record log i
n /data/user/0/com.soft.amour.dkcam/files/app/.kivy/logs/kivy_20-01-25_3.txt
01-25 15:55:29.191 31372 31393 I python  : [INFO   ] [Kivy        ] v1.11.1
01-25 15:55:29.192 31372 31393 I python  : [INFO   ] [Kivy        ] Installed at
 "/data/user/0/com.soft.amour.dkcam/files/app/_python_bundle/site-packages/kivy/
__init__.pyc"
01-25 15:55:29.194 31372 31393 I python  : [INFO   ] [Python      ] v3.7.1 (defa
ult, Jan 25 2020, 14:18:09)
01-25 15:55:29.194 31372 31393 I python  : [Clang 8.0.2 (https://android.googles
ource.com/toolchain/clang 40173bab62ec7462
01-25 15:55:29.195 31372 31393 I python  : [INFO   ] [Python      ] Interpreter
at "android_python"
01-25 15:55:31.767 31372 31393 I python  : [INFO   ] [Factory     ] 184 symbols
loaded
01-25 15:55:32.982 31372 31393 I python  : [INFO   ] [Image       ] Providers: i
mg_tex, img_dds, img_sdl2, img_pil, img_gif (img_ffpyplayer ignored)
01-25 15:55:33.105 31372 31393 I python  : [ERROR  ]
01-25 15:55:33.105 31372 31393 I python  : Traceback (most recent call last):
01-25 15:55:33.105 31372 31393 I python  :   File "/home/kivy/Desktop/New/.build
ozer/android/platform/build-armeabi-v7a/build/python-installs/dkcam/kivy/lang/pa
rser.py", line 471, in execute_directives
01-25 15:55:33.105 31372 31393 I python  : ModuleNotFoundError: No module named
'kivy_garden.zbarcam'
01-25 15:55:33.105 31372 31393 I python  :
01-25 15:55:33.105 31372 31393 I python  : During handling of the above exceptio
n, another exception occurred:
01-25 15:55:33.105 31372 31393 I python  :
01-25 15:55:33.105 31372 31393 I python  : Traceback (most recent call last):
01-25 15:55:33.105 31372 31393 I python  :   File "/home/kivy/Desktop/New/.build
ozer/android/platform/build-armeabi-v7a/build/python-installs/dkcam/kivy/lang/pa
rser.py", line 473, in execute_directives
01-25 15:55:33.105 31372 31393 I python  : ModuleNotFoundError: No module named
'kivy_garden.zbarcam'
01-25 15:55:33.106 31372 31393 I python  :  Traceback (most recent call last):
01-25 15:55:33.108 31372 31393 I python  :    File "/home/kivy/Desktop/New/.buil
dozer/android/platform/build-armeabi-v7a/build/python-installs/dkcam/kivy/lang/p
arser.py", line 471, in execute_directives
01-25 15:55:33.110 31372 31393 I python  :  ModuleNotFoundError: No module named
 'kivy_garden.zbarcam'
01-25 15:55:33.111 31372 31393 I python  :
01-25 15:55:33.112 31372 31393 I python  :  During handling of the above excepti
on, another exception occurred:
01-25 15:55:33.112 31372 31393 I python  :
01-25 15:55:33.113 31372 31393 I python  :  Traceback (most recent call last):
01-25 15:55:33.115 31372 31393 I python  :    File "/home/kivy/Desktop/New/.buil
dozer/android/platform/build-armeabi-v7a/build/python-installs/dkcam/kivy/lang/p
arser.py", line 473, in execute_directives
01-25 15:55:33.117 31372 31393 I python  :  ModuleNotFoundError: No module named
 'kivy_garden.zbarcam'
01-25 15:55:33.118 31372 31393 I python  :
01-25 15:55:33.119 31372 31393 I python  :  During handling of the above excepti
on, another exception occurred:
01-25 15:55:33.120 31372 31393 I python  :
01-25 15:55:33.121 31372 31393 I python  :  Traceback (most recent call last):
01-25 15:55:33.122 31372 31393 I python  :    File "/home/kivy/Desktop/New/.buil
dozer/android/app/main.py", line 42, in <module>
01-25 15:55:33.123 31372 31393 I python  :    File "/home/kivy/Desktop/New/.buil
dozer/android/platform/build-armeabi-v7a/build/python-installs/dkcam/kivy/lang/b
uilder.py", line 368, in load_string
01-25 15:55:33.125 31372 31393 I python  :    File "/home/kivy/Desktop/New/.buil
dozer/android/platform/build-armeabi-v7a/build/python-installs/dkcam/kivy/lang/p
arser.py", line 401, in __init__
01-25 15:55:33.127 31372 31393 I python  :    File "/home/kivy/Desktop/New/.buil
dozer/android/platform/build-armeabi-v7a/build/python-installs/dkcam/kivy/lang/p
arser.py", line 507, in parse
01-25 15:55:33.129 31372 31393 I python  :    File "/home/kivy/Desktop/New/.buil
dozer/android/platform/build-armeabi-v7a/build/python-installs/dkcam/kivy/lang/p
arser.py", line 484, in execute_directives
01-25 15:55:33.131 31372 31393 I python  :  kivy.lang.parser.ParserException: Pa
rser: File "<inline>", line 3:
01-25 15:55:33.131 31372 31393 I python  :  ...
01-25 15:55:33.132 31372 31393 I python  :        1:
01-25 15:55:33.133 31372 31393 I python  :        2:<MenuScreen>:
01-25 15:55:33.134 31372 31393 I python  :  >>    3:#:import ZBarCam kivy_garden
.zbarcam.ZBarCam
01-25 15:55:33.135 31372 31393 I python  :        4:#:import ZBarSymbol pyzbar.p
yzbar.ZBarSymbol
01-25 15:55:33.136 31372 31393 I python  :        5:
01-25 15:55:33.137 31372 31393 I python  :  ...
01-25 15:55:33.138 31372 31393 I python  :  Unable to import package 'kivy_garde
n.zbarcam.ZBarCam'
01-25 15:55:33.139 31372 31393 I python  : Python for android ended.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:11

github_iconTop GitHub Comments

1reaction
hetishahcommented, Feb 22, 2021

@AndreMiras I have the error. Unable to import package kivy_garden.xcamera.XCamera. Please tell me how to resolve this error?

0reactions
xavierfiechtercommented, Oct 21, 2022

Also having issues with the camera / qr scanner.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android App suddenly crashes when compiling in Release ...
Hi. My App was working fine when build to release mode, and both when downloading from Google play store or from a Android...
Read more >
Crashes - Android Developers
An Android app crashes whenever there's an unexpected exit caused by an unhandled exception or signal. An app that is written using Java...
Read more >
App crashes when select Release mode but in debug mode ...
I want to reduce size of my application therefore I am using minifyEnabled true in release mode but due to this application crashes....
Read more >
How to Fix Crashing Apps on an iPhone or Android?
Poor memory management is one of the most common reasons for app crashes on mobile devices (tip: learn Android Studio Debug with Bugfender),...
Read more >
Sudden crash on launch from all TestFlight builds
The app runs fine under Xcode on an iPad connected by wire to my MacBook. ... But when installed via Testflight, we get...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found