gluonhq / gluonfx-maven-plugin

Plugin that simplifies creating native images for Java/JavaFX maven projects
BSD 3-Clause "New" or "Revised" License
188 stars 39 forks source link

App with active transiitons shows black blank screen after switching between apps and back on android #425

Open metacodez opened 2 years ago

metacodez commented 2 years ago

Dear all,

first of all thank you for the great plugin, I am very enthusiastic on using this great plugin! I managed to get my JavaFX application up and running on my android phone (OPPO A74 5G) (after being inspired by the TiltMaze demo).

Though when my application has any active transitions (FadeTransistion, TranslateTransition,PauseTransition) and I send it to the back (switching to another app so that my app does not show any more), the time I switch back to the application it just shows an empty black screen when being shown again. The same happens also with the TiltMaze demo when the countdown timer is running (and for which I played around with some other pom.xml versions). Below find the versions in the pom.xml I used (dependencies and plugins):

Versions I used for my project

org.openjfx:javafx-base:19-ea+5
org.openjfx:javafx-graphics:19-ea+5
org.openjfx:javafx-controls:19-ea+5
org.openjfx:javafx-fxml:19-ea+5
org.openjfx:javafx-maven-plugin:0.0.8
com.gluonhq:gluonfx-maven-plugin:1.0.13

Versions I played around with the TiltMaze demo

org.openjfx:javafx-graphics:16
org.openjfx:javafx-base:14.0.1
org.openjfx:javafx-controls:16
org.openjfx:javafx-fxml:16
com.gluonhq:charm-glisten:6.1.0
com.gluonhq:glisten-afterburner:2.0.5
com.gluonhq.attach:accelerometer:4.0.11
com.gluonhq.attach:statusbar:4.0.11
com.gluonhq.attach:display:4.0.11
com.gluonhq.attach:storage:desktop:4.0.11:runtime
com.gluonhq.attach:util:4.0.11
com.gluonhq.attach:storage:4.0.11
com.gluonhq.attach:lifecycle:desktop:4.0.11:runtime
com.gluonhq.attach:lifecycle:4.0.11
com.gluonhq.attach:display:desktop:4.0.11:runtime
com.airhacks:afterburner.mfx:1.6.3
org.openjfx:javafx-maven-plugin:0.0.5
com.gluonhq:gluonfx-maven-plugin:1.0.11

When showing a static basic scene with no transitions after some scheduled time (so I had time to make the scene with the transition crash by sending the app to the back and to the front again) the application keeps being a black blank screen. Do I have to pause any transition when the app is sent to the background (I did not find any event I could listen to when the app is sent back) or may there be another issue?

Thanks beforehand & best regards, Siegfried

metacodez commented 2 years ago

Some more information (used JDK):

openjdk 17.0.2 2022-01-18
OpenJDK Runtime Environment GraalVM CE 22.0.0.2 (build 17.0.2+8-jvmci-22.0-b05)
OpenJDK 64-Bit Server VM GraalVM CE 22.0.0.2 (build 17.0.2+8-jvmci-22.0-b05, mixed mode, sharing)