You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
java.lang.IndexOutOfBoundsException: index=6, limit=6, size of type=2
at java.nio.Buffer.checkIndex(Buffer.java:165)
at java.nio.HeapByteBuffer.getShort(HeapByteBuffer.java:203)
at com.bumptech.glide.load.resource.bitmap.ImageHeaderParser$RandomAccessReader.getInt16(ImageHeaderParser.java:315)
at com.bumptech.glide.load.resource.bitmap.ImageHeaderParser.parseExifSegment(ImageHeaderParser.java:199)
at com.bumptech.glide.load.resource.bitmap.ImageHeaderParser.getOrientation(ImageHeaderParser.java:140)
at com.bumptech.glide.load.resource.bitmap.Downsampler.decode(Downsampler.java:116)
Because of the exif data is only 6 bytes which equals to jpeg preamble.
Perhaps we can use the Throwable instead of IOException to ignore it.
try {
orientation = new ImageHeaderParser(stream).getOrientation();
} catch (IOException Throwable e) {
if (Log.isLoggable(TAG, Log.WARN)) {
Log.w(TAG, "Cannot determine the image orientation from header", e);
}
}
The text was updated successfully, but these errors were encountered:
Because of the exif data is only 6 bytes which equals to jpeg preamble.
Perhaps we can use the Throwable instead of IOException to ignore it.
The text was updated successfully, but these errors were encountered: