Open DexerBR opened 1 year ago
As a workaround try Window.update_viewport()
either on_start()
or one time step after.
@RobertFlatt Hello, I used Window.update_viewport() but the problem persists, any other suggestions for solution? Thanks Lionreal
I added color animation to the first screen, it worked.
Can you explain this further? did you draw a rectangle on the canvas or what?
I added color animation to the first screen, it worked.
@Hamheadon the image I used on the first screen
<Screen1>:
canvas.before:
rgba: self.scrn_bg_color
Rectangle:
pos: self.pos
size: self.size
source: './images/image1.jpg'
I added a color animation for scrn_bg_color
This issue seems to occur on some specific devices. In others it works correctly!
Android 12 and Adreno GPU → no issue Android 9 and Mali GPU → black screen
Still occurs in python-for-android v2023.05.21
@DexerBR , the issue may be on SDL2 side, did you checked if there's any already opened issue on their issue tracker? (Or if there's something in their code that may seem to be related?)
Hi @misl6! I took a quick look, and I couldn't find anything directly related. This was the closest issue I found: https://github.com/libsdl-org/SDL/issues/7568.
IIRC, @RobertFlatt's suggestion to use update_viewport()
works as an alternative solution. Either way, I think we can consider something like this as a preventive measure against other regressions in the future.
I observed the problem persist in my last try with kivy 2.2.1 and ASUS Z01BD phone
Is it solved or not ?
It's definitely not resolved. I see the same behavior.
Some additional colour: when I deactivate the phone while it's on black screen (by pressing on/off button) and then wake the phone again, the app start working normally.
Do you guys think this could be resolved soon?
Checklist
p4a.branch = develop
)Versions
Description
When enabling fullscreen mode with
fullscreen = 1
in buildozer, usingp4a == develop
andbuildozer == master
to generate an apk, I get the folowing behavior:Right after the splash screen is removed, the UI is not updated, i.e. the screen remains black until the screen receives some user interaction. It's as if an
canvas.ask_update()
needed to be performed to update the UI, right after starting the app. However, even runningWindow.canvas.ask_update()
in theon_start
method, the issue remains.Note: The issue does not occur when using
fullscreen=0
.main.py
buildozer.spec
Command:
Spec file:
Logs
No specific log