-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Description
Hello. I have been trying to see if I can get P4A to work with Android TV, with not much luck.
Pure python works fine, but the encoding library seems to be broken (which also breaks kivy)
Emulator info:
CPU/ABI: Android TV ARM (armeabi-v7a)
Target: android-tv [Android TV] (API level 23)
avd.ini.encoding: UTF-8 (I don't know if this is important or not, using default setting)
Here are the interesting parts of the log:
01-14 15:33:45.296 1629 1648 I python : Traceback (most recent call last):
01-14 15:33:45.297 1629 1648 I python : File "/home/zingballyhoo/Desktop/kivy-android/tv-test/.buildozer/android/platform/build/dists/tvtest/private/lib/python2.7/logging/__init__.py", line 865, in emit
01-14 15:33:45.298 1629 1648 I python : UnicodeDecodeError: 'ascii' codec can't decode byte 0xc0 in position 43: ordinal not in range(128)
01-14 15:33:45.310 1629 1648 I python : Logged from file __init__.py, line 947
01-14 15:33:45.321 1629 1648 I python : Traceback (most recent call last):
01-14 15:33:45.322 1629 1648 I python : File "/home/zingballyhoo/Desktop/kivy-android/tv-test/.buildozer/android/platform/build/dists/tvtest/private/lib/python2.7/logging/__init__.py", line 865, in emit
01-14 15:33:45.324 1629 1648 I python : UnicodeDecodeError: 'ascii' codec can't decode byte 0xf0 in position 41: ordinal not in range(128)
01-14 15:33:45.325 1629 1648 I python : Logged from file __init__.py, line 947
Logger causes an error, but works fine anyway
01-14 15:33:45.369 1629 1648 I python : [CRITICAL] [Window ] Unable to find any valuable Window provider.
01-14 15:33:45.369 1629 1648 I python : sdl2 - UnicodeDecodeError: 'utf8' codec can't decode byte 0x9e in position 4: invalid start byte
01-14 15:33:45.369 1629 1648 I python : File "/home/zingballyhoo/Desktop/kivy-android/tv-test/.buildozer/android/platform/build/dists/tvtest/private/lib/python2.7/site-packages/kivy/core/__init__.py", line 67, in core_select_lib
01-14 15:33:45.369 1629 1648 I python : File "/home/zingballyhoo/Desktop/kivy-android/tv-test/.buildozer/android/platform/build/dists/tvtest/private/lib/python2.7/site-packages/kivy/core/window/window_sdl2.py", line 139, in __init__
01-14 15:33:45.369 1629 1648 I python : File "/home/zingballyhoo/Desktop/kivy-android/tv-test/.buildozer/android/platform/build/dists/tvtest/private/lib/python2.7/site-packages/kivy/core/window/__init__.py", line 795, in __init__
01-14 15:33:45.369 1629 1648 I python : File "/home/zingballyhoo/Desktop/kivy-android/tv-test/.buildozer/android/platform/build/dists/tvtest/private/lib/python2.7/site-packages/kivy/core/window/window_sdl2.py", line 284, in create_window
01-14 15:33:45.369 1629 1648 I python : File "/home/zingballyhoo/Desktop/kivy-android/tv-test/.buildozer/android/platform/build/dists/tvtest/private/lib/python2.7/site-packages/kivy/core/window/__init__.py", line 947, in create_window
01-14 15:33:45.369 1629 1648 I python : File "kivy/graphics/instructions.pyx", line 752, in kivy.graphics.instructions.RenderContext.__init__ (kivy/graphics/instructions.c:12152)
01-14 15:33:45.369 1629 1648 I python : File "kivy/graphics/shader.pyx", line 184, in kivy.graphics.shader.Shader.__init__ (kivy/graphics/shader.c:5159)
01-14 15:33:45.369 1629 1648 I python : File "kivy/graphics/shader.pyx", line 693, in kivy.graphics.shader.Shader.vs.__set__ (kivy/graphics/shader.c:12298)
01-14 15:33:45.369 1629 1648 I python : File "kivy/graphics/shader.pyx", line 555, in kivy.graphics.shader.Shader.build_vertex (kivy/graphics/shader.c:10181)
01-14 15:33:45.369 1629 1648 I python : File "kivy/graphics/shader.pyx", line 578, in kivy.graphics.shader.Shader.link_program (kivy/graphics/shader.c:10496)
01-14 15:33:45.369 1629 1648 I python : File "kivy/graphics/shader.pyx", line 632, in kivy.graphics.shader.Shader.get_program_log (kivy/graphics/shader.c:11143)
01-14 15:33:45.369 1629 1648 I python : File "/home/zingballyhoo/Desktop/kivy-android/tv-test/.buildozer/android/platform/build/dists/tvtest/private/lib/python2.7/encodings/utf_8.py", line 16, in decode
01-14 15:33:45.371 1629 1648 I python : [CRITICAL] [App ] Unable to get a Window, abort.
Here is the culprit line in Kivy: https://github.com/kivy/kivy/blob/master/kivy/graphics/shader.pyx#L632
If anyone can get this working, I will be able to add proper D-Pad support to P4A
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels