java.lang.IllegalArgumentException

Width (0) and height (0) cannot be <= 0

Samebug tips0

There are no available Samebug tips.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web113

Stack trace

  • 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.<init>(SunVolatileImage.java:86) at sun.awt.image.SunVolatileImage.<init>(SunVolatileImage.java:77) at sun.awt.windows.WVolatileImage.<init>(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.<init>(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 java.awt.Canvas.createBufferStrategy(Canvas.java:141) at Tetris.init(Unknown Source) at sun.applet.AppletPanel.run(AppletPanel.java:347) at java.lang.Thread.run(Thread.java:536)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Unknown visitor
Unknown visitor1 times, last one,
Unknown visitor
Unknown visitor1 times, last one,
Unknown visitor
Unknown visitor1 times, last one,
Unknown visitor
Unknown visitor1 times, last one,
Unknown visitor
Unknown visitor1 times, last one,
7 more bugmates