JDK9 build 119 fails on Ubuntu Gnome 16.04

Jim Graham james.graham at oracle.com
Fri May 20 21:27:37 UTC 2016


This should be fixed in the next build (fix is already pushed to our 9-dev FX repo).  It was caused by getting a "0" 
from the GDK APIs that specify the scaling factor.  We now protect against that uninitialized value...

			...jim

On 5/20/16 8:30 AM, Kevin Rushforth wrote:
> Jim can comment further, but this might be related to the recent Hi-DPI support for Linux that went into build 119.
>
> Btw, the updated WebKit will be in build 120.
>
> -- Kevin
>
>
> Thomas Kruse wrote:
>> Hi,
>>
>> I tested the latest build 119 of JDK9. I was curious to try out the
>> WebKit update, but even a very simple JavaFX class threw the following
>> exception. I tried to force GTK2, since I suspected GTK3 support as the
>> culprit, but this did not help.
>>
>> java -Djdk.gtk.version=2 -Djdk.gtk.verbose=true -cp target/classes
>> sample.Basic
>> Loading GTK libraries version 2
>> trying GTK library set libgtk-x11-2.0.so.0, libgdk-x11-2.0.so.0,
>> libgdk_pixbuf-2.0.so
>> failed to load libgdk_pixbuf-2.0.so
>> trying GTK library set libgtk-x11-2.0.so, libgdk-x11-2.0.so,
>> libgdk_pixbuf-2.0.so
>> failed to load libgtk-x11-2.0.so
>> trying GTK library set libgtk-3.so.0, libgdk-3.so.0, libgdk_pixbuf-2.0.so.0
>> using GTK library set libgtk-3.so.0, libgdk-3.so.0, libgdk_pixbuf-2.0.so.0
>> Exception in thread "JavaFX Application Thread"
>> java.lang.IllegalArgumentException: Both width and height must be >= 0
>>     at
>> javafx.geometry.Rectangle2D.<init>(javafx.graphics at 9-ea/Rectangle2D.java:104)
>>     at javafx.stage.Screen.nativeToScreen(javafx.graphics at 9-ea/Screen.java:152)
>>     at
>> javafx.stage.Screen.updateConfiguration(javafx.graphics at 9-ea/Screen.java:88)
>>     at javafx.stage.Screen.checkDirty(javafx.graphics at 9-ea/Screen.java:82)
>>     at javafx.stage.Screen.getPrimary(javafx.graphics at 9-ea/Screen.java:185)
>>     at
>> com.sun.javafx.tk.quantum.QuantumToolkit.initSceneGraph(javafx.graphics at 9-ea/QuantumToolkit.java:298)
>>     at
>> com.sun.javafx.tk.quantum.QuantumToolkit.runToolkit(javafx.graphics at 9-ea/QuantumToolkit.java:340)
>>     at
>> com.sun.javafx.tk.quantum.QuantumToolkit.lambda$startup$10(javafx.graphics at 9-ea/QuantumToolkit.java:257)
>>     at
>> com.sun.glass.ui.Application.lambda$run$1(javafx.graphics at 9-ea/Application.java:155)
>>     at
>> com.sun.glass.ui.gtk.GtkApplication._runLoop(javafx.graphics at 9-ea/Native
>> Method)
>>     at
>> com.sun.glass.ui.gtk.GtkApplication.lambda$runLoop$8(javafx.graphics at 9-ea/GtkApplication.java:195)
>>     at java.lang.Thread.run(java.base at 9-ea/Thread.java:804)
>>
>>
>>


More information about the openjfx-dev mailing list