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

Stack Overflow | kot09 | 4 months ago
  1. 0

    Android FAB issue API 19-22

    Stack Overflow | 4 months ago | kot09
    java.lang.IllegalArgumentException: Width (9) and height (0) cannot be <= 0
  2. 0

    IllegalArgumentException during rendering

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

    The android:elevation tag raises issue in android layout file

    Stack Overflow | 2 years ago | Matthew Elbing
    java.lang.IllegalArgumentException: Width (2) and height (0) cannot be <= 0
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    10 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 (9) and height (0) cannot be <= 0

      at java.awt.image.DirectColorModel.createCompatibleWritableRaster()
    2. Java RT
      BufferedImage.<init>
      1. java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:999)
      2. java.awt.image.BufferedImage.<init>(BufferedImage.java:326)
      2 frames
    3. Android Platform
      LinearGradient_Delegate$LinearGradientPaint$LinearGradientPaintContext.getRaster
      1. android.graphics.LinearGradient_Delegate$LinearGradientPaint$LinearGradientPaintContext.getRaster(LinearGradient_Delegate.java:175)
      1 frame
    4. apple.awt
      CRenderer.fillRect
      1. apple.awt.OSXSurfaceData.setupPaint(OSXSurfaceData.java:752)
      2. apple.awt.OSXSurfaceData.setupGraphicsState(OSXSurfaceData.java:1038)
      3. apple.awt.OSXSurfaceData.setupGraphicsState(OSXSurfaceData.java:1004)
      4. apple.awt.OSXSurfaceData.doRect(OSXSurfaceData.java:1239)
      5. apple.awt.CRenderer.fillRect(CRenderer.java:157)
      6. apple.awt.CRenderer.fillRect(CRenderer.java:145)
      6 frames
    5. Java RT
      SunGraphics2D.fillRect
      1. sun.java2d.pipe.ValidatePipe.fillRect(ValidatePipe.java:58)
      2. sun.java2d.SunGraphics2D.fillRect(SunGraphics2D.java:2505)
      2 frames
    6. Android Platform
      Canvas_Delegate$4.draw
      1. android.graphics.Canvas_Delegate$4.draw(Canvas_Delegate.java:582)
      1 frame
    7. com.android.layoutlib
      GcSnapshot.draw
      1. com.android.layoutlib.bridge.impl.GcSnapshot.drawOnGraphics(GcSnapshot.java:654)
      2. com.android.layoutlib.bridge.impl.GcSnapshot.drawInLayer(GcSnapshot.java:614)
      3. com.android.layoutlib.bridge.impl.GcSnapshot.draw(GcSnapshot.java:582)
      3 frames
    8. Android Platform
      View.draw
      1. android.graphics.Canvas_Delegate.draw(Canvas_Delegate.java:937)
      2. android.graphics.Canvas_Delegate.native_drawRect(Canvas_Delegate.java:573)
      3. android.graphics.Canvas.native_drawRect(Canvas.java)
      4. android.graphics.Canvas.drawRect(Canvas.java:1119)
      5. android.view.RectShadowPainter.sideShadow(RectShadowPainter.java:131)
      6. android.view.RectShadowPainter.paintShadow(RectShadowPainter.java:79)
      7. android.view.ViewGroup_Delegate.drawShadow(ViewGroup_Delegate.java:72)
      8. android.view.ViewGroup_Delegate.drawChild(ViewGroup_Delegate.java:61)
      9. android.view.ViewGroup.drawChild(ViewGroup.java:3405)
      10. android.view.ViewGroup.dispatchDraw(ViewGroup.java:3198)
      11. android.view.View.draw(View.java:15234)
      12. android.view.View.draw(View.java:15140)
      13. android.view.ViewGroup.drawChild_Original(ViewGroup.java:3405)
      14. android.view.ViewGroup_Delegate.drawChild(ViewGroup_Delegate.java:65)
      15. android.view.ViewGroup.drawChild(ViewGroup.java:3405)
      16. android.view.ViewGroup.dispatchDraw(ViewGroup.java:3198)
      17. android.view.View.draw(View.java:15138)
      18. android.view.ViewGroup.drawChild_Original(ViewGroup.java:3405)
      19. android.view.ViewGroup_Delegate.drawChild(ViewGroup_Delegate.java:65)
      20. android.view.ViewGroup.drawChild(ViewGroup.java:3405)
      21. android.view.ViewGroup.dispatchDraw(ViewGroup.java:3198)
      22. android.view.View.draw(View.java:15138)
      23. android.view.ViewGroup.drawChild_Original(ViewGroup.java:3405)
      24. android.view.ViewGroup_Delegate.drawChild(ViewGroup_Delegate.java:65)
      25. android.view.ViewGroup.drawChild(ViewGroup.java:3405)
      26. android.view.ViewGroup.dispatchDraw(ViewGroup.java:3198)
      27. android.view.View.draw(View.java:15234)
      28. android.view.View.draw(View.java:15140)
      29. android.view.ViewGroup.drawChild_Original(ViewGroup.java:3405)
      30. android.view.ViewGroup_Delegate.drawChild(ViewGroup_Delegate.java:65)
      31. android.view.ViewGroup.drawChild(ViewGroup.java:3405)
      32. android.view.ViewGroup.dispatchDraw(ViewGroup.java:3198)
      33. android.view.View.draw(View.java:15234)
      33 frames
    9. com.android.layoutlib
      Bridge.createSession
      1. com.android.layoutlib.bridge.impl.RenderSessionImpl.render(RenderSessionImpl.java:601)
      2. com.android.layoutlib.bridge.Bridge.createSession(Bridge.java:323)
      2 frames
    10. com.android.tools.sdk-common
      LayoutLibrary.createSession
      1. com.android.ide.common.rendering.LayoutLibrary.createSession(LayoutLibrary.java:350)
      1 frame
    11. com.android.tools
      RenderTask$2.compute
      1. com.android.tools.idea.rendering.RenderTask$2.compute(RenderTask.java:520)
      2. com.android.tools.idea.rendering.RenderTask$2.compute(RenderTask.java:508)
      2 frames
    12. IDEA
      ApplicationImpl.runReadAction
      1. com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:967)
      1 frame
    13. com.android.tools
      RenderTask.render
      1. com.android.tools.idea.rendering.RenderTask.createRenderSession(RenderTask.java:508)
      2. com.android.tools.idea.rendering.RenderTask.access$600(RenderTask.java:75)
      3. com.android.tools.idea.rendering.RenderTask$3.call(RenderTask.java:620)
      4. com.android.tools.idea.rendering.RenderTask$3.call(RenderTask.java:617)
      5. com.android.tools.idea.rendering.RenderService.runRenderAction(RenderService.java:371)
      6. com.android.tools.idea.rendering.RenderTask.render(RenderTask.java:617)
      7. com.android.tools.idea.rendering.RenderTask.render(RenderTask.java:639)
      7 frames
    14. IntelliJ android module
      AndroidDesignerEditorPanel$7.run
      1. com.intellij.android.designer.designSurface.AndroidDesignerEditorPanel$7.run(AndroidDesignerEditorPanel.java:519)
      1 frame
    15. Openapi
      QueueProcessor.runSafely
      1. com.intellij.util.ui.update.MergingUpdateQueue.execute(MergingUpdateQueue.java:337)
      2. com.intellij.util.ui.update.MergingUpdateQueue.execute(MergingUpdateQueue.java:327)
      3. com.intellij.util.ui.update.MergingUpdateQueue$3.run(MergingUpdateQueue.java:271)
      4. com.intellij.util.ui.update.MergingUpdateQueue.flush(MergingUpdateQueue.java:286)
      5. com.intellij.util.ui.update.MergingUpdateQueue.flush(MergingUpdateQueue.java:244)
      6. com.intellij.util.ui.update.MergingUpdateQueue.run(MergingUpdateQueue.java:234)
      7. com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:238)
      7 frames
    16. IDEA
      Alarm$Request$1.run
      1. com.intellij.util.Alarm$Request$1.run(Alarm.java:352)
      1 frame
    17. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
      2. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      3. java.util.concurrent.FutureTask.run(FutureTask.java:138)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
      5. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
      6. java.lang.Thread.run(Thread.java:695)
      6 frames