"AWT-EventQueue-0" error when running a simple line on MAC OS-X 10.6.8
in
Integration and Hardware
•
1 year ago
Hello,
In my sketch all I have is this code:
ellipse(50, 50, 80, 80);
I press Run then I get this stack trace at the bottom:
Display 0 does not exist, using the default display instead.
Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: Width (-1) and height (16) cannot be <= 0
at java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:1016)
at java.awt.image.BufferedImage.<init>(BufferedImage.java:357)
at sun.lwawt.macosx.CImage$Creator.createFromImage(CImage.java:101)
at sun.lwawt.macosx.CPlatformWindow.getImageForTarget(CPlatformWindow.java:734)
at sun.lwawt.macosx.CPlatformWindow.updateIconImages(CPlatformWindow.java:541)
at sun.lwawt.macosx.CPlatformWindow.setVisible(CPlatformWindow.java:506)
at sun.lwawt.LWWindowPeer$1.run(LWWindowPeer.java:273)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:705)
at java.awt.EventQueue.access$000(EventQueue.java:101)
at java.awt.EventQueue$3.run(EventQueue.java:666)
at java.awt.EventQueue$3.run(EventQueue.java:664)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:675)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:240)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:142)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:134)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
Does anyone know a solution to this problem? Thanks!
1