java.lang.IllegalArgumentException: Width (-1) and height (0) must be > 0

Oracle Community | 843797 | 2 decades ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Some weird behaviour of my Applet

    Oracle Community | 2 decades ago | 843797
    java.lang.IllegalArgumentException: Width (-1) and height (0) must be > 0
  2. 0

    SeadragonExporter crashes when run through Toolkit

    GitHub | 5 years ago | mbastian
    java.lang.RuntimeException: java.lang.IllegalArgumentException: Width (0) and height (0) cannot be <= 0
  3. 0

    Exception for Popup Menu with round = 0 and shadeWidth = 0

    GitHub | 3 years ago | carlwitt
    java.lang.IllegalArgumentException: Width (0) and height (0) cannot be <= 0
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Resizing window crashes overlays (OS X)

    GitHub | 3 years ago | ivy
    java.lang.IllegalArgumentException: Width (0) and height (0) cannot be <= 0

    11 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Width (-1) and height (0) must be > 0

      at java.awt.image.SampleModel.<init>()
    2. Java RT
      BufferedImage.<init>
      1. java.awt.image.SampleModel.<init>(Unknown Source)
      2. java.awt.image.SinglePixelPackedSampleModel.<init>(Unknown Source)
      3. java.awt.image.Raster.createPackedRaster(Unknown Source)
      4. java.awt.image.Raster.createPackedRaster(Unknown Source)
      5. java.awt.image.DirectColorModel.createCompatibleWritableRaster(Unknown Source)
      6. java.awt.image.BufferedImage.<init>(Unknown Source)
      6 frames
    3. Unknown
      Convolve2.init
      1. Convolve2.init(Convolve2.java:22)
      1 frame
    4. Java RT
      Thread.run
      1. sun.applet.AppletPanel.run(Unknown Source)
      2. java.lang.Thread.run(Unknown Source)
      2 frames