java.lang.IllegalArgumentException

Capacity: -2147483647

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

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

Solutions on the web127

  • via Stack Overflow by Leggit
    , 5 months ago
    Capacity: -2147483647
  • via GitHub by DimaKoz
    , 6 months ago
    Capacity: -2013265910
  • Width (-2147483647) and height (-2147483647) cannot be <= 0
  • Stack trace

    • java.lang.IllegalArgumentException: Capacity: -2147483647 at java.util.HashMap.<init>(HashMap.java:140) at java.util.HashMap.<init>(HashMap.java:174) at java.util.LinkedHashMap.<init>(LinkedHashMap.java:119) at java.util.LinkedHashMap.<init>(LinkedHashMap.java:97) at java.util.LinkedHashMap.<init>(LinkedHashMap.java:81) at com.jjoe64.graphview.GridLabelRenderer.adjustVertical(GridLabelRenderer.java:768) at com.jjoe64.graphview.GridLabelRenderer.adjustSteps(GridLabelRenderer.java:932) at com.jjoe64.graphview.GridLabelRenderer.draw(GridLabelRenderer.java:1067) at com.jjoe64.graphview.GraphView.drawGraphElements(GraphView.java:299) at com.jjoe64.graphview.GridLabelRenderer.draw(GridLabelRenderer.java:1062) at com.jjoe64.graphview.GraphView.drawGraphElements(GraphView.java:299) at com.jjoe64.graphview.GraphView.onDraw(GraphView.java:323) at android.view.View.draw(View.java:16302) at android.view.View.updateDisplayListIfDirty(View.java:15284) at android.view.View.draw(View.java:16072) at android.view.ViewGroup.drawChild(ViewGroup.java:3622) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3409) at android.view.View.draw(View.java:16305) at android.view.View.updateDisplayListIfDirty(View.java:15284) at android.view.View.draw(View.java:16072) at android.view.ViewGroup.drawChild(ViewGroup.java:3622) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3409) at android.view.View.updateDisplayListIfDirty(View.java:15279) at android.view.View.draw(View.java:16072) at android.view.ViewGroup.drawChild(ViewGroup.java:3622) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3409) at android.view.View.updateDisplayListIfDirty(View.java:15279) at android.view.View.draw(View.java:16072) at android.view.ViewGroup.drawChild(ViewGroup.java:3622) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3409) at android.view.View.draw(View.java:16305) at com.android.internal.policy.PhoneWindow$DecorView.draw(PhoneWindow.java:2760) at android.view.View.updateDisplayListIfDirty(View.java:15284) at android.view.ThreadedRenderer.updateViewTreeDisplayList(ThreadedRenderer.java:295) at android.view.ThreadedRenderer.updateRootDisplayList(ThreadedRenderer.java:301) at android.view.ThreadedRenderer.draw(ThreadedRenderer.java:345) at android.view.ViewRootImpl.draw(ViewRootImpl.java:2686) at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2495) at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2120) at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1138) at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6227) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:884) at android.view.Choreographer.doCallbacks(Choreographer.java:696) at android.view.Choreographer.doFrame(Choreographer.java:631) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:870) at android.os.Handler.handleCallback(Handler.java:743) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:150) at android.app.ActivityThread.main(ActivityThread.java:5546) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:794) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:684)

    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

    You’re the first here who have seen this exception.