com.yalantis.ucrop.util.ImageHeaderParser$RandomAccessReader.getInt16
AkshayOptimumbrew opened this issue · 0 comments
Issue: java.lang.IndexOutOfBoundsException - index=18767 out of bounds (limit=192, nb=2)
File Name: ImageHeaderParser.java:315
Ucrop Version : 2.2.8
Android OS[Where this crash is reported] : 10
Android Model Name: Huawei P Smart 2019
Stack Trace:
Caused by java.lang.IndexOutOfBoundsException: index=18767 out of bounds (limit=192, nb=2)
at java.nio.Buffer.checkIndex(Buffer.java:564)
at java.nio.HeapByteBuffer.getShort(HeapByteBuffer.java:263)
at com.yalantis.ucrop.util.ImageHeaderParser$RandomAccessReader.getInt16(ImageHeaderParser.java:315)
at com.yalantis.ucrop.util.ImageHeaderParser.parseExifSegment(ImageHeaderParser.java:215)
at com.yalantis.ucrop.util.ImageHeaderParser.parseExifSegment(ImageHeaderParser.java:126)
at com.yalantis.ucrop.util.ImageHeaderParser.getOrientation(ImageHeaderParser.java:109)
at com.yalantis.ucrop.util.BitmapLoadUtils.getExifOrientation(BitmapLoadUtils.java:79)
at com.yalantis.ucrop.task.BitmapLoadTask.doInBackground(BitmapLoadTask.java:131)
at com.yalantis.ucrop.task.BitmapLoadTask.doInBackground(BitmapLoadTask.java:36)
at android.os.AsyncTask$3.call(AsyncTask.java:378)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.processTask(ThreadPoolExecutor.java:1187)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1152)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:929)