java.lang.IllegalArgumentException: Width (0) and height (0) cannot be <= 0

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Oracle Community by 807551, 1 year ago
Width (0) and height (0) cannot be <= 0
via Oracle Community by 843799, 1 year ago
Width (0) and height (0) cannot be <= 0
via Google Groups by Unknown author, 2 months ago
Width (0) and hei ght (0) cannot be <= 0
via Coderanch by Hesham Gneady, 1 year ago
java.lang.IllegalArgumentException: Width (0) and height (0) cannot be <= 0
at java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:999)
at sun.awt.Win32GraphicsConfig.createCompatibleImage(Win32GraphicsConfig.java:119)
at sun.awt.image.SunVolatileImage.getBufferedImage(SunVolatileImage.java:216)
at sun.awt.image.SunVolatileImage.getSurfaceDataSw(SunVolatileImage.java:122)
at sun.awt.windows.WVolatileImage.initAcceleratedBackground(WVolatileImage.java:112)
at sun.awt.image.SunVolatileImage.(SunVolatileImage.java:86)
at sun.awt.image.SunVolatileImage.(SunVolatileImage.java:77)
at sun.awt.windows.WVolatileImage.(WVolatileImage.java:63)
at sun.awt.windows.WComponentPeer.createVolatileImage(WComponentPeer.java:471)
at java.awt.Component.createVolatileImage(Component.java:2684)
at java.awt.Component$BltBufferStrategy.createBackBuffers(Component.java:3194)
at java.awt.Component$BltBufferStrategy.(Component.java:3180)
at java.awt.Component.createBufferStrategy(Component.java:2927)
at java.awt.Canvas.createBufferStrategy(Canvas.java:166)
at java.awt.Component.createBufferStrategy(Component.java:2867)
at undefined.Tetris.init(Unknown Source)
at sun.applet.AppletPanel.run(AppletPanel.java:347)
at java.lang.Thread.run(Thread.java:536)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 11 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
7 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.