steveonjava / widgetfx

Automatically exported from code.google.com/p/widgetfx
BSD 3-Clause "New" or "Revised" License
2 stars 1 forks source link

'Error setting window transparency using AWTUtilities' on ubuntu 8 #24

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. install ubuntu ;-)
2. start widgetfx

What is the expected output?
fancy javafx dock

What do you see instead?
EDT blocks, even the webstart downloader dialog stops working, dock is not
transparent

What version of the product are you using? On what operating system?
ubuntu, latest proprietary nvidia drivers, with compiz-fusion enabled

javaws trace:
Error setting window transparency using AWTUtilities
java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at javafx.application.WindowImpl.setWindowTransparency(WindowImpl.java:112)
    at javafx.application.Window$5.onChange(Window.fx:96)
    at javafx.application.Window$5.onChange(Window.fx:89)
    at
com.sun.javafx.runtime.location.ObjectVariable.notifyListeners(ObjectVariable.ja
va:125)
    at
com.sun.javafx.runtime.location.ObjectVariable.replaceValue(ObjectVariable.java:
79)
    at com.sun.javafx.runtime.location.ObjectVariable.set(ObjectVariable.java:89)
    at org.widgetfx.Sidebar.userInit$(Sidebar.fx:111)
    at org.widgetfx.Sidebar.initialize$(Sidebar.fx:44)
    at org.widgetfx.Main.javafx$run$(Main.fx:23)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at
com.sun.javafx.application.AWT_EDT_RuntimeProvider$1.run(AWT_EDT_RuntimeProvider
.java:43)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
    at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:284
)
    at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174
)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Caused by: java.lang.IllegalArgumentException: The window must use a
translucency-compatible graphics configuration
    at com.sun.awt.AWTUtilities.setWindowOpaque(AWTUtilities.java:371)
    ... 26 more

proposed quickfix:
disable window transparency on linux

Original issue reported on code.google.com by mbie...@googlemail.com on 15 Aug 2008 at 3:09

GoogleCodeExporter commented 9 years ago
forgot to mention:
tested with Java SE 6.10 b27

Original comment by mbie...@googlemail.com on 15 Aug 2008 at 3:12

GoogleCodeExporter commented 9 years ago
same result if compiz disabled

Original comment by mbie...@googlemail.com on 8 Sep 2008 at 3:48

GoogleCodeExporter commented 9 years ago
This works fine on Java SE 1.6.0.7 on latest Gentoo linux with Gnome, so it 
must be a
bug in the transparency support for Java SE 1.6.0.10.

I have added a workaround to the WidgetFX framework where you can disable
transparency by passing in a command line argument of "no-transparency".  This 
can
also be done using the following URL:
http://widgetfx.org/dock/launch.jnlp?arg=no-transparency

Original comment by steveonjava on 11 Sep 2008 at 12:04