Bug 446381

Summary: WYSYWYG editor exception when using GLCanvas from JOGAMP
Product: z_Archived Reporter: Maksym Pryvalov <maxim.privalov>
Component: WindowBuilderAssignee: Project inbox <wb.swing-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: clayberg
Version: unspecifiedKeywords: core, ui
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Maksym Pryvalov CLA 2014-10-08 17:58:01 EDT
When I try to design UI using GLCanvas from JOGL (JOGAMP) visual editor crashes with exception:

Internal Error
WindowBuilder encountered unexpected internal error. 

This could be caused by a WindowBuilder bug or by a misconfiguration issue, conflict, partial update, etc.

java.lang.IllegalStateException: setupPrint() not called



java.lang.IllegalStateException: setupPrint() not called
	at javax.media.opengl.awt.GLCanvas.print(GLCanvas.java:911)
	at sun.awt.windows.WComponentPeer.print(Unknown Source)
	at java.awt.GraphicsCallback$PeerPrintCallback.run(Unknown Source)
	at sun.awt.SunGraphicsCallback.runOneComponent(Unknown Source)
	at java.awt.Component.printAll(Unknown Source)
	at sun.awt.SunGraphicsCallback$PrintHeavyweightComponentsCallback.run(Unknown Source)
	at sun.awt.SunGraphicsCallback.runOneComponent(Unknown Source)
	at sun.awt.SunGraphicsCallback.runComponents(Unknown Source)
	at sun.awt.SunGraphicsCallback$PrintHeavyweightComponentsCallback.run(Unknown Source)
	at sun.awt.SunGraphicsCallback.runOneComponent(Unknown Source)
	at sun.awt.SunGraphicsCallback.runComponents(Unknown Source)
	at sun.awt.SunGraphicsCallback$PrintHeavyweightComponentsCallback.run(Unknown Source)
	at sun.awt.SunGraphicsCallback.runOneComponent(Unknown Source)
	at sun.awt.SunGraphicsCallback.runComponents(Unknown Source)
	at sun.awt.SunGraphicsCallback$PrintHeavyweightComponentsCallback.run(Unknown Source)
	at sun.awt.SunGraphicsCallback.runOneComponent(Unknown Source)
	at sun.awt.SunGraphicsCallback.runComponents(Unknown Source)
	at sun.awt.SunGraphicsCallback$PrintHeavyweightComponentsCallback.run(Unknown Source)
	at sun.awt.SunGraphicsCallback.runOneComponent(Unknown Source)
	at sun.awt.SunGraphicsCallback.runComponents(Unknown Source)
	at sun.awt.SunGraphicsCallback$PrintHeavyweightComponentsCallback.run(Unknown Source)
	at sun.awt.SunGraphicsCallback.runOneComponent(Unknown Source)
	at sun.awt.SunGraphicsCallback.runComponents(Unknown Source)
	at sun.awt.windows.WPanelPeer.print(Unknown Source)
	at sun.awt.windows.WWindowPeer.print(Unknown Source)
	at java.awt.GraphicsCallback$PeerPrintCallback.run(Unknown Source)
	at sun.awt.SunGraphicsCallback.runOneComponent(Unknown Source)
	at java.awt.Component.printAll(Unknown Source)
	at org.eclipse.wb.internal.swing.utils.SwingScreenshotMaker.makeShots(SwingScreenshotMaker.java:123)
	at org.eclipse.wb.internal.swing.model.component.ComponentInfo.refresh_fetch(ComponentInfo.java:155)
	at org.eclipse.wb.internal.swing.model.component.ComponentInfo.refresh_fetch(ComponentInfo.java:140)
	at org.eclipse.wb.internal.swing.model.component.ContainerInfo.refresh_fetch(ContainerInfo.java:251)
	at org.eclipse.wb.core.model.ObjectInfo$6$1.run(ObjectInfo.java:496)
	at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:145)
	at org.eclipse.wb.core.model.ObjectInfo$6.run(ObjectInfo.java:494)
	at org.eclipse.wb.internal.swing.utils.SwingUtils$2.run(SwingUtils.java:76)
	at java.awt.event.InvocationEvent.dispatch(Unknown Source)
	at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.awt.EventQueue.access$200(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
	at java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.run(Unknown Source)



Workaround: replace GLCanvas by JPanel or other similar component for design time and then replace again after. Not useable, but the only solution for now.
Comment 1 Eric Clayberg CLA 2014-10-10 22:24:29 EDT
Looks like a bug in GLCanvas. Can't help with that.

java.lang.IllegalStateException: setupPrint() not called
	at javax.media.opengl.awt.GLCanvas.print(GLCanvas.java:911)
	at sun.awt.windows.WComponentPeer.print(Unknown Source)