Fixed
Status Update
Comments
lu...@google.com <lu...@google.com> #2
Thanks for the post,
To investigate further, can you share more details on your use case where you are using the Glide? Kindly also note that Glide is "An image loading and caching library for Android focused on smooth scrolling", this may have implementations against the Terms of Service of Google Maps Platform[1] under "3.2.4(b) No Caching. Customer will not cache Google Maps Content except as expressly permitted under the Maps Service Specific Terms.".
Kindly review the ToS of Google Maps Platform, once confirmed that your use case is compliant, we will be glad to proceed with the investigation.
[1]https://cloud.google.com/maps-platform/terms/#3-license
To investigate further, can you share more details on your use case where you are using the Glide? Kindly also note that Glide is "An image loading and caching library for Android focused on smooth scrolling", this may have implementations against the Terms of Service of Google Maps Platform[1] under "3.2.4(b) No Caching. Customer will not cache Google Maps Content except as expressly permitted under the Maps Service Specific Terms.".
Kindly review the ToS of Google Maps Platform, once confirmed that your use case is compliant, we will be glad to proceed with the investigation.
[1]
[Deleted User] <[Deleted User]> #3
Thanks for your reply. I'm using Glide to load content that is not related to Google Maps in any way. The crash happens when Maps SDK 3.0.0 Beta and a specific configuration of Glide co-exists in the same app, even if their usages are completely unrelated.
sl...@j17mail.com <sl...@j17mail.com> #4
A similar crash happens when using the generated Glide module in Glide v4 instead of the manifest-registered version
java.lang.ClassCastException: com.bumptech.glide.GeneratedAppGlideModuleImpl cannot be cast to com.google.android.libraries.maps.c.zza
at com.google.android.libraries.maps.c.zzb.zzb(Glide.java:96)
at com.google.android.libraries.maps.c.zzb.zza(Glide.java:11)
at com.google.android.libraries.maps.c.zzb.zzb(Glide.java:218)
at com.google.android.libraries.maps.cf.zzi.zza(ResourceManagerImpl.java:7)
at com.google.android.libraries.maps.hi.zzas.zza(Suppliers.java:7)
at com.google.android.libraries.maps.cf.zzf.run(Unknown Source:7)
at com.google.android.libraries.maps.fc.zzc.run(CancelableRunnable.java:7)
at com.google.android.libraries.maps.fc.zzad.run(Task.java:9)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at com.google.android.libraries.maps.fc.zzv.run(GmmThread.java:10)
at java.lang.Thread.run(Thread.java:919)
Glide in the maps SDK still tries to find the generated module by its non-shaded name, with and then tries to cast it to the shaded class, which blows up:
(com.google.android.libraries.maps.c.zza) Class.forName("com.bumptech.glide.GeneratedAppGlideModuleImpl")
java.lang.ClassCastException: com.bumptech.glide.GeneratedAppGlideModuleImpl cannot be cast to com.google.android.libraries.maps.c.zza
at com.google.android.libraries.maps.c.zzb.zzb(Glide.java:96)
at com.google.android.libraries.maps.c.zzb.zza(Glide.java:11)
at com.google.android.libraries.maps.c.zzb.zzb(Glide.java:218)
at com.google.android.libraries.maps.cf.zzi.zza(ResourceManagerImpl.java:7)
at com.google.android.libraries.maps.hi.zzas.zza(Suppliers.java:7)
at com.google.android.libraries.maps.cf.zzf.run(Unknown Source:7)
at com.google.android.libraries.maps.fc.zzc.run(CancelableRunnable.java:7)
at com.google.android.libraries.maps.fc.zzad.run(Task.java:9)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at com.google.android.libraries.maps.fc.zzv.run(GmmThread.java:10)
at java.lang.Thread.run(Thread.java:919)
Glide in the maps SDK still tries to find the generated module by its non-shaded name, with and then tries to cast it to the shaded class, which blows up:
(com.google.android.libraries.maps.c.zza) Class.forName("com.bumptech.glide.GeneratedAppGlideModuleImpl")
za...@spatialnetworks.com <za...@spatialnetworks.com> #6
Thanks for reporting this issue. We have verified and logged it internally. Please note that we cannot give you any timelines, but you can star the issue to get notifications.
ch...@gmail.com <ch...@gmail.com> #7
Also faced similar issue with glide module cast as Mr. from citymapper, is there any updates or timelines about the fix? Thank you.
jh...@google.com <jh...@google.com>
je...@gmail.com <je...@gmail.com> #8
We have a fix in the pipeline for this, but can't provide a timeline for when it will be in a release for now. Thank you for your understanding.
ra...@gmail.com <ra...@gmail.com> #9
-
jh...@google.com <jh...@google.com>
jh...@google.com <jh...@google.com>
jh...@google.com <jh...@google.com> #10
Glad there is a fix in the pipeline, thank you for your work.
Does anyone else facing this issue have a workaround they've implemented in the meantime? Aside from pulling out Glide from your project...
Does anyone else facing this issue have a workaround they've implemented in the meantime? Aside from pulling out Glide from your project...
[Deleted User] <[Deleted User]> #11
I'm allso have this issue. My depenendencies are
implementation 'com.github.bumptech.glide:glide:4.9.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.9.0'
implementation 'com.squareup.okhttp3:okhttp:3.12.0'
implementation ('com.github.bumptech.glide:okhttp3-integration:4.9.0') {
exclude group: 'glide-parent'
}
implementation ('com.github.bumptech.glide:annotations:4.9.0')
implementation name:'maps-sdk-3.0.0-beta', ext:'aar'
Stack trace:
java.lang.IllegalStateException: tname=DefaultPool6 - GeneratedAppGlideModuleImpl is implemented incorrectly. If you've manually implemented this class, remove your implementation. The Annotation processor will generate a correct implementation.
at com.google.android.libraries.maps.c.zzb.zzb(Glide.java:103)
at com.google.android.libraries.maps.c.zzb.zza(Glide.java:11)
at com.google.android.libraries.maps.c.zzb.zzb(Glide.java:218)
at com.google.android.libraries.maps.cf.zzi.zza(ResourceManagerImpl.java:7)
at com.google.android.libraries.maps.hi.zzas.zza(Suppliers.java:7)
at com.google.android.libraries.maps.cf.zzf.run(Unknown Source)
at com.google.android.libraries.maps.fc.zzc.run(CancelableRunnable.java:7)
at com.google.android.libraries.maps.fc.zzad.run(Task.java:9)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
at com.google.android.libraries.maps.fc.zzv.run(GmmThread.java:10)
at java.lang.Thread.run(Thread.java:818)
Caused by: java.lang.IllegalAccessException: java.lang.Class<com.bumptech.glide.GeneratedAppGlideModuleImpl> is not accessible from java.lang.Class<com.google.android.libraries.maps.c.zzb>
at java.lang.reflect.Constructor.newInstance(Native Method)
at com.google.android.libraries.maps.c.zzb.zzb(Glide.java:96)
implementation 'com.github.bumptech.glide:glide:4.9.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.9.0'
implementation 'com.squareup.okhttp3:okhttp:3.12.0'
implementation ('com.github.bumptech.glide:okhttp3-integration:4.9.0') {
exclude group: 'glide-parent'
}
implementation ('com.github.bumptech.glide:annotations:4.9.0')
implementation name:'maps-sdk-3.0.0-beta', ext:'aar'
Stack trace:
java.lang.IllegalStateException: tname=DefaultPool6 - GeneratedAppGlideModuleImpl is implemented incorrectly. If you've manually implemented this class, remove your implementation. The Annotation processor will generate a correct implementation.
at com.google.android.libraries.maps.c.zzb.zzb(Glide.java:103)
at com.google.android.libraries.maps.c.zzb.zza(Glide.java:11)
at com.google.android.libraries.maps.c.zzb.zzb(Glide.java:218)
at com.google.android.libraries.maps.cf.zzi.zza(ResourceManagerImpl.java:7)
at com.google.android.libraries.maps.hi.zzas.zza(Suppliers.java:7)
at com.google.android.libraries.maps.cf.zzf.run(Unknown Source)
at com.google.android.libraries.maps.fc.zzc.run(CancelableRunnable.java:7)
at com.google.android.libraries.maps.fc.zzad.run(Task.java:9)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
at com.google.android.libraries.maps.fc.zzv.run(GmmThread.java:10)
at java.lang.Thread.run(Thread.java:818)
Caused by: java.lang.IllegalAccessException: java.lang.Class<com.bumptech.glide.GeneratedAppGlideModuleImpl> is not accessible from java.lang.Class<com.google.android.libraries.maps.c.zzb>
at java.lang.reflect.Constructor.newInstance(Native Method)
at com.google.android.libraries.maps.c.zzb.zzb(Glide.java:96)
Description