java.lang.IllegalArgumentException: Width (0) and height (0) must 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 java.net Bugzilla by strubin, 1 year ago
via blogspot.com by Unknown author, 11 months ago
via Oracle Community by 321504, 11 months ago
Width (0) and height (0) must be > 0
via Oracle Community by 843799, 1 year ago
Width (-1) and he ight (0) must be > 0
java.lang.IllegalArgumentException: Width (0) and height (0) must be > 0
at java.awt.image.SampleModel.(SampleModel.java:126)
at java.awt.image.ComponentSampleModel.(ComponentSampleModel.java:146)
at java.awt.image.PixelInterleavedSampleModel.(PixelInterleavedSampleModel.java:87)
at java.awt.image.Raster.createInterleavedRaster(Raster.java:641)
at java.awt.image.Raster.createInterleavedRaster(Raster.java:278)
at java.awt.image.Raster.createInterleavedRaster(Raster.java:212)
at java.awt.image.ComponentColorModel.createCompatibleWritableRaster(ComponentColorModel.java:2825)
at java.awt.image.BufferedImage.(BufferedImage.java:420)
at undefined.ImageConverter.allocateSpace(ImageConverter.java:38)
at undefined.ImageConverter.mat2image(ImageConverter.java:22)
at undefined.HereWeGoAgain$RunnerThread.run(HereWeGoAgain.java:120)

Users with the same issue

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, 11 months ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
6 more bugmates

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