반응형
에러
android target sdk 를 29로 올렸더니 멀쩡하던 Glide에서 에러 로그를 뿜기 시작함..
스택
W/ExifInterface: Invalid image: ExifInterface got an unsupported image format file(ExifInterface supports JPEG and some RAW image formats only) or a corrupted JPEG file to ExifInterface.
java.io.IOException: Invalid byte order: ffff8950
at android.media.ExifInterface.readByteOrder(ExifInterface.java:3164)
at android.media.ExifInterface.isOrfFormat(ExifInterface.java:2457)
at android.media.ExifInterface.getMimeType(ExifInterface.java:2335)
at android.media.ExifInterface.loadAttributes(ExifInterface.java:1761)
at android.media.ExifInterface.<init>(ExifInterface.java:1455)
at com.bumptech.glide.load.resource.bitmap.ExifInterfaceImageHeaderParser.getOrientation(ExifInterfaceImageHeaderParser.java:40)
at com.bumptech.glide.load.ImageHeaderParserUtils.getOrientation(ImageHeaderParserUtils.java:91)
at com.bumptech.glide.load.resource.bitmap.Downsampler.decodeFromWrappedStreams(Downsampler.java:236)
at com.bumptech.glide.load.resource.bitmap.Downsampler.decode(Downsampler.java:206)
at com.bumptech.glide.load.resource.bitmap.Downsampler.decode(Downsampler.java:162)
at com.bumptech.glide.load.resource.bitmap.ByteBufferBitmapDecoder.decode(ByteBufferBitmapDecoder.java:33)
at com.bumptech.glide.load.resource.bitmap.ByteBufferBitmapDecoder.decode(ByteBufferBitmapDecoder.java:16)
at com.bumptech.glide.load.engine.DecodePath.decodeResourceWithList(DecodePath.java:72)
at com.bumptech.glide.load.engine.DecodePath.decodeResource(DecodePath.java:55)
at com.bumptech.glide.load.engine.DecodePath.decode(DecodePath.java:45)
at com.bumptech.glide.load.engine.LoadPath.loadWithExceptionList(LoadPath.java:58)
at com.bumptech.glide.load.engine.LoadPath.load(LoadPath.java:43)
at com.bumptech.glide.load.engine.DecodeJob.runLoadPath(DecodeJob.java:515)
at com.bumptech.glide.load.engine.DecodeJob.decodeFromFetcher(DecodeJob.java:480)
at com.bumptech.glide.load.engine.DecodeJob.decodeFromData(DecodeJob.java:466)
at com.bumptech.glide.load.engine.DecodeJob.decodeFromRetrievedData(DecodeJob.java:418)
at com.bumptech.glide.load.engine.DecodeJob.onDataFetcherReady(DecodeJob.java:387)
at com.bumptech.glide.load.engine.SourceGenerator.onDataFetcherReady(SourceGenerator.java:135)
at com.bumptech.glide.load.engine.DataCacheGenerator.onDataReady(DataCacheGenerator.java:95)
at com.bumptech.glide.load.model.ByteBufferFileLoader$ByteBufferFetcher.loadData(ByteBufferFileLoader.java:74)
at com.bumptech.glide.load.engine.DataCacheGenerator.startNext(DataCacheGenerator.java:75)
at com.bumptech.glide.load.engine.SourceGenerator.startNext(SourceGenerator.java:49)
at com.bumptech.glide.load.engine.DecodeJob.runGenerators(DecodeJob.java:309)
at com.bumptech.glide.load.engine.DecodeJob.runWrapped(DecodeJob.java:279)
at com.bumptech.glide.load.engine.DecodeJob.run(DecodeJob.java:235)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:919)
at com.bumptech.glide.load.engine.executor.GlideExecutor$DefaultThreadFactory$1.run(GlideExecutor.java:446)
해결
해결 방법은 아주 간단했습니다.
바로 Glide 의 의존성버전을 올리는 것이었는데요.
4.9.0 -> 4.11.0 으로 올려주니
더 이상 해당 에러가 발생하지 않았습니다.
반응형
'Develop > Error Box' 카테고리의 다른 글
[Android] Compose IncompatibleComposeRuntimeVersionException Error (1) | 2022.07.28 |
---|---|
[Android] - logcat: Unexpected EOF! Error (2) | 2021.03.02 |
[Android] SDK licence accepted 문제 (0) | 2020.04.07 |
[Android] New Gradle Sync is not supported due to containing Kotlin modules (0) | 2020.04.07 |
[Android] Cleartext HTTP traffic to postfiles2.naver.net not permitted (0) | 2020.04.07 |