fix glide recursive registry initialization #83
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
fix, 错误如下,好像不影响运行
java.lang.IllegalStateException: Recursive Registry initialization! In your AppGlideModule and LibraryGlideModules, Make sure you're using the provided Registry rather calling glide.getRegistry()!
at com.bumptech.glide.RegistryFactory$1.get(RegistryFactory.java:99)
at com.bumptech.glide.RegistryFactory$1.get(RegistryFactory.java:91)
at com.bumptech.glide.util.GlideSuppliers$1.get(GlideSuppliers.java:25)
at com.bumptech.glide.GlideContext.getRegistry(GlideContext.java:113)
at com.bumptech.glide.Glide.getRegistry(Glide.java:639)
at me.ghui.v2er.general.MyAppGllideModule.registerComponents(MyAppGllideModule.java:29)
at com.bumptech.glide.GeneratedAppGlideModuleImpl.registerComponents(GeneratedAppGlideModuleImpl.java:32)
at com.bumptech.glide.RegistryFactory.initializeModules(RegistryFactory.java:401)
at com.bumptech.glide.RegistryFactory.createAndInitRegistry(RegistryFactory.java:130)
at com.bumptech.glide.RegistryFactory$1.get(RegistryFactory.java:107)
at com.bumptech.glide.RegistryFactory$1.get(RegistryFactory.java:91)
at com.bumptech.glide.util.GlideSuppliers$1.get(GlideSuppliers.java:25)
at com.bumptech.glide.GlideContext.getRegistry(GlideContext.java:113)
at com.bumptech.glide.load.engine.DecodeHelper.getLoadData(DecodeHelper.java:212)
at com.bumptech.glide.load.engine.DecodeHelper.getCacheKeys(DecodeHelper.java:229)
at com.bumptech.glide.load.engine.ResourceCacheGenerator.startNext(ResourceCacheGenerator.java:47)
at com.bumptech.glide.load.engine.DecodeJob.runGenerators(DecodeJob.java:311)
at com.bumptech.glide.load.engine.DecodeJob.runWrapped(DecodeJob.java:277)
at com.bumptech.glide.load.engine.DecodeJob.run(DecodeJob.java:235)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1156)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:651)
at com.bumptech.glide.load.engine.executor.GlideExecutor$DefaultThreadFactory$1.run(GlideExecutor.java:424)
at java.lang.Thread.run(Thread.java:1119)