Android calls python through chaquo to get the ui window built by toga, strange error “Failed to create image decoder with message 'unimplemented'” #2762
Replies: 1 comment 8 replies
-
Converted to a discussion since this doesn't appear to be a bug in Toga, but a question about Chaquopy usage. It's not even clear to me that this is a Chaquopy error, as you haven't provided any Python code to demonstrate what is going on, nor have you provided any guidance on how this You're clearly doing something with skia, as that is the line in the logs that is raising an error, but there's no mention of skia anywhere in your ticket description. My guess is that you've added skia to your Python app and you're assuming it will "just work". This won't be the case, as there will inevitably be a binary component involved to integrate with the Android GUI layer. However, it's almost impossible to provide debugging advice beyond this when you don't provide a set of instructions that allows us to reproduce the problem. |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
I need a permanent floating window, so I need to use a service to implement it, not an activity (toga can be called normally,so to prove that the software environment is fine)
FloatingWindowService.java:
Steps to reproduce
Expected behavior
a permanent floating window by toga
Screenshots
Environment
Logs
�[38;5;75mD/FloatingWindowService: Running Python code to update floating window content�[0m
�[38;5;40mI/python.stdout: WARNING: Can't find app icon; falling back to default icon�[0m
�[38;5;166mW/m.example.uiap: Accessing hidden method Ljava/io/FileDescriptor;->setInt$(I)V (greylist,core-platform-api, JNI, allowed)�[0m
�[38;5;166mW/m.example.uiap: Accessing hidden method Landroid/os/Handler;->(Landroid/os/Looper;Landroid/os/Handler$Callback;Z)V (greylist, JNI, allowed)�[0m
�[38;5;166mW/m.example.uiap: Accessing hidden method Landroid/os/Handler;->(Z)V (greylist, JNI, allowed)�[0m
�[38;5;40mI/python.stdout: Python app launched & stored in Android Activity class�[0m
�[38;5;75mD/skia : --- Failed to create image decoder with message 'unimplemented'�[0m
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions