(Help) My application only loads but doesnt run on mobile

135 views
Skip to first unread message

Joel Buitizon

unread,
Feb 3, 2021, 4:25:36 PM2/3/21
to Kivy users support
so i've been trying to run my application on mobile but it only loads then crashes while loading. i cant seem to find the error.. here are my codes and the some results of my conversion on linux


LINUX TERMINAL (buildozer android debug deploy run) command:

.. [INFO]: Detected highest available build tools version to be 30.0.3 [DEBUG]: -> running gradlew assembleDebug 
[DEBUG]:
 [DEBUG]: > Task :compileDebugJavaWithJavac
 [DEBUG]: Note: Some input files use or override a deprecated API.
 [DEBUG]: Note: Recompile with -Xlint:deprecation for details. [DEBUG]: Note: Some input files use unchecked or unsafe operations.
 [DEBUG]: Note: Recompile with -Xlint:unchecked for details.
 [DEBUG]:
 [DEBUG]: > Task :transformNativeLibsWithStripDebugSymbolForDebug
 [DEBUG]: /home/joel/.buildozer/android/platform/android-ndk-r19c/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-strip:/home/joel/testrun/.buildozer/android/platform/build-armeabi-v7a/dists/MD247__armeabi-v7a/build/intermediates/transforms/mergeJniLibs/debug/0/lib/armeabi-v7a/gdb.setup: File format not recognized 
[DEBUG]:
 [DEBUG]: Unable to strip library '1' due to error /home/joel/.buildozer/android/platform/android-ndk-r19c/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-strip returned from '/home/joel/testrun/.buildozer/android/platform/build-armeabi-v7a/dists/MD247__armeabi-v7a/build/intermediates/transforms/mergeJniLibs/debug/0/lib/armeabi-v7a/gdb.setup', packaging it as is.
 [DEBUG]:
 [DEBUG]: Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
 [DEBUG]: Use '--warning-mode all' to show the individual deprecation warnings. [DEBUG]: See https://docs.gradle.org/6.4.1/userguide/command_line_interface.html#sec:command_line_warnings 
[DEBUG]:
 [DEBUG]: BUILD SUCCESSFUL in 17s
 [DEBUG]: 27 actionable tasks: 27 executed
 [INFO]: <- directory context /home/joel/testrun/.buildozer/android/platform/python-for-android
 [INFO]: Of the existing distributions, the following meet the given requirements:
 [INFO]: MD247: min API 21, includes recipes (hostpython3, libffi, openssl, sdl2_image, sdl2_mixer, sdl2_ttf, sqlite3, python3, sdl2, setuptools, six, pyjnius, android, kivy, certifi, kivymd), built for archs (armeabi-v7a)
 [INFO]: MD247 has compatible recipes, using this one
 [INFO]: # Copying android package to current directory
 [INFO]: # Android package filename not found in build output. Guessing...
 [INFO]: # Found android package file: /home/joel/testrun/.buildozer/android/platform/build-armeabi-v7a/dists/MD247__armeabi-v7a/build/outputs/apk/debug/MD247__armeabi-v7a-debug.apk [INFO]: # Add version number to android package
 [INFO]: # Android package renamed to MD247__armeabi-v7a-debug-0.1-.apk
 [DEBUG]: -> running cp /home/joel/testrun/.buildozer/android/platform/build-armeabi-v7a/dists/MD247__armeabi-v7a/build/outputs/apk/debug/MD247__armeabi-v7a-debug.apk MD247__armeabi-v7a-debug-0.1-.apk 
WARNING: Received a --sdk argument, but this argument is deprecated and does nothing. No setup.py/pyproject.toml used, copying full private data into .apk. Applying Java source code patches... Applying patch: src/patches/SDLActivity.java.patch 
# Android packaging done! # APK MD247-0.1-armeabi-v7a-debug.apk available in the bin directory
 # Run '/home/joel/.buildozer/android/platform/android-sdk/platform-tools/adb devices' # Cwd None List of devices attached RR8M6089Q8A device
 # Deploy on RR8M6089Q8A
 # Run '/home/joel/.buildozer/android/platform/android-sdk/platform-tools/adb install -r "/home/joel/testrun/bin/MD247-0.1-armeabi-v7a-debug.apk"'
 # Cwd /home/joel/.buildozer/android/platform Performing Streamed Install Success
 # Application pushed. # Run on RR8M6089Q8A
 # Run '/home/joel/.buildozer/android/platform/android-sdk/platform-tools/adb shell am start -n org.joel.md247/org.kivy.android.PythonActivity -a org.kivy.android.PythonActivity' 
# Cwd /home/joel/.buildozer/android/platform Starting: Intent { act=org.kivy.android.PythonActivity cmp=org.joel.md247/org.kivy.android.PythonActivity 
 # Application started.  

python file (kivymd):
main.py
from kivymd.app import MDApp
from kivy.lang import Builder
from kivy.uix.boxlayout import BoxLayout
from kivy.properties import ObjectProperty
from kivymd.theming import ThemableBehavior
from kivymd.uix.list import MDList
from kivy.core.window import Window
from kivymd.uix.dialog import MDDialog
from kivymd.uix.button import MDFlatButton
from kivy.uix.screenmanager import Screen, ScreenManager

Window.size = (300, 500)


class DemoApp(MDApp):
class MainMenuScreen(Screen):
pass

class InputScreen(Screen):
pass

class RestingHeartRateScreen(Screen):
pass

class ResultScreen(Screen):
pass

class LocationSearchScreen(Screen):
pass

class LocationResultScreen(Screen):
pass

class HistoryScreen(Screen):
pass

sm = ScreenManager()
sm.add_widget(MainMenuScreen(name="menu"))
sm.add_widget(InputScreen(name="input"))
sm.add_widget(RestingHeartRateScreen(name="heartrate"))
sm.add_widget(ResultScreen(name="result"))
sm.add_widget(LocationSearchScreen(name="locsearch"))
sm.add_widget(LocationResultScreen(name="locresult"))
sm.add_widget(HistoryScreen(name="history"))

class ContentNavigationDrawer(BoxLayout):
screen_manager = ObjectProperty()
nav_drawer = ObjectProperty()

class DrawerList(ThemableBehavior, MDList):
pass

def build(self):
self.theme_cls.primary_palette = "Lime"
screen = Builder.load_file("main.kv")
return screen

def show_alert_dialog(self):
close_button = MDFlatButton(text="Okay",
on_press=self.hatdog)
more_button = MDFlatButton(text="Cancel", on_press=self.close_dialog)
self.dialog = MDDialog(title="Confirmation", text="Confirm Details?",
size_hint=(0.7, 1),
buttons=[close_button, more_button])
self.dialog.open()

def result_dialog(self):
close_button = MDFlatButton(text="Okay", on_release = self.close_dialog)
self.dialog = MDDialog(title="Where did we get the Results?", text="Results are Determined based on the Details Given by the User",
size_hint=(0.7, 1),
buttons = [close_button])
self.dialog.open()

def hakdog(self):
close_button = MDFlatButton(text="Okay", on_release=self.close_dialog)
self.dialog = MDDialog(title="Resting Heart Rate",
text="Manual Heartbeat check can be used to determine if you have a normal heart rate for your age",
size_hint=(0.7, 1),
buttons=[close_button])
self.dialog.open()

def close_dialog(self, obj):
self.dialog.dismiss()

def hatdog(self, obj):
self.root.ids.scr_mngr.current = 'heartrate'
self.dialog.dismiss()

def history_screen(self, obj):
self.root.ids.scr_mngr.current = 'history'
self.root.ids.scr_mngr.transition.direction = "left"

def location_screen(self, obj):
self.root.ids.scr_mngr.current = 'locsearch'
self.root.ids.scr_mngr.transition.direction = "left"

def back_screen(self, obj):
self.root.ids.scr_mngr.current = 'menu'
self.root.ids.scr_mngr.transition.direction = "right"

def back2_screen(self, obj):
self.root.ids.scr_mngr.current = 'input'
self.root.ids.scr_mngr.transition.direction = "right"

def back3_screen(self, obj):
self.root.ids.scr_mngr.current = 'menu'
self.root.ids.scr_mngr.transition.direction = "right"

def back4_screen(self, obj):
self.root.ids.scr_mngr.current = 'locsearch'
self.root.ids.scr_mngr.transition.direction = "right"

def on_start(self):
pass


DemoApp().run()

main.kv
Screen:
ScreenManager:
id:scr_mngr
MainMenuScreen:
name:"menu"
InputScreen:
name:"input"
RestingHeartRateScreen:
name:"heartrate"
ResultScreen:
name:"result"
LocationSearchScreen:
name:"locsearch"
LocationResultScreen:
name:"locresult"
HistoryScreen:
name:"history"




<MainMenuScreen>
NavigationLayout:
ScreenManager:
Screen:
BoxLayout:
orientation:'vertical'
MDToolbar:
title:' MD 24/7'
elevation:10
Widget:
MDBottomAppBar:
MDToolbar:
icon: "account"
type: "bottom"
on_action_button:
root.manager.current='input'
root.manager.transition.direction = "left"
left_action_items:[["history",lambda x: app.history_screen("history")]]
right_action_items:[["google-earth",lambda x: app.location_screen("locsearch")]]

<InputScreen>
BoxLayout:
orientation: 'vertical'
MDToolbar:
title:'Input Details'
elevation:10
left_action_items:[["backspace",lambda x:app.back_screen("menu")]]

Widget:
MDTextField:
hint_text: "Full name"
pos_hint: {'center_x': 0.5}
size_hint_x: None
width: 250
helper_text:"Please enter your Registered Name"
helper_text_mode:"on_focus"
Widget:
height: 35
MDTextField:
hint_text: "Height"
pos_hint: {'center_x': 0.5}
size_hint_x: None
width: 250
helper_text:"Must be in centimeters"
helper_text_mode:"on_focus"
Widget:
height:35
MDTextField:
hint_text: "Weight"
pos_hint: {'center_x': 0.5}
size_hint_x: None
width: 250
helper_text:"Must be in Kilogram"
helper_text_mode:"on_focus"
Widget:
height:35
MDTextField:
hint_text: "Age"
pos_hint: {'center_x': 0.5}
size_hint_x: None
width: 250
helper_text:"please enter your age"
helper_text_mode:"on_focus"
Widget:
size_hint_y: None
MDScreen:
MDRectangleFlatButton:
mode: "rectangle"
text: 'Confirm'
pos_hint: {'center_x':0.5, 'center_y':0.8}
on_press : app.show_alert_dialog()
Widget:
size_hint_x: None
<RestingHeartRateScreen>
BoxLayout:
orientation: 'vertical'
MDToolbar:
title:'Heart Rate'
elevation:10
left_action_items:[["backspace",lambda x:app.back2_screen("input")]]
right_action_items:[["head-question",lambda x:app.hakdog()]]
Widget:
MDLabel:
text: "Check your pulse on the inside of your wrist, below your thumb. Gently place 2 fingers of your other hand on this artery.Count the beats for 60 seconds"
theme_text_color:'Secondary'
font_style:'Subtitle2'
pos_hint: {'center_x': 0.5,'center_y':0.8}
Widget:
size_hint_x: None
MDTextFieldRound:
hint_text: "Enter your heart rate"
pos_hint: {'center_x': 0.5}
size_hint_x: None
width: 250
icon_left:"heart"
helper_text_mode:"on_focus"
Widget:

MDScreen:
MDRectangleFlatButton:
mode: "rectangle"
text: 'Get Result'
pos_hint: {'center_x':0.5, 'center_y':0.8}
on_press : root.manager.current='result'
<ResultScreen>
BoxLayout:
orientation: 'vertical'
MDToolbar:
title:'Result'
elevation:10
right_action_items:[["head-question",lambda x:app.result_dialog()]]
Widget:

MDLabel:
text: "results here"
Widget:


MDScreen:
MDRectangleFlatButton:
mode: "rectangle"
text: 'Go to Main Menu'
pos_hint: {'center_x':0.5, 'center_y':0.8}
on_press : root.manager.current='menu'
Widget:
size_hint_x: None

<LocationSearchScreen>
BoxLayout:
orientation: 'vertical'
MDToolbar:
title:'Location Services'
elevation:10
left_action_items:[["backspace",lambda x:app.back3_screen("menu")]]
Widget:

MDTextField:
hint_text: "Enter your location"
pos_hint: {'center_x': 0.5}
size_hint_x: None
width: 250
helper_text:"please enter your exact/current location"
helper_text_mode:"on_focus"
Widget:
size_hint_y: None


MDScreen:
MDRectangleFlatButton:
mode: "rectangle"
text: 'Confirm'
pos_hint: {'center_x':0.5, 'center_y':0.8}
on_press : root.manager.current='locresult'
Widget:
size_hint_x: None

<LocationResultScreen>
BoxLayout:
orientation: 'vertical'
MDToolbar:
title:'Result'
elevation:10
left_action_items:[["backspace",lambda x:app.back4_screen("locsearch")]]
Widget:
size_hint_y: None

MDLabel:
text: "Hospitals/Clinics Near you"
Widget:
size_hint_y: None


MDScreen:
MDRectangleFlatButton:
mode: "rectangle"
text: 'Go to Main Menu'
pos_hint: {'center_x':0.5, 'center_y':0.8}
on_press : root.manager.current='menu'
Widget:
size_hint_x: None

<HistoryScreen>
MDTextField:
id: inp
hint_text: 'Enter Full Name'
size_hint_x: None
pos_hint: {"center_x": .4, "center_y": .1}
width: 170

MDCard:
size_hint: None, None
size: "280dp", "280dp"
pos_hint: {"center_x": .5, "center_y": .5}
orientation: "vertical"

ScrollView:
MDList:
id: list

MDFloatingActionButton:
icon: "magnify"
md_bg_color: app.theme_cls.primary_color
pos_hint: {"center_x": .8, "center_y": .1}
user_font_size: "25sp"
on_release:
root.search()

MDToolbar:
id: toolbar
pos_hint: {"top": 1}
elevation: 6
title: "Check History"
left_action_items:[["backspace",lambda x:app.back_screen("menu")]]













planckp...@gmail.com

unread,
Feb 3, 2021, 6:39:38 PM2/3/21
to Kivy users support

Search there for "Traceback", what follows is a Python stack trace the last line of which is usually the most important.

Joel Buitizon

unread,
Feb 4, 2021, 12:53:25 AM2/4/21
to Kivy users support
hello sir. so i've tried the logcat and this is the result of the log

joel@joel-VirtualBox:~$ cd testrun/
joel@joel-VirtualBox:~/testrun$ ls
bin  buildozer.spec  main.kv  main.py  venv
joel@joel-VirtualBox:~/testrun$ buildozer android deploy run logcat
# Check configuration tokens
# Ensure build layout
# Check configuration tokens
# Preparing build
# Check requirements for android
# Run 'dpkg --version'
# Cwd None
Debian 'dpkg' package management program version 1.19.7 (amd64).
This is free software; see the GNU General Public License version 2 or
later for copying conditions. There is NO warranty.
# Search for Git (git)
#  -> found at /usr/bin/git
# Search for Cython (cython)
#  -> found at /home/joel/.local/bin/cython
# Search for Java compiler (javac)
#  -> found at /usr/lib/jvm/java-8-openjdk-amd64/bin/javac
# Search for Java keytool (keytool)
#  -> found at /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/keytool
# Install platform
# Run 'git config --get remote.origin.url'
# Cwd /home/joel/testrun/.buildozer/android/platform/python-for-android
https://github.com/kivy/python-for-android.git
# Run 'git branch -vv'
# Cwd /home/joel/testrun/.buildozer/android/platform/python-for-android
* master 5a94d074 [origin/master] Merge pull request #2244 from Chronolife-team/native_services_upstream
# Run '/usr/bin/python3 -m pip install -q --user \'appdirs\' \'colorama>=0.3.3\' \'jinja2\' \'six\' \'enum34; python_version<"3.4"\' \'sh>=1.10; sys_platform!="nt"\' \'pep517<0.7.0"\' \'toml\''
# Cwd None
# Apache ANT found at /home/joel/.buildozer/android/platform/apache-ant-1.9.4
# Android SDK found at /home/joel/.buildozer/android/platform/android-sdk
# Recommended android's NDK version by p4a is: 19c
# Android NDK found at /home/joel/.buildozer/android/platform/android-ndk-r19c
# Check application requirements
# Compile platform
# Run '/usr/bin/python3 -m pythonforandroid.toolchain create --dist_name=MD247 --bootstrap=sdl2 --requirements=python3,kivy,kivymd --arch armeabi-v7a --copy-libs --color=always --storage-dir="/home/joel/testrun/.buildozer/android/platform/build-armeabi-v7a" --ndk-api=21 --ignore-setup-py'
# Cwd /home/joel/testrun/.buildozer/android/platform/python-for-android
/home/joel/testrun/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py:84: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
  import imp
[INFO]:    Will compile for the following archs: armeabi-v7a
[INFO]:    Found Android API target in $ANDROIDAPI: 27
[INFO]:    Available Android APIs are (27)
[INFO]:    Requested API target 27 is available, continuing.
[INFO]:    Found NDK dir in $ANDROIDNDK: /home/joel/.buildozer/android/platform/android-ndk-r19c
[INFO]:    Found NDK version 19c
[INFO]:    Getting NDK API version (i.e. minimum supported API) from user argument
[INFO]:    ccache is missing, the build will not be optimized in the future.
[INFO]:    Found the following toolchain versions: ['4.9']
[INFO]:    Picking the latest gcc toolchain, here 4.9

[INFO]:    Of the existing distributions, the following meet the given requirements:
[INFO]:        MD247: min API 21, includes recipes (hostpython3, libffi, openssl, sdl2_image, sdl2_mixer, sdl2_ttf, sqlite3, python3, sdl2, setuptools, six, pyjnius, android, kivy, certifi, kivymd), built for archs (armeabi-v7a)
[INFO]:    MD247 has compatible recipes, using this one
# Run '/home/joel/.buildozer/android/platform/android-sdk/platform-tools/adb devices'
# Cwd None
* daemon not running; starting now at tcp:5037
* daemon started successfully

List of devices attached
RR8M6089Q8A    device

# Deploy on RR8M6089Q8A
# Run '/home/joel/.buildozer/android/platform/android-sdk/platform-tools/adb install -r "/home/joel/testrun/bin/MD247-0.1-armeabi-v7a-debug.apk"'
# Cwd /home/joel/.buildozer/android/platform
Performing Streamed Install
Success
# Application pushed.
# Run on RR8M6089Q8A
# Run '/home/joel/.buildozer/android/platform/android-sdk/platform-tools/adb shell am start -n org.joel.md247/org.kivy.android.PythonActivity -a org.kivy.android.PythonActivity'
# Cwd /home/joel/.buildozer/android/platform
Starting: Intent { act=org.kivy.android.PythonActivity cmp=org.joel.md247/org.kivy.android.PythonActivity }
# Application started.
# Run 'dpkg --version'
# Cwd None
Debian 'dpkg' package management program version 1.19.7 (amd64).
This is free software; see the GNU General Public License version 2 or
later for copying conditions. There is NO warranty.
# Search for Git (git)
#  -> found at /usr/bin/git
# Search for Cython (cython)
#  -> found at /home/joel/.local/bin/cython
# Search for Java compiler (javac)
#  -> found at /usr/lib/jvm/java-8-openjdk-amd64/bin/javac
# Search for Java keytool (keytool)
#  -> found at /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/keytool
# Run '/home/joel/.buildozer/android/platform/android-sdk/platform-tools/adb logcat *:S python:D'
# Cwd /home/joel/.buildozer/android/platform
--------- beginning of crash
--------- beginning of main
--------- beginning of system
02-04 13:48:16.665  1891  1977 I python  : Initializing Python for Android
02-04 13:48:16.665  1891  1977 I python  : Setting additional env vars from p4a_env_vars.txt
02-04 13:48:16.667  1891  1977 I python  : Changing directory to the one provided by ANDROID_ARGUMENT
02-04 13:48:16.667  1891  1977 I python  : /data/user/0/org.joel.md247/files/app
02-04 13:48:16.667  1891  1977 I python  : Preparing to initialize python
02-04 13:48:16.667  1891  1977 I python  : _python_bundle dir exists
02-04 13:48:16.667  1891  1977 I python  : calculated paths to be...
02-04 13:48:16.667  1891  1977 I python  : /data/user/0/org.joel.md247/files/app/_python_bundle/stdlib.zip:/data/user/0/org.joel.md247/files/app/_python_bundle/modules
02-04 13:48:16.668  1891  1977 I python  : set wchar paths...
02-04 13:48:16.764  1891  1977 I python  : Initialized python
02-04 13:48:16.764  1891  1977 I python  : AND: Init threads
02-04 13:48:16.764  1891  1977 I python  : testing python print redirection
02-04 13:48:16.765  1891  1977 I python  : Android path ['.', '/data/user/0/org.joel.md247/files/app/_python_bundle/stdlib.zip', '/data/user/0/org.joel.md247/files/app/_python_bundle/modules', '/data/user/0/org.joel.md247/files/app/_python_bundle/site-packages']
02-04 13:48:16.766  1891  1977 I python  : os.environ is environ({'PATH': '/sbin:/system/sbin:/product/bin:/apex/com.android.runtime/bin:/system/bin:/system/xbin:/odm/bin:/vendor/bin:/vendor/xbin', 'MOUNT_SYSTEM_OK': 'true', 'ANDROID_BOOTLOGO': '1', 'ANDROID_ROOT': '/system', 'ANDROID_ASSETS': '/system/app', 'ANDROID_DATA': '/data', 'ANDROID_STORAGE': '/storage', 'ANDROID_RUNTIME_ROOT': '/apex/com.android.runtime', 'ANDROID_TZDATA_ROOT': '/apex/com.android.tzdata', 'EXTERNAL_STORAGE': '/sdcard', 'ASEC_MOUNTPOINT': '/mnt/asec', 'BOOTCLASSPATH': '/apex/com.android.runtime/javalib/core-oj.jar:/apex/com.android.runtime/javalib/core-libart.jar:/apex/com.android.runtime/javalib/okhttp.jar:/apex/com.android.runtime/javalib/bouncycastle.jar:/apex/com.android.runtime/javalib/apache-xml.jar:/system/framework/framework.jar:/system/framework/ext.jar:/system/framework/telephony-common.jar:/system/framework/voip-common.jar:/system/framework/ims-common.jar:/system/framework/knoxsdk.jar:/system/framework/knoxanalyticssdk.jar:/system/framework/smartbondingservice.jar:/system/framework/securetimersdk.jar:/system/framework/fipstimakeystore.jar:/system/framework/timakeystore.jar:/system/framework/sec_sdp_sdk.jar:/system/framework/sec_sdp_hidden_sdk.jar:/system/framework/drutils.jar:/system/framework/android.test.base.jar:/system/framework/ucmopensslenginehelper.jar:/system/framework/esecomm.jar:/apex/com.android.conscrypt/javalib/conscrypt.jar:/apex/com.android.media/javalib/updatable-media.jar', 'DEX2OATBOOTCLASSPATH': '/apex/com.android.runtime/javalib/core-oj.jar:/apex/com.android.runtime/javalib/core-libart.jar:/apex/com.android.runtime/javalib/okhttp.jar:/apex/com.android.runtime/javalib/bouncycastle.jar:/apex/com.android.runtime/javalib/apache-xml.jar:/system/framework/framework.jar:/system/framework/ext.jar:/system/framework/telephony-common.jar:/system/framework/voip-common.jar:/system/framework/ims-common.jar:/system/framework/knoxsdk.jar:/system/framework/knoxanalyticssdk.jar:/system/framework/smartbondingservice.jar:/system/framework/securetimersdk.jar:/system/framework/fipstimakeystore.jar:/system/framework/timakeystore.jar:/system/framework/sec_sdp_sdk.jar:/system/framework/sec_sdp_hidden_sdk.jar:/system/framework/drutils.jar:/system/framework/android.test.base.jar:/system/framework/ucmopensslenginehelper.jar:/system/framework/esecomm.jar', 'SYSTEMSERVERCLASSPATH': '/system/framework/services.jar:/system/framework/ethernet-service.jar:/system/framework/wifi-service.jar:/system/framework/com.android.location.provider.jar:/system/framework/uibc_java.jar:/system/framework/ssrm.jar', 'DOWNLOAD_CACHE': '/data/cache', 'SECONDARY_STORAGE': '/storage/sdcard:/storage/usb1:/storage/usb2', 'KNOX_STORAGE': '/data/knox/ext_sdcard', 'ENC_EMULATED_STORAGE_TARGET': '/storage/enc_emulated', 'ANDROID_SOCKET_zygote_secondary': '16', 'ANDROID_SOCKET_usap_pool_secondary': '17', 'ANDROID_ENTRYPOINT': 'main.pyc', 'ANDROID_ARGUMENT': '/data/user/0/org.joel.md247/files/app', 'ANDROID_APP_PATH': '/data/user/0/org.joel.md247/files/app', 'ANDROID_PRIVATE': '/data/user/0/org.joel.md247/files', 'ANDROID_UNPACK': '/data/user/0/org.joel.md247/files/app', 'PYTHONHOME': '/data/user/0/org.joel.md247/files/app', 'PYTHONPATH': '/data/user/0/org.joel.md247/files/app:/data/user/0/org.joel.md247/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'})
02-04 13:48:16.766  1891  1977 I python  : Android kivy bootstrap done. __name__ is __main__
02-04 13:48:16.766  1891  1977 I python  : AND: Ran string
02-04 13:48:16.766  1891  1977 I python  : Run user program, change dir and execute entrypoint
02-04 13:48:16.956  1891  1977 I python  : [INFO   ] [Logger      ] Record log in /data/user/0/org.joel.md247/files/app/.kivy/logs/kivy_21-02-04_2.txt
02-04 13:48:16.956  1891  1977 I python  : [INFO   ] [Kivy        ] v1.11.1
02-04 13:48:16.956  1891  1977 I python  : [INFO   ] [Kivy        ] Installed at "/data/user/0/org.joel.md247/files/app/_python_bundle/site-packages/kivy/__init__.pyc"
02-04 13:48:16.956  1891  1977 I python  : [INFO   ] [Python      ] v3.8.1 (default, Feb  4 2021, 04:47:16)
02-04 13:48:16.956  1891  1977 I python  : [Clang 8.0.2 (https://android.googlesource.com/toolchain/clang 40173bab62ec7462
02-04 13:48:16.956  1891  1977 I python  : [INFO   ] [Python      ] Interpreter at ""
02-04 13:48:16.957  1891  1977 I python  : [INFO   ] [KivyMD      ] v0.104.1
02-04 13:48:16.962  1891  1977 I python  : [INFO   ] [Factory     ] 184 symbols loaded
02-04 13:48:18.694  1891  1977 I python  : [INFO   ] [Image       ] Providers: img_tex, img_dds, img_sdl2, img_gif (img_pil, img_ffpyplayer ignored)
02-04 13:48:18.863  1891  1977 I python  : [INFO   ] [Window      ] Provider: sdl2
02-04 13:48:18.921  1891  1977 I python  : [INFO   ] [GL          ] Using the "OpenGL ES 2" graphics system
02-04 13:48:18.923  1891  1977 I python  : [INFO   ] [GL          ] Backend used <sdl2>
02-04 13:48:18.924  1891  1977 I python  : [INFO   ] [GL          ] OpenGL version <b'OpenGL ES 3.2 v1.r19p0-01rel0.###other-sha0123456789ABCDEF0###'>
02-04 13:48:18.924  1891  1977 I python  : [INFO   ] [GL          ] OpenGL vendor <b'ARM'>
02-04 13:48:18.925  1891  1977 I python  : [INFO   ] [GL          ] OpenGL renderer <b'Mali-G72'>
02-04 13:48:18.926  1891  1977 I python  : [INFO   ] [GL          ] OpenGL parsed version: 3, 2
02-04 13:48:18.926  1891  1977 I python  : [INFO   ] [GL          ] Texture max size <8192>
02-04 13:48:18.927  1891  1977 I python  : [INFO   ] [GL          ] Texture max units <16>
02-04 13:48:18.975  1891  1977 I python  : [INFO   ] [Window      ] auto add sdl2 input provider
02-04 13:48:18.978  1891  1977 I python  : [INFO   ] [Window      ] virtual keyboard not allowed, single mode, not docked
02-04 13:48:19.002  1891  1977 I python  : [INFO   ] [Text        ] Provider: sdl2
02-04 13:48:19.157  1891  1977 I python  : [INFO   ] [GL          ] NPOT texture support is available
02-04 13:48:19.998  1891  1977 I python  : [WARNING] [Base        ] Unknown <android> provider
02-04 13:48:19.998  1891  1977 I python  : [INFO   ] [Base        ] Start application main loop
02-04 13:48:20.259  1891  1977 I python  : [INFO   ] [Base        ] Leaving application in progress...
02-04 13:48:20.259  1891  1977 I python  :  Traceback (most recent call last):
02-04 13:48:20.260  1891  1977 I python  :    File "/home/joel/testrun/.buildozer/android/app/main.py", line 117, in <module>
02-04 13:48:20.260  1891  1977 I python  :    File "/home/joel/testrun/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/MD247/kivy/app.py", line 855, in run
02-04 13:48:20.261  1891  1977 I python  :    File "/home/joel/testrun/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/MD247/kivy/base.py", line 504, in runTouchApp
02-04 13:48:20.262  1891  1977 I python  :    File "/home/joel/testrun/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/MD247/kivy/core/window/window_sdl2.py", line 747, in mainloop
02-04 13:48:20.262  1891  1977 I python  :    File "/home/joel/testrun/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/MD247/kivy/core/window/window_sdl2.py", line 479, in _mainloop
02-04 13:48:20.263  1891  1977 I python  :    File "/home/joel/testrun/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/MD247/kivy/base.py", line 339, in idle
02-04 13:48:20.263  1891  1977 I python  :    File "/home/joel/testrun/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/MD247/kivy/clock.py", line 591, in tick
02-04 13:48:20.264  1891  1977 I python  :    File "kivy/_clock.pyx", line 384, in kivy._clock.CyClockBase._process_events
02-04 13:48:20.264  1891  1977 I python  :    File "kivy/_clock.pyx", line 414, in kivy._clock.CyClockBase._process_events
02-04 13:48:20.265  1891  1977 I python  :    File "kivy/_clock.pyx", line 412, in kivy._clock.CyClockBase._process_events
02-04 13:48:20.265  1891  1977 I python  :    File "kivy/_clock.pyx", line 154, in kivy._clock.ClockEvent.tick
02-04 13:48:20.266  1891  1977 I python  :    File "kivy/_clock.pyx", line 86, in kivy._clock.ClockEvent.get_callback
02-04 13:48:20.266  1891  1977 I python  :    File "/home/joel/testrun/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/MD247/kivy/weakmethod.py", line 56, in is_dead
02-04 13:48:20.267  1891  1977 I python  :  ReferenceError: weakly-referenced object no longer exists
02-04 13:48:20.267  1891  1977 I python  : Python for android ended.

planckp...@gmail.com

unread,
Feb 4, 2021, 1:39:42 AM2/4/21
to Kivy users support
A search in this group for the error 
ReferenceError: weakly-referenced object no longer exists

Will find lots of answers with the solution, for example:
Reply all
Reply to author
Forward
0 new messages