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.

Activity lifecycle issues. after onDestroy, application will become unusable

See original GitHub issue

I am testing latest Electrum, which uses p4a https://github.com/kivy/python-for-android/commit/ccb0f8e1bab36f1b7d1508216b4b4afb076e614f, buildozer https://github.com/kivy/buildozer/commit/678b1bf52cf63daa51b06e86a43ea4e2ea8a0b24, and kivy https://github.com/kivy/kivy/commit/82d561d62577757d478df52173610f925c05ecab (sdl2 bootstrap) on both Android 8 and 9

If the application is in the background, and the OS destroys the activity to reclaim memory, the next time the user puts the app into foreground, the whole screen will be black/empty, and the app needs to be killed manually and restarted for it to become usable.

To test this, go to Android settings > Developer options > and enable Don't keep activities. Then,

  • open the application (put it into foreground);
  • put it into background (so e.g. open another app),
  • go back to the application (foreground again)
  • now screen is black and empty, app is unusable

To make sure this is not an issue with Electrum, I’ve also reproduced using @AndreMirasEtherollApp.

logcat 1, with activity left alone by OS, works as expected
$ adb logcat | grep -F "`adb shell ps | grep org.electrum.electrum | cut -c14-19`"
06-07 20:18:17.199 24454 24454 I zygote  : Late-enabling -Xcheck:jni
06-07 20:18:17.399 24454 24454 V PythonActivity: PythonActivity onCreate running
06-07 20:18:17.400 24454 24454 V PythonActivity: About to do super onCreate
06-07 20:18:17.401 24454 24454 V SDL     : Device: bullhead
06-07 20:18:17.402 24454 24454 V SDL     : Model: Nexus 5X
06-07 20:18:17.402 24454 24454 V SDL     : onCreate()
06-07 20:18:17.403 24454 24454 V PythonActivity: Did super onCreate
06-07 20:18:17.403 24454 24454 V SDL     : getting identifier
06-07 20:18:17.403 24454 24454 V SDL     : kind is drawable and name presplash
06-07 20:18:17.404 24454 24454 V SDL     : result is 2130903042
06-07 20:18:17.423 24454 24454 V SDL     : asked to get string presplash_color
06-07 20:18:17.423 24454 24454 V SDL     : getting identifier
06-07 20:18:17.423 24454 24454 V SDL     : kind is string and name presplash_color
06-07 20:18:17.424 24454 24454 V SDL     : result is 2131165185
06-07 20:18:17.472 24454 24470 V PythonActivity: Ready to unpack
06-07 20:18:17.472 24454 24470 V PythonActivity: UNPACKING!!! private app
06-07 20:18:17.473 24454 24470 V SDL     : asked to get string private_version
06-07 20:18:17.473 24454 24470 V SDL     : getting identifier
06-07 20:18:17.473 24454 24470 V SDL     : kind is string and name private_version
06-07 20:18:17.473 24454 24470 V SDL     : result is 2131165186
06-07 20:18:17.474 24454 24470 V PythonActivity: Data version is 1559930012.207475
06-07 20:18:17.475 24454 24454 V PythonActivity: onResume()
06-07 20:18:17.476 24454 24454 V SDL     : onResume()
06-07 20:18:17.503 24454 24471 D OpenGLRenderer: HWUI GL Pipeline
06-07 20:18:17.524 24454 24454 V pythonutil: Checking pattern libcrystax\.so against libssl1.1.so
06-07 20:18:17.524 24454 24454 V pythonutil: Checking pattern libcrystax\.so against libSDL2_mixer.so
06-07 20:18:17.525 24454 24454 V pythonutil: Checking pattern libcrystax\.so against libSDL2_ttf.so
06-07 20:18:17.525 24454 24454 V pythonutil: Checking pattern libcrystax\.so against libsecp256k1.so
06-07 20:18:17.526 24454 24454 V pythonutil: Checking pattern libcrystax\.so against libmain.so
06-07 20:18:17.526 24454 24454 V pythonutil: Checking pattern libcrystax\.so against libSDL2.so
06-07 20:18:17.527 24454 24454 V pythonutil: Checking pattern libcrystax\.so against libhidapi.so
06-07 20:18:17.527 24454 24454 V pythonutil: Checking pattern libcrystax\.so against libffi.so
06-07 20:18:17.527 24454 24454 V pythonutil: Checking pattern libcrystax\.so against libsqlite3.so
06-07 20:18:17.528 24454 24454 V pythonutil: Checking pattern libcrystax\.so against libcrypto1.1.so
06-07 20:18:17.528 24454 24454 V pythonutil: Checking pattern libcrystax\.so against libSDL2_image.so
06-07 20:18:17.529 24454 24454 V pythonutil: Checking pattern libcrystax\.so against libpython3.7m.so
06-07 20:18:17.533 24454 24454 V pythonutil: Checking pattern libsqlite3\.so against libssl1.1.so
06-07 20:18:17.534 24454 24454 V pythonutil: Checking pattern libsqlite3\.so against libSDL2_mixer.so
06-07 20:18:17.534 24454 24454 V pythonutil: Checking pattern libsqlite3\.so against libSDL2_ttf.so
06-07 20:18:17.535 24454 24454 V pythonutil: Checking pattern libsqlite3\.so against libsecp256k1.so
06-07 20:18:17.535 24454 24454 V pythonutil: Checking pattern libsqlite3\.so against libmain.so
06-07 20:18:17.535 24454 24454 V pythonutil: Checking pattern libsqlite3\.so against libSDL2.so
06-07 20:18:17.536 24454 24454 V pythonutil: Checking pattern libsqlite3\.so against libhidapi.so
06-07 20:18:17.536 24454 24454 V pythonutil: Checking pattern libsqlite3\.so against libffi.so
06-07 20:18:17.536 24454 24454 V pythonutil: Checking pattern libsqlite3\.so against libsqlite3.so
06-07 20:18:17.537 24454 24454 V pythonutil: Pattern libsqlite3\.so matched file libsqlite3.so
06-07 20:18:17.537 24454 24454 V pythonutil: Checking pattern libsqlite3\.so against libcrypto1.1.so
06-07 20:18:17.537 24454 24454 V pythonutil: Checking pattern libsqlite3\.so against libSDL2_image.so
06-07 20:18:17.537 24454 24454 V pythonutil: Checking pattern libsqlite3\.so against libpython3.7m.so
06-07 20:18:17.540 24454 24454 V pythonutil: Checking pattern libffi\.so against libssl1.1.so
06-07 20:18:17.540 24454 24454 V pythonutil: Checking pattern libffi\.so against libSDL2_mixer.so
06-07 20:18:17.540 24454 24454 V pythonutil: Checking pattern libffi\.so against libSDL2_ttf.so
06-07 20:18:17.541 24454 24454 V pythonutil: Checking pattern libffi\.so against libsecp256k1.so
06-07 20:18:17.541 24454 24454 V pythonutil: Checking pattern libffi\.so against libmain.so
06-07 20:18:17.541 24454 24454 V pythonutil: Checking pattern libffi\.so against libSDL2.so
06-07 20:18:17.541 24454 24454 V pythonutil: Checking pattern libffi\.so against libhidapi.so
06-07 20:18:17.542 24454 24454 V pythonutil: Checking pattern libffi\.so against libffi.so
06-07 20:18:17.542 24454 24454 V pythonutil: Pattern libffi\.so matched file libffi.so
06-07 20:18:17.542 24454 24454 V pythonutil: Checking pattern libffi\.so against libsqlite3.so
06-07 20:18:17.542 24454 24454 V pythonutil: Checking pattern libffi\.so against libcrypto1.1.so
06-07 20:18:17.543 24454 24454 V pythonutil: Checking pattern libffi\.so against libSDL2_image.so
06-07 20:18:17.543 24454 24454 V pythonutil: Checking pattern libffi\.so against libpython3.7m.so
06-07 20:18:17.545 24454 24454 V pythonutil: Checking pattern libpng16\.so against libssl1.1.so
06-07 20:18:17.545 24454 24454 V pythonutil: Checking pattern libpng16\.so against libSDL2_mixer.so
06-07 20:18:17.545 24454 24454 V pythonutil: Checking pattern libpng16\.so against libSDL2_ttf.so
06-07 20:18:17.546 24454 24454 V pythonutil: Checking pattern libpng16\.so against libsecp256k1.so
06-07 20:18:17.546 24454 24454 V pythonutil: Checking pattern libpng16\.so against libmain.so
06-07 20:18:17.546 24454 24454 V pythonutil: Checking pattern libpng16\.so against libSDL2.so
06-07 20:18:17.547 24454 24454 V pythonutil: Checking pattern libpng16\.so against libhidapi.so
06-07 20:18:17.547 24454 24454 V pythonutil: Checking pattern libpng16\.so against libffi.so
06-07 20:18:17.547 24454 24454 V pythonutil: Checking pattern libpng16\.so against libsqlite3.so
06-07 20:18:17.547 24454 24454 V pythonutil: Checking pattern libpng16\.so against libcrypto1.1.so
06-07 20:18:17.548 24454 24454 V pythonutil: Checking pattern libpng16\.so against libSDL2_image.so
06-07 20:18:17.549 24454 24454 V pythonutil: Checking pattern libpng16\.so against libpython3.7m.so
06-07 20:18:17.552 24454 24454 V pythonutil: Checking pattern libssl.*\.so against libssl1.1.so
06-07 20:18:17.553 24454 24454 V pythonutil: Pattern libssl.*\.so matched file libssl1.1.so
06-07 20:18:17.553 24454 24454 V pythonutil: Checking pattern libssl.*\.so against libSDL2_mixer.so
06-07 20:18:17.553 24454 24454 V pythonutil: Checking pattern libssl.*\.so against libSDL2_ttf.so
06-07 20:18:17.553 24454 24454 V pythonutil: Checking pattern libssl.*\.so against libsecp256k1.so
06-07 20:18:17.554 24454 24454 V pythonutil: Checking pattern libssl.*\.so against libmain.so
06-07 20:18:17.554 24454 24454 V pythonutil: Checking pattern libssl.*\.so against libSDL2.so
06-07 20:18:17.554 24454 24454 V pythonutil: Checking pattern libssl.*\.so against libhidapi.so
06-07 20:18:17.555 24454 24454 V pythonutil: Checking pattern libssl.*\.so against libffi.so
06-07 20:18:17.555 24454 24454 V pythonutil: Checking pattern libssl.*\.so against libsqlite3.so
06-07 20:18:17.555 24454 24454 V pythonutil: Checking pattern libssl.*\.so against libcrypto1.1.so
06-07 20:18:17.555 24454 24454 V pythonutil: Checking pattern libssl.*\.so against libSDL2_image.so
06-07 20:18:17.556 24454 24454 V pythonutil: Checking pattern libssl.*\.so against libpython3.7m.so
06-07 20:18:17.557 24454 24454 V pythonutil: Checking pattern libcrypto.*\.so against libssl1.1.so
06-07 20:18:17.558 24454 24454 V pythonutil: Checking pattern libcrypto.*\.so against libSDL2_mixer.so
06-07 20:18:17.558 24454 24454 V pythonutil: Checking pattern libcrypto.*\.so against libSDL2_ttf.so
06-07 20:18:17.559 24454 24454 V pythonutil: Checking pattern libcrypto.*\.so against libsecp256k1.so
06-07 20:18:17.559 24454 24454 V pythonutil: Checking pattern libcrypto.*\.so against libmain.so
06-07 20:18:17.559 24454 24454 V pythonutil: Checking pattern libcrypto.*\.so against libSDL2.so
06-07 20:18:17.559 24454 24454 V pythonutil: Checking pattern libcrypto.*\.so against libhidapi.so
06-07 20:18:17.560 24454 24454 V pythonutil: Checking pattern libcrypto.*\.so against libffi.so
06-07 20:18:17.560 24454 24454 V pythonutil: Checking pattern libcrypto.*\.so against libsqlite3.so
06-07 20:18:17.560 24454 24454 V pythonutil: Checking pattern libcrypto.*\.so against libcrypto1.1.so
06-07 20:18:17.560 24454 24454 V pythonutil: Pattern libcrypto.*\.so matched file libcrypto1.1.so
06-07 20:18:17.560 24454 24454 V pythonutil: Checking pattern libcrypto.*\.so against libSDL2_image.so
06-07 20:18:17.561 24454 24454 V pythonutil: Checking pattern libcrypto.*\.so against libpython3.7m.so
06-07 20:18:17.561 24454 24454 V pythonutil: Loading library: sqlite3
06-07 20:18:17.567 24454 24454 V pythonutil: Loading library: ffi
06-07 20:18:17.569 24454 24454 V pythonutil: Loading library: SDL2
06-07 20:18:17.576 24454 24454 V pythonutil: Loading library: SDL2_image
06-07 20:18:17.580 24454 24454 V pythonutil: Loading library: SDL2_mixer
06-07 20:18:17.587 24454 24454 V pythonutil: Loading library: SDL2_ttf
06-07 20:18:17.590 24454 24454 V pythonutil: Loading library: ssl1.1
06-07 20:18:17.597 24454 24454 V pythonutil: Loading library: crypto1.1
06-07 20:18:17.598 24454 24454 V pythonutil: Loading library: python2.7
06-07 20:18:17.605 24454 24454 V pythonutil: Library loading error: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/org.electrum.electrum-hYm5bzKVm5PKk3u6o-Pa2Q==/base.apk"],nativeLibraryDirectories=[/data/app/org.electrum.electrum-hYm5bzKVm5PKk3u6o-Pa2Q==/lib/arm, /data/app/org.electrum.electrum-hYm5bzKVm5PKk3u6o-Pa2Q==/base.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib]]] couldn't find "libpython2.7.so"
06-07 20:18:17.605 24454 24454 V pythonutil: Loading library: python3.5m
06-07 20:18:17.607 24454 24454 V pythonutil: Library loading error: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/org.electrum.electrum-hYm5bzKVm5PKk3u6o-Pa2Q==/base.apk"],nativeLibraryDirectories=[/data/app/org.electrum.electrum-hYm5bzKVm5PKk3u6o-Pa2Q==/lib/arm, /data/app/org.electrum.electrum-hYm5bzKVm5PKk3u6o-Pa2Q==/base.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib]]] couldn't find "libpython3.5m.so"
06-07 20:18:17.607 24454 24454 V pythonutil: Loading library: python3.6m
06-07 20:18:17.609 24454 24454 V pythonutil: Library loading error: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/org.electrum.electrum-hYm5bzKVm5PKk3u6o-Pa2Q==/base.apk"],nativeLibraryDirectories=[/data/app/org.electrum.electrum-hYm5bzKVm5PKk3u6o-Pa2Q==/lib/arm, /data/app/org.electrum.electrum-hYm5bzKVm5PKk3u6o-Pa2Q==/base.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib]]] couldn't find "libpython3.6m.so"
06-07 20:18:17.609 24454 24454 V pythonutil: Loading library: python3.7m
06-07 20:18:17.615 24454 24454 V pythonutil: Loading library: main
06-07 20:18:17.620 24454 24454 V pythonutil: Failed to load _io.so or unicodedata.so...but that's okay.
06-07 20:18:17.621 24454 24454 V pythonutil: Unsatisfied linker when loading ctypes
06-07 20:18:17.621 24454 24454 V pythonutil: Loaded everything!
06-07 20:18:17.622 24454 24454 V SDL     : nativeSetupJNI()
06-07 20:18:17.622 24454 24454 V SDL     : AUDIO nativeSetupJNI()
06-07 20:18:17.623 24454 24454 V SDL     : CONTROLLER nativeSetupJNI()
06-07 20:18:17.647 24454 24454 D hidapi  : Initializing Bluetooth
06-07 20:18:17.650 24454 24454 D hidapi  : Couldn't initialize Bluetooth, missing android.permission.BLUETOOTH
06-07 20:18:17.685 24454 24454 V PythonActivity: Setting env vars for start.c and Python to use
06-07 20:18:17.686 24454 24454 V PythonActivity: Access to our meta-data...
06-07 20:18:17.690 24454 24454 I PythonActivity: Surface will NOT be transparent
06-07 20:18:17.690 24454 24454 V PythonActivity: onResume()
06-07 20:18:17.690 24454 24454 V SDL     : onResume()
06-07 20:18:17.730 24454 24471 I Adreno  : QUALCOMM build                   : 8e59954, I0be83d0d26
06-07 20:18:17.730 24454 24471 I Adreno  : Build Date                       : 09/22/17
06-07 20:18:17.730 24454 24471 I Adreno  : OpenGL ES Shader Compiler Version: EV031.21.02.00
06-07 20:18:17.730 24454 24471 I Adreno  : Local Branch                     : O17A
06-07 20:18:17.730 24454 24471 I Adreno  : Remote Branch                    : 
06-07 20:18:17.730 24454 24471 I Adreno  : Remote Branch                    : 
06-07 20:18:17.730 24454 24471 I Adreno  : Reconstruct Branch               : 
06-07 20:18:17.731 24454 24471 D vndksupport: Loading /vendor/lib/hw/gralloc.msm8992.so from current namespace instead of sphal namespace.
06-07 20:18:17.739 24454 24471 I Adreno  : PFP: 0x00000000, ME: 0x00000000
06-07 20:18:17.748 24454 24454 V SDL     : surfaceCreated()
06-07 20:18:17.748 24454 24454 V SDL     : surfaceChanged()
06-07 20:18:17.748 24454 24454 V SDL     : pixel format RGB_565
06-07 20:18:17.749 24454 24471 I zygote  : android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0
06-07 20:18:17.750 24454 24454 V SDL     : Window size: 1080x1731
06-07 20:18:17.750 24454 24454 V SDL     : Device size: 1080x1920
06-07 20:18:17.753 24454 24471 I OpenGLRenderer: Initialized EGL, version 1.4
06-07 20:18:17.753 24454 24471 D OpenGLRenderer: Swap behavior 2
06-07 20:18:17.763 24454 24454 V SDL     : nativeResume()
06-07 20:18:17.764 24454 24473 V SDL     : Running main function SDL_main from library /data/app/org.electrum.electrum-hYm5bzKVm5PKk3u6o-Pa2Q==/lib/arm/libmain.so
06-07 20:18:17.764 24454 24473 V PythonActivity: appConfirmedActive() -> preparing loading screen removal
06-07 20:18:17.764 24454 24473 V SDL     : nativeRunMain()
06-07 20:18:17.766 24454 24473 I python  : Initializing Python for Android
06-07 20:18:17.766 24454 24473 I python  : Setting additional env vars from p4a_env_vars.txt
06-07 20:18:17.766 24454 24473 I python  : Changing directory to the one provided by ANDROID_ARGUMENT
06-07 20:18:17.766 24454 24473 I python  : /data/user/0/org.electrum.electrum/files/app
06-07 20:18:17.766 24454 24473 I python  : Preparing to initialize python
06-07 20:18:17.766 24454 24473 I python  : _python_bundle dir exists
06-07 20:18:17.766 24454 24473 I python  : calculated paths to be...
06-07 20:18:17.766 24454 24473 I python  : /data/user/0/org.electrum.electrum/files/app/_python_bundle/stdlib.zip:/data/user/0/org.electrum.electrum/files/app/_python_bundle/modules
06-07 20:18:17.767 24454 24473 I python  : set wchar paths...
06-07 20:18:17.797 24454 24471 D vndksupport: Loading /vendor/lib/hw/android.hardware.graphics.mapper@2.0-impl.so from current namespace instead of sphal namespace.
06-07 20:18:17.800 24454 24471 D vndksupport: Loading /vendor/lib/hw/gralloc.msm8992.so from current namespace instead of sphal namespace.
06-07 20:18:17.827 24454 24454 V SDL     : onWindowFocusChanged(): true
06-07 20:18:17.877 24454 24473 I python  : Initialized python
06-07 20:18:17.877 24454 24473 I python  : AND: Init threads
06-07 20:18:17.880 24454 24473 I python  : testing python print redirection
06-07 20:18:17.882 24454 24473 I python  : Android path ['.', '/data/user/0/org.electrum.electrum/files/app/_python_bundle/stdlib.zip', '/data/user/0/org.electrum.electrum/files/app/_python_bundle/modules', '/data/user/0/org.electrum.electrum/files/app/_python_bundle/site-packages']
06-07 20:18:17.883 24454 24473 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/core-oj.jar:/system/framework/core-libart.jar:/system/framework/conscrypt.jar:/system/framework/okhttp.jar:/system/framework/bouncycastle.jar:/system/framework/apache-xml.jar:/system/framework/legacy-test.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/org.apache.http.legacy.boot.jar:/system/framework/android.hidl.base-V1.0-java.jar:/system/framework/android.hidl.manager-V1.0-java.jar', 'SYSTEMSERVERCLASSPATH': '/system/framework/services.jar:/system/framework/ethernet-service.jar:/system/framework/wifi-service.jar:/system/framework/com.android.location.provider.jar', 'ANDROID_SOCKET_zygote_secondary': '9', 'ANDROID_ENTRYPOINT': 'main.pyc', 'ANDROID_ARGUMENT': '/data/user/0/org.electrum.electrum/files/app', 'ANDROID_APP_PATH': '/data/user/0/org.electrum.electrum/files/app', 'ANDROID_PRIVATE': '/data/user/0/org.electrum.electrum/files', 'ANDROID_UNPACK': '/data/user/0/org.electrum.electrum/files/app', 'PYTHONHOME': '/data/user/0/org.electrum.electrum/files/app', 'PYTHONPATH': '/data/user/0/org.electrum.electrum/files/app:/data/user/0/org.electrum.electrum/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'})
06-07 20:18:17.883 24454 24473 I python  : Android kivy bootstrap done. __name__ is __main__
06-07 20:18:17.883 24454 24473 I python  : AND: Ran string
06-07 20:18:17.883 24454 24473 I python  : Run user program, change dir and execute entrypoint
06-07 20:18:21.945 24454 24473 I python  : [INFO   ] [Logger      ] Record log in /data/user/0/org.electrum.electrum/files/app/.kivy/logs/kivy_19-06-07_3.txt
06-07 20:18:21.946 24454 24473 I python  : [INFO   ] [Kivy        ] v1.11.0
06-07 20:18:21.946 24454 24473 I python  : [INFO   ] [Kivy        ] Installed at "/data/user/0/org.electrum.electrum/files/app/_python_bundle/site-packages/kivy/__init__.pyc"
06-07 20:18:21.947 24454 24473 I python  : [INFO   ] [Python      ] v3.7.1 (default, Jun  7 2019, 17:43:01) 
06-07 20:18:21.947 24454 24473 I python  : [Clang 6.0.2 (https://android.googlesource.com/toolchain/clang 183abd29fc496f55
06-07 20:18:21.947 24454 24473 I python  : [INFO   ] [Python      ] Interpreter at "android_python"
06-07 20:18:23.665 24454 24473 I python  : [INFO   ] [Factory     ] 184 symbols loaded
06-07 20:18:24.216 24454 24473 I python  : [INFO   ] [Image       ] Providers: img_tex, img_dds, img_sdl2, img_gif (img_pil, img_ffpyplayer ignored)
06-07 20:18:24.390 24454 24473 I python  : [INFO   ] [Window      ] Provider: sdl2
06-07 20:18:24.441 24454 24473 E libEGL  : validate_display:92 error 3008 (EGL_BAD_DISPLAY)
06-07 20:18:24.441 24454 24473 V SDL     : setOrientation() orientation=-1 width=800 height=600 resizable=true hint=
06-07 20:18:24.456 24454 24473 I python  : [INFO   ] [GL          ] Using the "OpenGL ES 2" graphics system
06-07 20:18:24.461 24454 24473 I python  : [INFO   ] [GL          ] Backend used <sdl2>
06-07 20:18:24.462 24454 24473 I python  : [INFO   ] [GL          ] OpenGL version <b'OpenGL ES 3.2 V@258.0 (GIT@8e59954, I0be83d0d26) (Date:09/22/17)'>
06-07 20:18:24.462 24454 24473 I python  : [INFO   ] [GL          ] OpenGL vendor <b'Qualcomm'>
06-07 20:18:24.463 24454 24473 I python  : [INFO   ] [GL          ] OpenGL renderer <b'Adreno (TM) 418'>
06-07 20:18:24.463 24454 24473 I python  : [INFO   ] [GL          ] OpenGL parsed version: 3, 2
06-07 20:18:24.464 24454 24473 I python  : [INFO   ] [GL          ] Texture max size <16384>
06-07 20:18:24.464 24454 24473 I python  : [INFO   ] [GL          ] Texture max units <16>
06-07 20:18:24.576 24454 24473 I python  : [INFO   ] [Window      ] auto add sdl2 input provider
06-07 20:18:24.579 24454 24473 I python  : [INFO   ] [Window      ] virtual keyboard not allowed, single mode, not docked
06-07 20:18:24.635 24454 24473 I python  : [INFO   ] [Text        ] Provider: sdl2
06-07 20:18:25.004 24454 24473 I python  : [INFO   ] [Clipboard   ] Provider: android
06-07 20:18:25.904 24454 24473 I python  : [INFO   ] [Time to on_start] 9.960256 <<<<<<<<
06-07 20:18:26.574 24454 24479 I python  : [INFO   ] [network event] status
06-07 20:18:27.098 24454 24479 I python  : [INFO   ] [network event] status
06-07 20:18:27.105 24454 24479 I python  : [INFO   ] [network event] wallet_updated
06-07 20:18:27.385 24454 24473 I python  : [WARNING] [Base        ] Unknown <android> provider
06-07 20:18:27.385 24454 24473 I python  : [INFO   ] [Base        ] Start application main loop
06-07 20:18:27.410 24454 24473 I python  : [INFO   ] [GL          ] NPOT texture support is available
06-07 20:18:28.236 24454 24479 I python  : [INFO   ] [network event] network_updated
06-07 20:18:28.239 24454 24479 I python  : [INFO   ] [network event] network_updated
06-07 20:18:36.469 24454 24454 V PythonActivity: onPause()
06-07 20:18:36.469 24454 24454 V SDL     : onPause()
06-07 20:18:36.470 24454 24454 V SDL     : nativePause()
06-07 20:18:36.492 24454 24454 V SDL     : onWindowFocusChanged(): false
06-07 20:18:36.518 24454 24454 V SDL     : surfaceDestroyed()
// app now in background; and user re-opens it:
06-07 20:18:41.798 24454 24454 V PythonActivity: onResume()
06-07 20:18:41.798 24454 24454 V SDL     : onResume()
06-07 20:18:41.814 24454 24454 V PythonActivity: onResume()
06-07 20:18:41.814 24454 24454 V SDL     : onResume()
06-07 20:18:41.849 24454 24454 V SDL     : surfaceCreated()
06-07 20:18:41.849 24454 24454 V SDL     : surfaceChanged()
06-07 20:18:41.849 24454 24454 V SDL     : pixel format RGB_565
06-07 20:18:41.849 24454 24454 V SDL     : Window size: 1080x1731
06-07 20:18:41.850 24454 24454 V SDL     : Device size: 1080x1920
06-07 20:18:41.856 24454 24454 E BpSurfaceComposerClient: Failed to transact (-1)
06-07 20:18:41.856 24454 24454 E BpSurfaceComposerClient: Failed to transact (-1)
06-07 20:18:41.859 24454 24454 V SDL     : onWindowFocusChanged(): true
06-07 20:18:41.859 24454 24454 V SDL     : nativeResume()
06-07 20:18:54.191 24454 24479 I python  : [INFO   ] [network event] network_updated
06-07 20:18:54.201 24454 24479 I chatty  : uid=10219(org.electrum.electrum) SDLThread identical 1 line
06-07 20:18:56.870 24454 24479 I python  : [INFO   ] [network event] network_updated
logcat 2, with activity destroyed by OS, issue manifests
$ adb logcat | grep -F "`adb shell ps | grep org.electrum.electrum | cut -c14-19`"
06-07 20:15:44.912 24203 24203 I zygote  : Late-enabling -Xcheck:jni
06-07 20:15:45.107 24203 24203 V PythonActivity: PythonActivity onCreate running
06-07 20:15:45.108 24203 24203 V PythonActivity: About to do super onCreate
06-07 20:15:45.108 24203 24203 V SDL     : Device: bullhead
06-07 20:15:45.108 24203 24203 V SDL     : Model: Nexus 5X
06-07 20:15:45.108 24203 24203 V SDL     : onCreate()
06-07 20:15:45.109 24203 24203 V PythonActivity: Did super onCreate
06-07 20:15:45.109 24203 24203 V SDL     : getting identifier
06-07 20:15:45.109 24203 24203 V SDL     : kind is drawable and name presplash
06-07 20:15:45.110 24203 24203 V SDL     : result is 2130903042
06-07 20:15:45.130 24203 24203 V SDL     : asked to get string presplash_color
06-07 20:15:45.130 24203 24203 V SDL     : getting identifier
06-07 20:15:45.130 24203 24203 V SDL     : kind is string and name presplash_color
06-07 20:15:45.130 24203 24203 V SDL     : result is 2131165185
06-07 20:15:45.166 24203 24220 V PythonActivity: Ready to unpack
06-07 20:15:45.167 24203 24220 V PythonActivity: UNPACKING!!! private app
06-07 20:15:45.168 24203 24220 V SDL     : asked to get string private_version
06-07 20:15:45.168 24203 24220 V SDL     : getting identifier
06-07 20:15:45.168 24203 24220 V SDL     : kind is string and name private_version
06-07 20:15:45.169 24203 24220 V SDL     : result is 2131165186
06-07 20:15:45.169 24203 24220 V PythonActivity: Data version is 1559930012.207475
06-07 20:15:45.171 24203 24203 V PythonActivity: onResume()
06-07 20:15:45.171 24203 24203 V SDL     : onResume()
06-07 20:15:45.191 24203 24221 D OpenGLRenderer: HWUI GL Pipeline
06-07 20:15:45.211 24203 24203 V pythonutil: Checking pattern libcrystax\.so against libssl1.1.so
06-07 20:15:45.211 24203 24203 V pythonutil: Checking pattern libcrystax\.so against libSDL2_mixer.so
06-07 20:15:45.211 24203 24203 V pythonutil: Checking pattern libcrystax\.so against libSDL2_ttf.so
06-07 20:15:45.212 24203 24203 V pythonutil: Checking pattern libcrystax\.so against libsecp256k1.so
06-07 20:15:45.212 24203 24203 V pythonutil: Checking pattern libcrystax\.so against libmain.so
06-07 20:15:45.213 24203 24203 V pythonutil: Checking pattern libcrystax\.so against libSDL2.so
06-07 20:15:45.213 24203 24203 V pythonutil: Checking pattern libcrystax\.so against libhidapi.so
06-07 20:15:45.213 24203 24203 V pythonutil: Checking pattern libcrystax\.so against libffi.so
06-07 20:15:45.214 24203 24203 V pythonutil: Checking pattern libcrystax\.so against libsqlite3.so
06-07 20:15:45.214 24203 24203 V pythonutil: Checking pattern libcrystax\.so against libcrypto1.1.so
06-07 20:15:45.214 24203 24203 V pythonutil: Checking pattern libcrystax\.so against libSDL2_image.so
06-07 20:15:45.215 24203 24203 V pythonutil: Checking pattern libcrystax\.so against libpython3.7m.so
06-07 20:15:45.217 24203 24203 V pythonutil: Checking pattern libsqlite3\.so against libssl1.1.so
06-07 20:15:45.217 24203 24203 V pythonutil: Checking pattern libsqlite3\.so against libSDL2_mixer.so
06-07 20:15:45.218 24203 24203 V pythonutil: Checking pattern libsqlite3\.so against libSDL2_ttf.so
06-07 20:15:45.218 24203 24203 V pythonutil: Checking pattern libsqlite3\.so against libsecp256k1.so
06-07 20:15:45.219 24203 24203 V pythonutil: Checking pattern libsqlite3\.so against libmain.so
06-07 20:15:45.219 24203 24203 V pythonutil: Checking pattern libsqlite3\.so against libSDL2.so
06-07 20:15:45.220 24203 24203 V pythonutil: Checking pattern libsqlite3\.so against libhidapi.so
06-07 20:15:45.220 24203 24203 V pythonutil: Checking pattern libsqlite3\.so against libffi.so
06-07 20:15:45.220 24203 24203 V pythonutil: Checking pattern libsqlite3\.so against libsqlite3.so
06-07 20:15:45.221 24203 24203 V pythonutil: Pattern libsqlite3\.so matched file libsqlite3.so
06-07 20:15:45.221 24203 24203 V pythonutil: Checking pattern libsqlite3\.so against libcrypto1.1.so
06-07 20:15:45.221 24203 24203 V pythonutil: Checking pattern libsqlite3\.so against libSDL2_image.so
06-07 20:15:45.222 24203 24203 V pythonutil: Checking pattern libsqlite3\.so against libpython3.7m.so
06-07 20:15:45.223 24203 24203 V pythonutil: Checking pattern libffi\.so against libssl1.1.so
06-07 20:15:45.224 24203 24203 V pythonutil: Checking pattern libffi\.so against libSDL2_mixer.so
06-07 20:15:45.224 24203 24203 V pythonutil: Checking pattern libffi\.so against libSDL2_ttf.so
06-07 20:15:45.224 24203 24203 V pythonutil: Checking pattern libffi\.so against libsecp256k1.so
06-07 20:15:45.225 24203 24203 V pythonutil: Checking pattern libffi\.so against libmain.so
06-07 20:15:45.225 24203 24203 V pythonutil: Checking pattern libffi\.so against libSDL2.so
06-07 20:15:45.225 24203 24203 V pythonutil: Checking pattern libffi\.so against libhidapi.so
06-07 20:15:45.225 24203 24203 V pythonutil: Checking pattern libffi\.so against libffi.so
06-07 20:15:45.226 24203 24203 V pythonutil: Pattern libffi\.so matched file libffi.so
06-07 20:15:45.226 24203 24203 V pythonutil: Checking pattern libffi\.so against libsqlite3.so
06-07 20:15:45.226 24203 24203 V pythonutil: Checking pattern libffi\.so against libcrypto1.1.so
06-07 20:15:45.226 24203 24203 V pythonutil: Checking pattern libffi\.so against libSDL2_image.so
06-07 20:15:45.227 24203 24203 V pythonutil: Checking pattern libffi\.so against libpython3.7m.so
06-07 20:15:45.229 24203 24203 V pythonutil: Checking pattern libpng16\.so against libssl1.1.so
06-07 20:15:45.229 24203 24203 V pythonutil: Checking pattern libpng16\.so against libSDL2_mixer.so
06-07 20:15:45.229 24203 24203 V pythonutil: Checking pattern libpng16\.so against libSDL2_ttf.so
06-07 20:15:45.229 24203 24203 V pythonutil: Checking pattern libpng16\.so against libsecp256k1.so
06-07 20:15:45.230 24203 24203 V pythonutil: Checking pattern libpng16\.so against libmain.so
06-07 20:15:45.230 24203 24203 V pythonutil: Checking pattern libpng16\.so against libSDL2.so
06-07 20:15:45.230 24203 24203 V pythonutil: Checking pattern libpng16\.so against libhidapi.so
06-07 20:15:45.230 24203 24203 V pythonutil: Checking pattern libpng16\.so against libffi.so
06-07 20:15:45.231 24203 24203 V pythonutil: Checking pattern libpng16\.so against libsqlite3.so
06-07 20:15:45.231 24203 24203 V pythonutil: Checking pattern libpng16\.so against libcrypto1.1.so
06-07 20:15:45.231 24203 24203 V pythonutil: Checking pattern libpng16\.so against libSDL2_image.so
06-07 20:15:45.232 24203 24203 V pythonutil: Checking pattern libpng16\.so against libpython3.7m.so
06-07 20:15:45.234 24203 24203 V pythonutil: Checking pattern libssl.*\.so against libssl1.1.so
06-07 20:15:45.234 24203 24203 V pythonutil: Pattern libssl.*\.so matched file libssl1.1.so
06-07 20:15:45.234 24203 24203 V pythonutil: Checking pattern libssl.*\.so against libSDL2_mixer.so
06-07 20:15:45.235 24203 24203 V pythonutil: Checking pattern libssl.*\.so against libSDL2_ttf.so
06-07 20:15:45.235 24203 24203 V pythonutil: Checking pattern libssl.*\.so against libsecp256k1.so
06-07 20:15:45.235 24203 24203 V pythonutil: Checking pattern libssl.*\.so against libmain.so
06-07 20:15:45.236 24203 24203 V pythonutil: Checking pattern libssl.*\.so against libSDL2.so
06-07 20:15:45.236 24203 24203 V pythonutil: Checking pattern libssl.*\.so against libhidapi.so
06-07 20:15:45.236 24203 24203 V pythonutil: Checking pattern libssl.*\.so against libffi.so
06-07 20:15:45.237 24203 24203 V pythonutil: Checking pattern libssl.*\.so against libsqlite3.so
06-07 20:15:45.237 24203 24203 V pythonutil: Checking pattern libssl.*\.so against libcrypto1.1.so
06-07 20:15:45.237 24203 24203 V pythonutil: Checking pattern libssl.*\.so against libSDL2_image.so
06-07 20:15:45.238 24203 24203 V pythonutil: Checking pattern libssl.*\.so against libpython3.7m.so
06-07 20:15:45.240 24203 24203 V pythonutil: Checking pattern libcrypto.*\.so against libssl1.1.so
06-07 20:15:45.240 24203 24203 V pythonutil: Checking pattern libcrypto.*\.so against libSDL2_mixer.so
06-07 20:15:45.240 24203 24203 V pythonutil: Checking pattern libcrypto.*\.so against libSDL2_ttf.so
06-07 20:15:45.241 24203 24203 V pythonutil: Checking pattern libcrypto.*\.so against libsecp256k1.so
06-07 20:15:45.241 24203 24203 V pythonutil: Checking pattern libcrypto.*\.so against libmain.so
06-07 20:15:45.241 24203 24203 V pythonutil: Checking pattern libcrypto.*\.so against libSDL2.so
06-07 20:15:45.241 24203 24203 V pythonutil: Checking pattern libcrypto.*\.so against libhidapi.so
06-07 20:15:45.242 24203 24203 V pythonutil: Checking pattern libcrypto.*\.so against libffi.so
06-07 20:15:45.242 24203 24203 V pythonutil: Checking pattern libcrypto.*\.so against libsqlite3.so
06-07 20:15:45.242 24203 24203 V pythonutil: Checking pattern libcrypto.*\.so against libcrypto1.1.so
06-07 20:15:45.242 24203 24203 V pythonutil: Pattern libcrypto.*\.so matched file libcrypto1.1.so
06-07 20:15:45.243 24203 24203 V pythonutil: Checking pattern libcrypto.*\.so against libSDL2_image.so
06-07 20:15:45.243 24203 24203 V pythonutil: Checking pattern libcrypto.*\.so against libpython3.7m.so
06-07 20:15:45.244 24203 24203 V pythonutil: Loading library: sqlite3
06-07 20:15:45.248 24203 24203 V pythonutil: Loading library: ffi
06-07 20:15:45.250 24203 24203 V pythonutil: Loading library: SDL2
06-07 20:15:45.262 24203 24203 V pythonutil: Loading library: SDL2_image
06-07 20:15:45.265 24203 24203 V pythonutil: Loading library: SDL2_mixer
06-07 20:15:45.269 24203 24203 V pythonutil: Loading library: SDL2_ttf
06-07 20:15:45.272 24203 24203 V pythonutil: Loading library: ssl1.1
06-07 20:15:45.277 24203 24203 V pythonutil: Loading library: crypto1.1
06-07 20:15:45.279 24203 24203 V pythonutil: Loading library: python2.7
06-07 20:15:45.286 24203 24203 V pythonutil: Library loading error: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/org.electrum.electrum-hYm5bzKVm5PKk3u6o-Pa2Q==/base.apk"],nativeLibraryDirectories=[/data/app/org.electrum.electrum-hYm5bzKVm5PKk3u6o-Pa2Q==/lib/arm, /data/app/org.electrum.electrum-hYm5bzKVm5PKk3u6o-Pa2Q==/base.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib]]] couldn't find "libpython2.7.so"
06-07 20:15:45.286 24203 24203 V pythonutil: Loading library: python3.5m
06-07 20:15:45.289 24203 24203 V pythonutil: Library loading error: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/org.electrum.electrum-hYm5bzKVm5PKk3u6o-Pa2Q==/base.apk"],nativeLibraryDirectories=[/data/app/org.electrum.electrum-hYm5bzKVm5PKk3u6o-Pa2Q==/lib/arm, /data/app/org.electrum.electrum-hYm5bzKVm5PKk3u6o-Pa2Q==/base.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib]]] couldn't find "libpython3.5m.so"
06-07 20:15:45.289 24203 24203 V pythonutil: Loading library: python3.6m
06-07 20:15:45.291 24203 24203 V pythonutil: Library loading error: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/org.electrum.electrum-hYm5bzKVm5PKk3u6o-Pa2Q==/base.apk"],nativeLibraryDirectories=[/data/app/org.electrum.electrum-hYm5bzKVm5PKk3u6o-Pa2Q==/lib/arm, /data/app/org.electrum.electrum-hYm5bzKVm5PKk3u6o-Pa2Q==/base.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib]]] couldn't find "libpython3.6m.so"
06-07 20:15:45.291 24203 24203 V pythonutil: Loading library: python3.7m
06-07 20:15:45.298 24203 24203 V pythonutil: Loading library: main
06-07 20:15:45.303 24203 24203 V pythonutil: Failed to load _io.so or unicodedata.so...but that's okay.
06-07 20:15:45.304 24203 24203 V pythonutil: Unsatisfied linker when loading ctypes
06-07 20:15:45.304 24203 24203 V pythonutil: Loaded everything!
06-07 20:15:45.305 24203 24203 V SDL     : nativeSetupJNI()
06-07 20:15:45.306 24203 24203 V SDL     : AUDIO nativeSetupJNI()
06-07 20:15:45.306 24203 24203 V SDL     : CONTROLLER nativeSetupJNI()
06-07 20:15:45.324 24203 24203 D hidapi  : Initializing Bluetooth
06-07 20:15:45.325 24203 24203 D hidapi  : Couldn't initialize Bluetooth, missing android.permission.BLUETOOTH
06-07 20:15:45.359 24203 24203 V PythonActivity: Setting env vars for start.c and Python to use
06-07 20:15:45.360 24203 24203 V PythonActivity: Access to our meta-data...
06-07 20:15:45.364 24203 24203 I PythonActivity: Surface will NOT be transparent
06-07 20:15:45.364 24203 24203 V PythonActivity: onResume()
06-07 20:15:45.364 24203 24203 V SDL     : onResume()
06-07 20:15:45.400 24203 24221 I Adreno  : QUALCOMM build                   : 8e59954, I0be83d0d26
06-07 20:15:45.400 24203 24221 I Adreno  : Build Date                       : 09/22/17
06-07 20:15:45.400 24203 24221 I Adreno  : OpenGL ES Shader Compiler Version: EV031.21.02.00
06-07 20:15:45.400 24203 24221 I Adreno  : Local Branch                     : O17A
06-07 20:15:45.400 24203 24221 I Adreno  : Remote Branch                    : 
06-07 20:15:45.400 24203 24221 I Adreno  : Remote Branch                    : 
06-07 20:15:45.400 24203 24221 I Adreno  : Reconstruct Branch               : 
06-07 20:15:45.401 24203 24221 D vndksupport: Loading /vendor/lib/hw/gralloc.msm8992.so from current namespace instead of sphal namespace.
06-07 20:15:45.409 24203 24221 I Adreno  : PFP: 0x00000000, ME: 0x00000000
06-07 20:15:45.419 24203 24221 I zygote  : android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0
06-07 20:15:45.420 24203 24221 I OpenGLRenderer: Initialized EGL, version 1.4
06-07 20:15:45.420 24203 24221 D OpenGLRenderer: Swap behavior 2
06-07 20:15:45.432 24203 24203 V SDL     : surfaceCreated()
06-07 20:15:45.432 24203 24203 V SDL     : surfaceChanged()
06-07 20:15:45.432 24203 24203 V SDL     : pixel format RGB_565
06-07 20:15:45.434 24203 24203 V SDL     : Window size: 1080x1731
06-07 20:15:45.434 24203 24203 V SDL     : Device size: 1080x1920
06-07 20:15:45.442 24203 24203 V SDL     : nativeResume()
06-07 20:15:45.443 24203 24223 V SDL     : Running main function SDL_main from library /data/app/org.electrum.electrum-hYm5bzKVm5PKk3u6o-Pa2Q==/lib/arm/libmain.so
06-07 20:15:45.443 24203 24223 V PythonActivity: appConfirmedActive() -> preparing loading screen removal
06-07 20:15:45.443 24203 24223 V SDL     : nativeRunMain()
06-07 20:15:45.445 24203 24223 I python  : Initializing Python for Android
06-07 20:15:45.445 24203 24223 I python  : Setting additional env vars from p4a_env_vars.txt
06-07 20:15:45.446 24203 24223 I python  : Changing directory to the one provided by ANDROID_ARGUMENT
06-07 20:15:45.446 24203 24223 I python  : /data/user/0/org.electrum.electrum/files/app
06-07 20:15:45.446 24203 24223 I python  : Preparing to initialize python
06-07 20:15:45.446 24203 24223 I python  : _python_bundle dir exists
06-07 20:15:45.446 24203 24223 I python  : calculated paths to be...
06-07 20:15:45.446 24203 24223 I python  : /data/user/0/org.electrum.electrum/files/app/_python_bundle/stdlib.zip:/data/user/0/org.electrum.electrum/files/app/_python_bundle/modules
06-07 20:15:45.446 24203 24223 I python  : set wchar paths...
06-07 20:15:45.477 24203 24221 D vndksupport: Loading /vendor/lib/hw/android.hardware.graphics.mapper@2.0-impl.so from current namespace instead of sphal namespace.
06-07 20:15:45.478 24203 24221 D vndksupport: Loading /vendor/lib/hw/gralloc.msm8992.so from current namespace instead of sphal namespace.
06-07 20:15:45.503 24203 24203 V SDL     : onWindowFocusChanged(): true
06-07 20:15:45.552 24203 24223 I python  : Initialized python
06-07 20:15:45.552 24203 24223 I python  : AND: Init threads
06-07 20:15:45.554 24203 24223 I python  : testing python print redirection
06-07 20:15:45.557 24203 24223 I python  : Android path ['.', '/data/user/0/org.electrum.electrum/files/app/_python_bundle/stdlib.zip', '/data/user/0/org.electrum.electrum/files/app/_python_bundle/modules', '/data/user/0/org.electrum.electrum/files/app/_python_bundle/site-packages']
06-07 20:15:45.558 24203 24223 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/core-oj.jar:/system/framework/core-libart.jar:/system/framework/conscrypt.jar:/system/framework/okhttp.jar:/system/framework/bouncycastle.jar:/system/framework/apache-xml.jar:/system/framework/legacy-test.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/org.apache.http.legacy.boot.jar:/system/framework/android.hidl.base-V1.0-java.jar:/system/framework/android.hidl.manager-V1.0-java.jar', 'SYSTEMSERVERCLASSPATH': '/system/framework/services.jar:/system/framework/ethernet-service.jar:/system/framework/wifi-service.jar:/system/framework/com.android.location.provider.jar', 'ANDROID_SOCKET_zygote_secondary': '9', 'ANDROID_ENTRYPOINT': 'main.pyc', 'ANDROID_ARGUMENT': '/data/user/0/org.electrum.electrum/files/app', 'ANDROID_APP_PATH': '/data/user/0/org.electrum.electrum/files/app', 'ANDROID_PRIVATE': '/data/user/0/org.electrum.electrum/files', 'ANDROID_UNPACK': '/data/user/0/org.electrum.electrum/files/app', 'PYTHONHOME': '/data/user/0/org.electrum.electrum/files/app', 'PYTHONPATH': '/data/user/0/org.electrum.electrum/files/app:/data/user/0/org.electrum.electrum/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'})
06-07 20:15:45.558 24203 24223 I python  : Android kivy bootstrap done. __name__ is __main__
06-07 20:15:45.558 24203 24223 I python  : AND: Ran string
06-07 20:15:45.558 24203 24223 I python  : Run user program, change dir and execute entrypoint
06-07 20:15:49.397 24203 24223 I python  : [INFO   ] [Logger      ] Record log in /data/user/0/org.electrum.electrum/files/app/.kivy/logs/kivy_19-06-07_2.txt
06-07 20:15:49.397 24203 24223 I python  : [INFO   ] [Kivy        ] v1.11.0
06-07 20:15:49.398 24203 24223 I python  : [INFO   ] [Kivy        ] Installed at "/data/user/0/org.electrum.electrum/files/app/_python_bundle/site-packages/kivy/__init__.pyc"
06-07 20:15:49.399 24203 24223 I python  : [INFO   ] [Python      ] v3.7.1 (default, Jun  7 2019, 17:43:01) 
06-07 20:15:49.399 24203 24223 I python  : [Clang 6.0.2 (https://android.googlesource.com/toolchain/clang 183abd29fc496f55
06-07 20:15:49.400 24203 24223 I python  : [INFO   ] [Python      ] Interpreter at "android_python"
06-07 20:15:50.790 24203 24223 I python  : [INFO   ] [Factory     ] 184 symbols loaded
06-07 20:15:51.327 24203 24223 I python  : [INFO   ] [Image       ] Providers: img_tex, img_dds, img_sdl2, img_gif (img_pil, img_ffpyplayer ignored)
06-07 20:15:51.526 24203 24223 I python  : [INFO   ] [Window      ] Provider: sdl2
06-07 20:15:51.577 24203 24223 E libEGL  : validate_display:92 error 3008 (EGL_BAD_DISPLAY)
06-07 20:15:51.579 24203 24223 V SDL     : setOrientation() orientation=-1 width=800 height=600 resizable=true hint=
06-07 20:15:51.596 24203 24223 I python  : [INFO   ] [GL          ] Using the "OpenGL ES 2" graphics system
06-07 20:15:51.601 24203 24223 I python  : [INFO   ] [GL          ] Backend used <sdl2>
06-07 20:15:51.603 24203 24223 I python  : [INFO   ] [GL          ] OpenGL version <b'OpenGL ES 3.2 V@258.0 (GIT@8e59954, I0be83d0d26) (Date:09/22/17)'>
06-07 20:15:51.604 24203 24223 I python  : [INFO   ] [GL          ] OpenGL vendor <b'Qualcomm'>
06-07 20:15:51.606 24203 24223 I python  : [INFO   ] [GL          ] OpenGL renderer <b'Adreno (TM) 418'>
06-07 20:15:51.607 24203 24223 I python  : [INFO   ] [GL          ] OpenGL parsed version: 3, 2
06-07 20:15:51.612 24203 24223 I python  : [INFO   ] [GL          ] Texture max size <16384>
06-07 20:15:51.613 24203 24223 I python  : [INFO   ] [GL          ] Texture max units <16>
06-07 20:15:51.721 24203 24223 I python  : [INFO   ] [Window      ] auto add sdl2 input provider
06-07 20:15:51.724 24203 24223 I python  : [INFO   ] [Window      ] virtual keyboard not allowed, single mode, not docked
06-07 20:15:51.773 24203 24223 I python  : [INFO   ] [Text        ] Provider: sdl2
06-07 20:15:52.110 24203 24223 I python  : [INFO   ] [Clipboard   ] Provider: android
06-07 20:15:53.027 24203 24223 I python  : [INFO   ] [Time to on_start] 9.311304 <<<<<<<<
06-07 20:15:53.594 24203 24229 I python  : [INFO   ] [network event] network_updated
06-07 20:15:53.729 24203 24229 I python  : [INFO   ] [network event] status
06-07 20:15:54.243 24203 24229 I python  : [INFO   ] [network event] status
06-07 20:15:54.244 24203 24229 I python  : [INFO   ] [network event] wallet_updated
06-07 20:15:54.697 24203 24223 I python  : [WARNING] [Base        ] Unknown <android> provider
06-07 20:15:54.698 24203 24223 I python  : [INFO   ] [Base        ] Start application main loop
06-07 20:15:54.730 24203 24223 I python  : [INFO   ] [GL          ] NPOT texture support is available
06-07 20:15:54.850 24203 24229 I python  : [INFO   ] [network event] network_updated
06-07 20:15:54.884 24203 24229 I python  : [INFO   ] [network event] network_updated
06-07 20:16:15.886 24203 24203 V PythonActivity: onPause()
06-07 20:16:15.887 24203 24203 V SDL     : onPause()
06-07 20:16:15.887 24203 24203 V SDL     : nativePause()
06-07 20:16:15.906 24203 24203 V SDL     : onWindowFocusChanged(): false
06-07 20:16:15.957 24203 24203 V SDL     : surfaceDestroyed()
06-07 20:16:16.469 24203 24203 V SDL     : onDestroy()
06-07 20:16:20.252 24203 24229 I python  : [INFO   ] [network event] network_updated
06-07 20:16:20.882 24203 24229 I chatty  : uid=10219(org.electrum.electrum) SDLThread identical 2 lines
06-07 20:16:20.887 24203 24229 I python  : [INFO   ] [network event] network_updated
06-07 20:16:21.071 24203 24229 I python  : [INFO   ] [network event] blockchain_updated
06-07 20:16:21.072 24203 24229 I python  : [INFO   ] [network event] network_updated
06-07 20:16:22.470 24203 24229 I chatty  : uid=10219(org.electrum.electrum) SDLThread identical 6 lines
06-07 20:16:24.962 24203 24229 I python  : [INFO   ] [network event] network_updated
06-07 20:16:26.384 24203 24229 I python  : [INFO   ] [network event] network_updated

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:15 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
MeadBarrelcommented, Oct 25, 2019

I am having the same problem with another app. It’s just barebones kivy app with one button that creates a foreground service (that just prints stuff every 5 seconds), so really no weird libraries. If onDestroy is called while the service is active, the application becomes unusable.

0reactions
sunnykingcommented, Aug 5, 2022

This appears to have been resolved as of Kivy 2.1.0 and Python for Android 2022.07.20. Valory Go 0.1.29 release is confirmed to work properly and no longer needs workaround for the black screen on app startup issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

The activity lifecycle | Android Developers
There are a few scenarios in which your activity is destroyed due to normal app behavior, such as when the user presses the...
Read more >
Simplest Android Activity Lifecycle - Stack Overflow
The Lifecycle would then be onCreate and onResume before it is active, then onPause when it becomes inactive. Other methods would not be...
Read more >
Week 2 - Lifecycles for iOS and Android Flashcards - Quizlet
Basis for app scheduling, managing foreground to/from background, app creation and destruction, and manages event loop and other high level behaviors.
Read more >
Android 4 25. Activity Life Cycle
The full life time of our activity occurs between the first call to onCreate() and the final call to onDestroy(). It's possible, in...
Read more >
What are the real time best example of Activity Life Cycle in ...
The Activity runs with the help of a core set of six callbacks methods. These all callbacks provide a lifecycle of activities that...
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