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

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.
java.lang.IllegalArgumentException: width must be > 0
at android.graphics.Bitmap.checkWidthHeight(Bitmap.java:373)
at android.graphics.Bitmap.createBitmap(Bitmap.java:664)
at com.yalantis.ucrop.task.BitmapCropTask.crop(BitmapCropTask.java:144)
at com.yalantis.ucrop.task.BitmapCropTask.doInBackground(BitmapCropTask.java:88)
at com.yalantis.ucrop.task.BitmapCropTask.doInBackground(BitmapCropTask.java:24)
at android.os.AsyncTask$2.call(AsyncTask.java:288)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:841)

Users with the same issue

Once, 1 year ago
83 times, 1 year ago
2 times, 9 months ago
4 times, 1 year ago
22 times, 1 year ago

Write tip

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