Bug 446381 - WYSYWYG editor exception when using GLCanvas from JOGAMP
Summary: WYSYWYG editor exception when using GLCanvas from JOGAMP
Status: CLOSED WONTFIX
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: WindowBuilder (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: core, ui
Depends on:
Blocks:
 
Reported: 2014-10-08 17:58 EDT by Maksym Pryvalov CLA
Modified: 2021-06-04 16:45 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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)