java.lang.IllegalArgumentException: Both dimensions must be greater than 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.

Solutions on the web

via GitHub by Yellup
, 1 year ago
Both dimensions must be greater than 0
via GitHub by FrameJack
, 1 year ago
Both dimensions must be greater than 0
via GitHub by wangran99
, 10 months ago
Both dimensions must be greater than 0
via GitHub by caijin199410
, 10 months ago
Both dimensions must be greater than 0
via GitHub by susussa
, 1 year ago
Both dimensions must be greater than 0
java.lang.IllegalArgumentException: Both dimensions must be greater than 0
at com.google.zxing.common.BitMatrix.(BitMatrix.java:50)
at com.google.zxing.common.GlobalHistogramBinarizer.getBlackMatrix(GlobalHistogramBinarizer.java:91)
at com.google.zxing.common.HybridBinarizer.getBlackMatrix(HybridBinarizer.java:86)
at com.google.zxing.BinaryBitmap.getBlackMatrix(BinaryBitmap.java:85)
at com.google.zxing.qrcode.QRCodeReader.decode(QRCodeReader.java:77)
at com.google.zxing.MultiFormatReader.decodeInternal(MultiFormatReader.java:171)
at com.uuzuche.lib_zxing.decoding.DecodeHandler.decode(DecodeHandler.java:86)
at com.uuzuche.lib_zxing.decoding.DecodeHandler.handleMessage(DecodeHandler.java:55)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at com.uuzuche.lib_zxing.decoding.DecodeThread.run(DecodeThread.java:83)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Write tip

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