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

0
9 comments

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?

0
Avatar
Permanently deleted user

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

0

Is there any difference if you switch IntelliJ IDEA runtime to Oracle? See https://intellij-support.jetbrains.com/hc/articles/206544879.

0
Avatar
Permanently deleted user

I am actually using the latest JDK from Oracle jdk1.8.0_144.jdk. 

0

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.

0
Avatar
Permanently deleted user

I think this seems to have solved the problem (using IDEA's JDK). 

 

Thanks!

0
Avatar
Permanently deleted user

I spoke too soon. The problem persists even with the IDEA's SDK 

0

Does resetting NVRAM help? https://discussions.apple.com/thread/7910215 .

Maybe updating to High Sierra would fix it?

1
Avatar
Permanently deleted user

Resetting the NVRAM fixed it for me.

1

Please sign in to leave a comment.