Exception: SDL2: Unable to load image

435 views
Skip to first unread message

Ivan Acevedo

unread,
Dec 23, 2016, 3:56:30 PM12/23/16
to Kivy users support
I'm going crazy xD
Buildozer worked perfectly until yesterday, but since yesterday the applications do not work. Each time I compile my application, when it opens it closes and gives me these errors. From what I see are errors with SDL2. What am I doing wrong? What do I do to fix it?
I/python  (18484): ('os.environ is', {'ANDROID_ENTRYPOINT': 'main.pyo', 'ANDROID
_APP_PATH': '/data/data/org.test.myapp/files/app', 'EXTERNAL_STORAGE': '/storage
/sdcard0', 'LOOP_MOUNTPOINT': '/mnt/obb', 'ANDROID_ASSETS': '/system/app', 'PYTH
ONPATH': '/data/data/org.test.myapp/files/app:/data/data/org.test.myapp/files/ap
p/lib', 'ANDROID_ARGUMENT': '/data/data/org.test.myapp/files/app', 'ANDROID_ROOT
': '/system', 'PYTHONOPTIMIZE': '2', 'ANDROID_DATA': '/data', 'PYTHONHOME': '/da
ta/data/org.test.myapp/files/app', 'ANDROID_BOOTLOGO': '1', 'BOOTCLASSPATH': '/s
ystem/framework/core.jar:/system/framework/core-junit.jar:/system/framework/boun
cycastle.jar:/system/framework/ext.jar:/system/framework/hwframework.jar:/system
/framework/framework.jar:/system/framework/framework_ext.jar:/system/framework/a
ndroid.policy.jar:/system/framework/services.jar:/system/framework/apache-xml.ja
r:/system/framework/filterfw.jar:/system/framework/qcnvitems.jar:/system/framewo
rk/qcrilhook.jar', 'ANDROID_PROPERTY_WORKSPACE': '8,65536', 'ASEC_MOUNTPOINT': '
/mnt/asec', 'PATH': '/sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin', '
ANDROID_SOCKET_zygote': '9', 'LD_LIBRARY_PATH': '/vendor/lib:/data/cust/lib:/sys
tem/lib:/data/datalib', 'ANDROID_PRIVATE': '/data/data/org.test.myapp/files', 'P
YTHON_NAME': 'python'})
I/python  (18484): ('Android kivy bootstrap done. __name__ is', '__main__')
I/python  (18484): Traceback (most recent call last):
I/python  (18484):   File "<string>", line 1, in <module>
I/python  (18484):   File "/home/kivy/firstKivyApp/.buildozer/android/platform/b
uild/build/other_builds/python2/armeabi-v7a/python2/python-install/lib/python2.7
/site.py", line 563, in <module>
I/python  (18484):   File "/home/kivy/firstKivyApp/.buildozer/android/platform/b
uild/build/other_builds/python2/armeabi-v7a/python2/python-install/lib/python2.7
/site.py", line 545, in main
I/python  (18484):   File "/home/kivy/firstKivyApp/.buildozer/android/platform/b
uild/build/other_builds/python2/armeabi-v7a/python2/python-install/lib/python2.7
/site.py", line 278, in addusersitepackages
I/python  (18484):   File "/home/kivy/firstKivyApp/.buildozer/android/platform/b
uild/build/other_builds/python2/armeabi-v7a/python2/python-install/lib/python2.7
/site.py", line 253, in getusersitepackages
I/python  (18484):   File "/home/kivy/firstKivyApp/.buildozer/android/platform/b
uild/build/other_builds/python2/armeabi-v7a/python2/python-install/lib/python2.7
/site.py", line 243, in getuserbase
I/python  (18484):   File "/home/kivy/firstKivyApp/.buildozer/android/platform/b
uild/build/other_builds/python2/armeabi-v7a/python2/python-install/lib/python2.7
/sysconfig.py", line 520, in get_config_var
I/python  (18484):   File "/home/kivy/firstKivyApp/.buildozer/android/platform/b
uild/build/other_builds/python2/armeabi-v7a/python2/python-install/lib/python2.7
/sysconfig.py", line 419, in get_config_vars
I/python  (18484):   File "/home/kivy/firstKivyApp/.buildozer/android/platform/b
uild/build/other_builds/python2/armeabi-v7a/python2/python-install/lib/python2.7
/sysconfig.py", line 298, in _init_posix
I/python  (18484): IOError: invalid Python installation: unable to open /data/da
ta/org.test.myapp/files/app/include/python2.7/pyconfig.h (No such file or direct
ory)
I/python  (18484): AND: Ran string
I/python  (18484): Run user program, change dir and execute entrypoint
I/python  (18484): [WARNING           ] [Config      ] Older configuration versi
on detected (0 instead of 14)
I/python  (18484): [WARNING           ] [Config      ] Upgrading configuration i
n progress.
I/python  (18484): [INFO              ] [Logger      ] Record log in /data/data/
org.test.myapp/files/app/.kivy/logs/kivy_16-12-23_0.txt
I/python  (18484): [INFO              ] [Kivy        ] v1.9.1
I/python  (18484): [INFO              ] [Python      ] v2.7.2 (default, Dec 23 2
016, 19:48:49)
I/python  (18484): [GCC 4.8]
I/python  (18484): [INFO              ] [Factory     ] 179 symbols loaded
I/python  (18484): [INFO              ] [Image       ] Providers: img_tex, img_d
ds, img_gif, img_sdl2 (img_pil, img_ffpyplayer ignored)
I/python  (18484): [INFO              ] [OSC         ] using <thread> for socket

I/python  (18484): [ERROR             ] [Input       ] AndroidJoystick is not su
pported by your version of linux
I/python  (18484): Traceback (most recent call last):
I/python  (18484):   File "/home/kivy/firstKivyApp/.buildozer/android/platform/b
uild/dists/myapp/private/lib/python2.7/site-packages/kivy/input/providers/__init
__.py", line 57, in <module>
I/python  (18484):   File "/home/kivy/firstKivyApp/.buildozer/android/platform/b
uild/dists/myapp/private/lib/python2.7/site-packages/kivy/input/providers/androi
djoystick.py", line 20, in <module>
I/python  (18484): Exception: android lib not found.
I/python  (18484): [INFO              ] [Window      ] Provider: sdl2
I/python  (18484): [INFO              ] [GL          ] OpenGL version <OpenGL ES
 2.0 V@6.0 A...@04.01.01.21.010 (CL@)>
I/python  (18484): [INFO              ] [GL          ] OpenGL vendor <Qualcomm>
I/python  (18484): [INFO              ] [GL          ] OpenGL renderer <Adreno (
TM) 203>
I/python  (18484): [INFO              ] [GL          ] OpenGL parsed version: 2,
 0
I/python  (18484): [INFO              ] [GL          ] Texture max size <4096>
I/python  (18484): [INFO              ] [GL          ] Texture max units <16>
I/python  (18484): [INFO              ] [Shader      ] program: <--From Fragment
 Shader:
I/python  (18484): --From Vertex Shader:
I/python  (18484): Link was successful.>
I/python  (18484): [INFO              ] [Window      ] auto add sdl2 input provi
der
I/python  (18484): [INFO              ] [Window      ] virtual keyboard not allo
wed, single mode, not docked
I/python  (18484): [INFO              ] [Text        ] Provider: sdl2
I/python  (18484): [INFO              ] [Audio       ] Providers: audio_sdl2 (au
dio_pygst, audio_ffpyplayer ignored)
I/python  (18484): [WARNING           ] [AudioSDL2   ] Unable to load sonidos/fl
appybee/bump.wav: Mix_LoadWAV_RW with NULL src
I/python  (18484): [WARNING           ] [AudioSDL2   ] Unable to load sonidos/fl
appybee/bump.wav: Mix_LoadWAV_RW with NULL src
I/python  (18484): [WARNING           ] [AudioSDL2   ] Unable to load sonidos/fl
appybee/bump.wav: Mix_LoadWAV_RW with NULL src
I/python  (18484): [WARNING           ] [AudioSDL2   ] Unable to load sonidos/fl
appybee/bump.wav: Mix_LoadWAV_RW with NULL src
I/python  (18484): [WARNING           ] [AudioSDL2   ] Unable to load sonidos/fl
appybee/game_over.wav: Mix_LoadWAV_RW with NULL src
I/python  (18484): [WARNING           ] [AudioSDL2   ] Unable to load sonidos/fl
appybee/point.wav: Mix_LoadWAV_RW with NULL src
I/python  (18484): [WARNING           ] [AudioSDL2   ] Unable to load sonidos/fl
appybee/point.wav: Mix_LoadWAV_RW with NULL src
I/python  (18484): [WARNING           ] [AudioSDL2   ] Unable to load sonidos/fl
appybee/point.wav: Mix_LoadWAV_RW with NULL src
I/python  (18484): [WARNING           ] [AudioSDL2   ] Unable to load sonidos/fl
appybee/point.wav: Mix_LoadWAV_RW with NULL src
I/python  (18484): [WARNING           ] [AudioSDL2   ] Unable to load sonidos/sh
oot/hit.wav: Mix_LoadWAV_RW with NULL src
I/python  (18484): [WARNING           ] [AudioSDL2   ] Unable to load sonidos/sh
oot/hit.wav: Mix_LoadWAV_RW with NULL src
I/python  (18484): [WARNING           ] [AudioSDL2   ] Unable to load sonidos/sh
oot/hit.wav: Mix_LoadWAV_RW with NULL src
I/python  (18484): [WARNING           ] [AudioSDL2   ] Unable to load sonidos/sh
oot/hit.wav: Mix_LoadWAV_RW with NULL src
I/python  (18484): [WARNING           ] [AudioSDL2   ] Unable to load sonidos/sh
oot/hit.wav: Mix_LoadWAV_RW with NULL src
I/python  (18484): [WARNING           ] [AudioSDL2   ] Unable to load sonidos/sh
oot/laser.wav: Mix_LoadWAV_RW with NULL src
I/python  (18484): [WARNING           ] [AudioSDL2   ] Unable to load sonidos/sh
oot/laser.wav: Mix_LoadWAV_RW with NULL src
I/python  (18484): [WARNING           ] [AudioSDL2   ] Unable to load sonidos/sh
oot/laser.wav: Mix_LoadWAV_RW with NULL src
I/python  (18484): [WARNING           ] [AudioSDL2   ] Unable to load sonidos/sh
oot/laser.wav: Mix_LoadWAV_RW with NULL src
I/python  (18484): [WARNING           ] [AudioSDL2   ] Unable to load sonidos/sh
oot/laser.wav: Mix_LoadWAV_RW with NULL src
I/python  (18484): [WARNING           ] [AudioSDL2   ] Unable to load sonidos/sh
oot/laser.wav: Mix_LoadWAV_RW with NULL src
I/python  (18484): [WARNING           ] [AudioSDL2   ] Unable to load sonidos/sh
oot/laser.wav: Mix_LoadWAV_RW with NULL src
I/python  (18484): [WARNING           ] [AudioSDL2   ] Unable to load sonidos/sh
oot/laser.wav: Mix_LoadWAV_RW with NULL src
I/python  (18484): [WARNING           ] [AudioSDL2   ] Unable to load sonidos/sh
oot/laser.wav: Mix_LoadWAV_RW with NULL src
I/python  (18484): [WARNING           ] [AudioSDL2   ] Unable to load sonidos/sh
oot/laser.wav: Mix_LoadWAV_RW with NULL src
I/python  (18484):  Exception jnius.jnius.JavaException: JavaException('Unable t
o find the class java/lang/reflect/Modifier',) in 'kivy.properties.dpi2px' ignor
ed
I/python  (18484):  Exception jnius.jnius.JavaException: JavaException('Unable t
o find the class java/lang/reflect/Modifier',) in 'kivy.properties.dpi2px' ignor
ed
I/python  (18484):  Exception jnius.jnius.JavaException: JavaException('Unable t
o find the class java/lang/reflect/Modifier',) in 'kivy.properties.dpi2px' ignor
ed
I/python  (18484): [WARNING           ] [Image       ] Unable to load image <ima
genes/fondos/fondo-juegos.png>
I/python  (18484): [WARNING           ] [Image       ] Unable to load image <ima
genes/barras progreso/marco-barra.png>
I/python  (18484):  Traceback (most recent call last):
I/python  (18484):    File "/home/kivy/firstKivyApp/.buildozer/android/app/main.
py", line 92, in <module>
I/python  (18484):    File "/home/kivy/firstKivyApp/.buildozer/android/app/main.
py", line 90, in construir_kv
I/python  (18484):    File "/home/kivy/firstKivyApp/.buildozer/android/platform/
build/dists/myapp/private/lib/python2.7/site-packages/kivy/lang.py", line 1842,
in load_file
I/python  (18484):    File "/home/kivy/firstKivyApp/.buildozer/android/platform/
build/dists/myapp/private/lib/python2.7/site-packages/kivy/lang.py", line 1921,
in load_string
I/python  (18484):    File "/home/kivy/firstKivyApp/.buildozer/android/platform/
build/dists/myapp/private/lib/python2.7/site-packages/kivy/lang.py", line 2084,
in _apply_rule
I/python  (18484):    File "/home/kivy/firstKivyApp/.buildozer/android/platform/
build/dists/myapp/private/lib/python2.7/site-packages/kivy/lang.py", line 1970,
in apply
I/python  (18484):    File "/home/kivy/firstKivyApp/.buildozer/android/platform/
build/dists/myapp/private/lib/python2.7/site-packages/kivy/lang.py", line 2082,
in _apply_rule
I/python  (18484):    File "/home/kivy/firstKivyApp/.buildozer/android/app/datos
/barra_progreso.py", line 52, in __init__
I/python  (18484):    File "/home/kivy/firstKivyApp/.buildozer/android/app/datos
/barra_progreso.py", line 26, in iniciar
I/python  (18484):    File "kivy/graphics/vertex_instructions.pyx", line 771, in
 kivy.graphics.vertex_instructions.Rectangle.__init__ (kivy/graphics/vertex_inst
ructions.c:23950)
I/python  (18484):    File "kivy/graphics/instructions.pyx", line 280, in kivy.g
raphics.instructions.VertexInstruction.__init__ (kivy/graphics/instructions.c:62
24)
I/python  (18484):    File "kivy/graphics/context_instructions.pyx", line 341, i
n kivy.graphics.context_instructions.BindTexture.__init__ (kivy/graphics/context
_instructions.c:6571)
I/python  (18484):    File "kivy/graphics/context_instructions.pyx", line 381, i
n kivy.graphics.context_instructions.BindTexture.source.__set__ (kivy/graphics/c
ontext_instructions.c:7262)
I/python  (18484):    File "/home/kivy/firstKivyApp/.buildozer/android/platform/
build/dists/myapp/private/lib/python2.7/site-packages/kivy/core/image/__init__.p
y", line 512, in __init__
I/python  (18484):    File "/home/kivy/firstKivyApp/.buildozer/android/platform/
build/dists/myapp/private/lib/python2.7/site-packages/kivy/core/image/__init__.p
y", line 700, in _set_filename
I/python  (18484):    File "/home/kivy/firstKivyApp/.buildozer/android/platform/
build/dists/myapp/private/lib/python2.7/site-packages/kivy/core/image/__init__.p
y", line 430, in load
I/python  (18484):    File "/home/kivy/firstKivyApp/.buildozer/android/platform/
build/dists/myapp/private/lib/python2.7/site-packages/kivy/core/image/__init__.p
y", line 198, in __init__
I/python  (18484):    File "/home/kivy/firstKivyApp/.buildozer/android/platform/
build/dists/myapp/private/lib/python2.7/site-packages/kivy/core/image/img_sdl2.p
y", line 42, in load
I/python  (18484):  Exception: SDL2: Unable to load image
I/python  (18484): Python for android ended.


Ivan Acevedo

unread,
Dec 23, 2016, 8:08:33 PM12/23/16
to Kivy users support
I have tried everything. I have deleted the ".buildozer" folders (both the one in "home" and in my project). I have also deleted the virtual machine (use linux ubuntu) and reinstalled again. But that error keeps popping up, I've even generated a new "buildozer.spec" but it's no good, those errors keep popping up. It seems strange to me because that same project without modifications, worked perfectly, but suddenly when trying to compile it again, it stopped working.

Ivan Acevedo

unread,
Dec 24, 2016, 9:01:37 AM12/24/16
to Kivy users support
I have already solved it, I do not know what the problem was, but I solve it this way:

I have cleaned the folders: ".buildozer" (both the one in "/ home" and in the project folder).
Then I did a very basic application (a hello world).
I added the minimum requirements (kivy and hostpython2).
Compile the apk and install it on the phone to test it.
Then I compiled the apk adding a dependency and I installed it again on the phone to test it.
I added the units one by one. Add and compile, add and compile. To see that everything worked well.
When you finished adding all the settings to the buildozer.spec, the application was already working correctly.
I hope I can help someone.
Reply all
Reply to author
Forward
0 new messages