Skip to content

Instantly share code, notes, and snippets.

@caver456
Last active December 31, 2018 04:48
Show Gist options
  • Save caver456/7e44bf24701ff29f4bf8a7a7b1c2985e to your computer and use it in GitHub Desktop.
Save caver456/7e44bf24701ff29f4bf8a7a7b1c2985e to your computer and use it in GitHub Desktop.
Android crash on simple pyjnius intent call (view web page as in pyjnius docs)
# complete terminal output from 'buildozer -v android debug deploy run'
# 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.0.5 (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/tom/.local/bin/cython
# Search for Java compiler (javac)
# -> found at /usr/lib/jvm/java-11-openjdk-amd64/bin/javac
# Search for Java keytool (keytool)
# -> found at /usr/lib/jvm/java-11-openjdk-amd64/bin/keytool
# Install platform
# 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"\''
# Cwd None
# Apache ANT found at /home/tom/.buildozer/android/platform/apache-ant-1.9.4
# Android SDK found at /home/tom/.buildozer/android/platform/android-sdk-20
# Android NDK found at /home/tom/.buildozer/android/platform/android-ndk-r15c
# Check application requirements
# Check garden requirements
# Compile platform
# Run '/usr/bin/python3 -m pythonforandroid.toolchain create --dist_name=buckshotApp --bootstrap=sdl2 --requirements=python3,kivy,pyjnius --arch armeabi-v7a --copy-libs --color=always --storage-dir="/mnt/c/Users/caver/Documents/GitHub/buckshotApp/.buildozer/android/platform/build"'
# Cwd /mnt/c/Users/caver/Documents/GitHub/buckshotApp/.buildozer/android/platform/python-for-android-new-toolchain
/mnt/c/Users/caver/Documents/GitHub/buckshotApp/.buildozer/android/platform/python-for-android-new-toolchain/pythonforandroid/toolchain.py:81: 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: 26
[INFO]: Available Android APIs are (19, 26)
[INFO]: Requested API target 26 is available, continuing.
[INFO]: Found NDK dir in $ANDROIDNDK: /home/tom/.buildozer/android/platform/android-ndk-r15c
[INFO]: Got NDK version from $ANDROIDNDKVER: r15c
[WARNING]: NDK API target was not set manually, using the default of 21 = min(android-api=26, default ndk-api=21)
[INFO]: Using Google NDK r15c
[INFO]: Found virtualenv at /usr/local/bin/virtualenv
[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]: buckshotApp: min API 21, includes recipes (hostpython3, openssl, sdl2_image, sdl2_mixer, sdl2_ttf, python3, sdl2, six, pyjnius, kivy, pyopenssl), built for archs (armeabi-v7a)
[INFO]: buckshotApp has compatible recipes, using this one
# Build the application #117
# Copy application source from /mnt/c/Users/caver/Documents/GitHub/buckshotApp
# Create directory /mnt/c/Users/caver/Documents/GitHub/buckshotApp/.buildozer/android/app
# Copy /mnt/c/Users/caver/Documents/GitHub/buckshotApp/LICENSE
# Copy /mnt/c/Users/caver/Documents/GitHub/buckshotApp/main.py
# Copy /mnt/c/Users/caver/Documents/GitHub/buckshotApp/main_before_download_only.py
# Copy /mnt/c/Users/caver/Documents/GitHub/buckshotApp/main_before_listener.py
# Copy /mnt/c/Users/caver/Documents/GitHub/buckshotApp/main_download_only.py
# Copy /mnt/c/Users/caver/Documents/GitHub/buckshotApp/main_example_modified.py
# Copy /mnt/c/Users/caver/Documents/GitHub/buckshotApp/main_listener_modified.py
# Copy /mnt/c/Users/caver/Documents/GitHub/buckshotApp/main_listener_modified2.py
# Copy /mnt/c/Users/caver/Documents/GitHub/buckshotApp/main_min.py
# Copy /mnt/c/Users/caver/Documents/GitHub/buckshotApp/main_working.py
# Copy /mnt/c/Users/caver/Documents/GitHub/buckshotApp/main_working2.py
# Copy /mnt/c/Users/caver/Documents/GitHub/buckshotApp/main_working3.py
# Copy /mnt/c/Users/caver/Documents/GitHub/buckshotApp/main_working4.py
# Copy /mnt/c/Users/caver/Documents/GitHub/buckshotApp/numeric.json
# Copy /mnt/c/Users/caver/Documents/GitHub/buckshotApp/ui_00.png
# Package the application
# Captured version: 1.0
# project.properties updated
# Gradle project detected, copy files /mnt/c/Users/caver/Documents/GitHub/buckshotApp/.buildozer/android/platform/build/dists/buckshotApp/src/main/java
# Run '/usr/bin/python3 -m pythonforandroid.toolchain apk --debug --bootstrap=sdl2 --dist_name buckshotApp --name Buckshot --version 1.0 --package org.test.buckshotapp --android_api 26 --minsdk 21 --private /mnt/c/Users/caver/Documents/GitHub/buckshotApp/.buildozer/android/app --permission INTERNET --orientation portrait --copy-libs --arch armeabi-v7a --color=always --storage-dir="/mnt/c/Users/caver/Documents/GitHub/buckshotApp/.buildozer/android/platform/build"'
# Cwd /mnt/c/Users/caver/Documents/GitHub/buckshotApp/.buildozer/android/platform/python-for-android-new-toolchain
/mnt/c/Users/caver/Documents/GitHub/buckshotApp/.buildozer/android/platform/python-for-android-new-toolchain/pythonforandroid/toolchain.py:81: 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]: Getting Android API version from user argument: 26
[INFO]: Available Android APIs are (19, 26)
[INFO]: Requested API target 26 is available, continuing.
[INFO]: Found NDK dir in $ANDROIDNDK: /home/tom/.buildozer/android/platform/android-ndk-r15c
[INFO]: Got NDK version from $ANDROIDNDKVER: r15c
[WARNING]: NDK API target was not set manually, using the default of 21 = min(android-api=26, default ndk-api=21)
[INFO]: Using Google NDK r15c
[INFO]: Found virtualenv at /usr/local/bin/virtualenv
[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]: buckshotApp: min API 21, includes recipes (hostpython3, openssl, sdl2_image, sdl2_mixer, sdl2_ttf, python3, sdl2, six, pyjnius, kivy, pyopenssl), built for archs (armeabi-v7a)
[INFO]: buckshotApp has compatible recipes, using this one
[INFO]: Of the existing distributions, the following meet the given requirements:
[INFO]: buckshotApp: min API 21, includes recipes (hostpython3, openssl, sdl2_image, sdl2_mixer, sdl2_ttf, python3, sdl2, six, pyjnius, kivy, pyopenssl), built for archs (armeabi-v7a)
[INFO]: buckshotApp has compatible recipes, using this one
[INFO]: -> directory context /mnt/c/Users/caver/Documents/GitHub/buckshotApp/.buildozer/android/platform/build/dists/buckshotApp
[INFO]: Selecting java build tool:
[INFO]: Detected highest available build tools version to be 28.0.3
[INFO]: Building with gradle, as gradle executable is present
[DEBUG]: -> running gradlew assembleDebug
[DEBUG]:
[DEBUG]: BUILD SUCCESSFUL in 2s
[DEBUG]: 27 actionable tasks: 4 executed, 23 up-to-date
[INFO]: <- directory context /mnt/c/Users/caver/Documents/GitHub/buckshotApp/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]: # Copying APK to current directory
[INFO]: # APK filename not found in build output. Guessing...
[INFO]: # Found APK file: /mnt/c/Users/caver/Documents/GitHub/buckshotApp/.buildozer/android/platform/build/dists/buckshotApp/build/outputs/apk/debug/buckshotApp-debug.apk
[INFO]: # Add version number to APK
[INFO]: # APK renamed to buckshotApp-1.0-debug.apk
[DEBUG]: -> running cp /mnt/c/Users/caver/Documents/GitHub/buckshotApp/.buildozer/android/platform/build/dists/buckshotApp/build/outputs/apk/debug/buckshotApp-debug.apk buckshotApp-1.0-debug.apk
Could not find hostpython, will not compile to .pyo (this is normal with python3)
WARNING: Received a --sdk argument, but this argument is deprecated and does nothing.
No compiled python is present to zip, skipping.
this should only be the case if you are using the CrystaX python
# Android packaging done!
# APK buckshotApp-1.0-debug.apk available in the bin directory
# Run '/home/tom/.buildozer/android/platform/android-sdk-20/platform-tools/adb devices'
# Cwd None
List of devices attached
4c454b5154563398 device
# Deploy on 4c454b5154563398
# Run '/home/tom/.buildozer/android/platform/android-sdk-20/platform-tools/adb install -r "/mnt/c/Users/caver/Documents/GitHub/buckshotApp/bin/buckshotApp-1.0-debug.apk"'
# Cwd /home/tom/.buildozer/android/platform
Success
# Application pushed.
# Run on 4c454b5154563398
# Run '/home/tom/.buildozer/android/platform/android-sdk-20/platform-tools/adb shell am start -n org.test.buckshotapp/org.kivy.android.PythonActivity -a org.kivy.android.PythonActivity'
# Cwd /home/tom/.buildozer/android/platform
Starting: Intent { act=org.kivy.android.PythonActivity cmp=org.test.buckshotapp/org.kivy.android.PythonActivity }
# Application started.
# complete log file - note there are no errors recorded here - the app simply crashes after clicking the button
[INFO ] Logger: Record log in /data/user/0/org.test.buckshotapp/files/app/.kivy/buckshotLogDir/kivy_18-12-30_0.txt
[INFO ] Factory: 194 symbols loaded
[INFO ] Image: Providers: img_tex, img_dds, img_sdl2, img_gif (img_pil, img_ffpyplayer ignored)
[INFO ] Text: Provider: sdl2
[INFO ] Window: Provider: sdl2
[INFO ] GL: Using the "OpenGL ES 2" graphics system
[INFO ] GL: Backend used <gl>
[INFO ] GL: OpenGL version <b'OpenGL ES 3.2 [email protected] (GIT@fa5d0e7, I788affba20) (Date:06/12/18)'>
[INFO ] GL: OpenGL vendor <b'Qualcomm'>
[INFO ] GL: OpenGL renderer <b'Adreno (TM) 630'>
[INFO ] GL: OpenGL parsed version: 3, 2
[INFO ] GL: Texture max size <16384>
[INFO ] GL: Texture max units <16>
[INFO ] Window: auto add sdl2 input provider
[INFO ] Window: virtual keyboard allowed, single mode, docked
[WARNING] Base: Unknown <android> provider
[INFO ] Base: Start application main loop
[INFO ] GL: NPOT texture support is available
[WARNING] Base: Failed to import "android" module. Could not remove android presplash.
# output of 'logcat |grep buckshot' (the app name is buckshotapp), back to the beginning of the most recent buckshotapp invokation
12-30 07:51:15.800 32226 32226 I SELinux : SELinux: seapp_context_lookup: seinfo=untrusted, level=s0:c512,c768, pkgname=org.test.buckshotapp
12-30 07:51:15.952 32226 32226 W ActivityThread: Application org.test.buckshotapp can be debugged on port 8100...
12-30 07:51:16.318 32226 32327 D libGLESv1: STS_GLApi : DTS, ODTC are not allowed for Package : org.test.buckshotapp
12-30 07:51:16.816 32226 32226 V pythonutil: Library loading error: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/org.test.buckshotapp-cu3r4btlrniXsl4x-ZIYLw==/base.apk"],nativeLibraryDirectories=[/data/app/org.test.buckshotapp-cu3r4btlrniXsl4x-ZIYLw==/lib/arm, /data/app/org.test.buckshotapp-cu3r4btlrniXsl4x-ZIYLw==/base.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib]]] couldn't find "libpython2.7.so"
12-30 07:51:16.816 32226 32226 V pythonutil: Library loading error: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/org.test.buckshotapp-cu3r4btlrniXsl4x-ZIYLw==/base.apk"],nativeLibraryDirectories=[/data/app/org.test.buckshotapp-cu3r4btlrniXsl4x-ZIYLw==/lib/arm, /data/app/org.test.buckshotapp-cu3r4btlrniXsl4x-ZIYLw==/base.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib]]] couldn't find "libpython3.5m.so"
12-30 07:51:16.817 32226 32226 V pythonutil: Library loading error: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/org.test.buckshotapp-cu3r4btlrniXsl4x-ZIYLw==/base.apk"],nativeLibraryDirectories=[/data/app/org.test.buckshotapp-cu3r4btlrniXsl4x-ZIYLw==/lib/arm, /data/app/org.test.buckshotapp-cu3r4btlrniXsl4x-ZIYLw==/base.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib]]] couldn't find "libpython3.6m.so"
12-30 07:51:33.635 32226 32226 D SurfaceView: BG show() Surface(name=Background for - SurfaceView - org.test.buckshotapp/org.kivy.android.PythonActivity@12cf4ca@0) org.libsdl.app.SDLSurface{12cf4ca VFE...... .F....ID 0,0-1080,2009}
12-30 07:51:33.650 32226 1019 I python : /data/user/0/org.test.buckshotapp/files/app
12-30 07:51:33.651 32226 1019 I python : /data/user/0/org.test.buckshotapp/files/app/_python_bundle/stdlib.zip:/data/user/0/org.test.buckshotapp/files/app/_python_bundle/modules
12-30 07:51:33.797 32226 1019 I python : Android path ['.', '/data/user/0/org.test.buckshotapp/files/app/_python_bundle/stdlib.zip', '/data/user/0/org.test.buckshotapp/files/app/_python_bundle/modules', '/data/user/0/org.test.buckshotapp/files/app/_python_bundle/site-packages']
12-30 07:51:33.798 32226 1019 I python : os.environ is environ({'PATH': '/sbin:/system/sbin:/system/bin:/system/xbin:/vendor/bin:/vendor/xbin', 'DOWNLOAD_CACHE': '/data/cache', 'ANDROID_BOOTLOGO': '1', 'ANDROID_ROOT': '/system', 'ANDROID_ASSETS': '/system/app', 'ANDROID_DATA': '/data', 'ANDROID_STORAGE': '/storage', 'EXTERNAL_STORAGE': '/sdcard', 'ASEC_MOUNTPOINT': '/mnt/asec', 'BOOTCLASSPATH': '/system/framework/QPerformance.jar:/system/framework/core-oj.jar:/system/framework/core-libart.jar:/system/framework/conscrypt.jar:/system/framework/okhttp.jar:/system/framework/legacy-test.jar:/system/framework/bouncycastle.jar:/system/framework/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:/system/framework/smartbondingservice.jar:/system/framework/sprengine.jar:/system/framework/android.hidl.base-V1.0-java.jar:/system/framework/android.hidl.manager-V1.0-java.jar:/system/framework/timakeystore.jar:/system/framework/fipstimakeystore.jar:/system/framework/ucmopensslenginehelper.jar:/system/framework/esecomm.jar:/system/framework/SemAudioThumbnail.jar:/system/framework/knoxsdk.jar:/system/framework/sec_edm.jar:/system/framework/knoxanalyticssdk.jar:/system/framework/sagearpolicymanager.jar:/system/framework/sec_sdp_sdk.jar:/system/framework/sec_sdp_hidden_sdk.jar:/system/framework/knoxvpnuidtag.jar:/system/framework/tcmiface.jar:/system/framework/telephony-ext.jar:/system/framework/qcom.fmradio.jar', 'SYSTEMSERVERCLASSPATH': '/system/framework/services.jar:/system/framework/ethernet-service.jar:/system/framework/wifi-service.jar:/system/framework/samsung-services.jar:/system/framework/hqm.jar:/system/framework/dmf.jar:/system/framework/ssrm.jar', 'LD_PRELOAD': 'libTcpOptimizer.so', 'MC_AUTH_TOKEN_PATH': '/efs/TEE', 'KNOX_STORAGE': '/data/knox/ext_sdcard', 'ENC_EMULATED_STORAGE_TARGET': '/storage/enc_emulated', 'ANDROID_SOCKET_zygote_secondary': '8', 'ANDROID_ENTRYPOINT': 'main.pyo', 'ANDROID_ARGUMENT': '/data/user/0/org.test.buckshotapp/files/app', 'ANDROID_APP_PATH': '/data/user/0/org.test.buckshotapp/files/app', 'ANDROID_PRIVATE': '/data/user/0/org.test.buckshotapp/files', 'ANDROID_UNPACK': '/data/user/0/org.test.buckshotapp/files/app', 'PYTHONHOME': '/data/user/0/org.test.buckshotapp/files/app', 'PYTHONPATH': '/data/user/0/org.test.buckshotapp/files/app:/data/user/0/org.test.buckshotapp/files/app/lib', 'PYTHONOPTIMIZE': '2', 'P4A_BOOTSTRAP': 'SDL2', 'PYTHON_NAME': 'python', 'LC_CTYPE': 'C.UTF-8'})
12-30 07:51:34.052 32226 32226 V InputMethodManager: Starting input: tba=android.view.inputmethod.EditorInfo@6620158 nm : org.test.buckshotapp ic=null
12-30 07:51:34.057 32226 32226 V InputMethodManager: Starting input: tba=android.view.inputmethod.EditorInfo@63392b1 nm : org.test.buckshotapp ic=null
12-30 07:51:34.383 32226 1019 I python : [INFO ] [Logger ] Record log in /data/user/0/org.test.buckshotapp/files/app/.kivy/logs/kivy_18-12-30_0.txt
12-30 07:51:34.384 32226 1019 I python : [INFO ] [Logger ] Record log in /data/user/0/org.test.buckshotapp/files/app/.kivy/buckshotLogDir/kivy_18-12-30_0.txt
12-30 07:51:35.174 32226 1019 D libGLESv2: STS_GLApi : DTS, ODTC are not allowed for Package : org.test.buckshotapp
12-30 07:51:40.511 32226 1019 F zygote : java_vm_ext.cc:504] native: #10 pc 00040ad5 /data/data/org.test.buckshotapp/files/app/_python_bundle/site-packages/jnius/jnius.so (???)
12-30 07:51:40.567 32226 1019 F zygote : runtime.cc:514] native: #15 pc 00040ad5 /data/data/org.test.buckshotapp/files/app/_python_bundle/site-packages/jnius/jnius.so (???)
12-30 07:51:40.567 32226 1019 F zygote : runtime.cc:514] native: #17 pc 00040ad5 /data/data/org.test.buckshotapp/files/app/_python_bundle/site-packages/jnius/jnius.so (???)
12-30 07:51:40.630 1223 1223 F DEBUG : pid: 32226, tid: 1019, name: SDLThread >>> org.test.buckshotapp <<<
12-30 07:51:40.634 1223 1223 F DEBUG : #12 pc 00040ad5 /data/data/org.test.buckshotapp/files/app/_python_bundle/site-packages/jnius/jnius.so
# sections of the logcat session during the app crash that seem to be more relevant...?
# the backtrace is in the final section below:
12-30 20:20:19.885 15133 15155 W PythonActivity: Accessing org.renpy.android.PythonActivity is deprecated and will be removed in a future version. Please switch to org.kivy.android.PythonActivity.
12-30 20:20:19.901 15133 15155 F zygote : java_vm_ext.cc:504] JNI DETECTED ERROR IN APPLICATION: static jfieldID 0xebf00014 not valid for class java.lang.Class<org.renpy.android.PythonActivity>
12-30 20:20:19.901 15133 15155 F zygote : java_vm_ext.cc:504] in call to GetStaticObjectField
12-30 20:20:19.901 15133 15155 F zygote : java_vm_ext.cc:504] from int org.libsdl.app.SDLActivity.nativeInit(java.lang.Object)
12-30 20:20:19.901 15133 15155 F zygote : java_vm_ext.cc:504] "SDLThread" prio=5 tid=16 Runnable
12-30 20:20:19.901 15133 15155 F zygote : java_vm_ext.cc:504] | group="main" sCount=0 dsCount=0 flags=0 obj=0x17800000 self=0xccc63800
12-30 20:20:19.901 15133 15155 F zygote : java_vm_ext.cc:504] | sysTid=15155 nice=0 cgrp=default sched=0/0 handle=0xcbd7f970
12-30 20:20:19.901 15133 15155 F zygote : java_vm_ext.cc:504] | state=R schedstat=( 1879427619 168974836 1587 ) utm=170 stm=17 core=4 HZ=100
12-30 20:20:19.901 15133 15155 F zygote : java_vm_ext.cc:504] | stack=0xcbc7d000-0xcbc7f000 stackSize=1038KB
12-30 20:20:19.901 15133 15155 F zygote : java_vm_ext.cc:504] | held mutexes= "mutator lock"(shared held)
12-30 20:20:19.901 15133 15155 F zygote : java_vm_ext.cc:504] native: #00 pc 002c4be3 /system/lib/libart.so (_ZN3art15DumpNativeStackERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEEiP12BacktraceMapPKcPNS_9ArtMethodEPv+130)
12-30 20:20:19.901 15133 15155 F zygote : java_vm_ext.cc:504] native: #01 pc 00356711 /system/lib/libart.so (_ZNK3art6Thread9DumpStackERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEbP12BacktraceMapb+200)
12-30 20:20:19.901 15133 15155 F zygote : java_vm_ext.cc:504] native: #02 pc 00352be3 /system/lib/libart.so (_ZNK3art6Thread4DumpERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEbP12BacktraceMapb+34)
12-30 20:20:19.901 15133 15155 F zygote : java_vm_ext.cc:504] native: #03 pc 002300d9 /system/lib/libart.so (_ZN3art9JavaVMExt8JniAbortEPKcS2_+736)
12-30 20:20:19.901 15133 15155 F zygote : java_vm_ext.cc:504] native: #04 pc 002304cf /system/lib/libart.so (_ZN3art9JavaVMExt9JniAbortVEPKcS2_St9__va_list+58)
12-30 20:20:19.901 15133 15155 F zygote : java_vm_ext.cc:504] native: #05 pc 000d286f /system/lib/libart.so (_ZN3art11ScopedCheck6AbortFEPKcz+46)
12-30 20:20:19.901 15133 15155 F zygote : java_vm_ext.cc:504] native: #06 pc 000d7915 /system/lib/libart.so (_ZN3art11ScopedCheck18CheckStaticFieldIDERNS_18ScopedObjectAccessEP7_jclassP9_jfieldID+104)
12-30 20:20:19.901 15133 15155 F zygote : java_vm_ext.cc:504] native: #07 pc 000d736b /system/lib/libart.so (_ZN3art11ScopedCheck16CheckFieldAccessERNS_18ScopedObjectAccessEP8_jobjectP9_jfieldIDbNS_9Primitive4TypeE+34)
12-30 20:20:19.901 15133 15155 F zygote : java_vm_ext.cc:504] native: #08 pc 000d6d9f /system/lib/libart.so (_ZN3art8CheckJNI8GetFieldEPKcP7_JNIEnvP8_jobjectP9_jfieldIDbNS_9Primitive4TypeE+566)
12-30 20:20:19.901 15133 15155 F zygote : java_vm_ext.cc:504] native: #09 pc 000c7ef9 /system/lib/libart.so (_ZN3art8CheckJNI20GetStaticObjectFieldEP7_JNIEnvP7_jclassP9_jfieldID+36)
12-30 20:20:19.901 15133 15155 F zygote : java_vm_ext.cc:504] native: #10 pc 00040ad5 /data/data/org.test.buckshotapp/files/app/_python_bundle/site-packages/jnius/jnius.so (???)
12-30 20:20:19.901 15133 15155 F zygote : java_vm_ext.cc:504] at org.libsdl.app.SDLActivity.nativeInit(Native method)
12-30 20:20:19.901 15133 15155 F zygote : java_vm_ext.cc:504] at org.libsdl.app.SDLMain.run(SDLActivity.java:936)
12-30 20:20:19.901 15133 15155 F zygote : java_vm_ext.cc:504] at java.lang.Thread.run(Thread.java:764)
12-30 20:20:19.901 15133 15155 F zygote : java_vm_ext.cc:504]
#############################################################
12-30 20:20:19.954 15133 15155 F zygote : runtime.cc:514] Runtime aborting...
12-30 20:20:19.954 15133 15155 F zygote : runtime.cc:514] Aborting thread:
12-30 20:20:19.954 15133 15155 F zygote : runtime.cc:514] "SDLThread" prio=5 tid=16 Native
12-30 20:20:19.954 15133 15155 F zygote : runtime.cc:514] | group="" sCount=0 dsCount=0 flags=0 obj=0x17800000 self=0xccc63800
12-30 20:20:19.954 15133 15155 F zygote : runtime.cc:514] | sysTid=15155 nice=0 cgrp=default sched=0/0 handle=0xcbd7f970
12-30 20:20:19.954 15133 15155 F zygote : runtime.cc:514] | state=R schedstat=( 1897048557 169059577 1592 ) utm=172 stm=17 core=4 HZ=100
12-30 20:20:19.954 15133 15155 F zygote : runtime.cc:514] | stack=0xcbc7d000-0xcbc7f000 stackSize=1038KB
12-30 20:20:19.954 15133 15155 F zygote : runtime.cc:514] | held mutexes= "abort lock"
12-30 20:20:19.954 15133 15155 F zygote : runtime.cc:514] native: #00 pc 002c4be3 /system/lib/libart.so (_ZN3art15DumpNativeStackERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEEiP12BacktraceMapPKcPNS_9ArtMethodEPv+130)
12-30 20:20:19.954 15133 15155 F zygote : runtime.cc:514] native: #01 pc 00356711 /system/lib/libart.so (_ZNK3art6Thread9DumpStackERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEbP12BacktraceMapb+200)
12-30 20:20:19.954 15133 15155 F zygote : runtime.cc:514] native: #02 pc 00352be3 /system/lib/libart.so (_ZNK3art6Thread4DumpERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEbP12BacktraceMapb+34)
12-30 20:20:19.954 15133 15155 F zygote : runtime.cc:514] native: #03 pc 003435dd /system/lib/libart.so (_ZNK3art10AbortState10DumpThreadERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEPNS_6ThreadE+28)
12-30 20:20:19.954 15133 15155 F zygote : runtime.cc:514] native: #04 pc 003433fd /system/lib/libart.so (_ZNK3art10AbortState4DumpERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE+408)
12-30 20:20:19.954 15133 15155 F zygote : runtime.cc:514] native: #05 pc 003382b7 /system/lib/libart.so (_ZN3art7Runtime5AbortEPKc+110)
12-30 20:20:19.954 15133 15155 F zygote : runtime.cc:514] native: #06 pc 003389bf /system/lib/libart.so (_ZN3art7Runtime7AborterEPKc+10)
12-30 20:20:19.954 15133 15155 F zygote : runtime.cc:514] native: #07 pc 003eff2d /system/lib/libart.so (_ZN7android4base10LogMessageD1Ev+456)
12-30 20:20:19.954 15133 15155 F zygote : runtime.cc:514] native: #08 pc 002302e7 /system/lib/libart.so (_ZN3art9JavaVMExt8JniAbortEPKcS2_+1262)
12-30 20:20:19.954 15133 15155 F zygote : runtime.cc:514] native: #09 pc 002304cf /system/lib/libart.so (_ZN3art9JavaVMExt9JniAbortVEPKcS2_St9__va_list+58)
12-30 20:20:19.954 15133 15155 F zygote : runtime.cc:514] native: #10 pc 000d286f /system/lib/libart.so (_ZN3art11ScopedCheck6AbortFEPKcz+46)
12-30 20:20:19.954 15133 15155 F zygote : runtime.cc:514] native: #11 pc 000d7915 /system/lib/libart.so (_ZN3art11ScopedCheck18CheckStaticFieldIDERNS_18ScopedObjectAccessEP7_jclassP9_jfieldID+104)
12-30 20:20:19.954 15133 15155 F zygote : runtime.cc:514] native: #12 pc 000d736b /system/lib/libart.so (_ZN3art11ScopedCheck16CheckFieldAccessERNS_18ScopedObjectAccessEP8_jobjectP9_jfieldIDbNS_9Primitive4TypeE+34)
12-30 20:20:19.954 15133 15155 F zygote : runtime.cc:514] native: #13 pc 000d6d9f /system/lib/libart.so (_ZN3art8CheckJNI8GetFieldEPKcP7_JNIEnvP8_jobjectP9_jfieldIDbNS_9Primitive4TypeE+566)
12-30 20:20:19.954 15133 15155 F zygote : runtime.cc:514] native: #14 pc 000c7ef9 /system/lib/libart.so (_ZN3art8CheckJNI20GetStaticObjectFieldEP7_JNIEnvP7_jclassP9_jfieldID+36)
12-30 20:20:19.954 15133 15155 F zygote : runtime.cc:514] native: #15 pc 00040ad5 /data/data/org.test.buckshotapp/files/app/_python_bundle/site-packages/jnius/jnius.so (???)
12-30 20:20:19.954 15133 15155 F zygote : runtime.cc:514] at org.libsdl.app.SDLActivity.nativeInit(Native method)
12-30 20:20:19.954 15133 15155 F zygote : runtime.cc:514] at org.libsdl.app.SDLMain.run(SDLActivity.java:936)
12-30 20:20:19.954 15133 15155 F zygote : runtime.cc:514] at java.lang.Thread.run(Thread.java:764)
12-30 20:20:19.954 15133 15155 F zygote : runtime.cc:514] Dumping all threads without appropriate locks held: thread list lock mutator lock
12-30 20:20:19.954 15133 15155 F zygote : runtime.cc:514] All threads:
12-30 20:20:19.954 15133 15155 F zygote : runtime.cc:514] DALVIK THREADS (17):
12-30 20:20:19.954 15133 15155 F zygote : runtime.cc:514] "SDLThread" prio=5 tid=16 Runnable
12-30 20:20:19.954 15133 15155 F zygote : runtime.cc:514] | group="" sCount=0 dsCount=0 flags=0 obj=0x17800000 self=0xccc63800
12-30 20:20:19.954 15133 15155 F zygote : runtime.cc:514] | sysTid=15155 nice=0 cgrp=default sched=0/0 handle=0xcbd7f970
12-30 20:20:19.954 15133 15155 F zygote : runtime.cc:514] | state=R schedstat=( 1916876474 169086869 1593 ) utm=174 stm=17 core=4 HZ=100
12-30 20:20:19.954 15133 15155 F zygote : runtime.cc:514] | stack=0xcbc7d000-0xcbc7f000 stackSize=1038KB
12-30 20:20:19.954 15133 15155 F zygote : runtime.cc:514] | held mutexes= "abort lock" "mutator lock"(shared held)
12-30 20:20:19.954 15133 15155 F zygote : runtime.cc:514] native: #00 pc 002c4be3 /system/lib/libart.so (_ZN3art15DumpNativeStackERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEEiP12BacktraceMapPKcPNS_9ArtMethodEPv+130)
12-30 20:20:19.954 15133 15155 F zygote : runtime.cc:514] native: #01 pc 00356711 /system/lib/libart.so (_ZNK3art6Thread9DumpStackERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEbP12BacktraceMapb+200)
12-30 20:20:19.954 15133 15155 F zygote : runtime.cc:514] native: #02 pc 00352be3 /system/lib/libart.so (_ZNK3art6Thread4DumpERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEbP12BacktraceMapb+34)
12-30 20:20:19.954 15133 15155 F zygote : runtime.cc:514] native: #03 pc 0036aaf7 /system/lib/libart.so (_ZN3art14DumpCheckpoint3RunEPNS_6ThreadE+650)
12-30 20:20:19.954 15133 15155 F zygote : runtime.cc:514] native: #04 pc 00364149 /system/lib/libart.so (_ZN3art10ThreadList13RunCheckpointEPNS_7ClosureES2_+324)
12-30 20:20:19.954 15133 15155 F zygote : runtime.cc:514] native: #05 pc 00363ca1 /system/lib/libart.so (_ZN3art10ThreadList4DumpERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEb+536)
12-30 20:20:19.954 15133 15155 F zygote : runtime.cc:514] native: #06 pc 003433c9 /system/lib/libart.so (_ZNK3art10AbortState4DumpERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE+356)
12-30 20:20:19.954 15133 15155 F zygote : runtime.cc:514] native: #07 pc 003382b7 /system/lib/libart.so (_ZN3art7Runtime5AbortEPKc+110)
12-30 20:20:19.954 15133 15155 F zygote : runtime.cc:514] native: #08 pc 003389bf /system/lib/libart.so (_ZN3art7Runtime7AborterEPKc+10)
12-30 20:20:19.954 15133 15155 F zygote : runtime.cc:514] native: #09 pc 003eff2d /system/lib/libart.so (_ZN7android4base10LogMessageD1Ev+456)
12-30 20:20:19.954 15133 15155 F zygote : runtime.cc:514] native: #10 pc 002302e7 /system/lib/libart.so (_ZN3art9JavaVMExt8JniAbortEPKcS2_+1262)
12-30 20:20:19.954 15133 15155 F zygote : runtime.cc:514] native: #11 pc 002304cf /system/lib/libart.so (_ZN3art9JavaVMExt9JniAbortVEPKcS2_St9__va_list+58)
12-30 20:20:19.954 15133 15155 F zygote : runtime.cc:514] native: #12 pc 000d286f /system/lib/libart.so (_ZN3art11ScopedCheck6AbortFEPKcz+46)
12-30 20:20:19.954 15133 15155 F zygote : runtime.cc:514] native: #13 pc 000d7915 /system/lib/libart.so (_ZN3art11ScopedCheck18CheckStaticFieldIDERNS_18ScopedObjectAccessEP7_jclassP9_jfieldID+104)
12-30 20:20:19.954 15133 15155 F zygote : runtime.cc:514] native: #14 pc 000d736b /system/lib/libart.so (_ZN3art11ScopedCheck16CheckFieldAccessERNS_18ScopedObjectAccessEP8_jobjectP9_jfieldIDbNS_9Primitive4TypeE+34)
12-30 20:20:19.954 15133 15155 F zygote : runtime.cc:514] native: #15 pc 000d6d9f /system/lib/libart.so (_ZN3art8CheckJNI8GetFieldEPKcP7_JNIEnvP8_jobjectP9_jfieldIDbNS_9Primitive4TypeE+566)
12-30 20:20:19.954 15133 15155 F zygote : runtime.cc:514] native: #16 pc 000c7ef9 /system/lib/libart.so (_ZN3art8CheckJNI20GetStaticObjectFieldEP7_JNIEnvP7_jclassP9_jfieldID+36)
12-30 20:20:19.954 15133 15155 F zygote : runtime.cc:514] native: #17 pc 00040ad5 /data/data/org.test.buckshotapp/files/app/_python_bundle/site-packages/jnius/jnius.so (???)
12-30 20:20:19.954 15133 15155 F zygote : runtime.cc:514] at org.libsdl.app.SDLActivity.nativeInit(Native method)
12-30 20:20:19.954 15133 15155 F zygote : runtime.cc:514] at org.libsdl.app.SDLMain.run(SDLActivity.java:936)
12-30 20:20:19.954 15133 15155 F zygote : runtime.cc:514] at java.lang.Thread.run(Thread.java:764)
12-30 20:20:19.954 15133 15155 F zygote : runtime.cc:514]
12-30 20:20:19.954 15133 15155 F zygote : runtime.cc:514] "main" prio=5 tid=1 Native
12-30 20:20:19.954 15133 15155 F zygote : runtime.cc:514] | group="" sCount=1 dsCount=0 flags=1 obj=0x733cb5a0 self=0xea15e000
12-30 20:20:19.954 15133 15155 F zygote : runtime.cc:514] | sysTid=15133 nice=-10 cgrp=default sched=0/0 handle=0xeead74bc
12-30 20:20:19.954 15133 15155 F zygote : runtime.cc:514] | state=S schedstat=( 848072403 151211719 2029 ) utm=57 stm=27 core=7 HZ=100
12-30 20:20:19.954 15133 15155 F zygote : runtime.cc:514] | stack=0xff062000-0xff064000 stackSize=8MB
12-30 20:20:19.954 15133 15155 F zygote : runtime.cc:514] | held mutexes=
12-30 20:20:19.954 15133 15155 F zygote : runtime.cc:514] kernel: __switch_to+0x98/0xd4
12-30 20:20:19.954 15133 15155 F zygote : runtime.cc:514] kernel: SyS_epoll_wait+0x398/0x3fc
12-30 20:20:19.954 15133 15155 F zygote : runtime.cc:514] kernel: compat_SyS_epoll_pwait+0x134/0x148
12-30 20:20:19.954 15133 15155 F zygote : runtime.cc:514] kernel: __sys_trace+0x4c/0x4c
12-30 20:20:19.954 15133 15155 F zygote : runtime.cc:514] native: #00 pc 0004a638 /system/lib/libc.so (__epoll_pwait+20)
12-30 20:20:19.954 15133 15155 F zygote : runtime.cc:514] native: #01 pc 0001bd45 /system/lib/libc.so (epoll_pwait+60)
12-30 20:20:19.954 15133 15155 F zygote : runtime.cc:514] native: #02 pc 0001bd75 /system/lib/libc.so (epoll_wait+12)
12-30 20:20:19.954 15133 15155 F zygote : runtime.cc:514] native: #03 pc 00010407 /system/lib/libutils.so (_ZN7android6Looper9pollInnerEi+118)
12-30 20:20:19.954 15133 15155 F zygote : runtime.cc:514] native: #04 pc 000102f9 /system/lib/libutils.so (_ZN7android6Looper8pollOnceEiPiS1_PPv+32)
12-30 20:20:19.954 15133 15155 F zygote : runtime.cc:514] native: #05 pc 000e47d5 /system/lib/libandroid_runtime.so (_ZN7android18NativeMessageQueue8pollOnceEP7_JNIEnvP8_jobjecti+24)
12-30 20:20:19.954 15133 15155 F zygote : runtime.cc:514] native: #06 pc 001a551d /system/framework/arm/boot-framework.oat (Java_android_os_MessageQueue_nativePollOnce__JI+92)
12-30 20:20:19.954 15133 15155 F zygote : runtime.cc:514] at android.os.MessageQueue.nativePollOnce(Native method)
12-30 20:20:19.954 15133 15155 F zygote : runtime.cc:514] at android.os.MessageQueue.next(MessageQueue.java:325)
12-30 20:20:19.954 15133 15155 F zygote : runtime.cc:514] at android.os.Looper.loop(Looper.java:142)
12-30 20:20:19.954 15133 15155 F zygote : runtime.cc:514] at android.app.ActivityThread.main(ActivityThread.java:6938)
12-30 20:20:19.954 15133 15155 F zygote : runtime.cc:514] at java.lang.reflect.Method.invoke(Native method)
12-30 20:20:19.954 15133 15155 F zygote : runtime.cc:514] at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
12-30 20:20:19.954 15133 15155 F zygote : runtime.cc:514] at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)
12-30 20:20:19.954 15133 15155 F zygote : runtime.cc:514]
### more of these thread dumps here that don't mention jnius...
12-30 20:20:19.956 15133 15155 F zygote : runtime.cc:514] "AsyncTask #1" prio=5 tid=14 TimedWaiting
12-30 20:20:19.956 15133 15155 F zygote : runtime.cc:514] | group="" sCount=1 dsCount=0 flags=1 obj=0x17803340 self=0xdcbfde00
12-30 20:20:19.956 15133 15155 F zygote : runtime.cc:514] | sysTid=15151 nice=10 cgrp=default sched=0/0 handle=0xccb7f970
12-30 20:20:19.956 15133 15155 F zygote : runtime.cc:514] | state=S schedstat=( 2854061 201459 4 ) utm=0 stm=0 core=3 HZ=100
12-30 20:20:19.956 15133 15155 F zygote : runtime.cc:514] | stack=0xcca7d000-0xcca7f000 stackSize=1038KB
12-30 20:20:19.956 15133 15155 F zygote : runtime.cc:514] | held mutexes=
12-30 20:20:19.956 15133 15155 F zygote : runtime.cc:514] kernel: __switch_to+0x98/0xd4
12-30 20:20:19.956 15133 15155 F zygote : runtime.cc:514] kernel: futex_wait_queue_me+0xbc/0x128
12-30 20:20:19.956 15133 15155 F zygote : runtime.cc:514] kernel: futex_wait+0xe0/0x204
12-30 20:20:19.956 15133 15155 F zygote : runtime.cc:514] kernel: do_futex+0x20c/0x580
12-30 20:20:19.956 15133 15155 F zygote : runtime.cc:514] kernel: __sys_trace+0x4c/0x4c
12-30 20:20:19.956 15133 15155 F zygote : runtime.cc:514] native: #00 pc 000191ec /system/lib/libc.so (syscall+32)
12-30 20:20:19.956 15133 15155 F zygote : runtime.cc:514] native: #01 pc 000b3e21 /system/lib/libart.so (_ZN3art17ConditionVariable9TimedWaitEPNS_6ThreadExi+108)
12-30 20:20:19.956 15133 15155 F zygote : runtime.cc:514] | held mutexes=
12-30 20:20:19.956 15133 15155 F zygote : runtime.cc:514] kernel: SyS_epoll_wait+0x398/0x3fc
12-30 20:20:19.956 15133 15155 F zygote : runtime.cc:514] native: #02 pc 0001bd75 /system/lib/libc.so (epoll_wait+12)
12-30 20:20:19.956 15133 15155 F zygote : runtime.cc:514] native: #05 pc 0003e18f /system/lib/libhwui.so (_ZN7android10uirenderer12renderthread12RenderThread10threadLoopEv+402)
12-30 20:20:19.956 15133 15155 F zygote : runtime.cc:514] at java.lang.Thread.join(Thread.java:1336)
12-30 20:20:19.957 15133 15155 F zygote : runtime.cc:522] JNI DETECTED ERROR IN APPLICATION: static jfieldID 0xebf00014 not valid for class java.lang.Class<org.renpy.android.PythonActivity>
12-30 20:20:19.957 15133 15155 F zygote : runtime.cc:522] | state=R schedstat=( 1879427619 168974836 1587 ) utm=170 stm=17 core=4 HZ=100
12-30 20:20:19.957 15133 15155 F zygote : runtime.cc:522] | stack=0xcbc7d000-0xcbc7f000 stackSize=1038KB
12-30 20:20:19.957 15133 15155 F zygote : runtime.cc:522] at org.libsdl.app.SDLMain.run(SDLActivity.java:936)
12-30 20:20:19.959 15133 15155 F libc : Fatal signal 6 (SIGABRT), code -6 in tid 15155 (SDLThread)
### later, a bunch of repetitions of these lines:
12-30 20:20:19.996 15173 15173 E propClient: PropClient failed to load
12-30 20:20:20.002 889 889 E audit : type=1400 audit(1546230019.992:7385): avc: denied { search } for pid=15174 comm="crash_dump32" name="org.test.buckshotapp" dev="dm-3" ino=263379 scontext=u:r:crash_dump:s0:c512,c768 tconte
xt=u:object_r:app_data_file:s0:c512,c768 tclass=dir permissive=0 SEPF_SM-G960U_8.0.0_0017 audit_filtered
12-30 20:20:20.002 889 889 E audit : type=1300 audit(1546230019.992:7385): arch=40000028 syscall=322 per=8 success=no exit=-13 a0=ffffff9c a1=ec5ca000 a2=20000 a3=0 items=0 ppid=1 pid=15174 auid=4294967295 uid=10247 gid=10247 eu
id=10247 suid=10247 fsuid=10247 egid=10247 sgid=10247 fsgid=10247 tty=(none) ses=4294967295 comm="crash_dump32" exe="/system/bin/crash_dump32" subj=u:r:crash_dump:s0:c512,c768 key=(null)
12-30 20:20:20.002 889 889 E audit : type=1327 audit(1546230019.992:7385): proctitle=63726173685F64756D703332003135313535003135313732
12-30 20:20:20.002 889 889 E audit : type=1400 audit(1546230019.992:7386): avc: denied { search } for pid=15174 comm="crash_dump32" name="org.test.buckshotapp" dev="dm-3" ino=263379 scontext=u:r:crash_dump:s0:c512,c768 tconte
xt=u:object_r:app_data_file:s0:c512,c768 tclass=dir permissive=0 SEPF_SM-G960U_8.0.0_0017 audit_filtered
12-30 20:20:20.002 889 889 E audit : type=1300 audit(1546230019.992:7386): arch=40000028 syscall=322 per=8 success=no exit=-13 a0=ffffff9c a1=ec5ca150 a2=20000 a3=0 items=0 ppid=1 pid=15174 auid=4294967295 uid=10247 gid=10247 eu
id=10247 suid=10247 fsuid=10247 egid=10247 sgid=10247 fsgid=10247 tty=(none) ses=4294967295 comm="crash_dump32" exe="/system/bin/crash_dump32" subj=u:r:crash_dump:s0:c512,c768 key=(null)
12-30 20:20:20.002 889 889 E audit : type=1327 audit(1546230019.992:7386): proctitle=63726173685F64756D703332003135313535003135313732
###################################################
12-30 20:20:20.022 960 960 I /system/bin/tombstoned: received crash request for pid 15133
12-30 20:20:20.024 15174 15174 I crash_dump32: performing dump of process 15133 (target tid = 15155)
12-30 20:20:20.024 15174 15174 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
12-30 20:20:20.025 15174 15174 F DEBUG : Build fingerprint: 'samsung/starqltesq/starqltesq:8.0.0/R16NW/G960USQS3BRK2:user/release-keys'
12-30 20:20:20.025 15174 15174 F DEBUG : Revision: '14'
12-30 20:20:20.025 15174 15174 F DEBUG : ABI: 'arm'
12-30 20:20:20.025 15174 15174 F DEBUG : pid: 15133, tid: 15155, name: SDLThread >>> org.test.buckshotapp <<<
12-30 20:20:20.025 15174 15174 F DEBUG : signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
12-30 20:20:20.026 15174 15174 F DEBUG : Abort message: 'java_vm_ext.cc:504] JNI DETECTED ERROR IN APPLICATION: static jfieldID 0xebf00014 not valid for class java.lang.Class<org.renpy.android.PythonActivity>'
12-30 20:20:20.026 15174 15174 F DEBUG : r0 00000000 r1 00003b33 r2 00000006 r3 00000008
12-30 20:20:20.026 15174 15174 F DEBUG : r4 00003b1d r5 00003b33 r6 cbd7d598 r7 0000010c
12-30 20:20:20.026 15174 15174 F DEBUG : r8 0000000b r9 cbd7d5f9 sl 0000000a fp cbd7d5f8
12-30 20:20:20.026 15174 15174 F DEBUG : ip 00000000 sp cbd7d588 lr ebcf2a87 pc ebd23d10 cpsr 200f0010
12-30 20:20:20.029 15174 15174 F DEBUG :
12-30 20:20:20.029 15174 15174 F DEBUG : backtrace:
12-30 20:20:20.029 15174 15174 F DEBUG : #00 pc 0004bd10 /system/lib/libc.so (tgkill+12)
12-30 20:20:20.029 15174 15174 F DEBUG : #01 pc 0001aa83 /system/lib/libc.so (abort+54)
12-30 20:20:20.029 15174 15174 F DEBUG : #02 pc 0033832f /system/lib/libart.so (_ZN3art7Runtime5AbortEPKc+230)
12-30 20:20:20.029 15174 15174 F DEBUG : #03 pc 003389bf /system/lib/libart.so (_ZN3art7Runtime7AborterEPKc+10)
12-30 20:20:20.029 15174 15174 F DEBUG : #04 pc 003eff2d /system/lib/libart.so (_ZN7android4base10LogMessageD1Ev+456)
12-30 20:20:20.029 15174 15174 F DEBUG : #05 pc 002302e7 /system/lib/libart.so (_ZN3art9JavaVMExt8JniAbortEPKcS2_+1262)
12-30 20:20:20.029 15174 15174 F DEBUG : #06 pc 002304cf /system/lib/libart.so (_ZN3art9JavaVMExt9JniAbortVEPKcS2_St9__va_list+58)
12-30 20:20:20.029 15174 15174 F DEBUG : #07 pc 000d286f /system/lib/libart.so (_ZN3art11ScopedCheck6AbortFEPKcz+46)
12-30 20:20:20.029 15174 15174 F DEBUG : #08 pc 000d7915 /system/lib/libart.so (_ZN3art11ScopedCheck18CheckStaticFieldIDERNS_18ScopedObjectAccessEP7_jclassP9_jfieldID+104)
12-30 20:20:20.029 15174 15174 F DEBUG : #09 pc 000d736b /system/lib/libart.so (_ZN3art11ScopedCheck16CheckFieldAccessERNS_18ScopedObjectAccessEP8_jobjectP9_jfieldIDbNS_9Primitive4TypeE+34)
12-30 20:20:20.029 15174 15174 F DEBUG : #10 pc 000d6d9f /system/lib/libart.so (_ZN3art8CheckJNI8GetFieldEPKcP7_JNIEnvP8_jobjectP9_jfieldIDbNS_9Primitive4TypeE+566)
12-30 20:20:20.029 15174 15174 F DEBUG : #11 pc 000c7ef9 /system/lib/libart.so (_ZN3art8CheckJNI20GetStaticObjectFieldEP7_JNIEnvP7_jclassP9_jfieldID+36)
12-30 20:20:20.029 15174 15174 F DEBUG : #12 pc 00040ad5 /data/data/org.test.buckshotapp/files/app/_python_bundle/site-packages/jnius/jnius.so
__version__ = '1.0'
# perform any calls to Config.set before importing any kivy modules!
# (https://kivy.org/docs/api-kivy.config.html)
from kivy.config import Config
Config.set('kivy','keyboard_mode','systemanddock')
Config.set('kivy','log_dir','buckshotLogDir')
Config.set('kivy','log_enable',1)
Config.set('kivy','log_level','info')
Config.set('kivy','log_maxfiles',5)
from kivy.app import App
from kivy.uix.button import Button
from jnius import cast
from jnius import autoclass
from kivy.logger import Logger
class doStuffApp(App):
def doStuff(self, button):
# from https://github.com/kivy/pyjnius/blob/master/docs/source/android.rst#accessing-the-activity
# from jnius import cast # already done above
# from jnius import autoclass # already done above
# import the needed Java class
PythonActivity = autoclass('org.renpy.android.PythonActivity')
Intent = autoclass('android.content.Intent')
Uri = autoclass('android.net.Uri')
# create the intent
intent = Intent()
intent.setAction(Intent.ACTION_VIEW)
intent.setData(Uri.parse('http://kivy.org'))
# PythonActivity.mActivity is the instance of the current Activity
# BUT, startActivity is a method from the Activity class, not from our
# PythonActivity.
# We need to cast our class into an activity and use it
currentActivity = cast('android.app.Activity', PythonActivity.mActivity)
currentActivity.startActivity(intent)
# The website will open.
def build(self):
return Button(text='Do Stuff', on_press=self.doStuff)
if __name__ == '__main__':
doStuffApp().run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment