java.lang.IllegalArgumentException: x + width must be <= bitmap.width()

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

via GitHub by NightMadness
, 1 year ago
x + width must be <= bitmap.width()
via Stack Overflow by JOSEMAFUEN
, 5 months ago
via Stack Overflow by Sham
, 2 years ago
via Stack Overflow by irksomesloth
, 2 years ago
x + width must be &lt;= bitmap.width()
java.lang.IllegalArgumentException: x + width must be <= bitmap.width()
at android.graphics.Bitmap.createBitmap(Bitmap.java:824)
at com.kamron.pogoiv.OcrHelper.getPokemonNameFromImg(OcrHelper.java:211)
at com.kamron.pogoiv.OcrHelper.scanPokemon(OcrHelper.java:347)
at com.kamron.pogoiv.Pokefly.scanPokemon(Pokefly.java:1563)
at com.kamron.pogoiv.Pokefly.access$1200(Pokefly.java:82)
at com.kamron.pogoiv.Pokefly$11.onReceive(Pokefly.java:1603)
at android.support.v4.content.LocalBroadcastManager.executePendingBroadcasts(LocalBroadcastManager.java:297)
at android.support.v4.content.LocalBroadcastManager.access$000(LocalBroadcastManager.java:46)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:158)
at android.app.ActivityThread.main(ActivityThread.java:7224)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)

Users with the same issue

3 times, 1 year ago
Once, 9 months ago
Once, 2 months ago
Once, 1 year ago
114 times, 1 year ago
13 more bugmates

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