java.lang.IllegalArgumentException: width 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

java.lang.IllegalArgumentException: width must be > 0
at android.graphics.Bitmap.checkWidthHeight(Bitmap.java:270)
at android.graphics.Bitmap.createBitmap(Bitmap.java:544)
at com.edmodo.cropper.CropImageView.getCroppedImage(CropImageView.java:293)
at io.github.scola.qart.MainActivity$6.onPreExecute(MainActivity.java:315)
at android.os.AsyncTask.executeOnExecutor(AsyncTask.java:586)
at android.os.AsyncTask.execute(AsyncTask.java:534)
at io.github.scola.qart.MainActivity.startConvert(MainActivity.java:296)
at io.github.scola.qart.MainActivity.access$400(MainActivity.java:55)
at io.github.scola.qart.MainActivity$4.onClick(MainActivity.java:240)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:153)
at android.app.ActivityThread.main(ActivityThread.java:5341)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:929)

Users with the same issue

Once, 1 year ago
83 times, 1 year ago
2 times, 8 months ago
4 times, 1 year ago
22 times, 1 year ago
10 more bugmates

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