bumptech / bumptech/glide

java.lang.VerifyError: Verifier rejected class com.bumptech.glide.load.ImageHeaderParser$ImageType

Open
#4,698 2 comments 0 reactions 0 assignees View on GitHub
stale
Dominant language
Java
Stars
35k
Forks
6.2k
Avg merge
1d 11h
Merged PRs (30d)
8

Description

Some users of my app have such a crash stack. I don't know the specific reason. Please help me~

**Glide Version**:
implementation 'com.github.bumptech.glide:glide:4.12.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.12.0'
implementation 'com.github.bumptech.glide:okhttp3-integration:4.12.0'

**Integration libraries**:
implementation 'com.squareup.okhttp3:okhttp:4.9.1'

**Device/Android Version**:
Android 29

**Issue details / Repro steps / Use case background**:

**Glide load line / `GlideModule` (if any) / list Adapter code (if any)**:
```java
Glide.with(context).load(url).format(DecodeFormat.PREFER_RGB_565).into(imageView);
```

**Stack trace / LogCat**:
```ruby
11-30 21:23:38.139 D/AndroidRuntime(19758): Shutting down VM
11-30 21:23:38.141 E/AndroidRuntime(19758): FATAL EXCEPTION: main
11-30 21:23:38.141 E/AndroidRuntime(19758): Process: com.acs.store, PID: 19758
11-30 21:23:38.141 E/AndroidRuntime(19758): java.lang.VerifyError: Verifier rejected class com.bumptech.glide.load.ImageHeaderParser$ImageType: void com.bumptech.glide.load.ImageHeaderParser$ImageType.(java.lang.String, int, boolean) failed to verify: void com.bumptech.glide.load.ImageHeaderParser$ImageType.(java.lang.String, int, boolean): [0x3] cannot access instance field java.util.ArrayList androidx.transition.Transition.mAnimators from object of type Precise Reference: com.bumptech.glide.load.ImageHeaderParser$ImageType (declaration of 'com.bumptech.glide.load.ImageHeaderParser$ImageType' appears in base.apk)
11-30 21:23:38.141 E/AndroidRuntime(19758): at com.bumptech.glide.load.resource.bitmap.Downsampler.(Downsampler.java:11)
11-30 21:23:38.141 E/AndroidRuntime(19758): at com.bumptech.glide.Glide.(Glide.java:19)
11-30 21:23:38.141 E/AndroidRuntime(19758): at com.bumptech.glide.GlideBuilder.build(GlideBuilder.java:29)
11-30 21:23:38.141 E/AndroidRuntime(19758): at com.bumptech.glide.Glide.initializeGlide(Glide.java:23)
11-30 21:23:38.141 E/AndroidRuntime(19758): at com.bumptech.glide.Glide.initializeGlide(Glide.java:1)
11-30 21:23:38.141 E/AndroidRuntime(19758): at com.bumptech.glide.Glide.checkAndInitializeGlide(Glide.java:3)
11-30 21:23:38.141 E/AndroidRuntime(19758): at com.bumptech.glide.Glide.get(Glide.java:5)
11-30 21:23:38.141 E/AndroidRuntime(19758): at com.bumptech.glide.Glide.getRetriever(Glide.java:2)
11-30 21:23:38.141 E/AndroidRuntime(19758): at com.bumptech.glide.Glide.with(Glide.java:1)
11-30 21:23:38.141 E/AndroidRuntime(19758): at V.e.a(ImageLoadUtil.java:1)
11-30 21:23:38.141 E/AndroidRuntime(19758): at com.acs.store.view.MainMenuUser.setIcon(MainMenuUser.java:1)
11-30 21:23:38.141 E/AndroidRuntime(19758): at T.oa.b(UserFragment.java:1)
11-30 21:23:38.141 E/AndroidRuntime(19758): at T.oa.a(UserFragment.java:5)
11-30 21:23:38.141 E/AndroidRuntime(19758): at com.acs.store.ui.EventActivity.onLogin(EventActivity.java:4)
11-30 21:23:38.141 E/AndroidRuntime(19758): at U.l.c(UserManager.java:3)
11-30 21:23:38.141 E/AndroidRuntime(19758): at U.l.a(UserManager.java:2)
11-30 21:23:38.141 E/AndroidRuntime(19758): at U.h.handleMessage(UserManager.java:2)
11-30 21:23:38.141 E/AndroidRuntime(19758): at android.os.Handler.dispatchMessage(Handler.java:107)
11-30 21:23:38.141 E/AndroidRuntime(19758): at android.os.Looper.loop(Looper.java:214)
11-30 21:23:38.141 E/AndroidRuntime(19758): at android.app.ActivityThread.main(ActivityThread.java:7417)
11-30 21:23:38.141 E/AndroidRuntime(19758): at java.lang.reflect.Method.invoke(Native Method)
11-30 21:23:38.141 E/AndroidRuntime(19758): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
11-30 21:23:38.141 E/AndroidRuntime(19758): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:935)
```

Contributor guide

Open the contributing guide

Research direction

Start with the stack trace around ImageHeaderParser$ImageType, Downsampler, and Glide initialization, then review the Glide 4.12.0 dependencies and the Android 29 environment. Check whether the reported Glide load line reproduces the verifier failure; done means identifying a reproducible cause or obtaining enough build, device, and reproduction details to diagnose it.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.