Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android App crashing at launch - SDL seems crashing #2491

Closed
vladimir-gui opened this issue Sep 16, 2021 · 1 comment
Closed

Android App crashing at launch - SDL seems crashing #2491

vladimir-gui opened this issue Sep 16, 2021 · 1 comment
Labels

Comments

@vladimir-gui
Copy link

Hi all,

my app work on windows but crashing on android after "loading" image

Please save me 🥲

Versions

  • Python: 3.7.5
  • OS: WIN 10
  • Kivy: 2.0.0

Description

my app work on windows but crashing on android after "loading" image
error code :

  • E/libEGL: validate_display:87 error 3008 (EGL_BAD_DISPLAY)
  • A/libc: Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x151e4 in tid 5807 (SDLThread), pid 5778 (alaxyprojectgot)

Spec file:

[app]

# (str) Title of your application
title = Galaxy project GOT

# (str) Package name
package.name = galaxyprojectgot

# (str) Package domain (needed for android/ios packaging)
package.domain = org.test

# (str) Source code where the main.py live
source.dir = .

# (list) Source files to include (let empty to include all the files)
source.include_exts = py,png,jpg,kv,atlas,ttf,wav

# (list) List of inclusions using pattern matching
source.include_patterns = audio/*,fonts/*,images/*

# (list) Source files to exclude (let empty to not exclude anything)
#source.exclude_exts = spec

# (list) List of directory to exclude (let empty to not exclude anything)
#source.exclude_dirs = tests, bin

# (list) List of exclusions using pattern matching
#source.exclude_patterns = license,images/*/*.jpg

# (str) Application versioning (method 1)
version = 0.1

# (str) Application versioning (method 2)
# version.regex = __version__ = ['"](.*)['"]
# version.filename = %(source.dir)s/main.py

# (list) Application requirements
# comma separated e.g. requirements = sqlite3,kivy
requirements = python3==3.7.5,hostpython3==3.7.5,kivy==2.0.0,requests,urllib3,Pygments,idna,charset-normalizer

# (str) Custom source folders for requirements
# Sets custom source for any requirements with recipes
# requirements.source.kivy = ../../kivy

# (list) Garden requirements
#garden_requirements =

# (str) Presplash of the application
#presplash.filename = %(source.dir)s/data/presplash.png

# (str) Icon of the application
#icon.filename = %(source.dir)s/data/icon.png

# (str) Supported orientation (one of landscape, sensorLandscape, portrait or all)
orientation = portrait

# (list) List of service to declare
#services = NAME:ENTRYPOINT_TO_PY,NAME2:ENTRYPOINT2_TO_PY

#
# OSX Specific
#

#
# author = © Copyright Info

# change the major version of python used by the app
osx.python_version = 3

# Kivy version to use
osx.kivy_version = 1.9.1

#
# Android specific
#

# (bool) Indicate if the application should be fullscreen or not
fullscreen = 0

# (string) Presplash background color (for new android toolchain)
# Supported formats are: #RRGGBB #AARRGGBB or one of the following names:
# red, blue, green, black, white, gray, cyan, magenta, yellow, lightgray,
# darkgray, grey, lightgrey, darkgrey, aqua, fuchsia, lime, maroon, navy,
# olive, purple, silver, teal.
#android.presplash_color = #FFFFFF

# (list) Permissions
android.permissions = INTERNET,ACCESS_NETWORK_STATE

# (int) Target Android API, should be as high as possible.
#android.api = 27

# (int) Minimum API your APK will support.
#android.minapi = 21

# (int) Android SDK version to use
#android.sdk = 20

# (str) Android NDK version to use
#android.ndk = 19b

# (int) Android NDK API to use. This is the minimum API your app will support, it should usually match android.minapi.
#android.ndk_api = 21

# (bool) Use --private data storage (True) or --dir public storage (False)
#android.private_storage = True

# (str) Android NDK directory (if empty, it will be automatically downloaded.)
#android.ndk_path =

# (str) Android SDK directory (if empty, it will be automatically downloaded.)
#android.sdk_path =

# (str) ANT directory (if empty, it will be automatically downloaded.)
#android.ant_path =

# (bool) If True, then skip trying to update the Android sdk
# This can be useful to avoid excess Internet downloads or save time
# when an update is due and you just want to test/build your package
# android.skip_update = False

# (bool) If True, then automatically accept SDK license
# agreements. This is intended for automation only. If set to False,
# the default, you will be shown the license when first running
# buildozer.
# android.accept_sdk_license = False

# (str) Android entry point, default is ok for Kivy-based app
#android.entrypoint = org.renpy.android.PythonActivity

# (str) Android app theme, default is ok for Kivy-based app
# android.apptheme = "@android:style/Theme.NoTitleBar"

# (list) Pattern to whitelist for the whole project
#android.whitelist =

# (str) Path to a custom whitelist file
#android.whitelist_src =

# (str) Path to a custom blacklist file
#android.blacklist_src =

# (list) List of Java .jar files to add to the libs so that pyjnius can access
# their classes. Don't add jars that you do not need, since extra jars can slow
# down the build process. Allows wildcards matching, for example:
# OUYA-ODK/libs/*.jar
#android.add_jars = foo.jar,bar.jar,path/to/more/*.jar

# (list) List of Java files to add to the android project (can be java or a
# directory containing the files)
#android.add_src =

# (list) Android AAR archives to add (currently works only with sdl2_gradle
# bootstrap)
#android.add_aars =

# (list) Gradle dependencies to add (currently works only with sdl2_gradle
# bootstrap)
#android.gradle_dependencies =

# (list) add java compile options
# this can for example be necessary when importing certain java libraries using the 'android.gradle_dependencies' option
# see https://developer.android.com/studio/write/java8-support for further information
# android.add_compile_options = "sourceCompatibility = 1.8", "targetCompatibility = 1.8"

# (list) Gradle repositories to add {can be necessary for some android.gradle_dependencies}
# please enclose in double quotes 
# e.g. android.gradle_repositories = "maven { url 'https://kotlin.bintray.com/ktor' }"
#android.add_gradle_repositories =

# (list) packaging options to add 
# see https://google.github.io/android-gradle-dsl/current/com.android.build.gradle.internal.dsl.PackagingOptions.html
# can be necessary to solve conflicts in gradle_dependencies
# please enclose in double quotes 
# e.g. android.add_packaging_options = "exclude 'META-INF/common.kotlin_module'", "exclude 'META-INF/*.kotlin_module'"
#android.add_gradle_repositories =

# (list) Java classes to add as activities to the manifest.
#android.add_activities = com.example.ExampleActivity

# (str) OUYA Console category. Should be one of GAME or APP
# If you leave this blank, OUYA support will not be enabled
#android.ouya.category = GAME

# (str) Filename of OUYA Console icon. It must be a 732x412 png image.
#android.ouya.icon.filename = %(source.dir)s/data/ouya_icon.png

# (str) XML file to include as an intent filters in <activity> tag
#android.manifest.intent_filters =

# (str) launchMode to set for the main activity
#android.manifest.launch_mode = standard

# (list) Android additional libraries to copy into libs/armeabi
#android.add_libs_armeabi = libs/android/*.so
#android.add_libs_armeabi_v7a = libs/android-v7/*.so
#android.add_libs_arm64_v8a = libs/android-v8/*.so
#android.add_libs_x86 = libs/android-x86/*.so
#android.add_libs_mips = libs/android-mips/*.so

# (bool) Indicate whether the screen should stay on
# Don't forget to add the WAKE_LOCK permission if you set this to True
#android.wakelock = False

# (list) Android application meta-data to set (key=value format)
#android.meta_data =

# (list) Android library project to add (will be added in the
# project.properties automatically.)
#android.library_references =

# (list) Android shared libraries which will be added to AndroidManifest.xml using <uses-library> tag
#android.uses_library =

# (str) Android logcat filters to use
#android.logcat_filters = *:S python:D

# (bool) Copy library instead of making a libpymodules.so
#android.copy_libs = 1

# (str) The Android arch to build for, choices: armeabi-v7a, arm64-v8a, x86, x86_64
android.arch = armeabi-v7a

# (int) overrides automatic versionCode computation (used in build.gradle)
# this is not the same as app version and should only be edited if you know what you're doing
# android.numeric_version = 1

#
# Python for android (p4a) specific
#

# (str) python-for-android fork to use, defaults to upstream (kivy)
#p4a.fork = kivy

# (str) python-for-android branch to use, defaults to master
#p4a.branch = master

# (str) python-for-android git clone directory (if empty, it will be automatically cloned from github)
#p4a.source_dir =

# (str) The directory in which python-for-android should look for your own build recipes (if any)
#p4a.local_recipes =

# (str) Filename to the hook for p4a
#p4a.hook =

# (str) Bootstrap to use for android builds
# p4a.bootstrap = sdl2

# (int) port number to specify an explicit --port= p4a argument (eg for bootstrap flask)
#p4a.port =


#
# iOS specific
#

# (str) Path to a custom kivy-ios folder
#ios.kivy_ios_dir = ../kivy-ios
# Alternately, specify the URL and branch of a git checkout:
ios.kivy_ios_url = https://github.com/kivy/kivy-ios
ios.kivy_ios_branch = master

# Another platform dependency: ios-deploy
# Uncomment to use a custom checkout
#ios.ios_deploy_dir = ../ios_deploy
# Or specify URL and branch
ios.ios_deploy_url = https://github.com/phonegap/ios-deploy
ios.ios_deploy_branch = 1.7.0

# (str) Name of the certificate to use for signing the debug version
# Get a list of available identities: buildozer ios list_identities
#ios.codesign.debug = "iPhone Developer: <lastname> <firstname> (<hexstring>)"

# (str) Name of the certificate to use for signing the release version
#ios.codesign.release = %(ios.codesign.debug)s


[buildozer]

# (int) Log level (0 = error only, 1 = info, 2 = debug (with command output))
log_level = 2

# (int) Display warning if buildozer is run as root (0 = False, 1 = True)
warn_on_root = 1

# (str) Path to build artifact storage, absolute or relative to spec file
# build_dir = ./.buildozer

# (str) Path to build output (i.e. .apk, .ipa) storage
# bin_dir = ./bin

#    -----------------------------------------------------------------------------
#    List as sections
#
#    You can define all the "list" as [section:key].
#    Each line will be considered as a option to the list.
#    Let's take [app] / source.exclude_patterns.
#    Instead of doing:
#
#[app]
#source.exclude_patterns = license,data/audio/*.wav,data/images/original/*
#
#    This can be translated into:
#
#[app:source.exclude_patterns]
#license
#data/audio/*.wav
#data/images/original/*
#


#    -----------------------------------------------------------------------------
#    Profiles
#
#    You can extend section / key with a profile
#    For example, you want to deploy a demo version of your application without
#    HD content. You could first change the title to add "(demo)" in the name
#    and extend the excluded directories to remove the HD content.
#
#[app@demo]
#title = My Application (demo)
#
#[app:source.exclude_patterns@demo]
#images/hd/*
#
#    Then, invoke the command line with the "demo" profile:
#
#buildozer --profile demo android debug

Logs

I try to debug my apk with android studio : 
   following message appear :
   Thread-24-[SDL Thread]


09/16 17:06:04: Launching 'galaxyprojectgot-0.1-armeabi-v7a-debug' on Pixel 5 API 30.
Install successfully finished in 185 ms.
$ adb shell am start -n "org.test.galaxyprojectgot/org.kivy.android.PythonActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Connected to process 5778 on device 'Pixel_5_API_30 [emulator-5554]'.
Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.
D/ApplicationLoaders: Returning zygote-cached class loader: /system/framework/android.test.base.jar
I/alaxyprojectgo: The ClassLoaderContext is a special shared library.
D/NetworkSecurityConfig: No Network Security Config specified, using platform default
    No Network Security Config specified, using platform default
D/libEGL: loaded /vendor/lib/egl/libEGL_emulation.so
D/libEGL: loaded /vendor/lib/egl/libGLESv1_CM_emulation.so
D/libEGL: loaded /vendor/lib/egl/libGLESv2_emulation.so
V/PythonActivity: PythonActivity onCreate running
V/PythonActivity: About to do super onCreate
V/SDL: Device: generic_x86
    Model: Android SDK built for x86
    onCreate()
V/PythonActivity: Did super onCreate
V/SDL: getting identifier
    kind is layout and name lottie
    result is 0
E/alaxyprojectgo: Invalid ID 0x00000000.
V/SDL: couldn't find lottie layout or animation, trying static splash
    getting identifier
    kind is drawable and name presplash
V/SDL: result is 2130771969
V/SDL: asked to get string presplash_color
    getting identifier
    kind is string and name presplash_color
    result is 2131034113
V/PythonActivity: Ready to unpack
V/pythonutil: Unpacking private app
    Data version is 43c449e15a03cd89619c859c5d3e393292362190
V/PythonActivity: onResume()
V/SDL: onResume()
V/pythonutil: Checking pattern libsqlite3\.so against libSDL2_ttf.so
    Checking pattern libsqlite3\.so against libhidapi.so
    Checking pattern libsqlite3\.so against libpython3.7m.so
    Checking pattern libsqlite3\.so against libssl1.1.so
    Checking pattern libsqlite3\.so against libffi.so
V/pythonutil: Checking pattern libsqlite3\.so against libcrypto1.1.so
    Checking pattern libsqlite3\.so against libSDL2_mixer.so
    Checking pattern libsqlite3\.so against libmain.so
    Checking pattern libsqlite3\.so against libSDL2_image.so
V/pythonutil: Checking pattern libsqlite3\.so against libsqlite3.so
    Pattern libsqlite3\.so matched file libsqlite3.so
    Checking pattern libsqlite3\.so against libSDL2.so
V/pythonutil: Checking pattern libffi\.so against libSDL2_ttf.so
    Checking pattern libffi\.so against libhidapi.so
V/pythonutil: Checking pattern libffi\.so against libpython3.7m.so
    Checking pattern libffi\.so against libssl1.1.so
    Checking pattern libffi\.so against libffi.so
V/pythonutil: Pattern libffi\.so matched file libffi.so
    Checking pattern libffi\.so against libcrypto1.1.so
    Checking pattern libffi\.so against libSDL2_mixer.so
V/pythonutil: Checking pattern libffi\.so against libmain.so
    Checking pattern libffi\.so against libSDL2_image.so
    Checking pattern libffi\.so against libsqlite3.so
    Checking pattern libffi\.so against libSDL2.so
V/pythonutil: Checking pattern libpng16\.so against libSDL2_ttf.so
    Checking pattern libpng16\.so against libhidapi.so
    Checking pattern libpng16\.so against libpython3.7m.so
    Checking pattern libpng16\.so against libssl1.1.so
    Checking pattern libpng16\.so against libffi.so
V/pythonutil: Checking pattern libpng16\.so against libcrypto1.1.so
    Checking pattern libpng16\.so against libSDL2_mixer.so
    Checking pattern libpng16\.so against libmain.so
    Checking pattern libpng16\.so against libSDL2_image.so
V/pythonutil: Checking pattern libpng16\.so against libsqlite3.so
    Checking pattern libpng16\.so against libSDL2.so
V/pythonutil: Checking pattern libssl.*\.so against libSDL2_ttf.so
    Checking pattern libssl.*\.so against libhidapi.so
    Checking pattern libssl.*\.so against libpython3.7m.so
V/pythonutil: Checking pattern libssl.*\.so against libssl1.1.so
V/pythonutil: Pattern libssl.*\.so matched file libssl1.1.so
    Checking pattern libssl.*\.so against libffi.so
    Checking pattern libssl.*\.so against libcrypto1.1.so
    Checking pattern libssl.*\.so against libSDL2_mixer.so
    Checking pattern libssl.*\.so against libmain.so
    Checking pattern libssl.*\.so against libSDL2_image.so
V/pythonutil: Checking pattern libssl.*\.so against libsqlite3.so
    Checking pattern libssl.*\.so against libSDL2.so
V/pythonutil: Checking pattern libcrypto.*\.so against libSDL2_ttf.so
    Checking pattern libcrypto.*\.so against libhidapi.so
    Checking pattern libcrypto.*\.so against libpython3.7m.so
    Checking pattern libcrypto.*\.so against libssl1.1.so
    Checking pattern libcrypto.*\.so against libffi.so
V/pythonutil: Checking pattern libcrypto.*\.so against libcrypto1.1.so
    Pattern libcrypto.*\.so matched file libcrypto1.1.so
    Checking pattern libcrypto.*\.so against libSDL2_mixer.so
    Checking pattern libcrypto.*\.so against libmain.so
V/pythonutil: Checking pattern libcrypto.*\.so against libSDL2_image.so
    Checking pattern libcrypto.*\.so against libsqlite3.so
    Checking pattern libcrypto.*\.so against libSDL2.so
V/pythonutil: Checking pattern libSDL2\.so against libSDL2_ttf.so
V/pythonutil: Checking pattern libSDL2\.so against libhidapi.so
    Checking pattern libSDL2\.so against libpython3.7m.so
    Checking pattern libSDL2\.so against libssl1.1.so
    Checking pattern libSDL2\.so against libffi.so
    Checking pattern libSDL2\.so against libcrypto1.1.so
V/pythonutil: Checking pattern libSDL2\.so against libSDL2_mixer.so
    Checking pattern libSDL2\.so against libmain.so
V/pythonutil: Checking pattern libSDL2\.so against libSDL2_image.so
    Checking pattern libSDL2\.so against libsqlite3.so
    Checking pattern libSDL2\.so against libSDL2.so
V/pythonutil: Pattern libSDL2\.so matched file libSDL2.so
V/pythonutil: Checking pattern libSDL2_image\.so against libSDL2_ttf.so
V/pythonutil: Checking pattern libSDL2_image\.so against libhidapi.so
    Checking pattern libSDL2_image\.so against libpython3.7m.so
    Checking pattern libSDL2_image\.so against libssl1.1.so
V/pythonutil: Checking pattern libSDL2_image\.so against libffi.so
    Checking pattern libSDL2_image\.so against libcrypto1.1.so
    Checking pattern libSDL2_image\.so against libSDL2_mixer.so
    Checking pattern libSDL2_image\.so against libmain.so
    Checking pattern libSDL2_image\.so against libSDL2_image.so
    Pattern libSDL2_image\.so matched file libSDL2_image.so
    Checking pattern libSDL2_image\.so against libsqlite3.so
V/pythonutil: Checking pattern libSDL2_image\.so against libSDL2.so
    Checking pattern libSDL2_mixer\.so against libSDL2_ttf.so
    Checking pattern libSDL2_mixer\.so against libhidapi.so
V/pythonutil: Checking pattern libSDL2_mixer\.so against libpython3.7m.so
    Checking pattern libSDL2_mixer\.so against libssl1.1.so
    Checking pattern libSDL2_mixer\.so against libffi.so
    Checking pattern libSDL2_mixer\.so against libcrypto1.1.so
    Checking pattern libSDL2_mixer\.so against libSDL2_mixer.so
    Pattern libSDL2_mixer\.so matched file libSDL2_mixer.so
    Checking pattern libSDL2_mixer\.so against libmain.so
    Checking pattern libSDL2_mixer\.so against libSDL2_image.so
V/pythonutil: Checking pattern libSDL2_mixer\.so against libsqlite3.so
    Checking pattern libSDL2_mixer\.so against libSDL2.so
    Checking pattern libSDL2_ttf\.so against libSDL2_ttf.so
V/pythonutil: Pattern libSDL2_ttf\.so matched file libSDL2_ttf.so
    Checking pattern libSDL2_ttf\.so against libhidapi.so
    Checking pattern libSDL2_ttf\.so against libpython3.7m.so
    Checking pattern libSDL2_ttf\.so against libssl1.1.so
    Checking pattern libSDL2_ttf\.so against libffi.so
    Checking pattern libSDL2_ttf\.so against libcrypto1.1.so
V/pythonutil: Checking pattern libSDL2_ttf\.so against libSDL2_mixer.so
    Checking pattern libSDL2_ttf\.so against libmain.so
    Checking pattern libSDL2_ttf\.so against libSDL2_image.so
V/pythonutil: Checking pattern libSDL2_ttf\.so against libsqlite3.so
    Checking pattern libSDL2_ttf\.so against libSDL2.so
    Loading library: sqlite3
V/pythonutil: Loading library: ffi
V/pythonutil: Loading library: ssl1.1
V/pythonutil: Loading library: crypto1.1
V/pythonutil: Loading library: SDL2
V/pythonutil: Loading library: SDL2_image
V/pythonutil: Loading library: SDL2_mixer
V/pythonutil: Loading library: SDL2_ttf
V/pythonutil: Loading library: python3.5m
V/pythonutil: Library loading error: dlopen failed: library "libpython3.5m.so" not found
    Loading library: python3.6m
V/pythonutil: Library loading error: dlopen failed: library "libpython3.6m.so" not found
    Loading library: python3.7m
V/pythonutil: Loading library: python3.8
V/pythonutil: Library loading error: dlopen failed: library "libpython3.8.so" not found
V/pythonutil: Loading library: python3.9
V/pythonutil: Library loading error: dlopen failed: library "libpython3.9.so" not found
V/pythonutil: Loading library: main
V/pythonutil: Loaded everything!
V/SDL: nativeSetupJNI()
V/SDL: AUDIO nativeSetupJNI()
V/SDL: CONTROLLER nativeSetupJNI()
D/hidapi: Initializing Bluetooth
D/hidapi: Couldn't initialize Bluetooth, missing android.permission.BLUETOOTH
V/PythonActivity: Setting env vars for start.c and Python to use
V/PythonActivity: Access to our meta-data...
I/PythonActivity: Surface will NOT be transparent
V/PythonActivity: onResume()
V/SDL: onResume()
I/Choreographer: Skipped 38 frames!  The application may be doing too much work on its main thread.
D/HostConnection: HostConnection::get() New Host Connection established 0xeab21410, tid 5802
V/SDL: surfaceCreated()
    surfaceChanged()
    pixel format RGB_565
V/SDL: Window size: 1080x1977
D/HostConnection: HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_native_sync_v3 ANDROID_EMU_native_sync_v4 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_YUV_Cache ANDROID_EMU_async_unmap_buffer ANDROID_EMU_has_shared_slots_host_memory_allocator ANDROID_EMU_sync_buffer_data GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_async_frame_commands ANDROID_EMU_gles_max_version_2 
V/SDL: Device size: 1080x2280
W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...
V/SDL: Running main function SDL_main from library /data/app/~~WsigzWRNZvwyvFJ0N0dlqA==/org.test.galaxyprojectgot-M5yLLttExphSzvfpx2neUg==/lib/arm/libmain.so
V/PythonActivity: appConfirmedActive() -> preparing loading screen removal
V/SDL: nativeResume()
V/SDL: nativeRunMain()
I/python: Initializing Python for Android
I/python: Setting additional env vars from p4a_env_vars.txt
D/EGL_emulation: eglCreateContext: 0xeab1ec40: maj 2 min 0 rcv 2
W/System: A resource failed to call close. 
I/python: Changing directory to the one provided by ANDROID_ARGUMENT
I/python: /data/user/0/org.test.galaxyprojectgot/files/app
D/EGL_emulation: eglMakeCurrent: 0xeab1ec40: ver 2 0 (tinfo 0xeae74730) (first time)
I/python: Preparing to initialize python
I/Gralloc4: mapper 4.x is not supported
I/python: _python_bundle dir exists
D/HostConnection: createUnique: call
D/HostConnection: HostConnection::get() New Host Connection established 0xeab12ae0, tid 5802
D/goldfish-address-space: allocate: Ask for block of size 0x100
D/goldfish-address-space: allocate: ioctl allocate returned offset 0x3efffe000 size 0x2000
D/HostConnection: HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_native_sync_v3 ANDROID_EMU_native_sync_v4 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_YUV_Cache ANDROID_EMU_async_unmap_buffer ANDROID_EMU_has_shared_slots_host_memory_allocator ANDROID_EMU_sync_buffer_data GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_async_frame_commands ANDROID_EMU_gles_max_version_2 
I/python: calculated paths to be...
I/python: /data/user/0/org.test.galaxyprojectgot/files/app/_python_bundle/stdlib.zip:/data/user/0/org.test.galaxyprojectgot/files/app/_python_bundle/modules
I/python: set wchar paths...
I/OpenGLRenderer: Davey! duration=1098ms; Flags=1, IntendedVsync=4700412655408, Vsync=4701045988716, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=4701058035700, AnimationStart=4701058072500, PerformTraversalsStart=4701058142100, DrawStart=4701305089300, SyncQueued=4701306595800, SyncStart=4701310659400, IssueDrawCommandsStart=4701313946500, SwapBuffers=4701441376200, FrameCompleted=4701515326000, DequeueBufferDuration=69360100, QueueBufferDuration=1354200, GpuCompleted=0, 
V/SDL: onWindowFocusChanged(): true
I/python: Initialized python
I/python: AND: Init threads
I/python: testing python print redirection
I/python: Android path ['.', '/data/user/0/org.test.galaxyprojectgot/files/app/_python_bundle/stdlib.zip', '/data/user/0/org.test.galaxyprojectgot/files/app/_python_bundle/modules', '/data/user/0/org.test.galaxyprojectgot/files/app/_python_bundle/site-packages']
I/python: os.environ is environ({'PATH': '/product/bin:/apex/com.android.runtime/bin:/apex/com.android.art/bin:/system_ext/bin:/system/bin:/system/xbin:/odm/bin:/vendor/bin:/vendor/xbin', 'ANDROID_BOOTLOGO': '1', 'ANDROID_ROOT': '/system', 'ANDROID_ASSETS': '/system/app', 'ANDROID_DATA': '/data', 'ANDROID_STORAGE': '/storage', 'ANDROID_ART_ROOT': '/apex/com.android.art', 'ANDROID_I18N_ROOT': '/apex/com.android.i18n', 'ANDROID_TZDATA_ROOT': '/apex/com.android.tzdata', 'EXTERNAL_STORAGE': '/sdcard', 'ASEC_MOUNTPOINT': '/mnt/asec', 'BOOTCLASSPATH': '/apex/com.android.art/javalib/core-oj.jar:/apex/com.android.art/javalib/core-libart.jar:/apex/com.android.art/javalib/core-icu4j.jar:/apex/com.android.art/javalib/okhttp.jar:/apex/com.android.art/javalib/bouncycastle.jar:/apex/com.android.art/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/framework-atb-backward-compatibility.jar:/apex/com.android.conscrypt/javalib/conscrypt.jar:/apex/com.android.media/javalib/updatable-media.jar:/apex/com.android.mediaprovider/javalib/framework-mediaprovider.jar:/apex/com.android.os.statsd/javalib/framework-statsd.jar:/apex/com.android.permission/javalib/framework-permission.jar:/apex/com.android.sdkext/javalib/framework-sdkextensions.jar:/apex/com.android.wifi/javalib/framework-wifi.jar:/apex/com.android.tethering/javalib/framework-tethering.jar', 'DEX2OATBOOTCLASSPATH': '/apex/com.android.art/javalib/core-oj.jar:/apex/com.android.art/javalib/core-libart.jar:/apex/com.android.art/javalib/core-icu4j.jar:/apex/com.android.art/javalib/okhttp.jar:/apex/com.android.art/javalib/bouncycastle.jar:/apex/com.android.art/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/framework-atb-backward-compatibility.jar', 'SYSTEMSERVERCLASSPATH': '/system/framework/com.android.location.provider.jar:/system/framework/services.jar:/system/framework/ethernet-service.jar:/apex/com.android.permission/javalib/service-permission.jar:/apex/com.android.wifi/javalib/service-wifi.jar:/apex/com.android.ipsec/javalib/android.net.ipsec.ike.jar', 'DOWNLOAD_CACHE': '/data/cache', 'ANDROID_SOCKET_zygote': '22', 'ANDROID_SOCKET_usap_pool_primary': '23', 'ANDROID_ENTRYPOINT': 'main.pyc', 'ANDROID_ARGUMENT': '/data/user/0/org.test.galaxyprojectgot/files/app', 'ANDROID_APP_PATH': '/data/user/0/org.test.galaxyprojectgot/files/app', 'ANDROID_PRIVATE': '/data/user/0/org.test.galaxyprojectgot/files', 'ANDROID_UNPACK': '/data/user/0/org.test.galaxyprojectgot/files/app', 'PYTHONHOME': '/data/user/0/org.test.galaxyprojectgot/files/app', 'PYTHONPATH': '/data/user/0/org.test.galaxyprojectgot/files/app:/data/user/0/org.test.galaxyprojectgot/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'})
I/python: Android kivy bootstrap done. __name__ is __main__
    AND: Ran string
    Run user program, change dir and execute entrypoint
W/SDLThread: type=1400 audit(0.0:317): avc: denied { ioctl } for path="/proc/cpuinfo" dev="dm-4" ino=1603 ioctlcmd=0x5401 scontext=u:r:untrusted_app_27:s0:c512,c768 tcontext=u:object_r:system_lib_file:s0 tclass=file permissive=0 app=org.test.galaxyprojectgot
I/python: [INFO   ] [Logger      ] Record log in /data/user/0/org.test.galaxyprojectgot/files/app/.kivy/logs/kivy_21-09-16_2.txt
I/python: [INFO   ] [Kivy        ] v2.0.0
I/python: [INFO   ] [Kivy        ] Installed at "/data/user/0/org.test.galaxyprojectgot/files/app/_python_bundle/site-packages/kivy/__init__.pyc"
I/python: [INFO   ] [Python      ] v3.7.5 (default, Sep 16 2021, 09:44:56) 
    [Clang 8.0.2 (https://android.googlesource.com/toolchain/clang 40173bab62ec7462
I/python: [INFO   ] [Python      ] Interpreter at "android_python"
I/python: [INFO   ] [Audio       ] Providers: audio_sdl2 (audio_android, audio_ffpyplayer ignored)
I/python: [INFO   ] [Factory     ] 186 symbols loaded
I/python: [INFO   ] [Image       ] Providers: img_tex, img_dds, img_sdl2 (img_pil, img_ffpyplayer ignored)
I/python: [INFO   ] [Window      ] Provider: sdl2
E/libEGL: validate_display:87 error 3008 (EGL_BAD_DISPLAY)
V/SDL: setOrientation() orientation=-1 width=800 height=600 resizable=true hint=
D/HostConnection: HostConnection::get() New Host Connection established 0xeab07be0, tid 5807
D/HostConnection: HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_native_sync_v3 ANDROID_EMU_native_sync_v4 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_YUV_Cache ANDROID_EMU_async_unmap_buffer ANDROID_EMU_has_shared_slots_host_memory_allocator ANDROID_EMU_sync_buffer_data GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_async_frame_commands ANDROID_EMU_gles_max_version_2 
E/libEGL: validate_display:87 error 3008 (EGL_BAD_DISPLAY)
V/SDL: setOrientation() orientation=-1 width=800 height=600 resizable=true hint=
D/EGL_emulation: eglCreateContext: 0xeab07b70: maj 2 min 0 rcv 2
D/EGL_emulation: eglMakeCurrent: 0xeab07b70: ver 2 0 (tinfo 0xb46826d0) (first time)
I/python: [INFO   ] [GL          ] Using the "OpenGL ES 2" graphics system
I/python: [INFO   ] [GL          ] Backend used <sdl2>
I/python: [INFO   ] [GL          ] OpenGL version <b'OpenGL ES 2.0 (4.5.0 NVIDIA 382.05)'>
I/python: [INFO   ] [GL          ] OpenGL vendor <b'Google (NVIDIA Corporation)'>
I/python: [INFO   ] [GL          ] OpenGL renderer <b'Android Emulator OpenGL ES Translator (GeForce GTX 860M/PCIe/SSE2)'>
I/python: [INFO   ] [GL          ] OpenGL parsed version: 2, 0
I/python: [INFO   ] [GL          ] Texture max size <16384>
I/python: [INFO   ] [GL          ] Texture max units <32>
I/python: [INFO   ] [Window      ] auto add sdl2 input provider
I/python: [INFO   ] [Window      ] virtual keyboard not allowed, single mode, not docked
V/SDL: SDL audio: opening device for output
V/SDLAudio: Opening playback, requested 4096 frames of 2 channel 16-bit audio at 44100 Hz
W/AudioTrack: Use of stream types is deprecated for operations other than volume control
W/AudioTrack: See the documentation of AudioTrack() for what to use instead with android.media.AudioAttributes to qualify your playback use case
V/SDLAudio: Opening playback, got 4096 frames of 2 channel 16-bit audio at 44100 Hz
A/libc: Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x151e4 in tid 5807 (SDLThread), pid 5778 (alaxyprojectgot)

@vladimir-gui vladimir-gui changed the title SDL seems crashing on android Android App crashing at launch - SDL seems crashing Sep 16, 2021
@misl6 misl6 added the support label Sep 16, 2021
@misl6
Copy link
Member

misl6 commented Sep 16, 2021

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

@misl6 misl6 closed this as completed Sep 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants