Screen flashes (black) when compiling JavaFX application
Answered
Hello,
I am using IDEA 2017.2.5, BUILD IU-172.4343.14. Whenever I compile my code just before the GUI appears on the screen the screen goes black for for half a second or so (flashes) and then the GUI appears. I am using MacOS Siera 10.12.6. Any suggestions what might be causing the problem ?
Thanks
Martin
Please sign in to leave a comment.
Does it happen when the app is started? Do you have the same problem if you start the app outside of IntelliJ IDEA?
Is there anything specific in your display configuration? Any external displays connected?
If I export to jar and run it - no problems. Everything on the display is default configuration as the laptop comes out of the box.
The problem happens just before the GUI is rendered on the screen
Is there any difference if you switch IntelliJ IDEA runtime to Oracle? See https://intellij-support.jetbrains.com/hc/articles/206544879.
I am actually using the latest JDK from Oracle jdk1.8.0_144.jdk.
IntelliJ IDEA is not using Oracle JDK by default to run itself. Please refer to the linked document and verify via About dialog. If you are running IntelliJ IDEA under Oracle JDK, try switching back to JetBrains Runtime.
I think this seems to have solved the problem (using IDEA's JDK).
Thanks!
I spoke too soon. The problem persists even with the IDEA's SDK
Does resetting NVRAM help? https://discussions.apple.com/thread/7910215 .
Maybe updating to High Sierra would fix it?
Resetting the NVRAM fixed it for me.