Strange errors when shutting down application

David Grieve david.grieve at oracle.com
Tue May 7 10:16:29 PDT 2013


This makes me wonder if a pulse is being delivered after the window is hidden. The reason I wonder that is that css cache is blown away when a window closes, which could explain the warnings if css is processed thereafter. Or some piece of code is calling Node#impl_processCSS(boolean) after the window is hidden. 

If you set CSS logging to FINE, you can get some more information out. 
        com.sun.javafx.Logging.getCSSLogger().setLevel(sun.util.logging.PlatformLogger.FINE);


On May 7, 2013, at 12:16 PM, Tom Schindl <tom.schindl at bestsolution.at> wrote:

> Hi,
> 
> I'm getting strange errors in FX8 while shutting down my application.
> 
>> Mai 07, 2013 5:54:22 PM javafx.scene.CssStyleHelper calculateValue
>> Warnung: Could not resolve '-fx-color' while resolving lookups for '-fx-background-color' from rule '*.context-menu' in stylesheet jar:file:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/ext/jfxrt.jar!/com/sun/javafx/scene/control/skin/modena/modena.bss
>> Mai 07, 2013 5:54:22 PM javafx.scene.CssStyleHelper calculateValue
>> Warnung: Could not resolve '-fx-text-base-color' while resolving lookups for '-fx-text-fill' from rule '*.menu-item>*.label' in stylesheet jar:file:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/ext/jfxrt.jar!/com/sun/javafx/scene/control/skin/modena/modena.bss
>> Mai 07, 2013 5:54:22 PM javafx.scene.CssStyleHelper calculateValue
>> Warnung: Could not resolve '-fx-text-base-color' while resolving lookups for '-fx-text-fill' from rule '*.menu-item>*.label' in stylesheet jar:file:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/ext/jfxrt.jar!/com/sun/javafx/scene/control/skin/modena/modena.bss
>> Mai 07, 2013 5:54:22 PM javafx.scene.CssStyleHelper calculateValue
>> Warnung: Could not resolve '-fx-text-base-color' while resolving lookups for '-fx-text-fill' from rule '*.menu-item>*.label' in stylesheet jar:file:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/ext/jfxrt.jar!/com/sun/javafx/scene/control/skin/modena/modena.bss
>> Mai 07, 2013 5:54:22 PM javafx.scene.CssStyleHelper calculateValue
>> Warnung: Could not resolve '-fx-text-base-color' while resolving lookups for '-fx-text-fill' from rule '*.menu-item>*.label' in stylesheet jar:file:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/ext/jfxrt.jar!/com/sun/javafx/scene/control/skin/modena/modena.bss
>> Mai 07, 2013 5:54:22 PM javafx.scene.CssStyleHelper calculateValue
>> Warnung: Could not resolve '-fx-color' while resolving lookups for '-fx-background-color' from rule '*.menu-up-arrow' in stylesheet jar:file:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/ext/jfxrt.jar!/com/sun/javafx/scene/control/skin/modena/modena.bss
>> Mai 07, 2013 5:54:22 PM javafx.scene.CssStyleHelper calculateValue
>> Warnung: Could not resolve '-fx-color' while resolving lookups for '-fx-background-color' from rule '*.menu-down-arrow' in stylesheet jar:file:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/ext/jfxrt.jar!/com/sun/javafx/scene/control/skin/modena/modena.bss
>> Mai 07, 2013 5:54:22 PM javafx.scene.CssStyleHelper calculateValue
>> Warnung: Could not resolve '-fx-color' while resolving lookups for '-fx-background-color' from rule '*.context-menu' in stylesheet jar:file:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/ext/jfxrt.jar!/com/sun/javafx/scene/control/skin/modena/modena.bss
>> Mai 07, 2013 5:54:22 PM javafx.scene.CssStyleHelper calculateValue
>> Warnung: Could not resolve '-fx-text-base-color' while resolving lookups for '-fx-text-fill' from rule '*.menu-item>*.label' in stylesheet jar:file:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/ext/jfxrt.jar!/com/sun/javafx/scene/control/skin/modena/modena.bss
>> Mai 07, 2013 5:54:22 PM javafx.scene.CssStyleHelper calculateValue
>> Warnung: Could not resolve '-fx-text-base-color' while resolving lookups for '-fx-text-fill' from rule '*.menu-item>*.label' in stylesheet jar:file:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/ext/jfxrt.jar!/com/sun/javafx/scene/control/skin/modena/modena.bss
>> Mai 07, 2013 5:54:22 PM javafx.scene.CssStyleHelper calculateValue
>> Warnung: Could not resolve '-fx-color' while resolving lookups for '-fx-background-color' from rule '*.menu-up-arrow' in stylesheet jar:file:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/ext/jfxrt.jar!/com/sun/javafx/scene/control/skin/modena/modena.bss
>> Mai 07, 2013 5:54:22 PM javafx.scene.CssStyleHelper calculateValue
>> Warnung: Could not resolve '-fx-color' while resolving lookups for '-fx-background-color' from rule '*.menu-down-arrow' in stylesheet jar:file:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/ext/jfxrt.jar!/com/sun/javafx/scene/control/skin/modena/modena.bss
>> Mai 07, 2013 5:54:22 PM javafx.scene.CssStyleHelper calculateValue
>> Warnung: Could not resolve '-fx-color' while resolving lookups for '-fx-background-color' from rule '*.context-menu' in stylesheet jar:file:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/ext/jfxrt.jar!/com/sun/javafx/scene/control/skin/modena/modena.bss
>> Mai 07, 2013 5:54:22 PM javafx.scene.CssStyleHelper calculateValue
>> Warnung: Could not resolve '-fx-color' while resolving lookups for '-fx-background-color' from rule '*.menu-up-arrow' in stylesheet jar:file:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/ext/jfxrt.jar!/com/sun/javafx/scene/control/skin/modena/modena.bss
>> Mai 07, 2013 5:54:22 PM javafx.scene.CssStyleHelper calculateValue
>> Warnung: Could not resolve '-fx-color' while resolving lookups for '-fx-background-color' from rule '*.menu-down-arrow' in stylesheet jar:file:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/ext/jfxrt.jar!/com/sun/javafx/scene/control/skin/modena/modena.bss
> 
> I'm unable to isolate the problem in a simple application so any pointers how to debug this would be helpful.
> 
> I saw the CSS-Engine freak out scenarios as well (e.g. when closing a Tab) destroying a running app completely but I can't reproduce this in b88.
> 
> Tom



More information about the openjfx-dev mailing list