Skip to content

Conversation

@usc
Copy link
Contributor

@usc usc commented Jul 30, 2025

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)

@graycreate graycreate requested a review from Copilot September 13, 2025 13:41
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a recursive Registry initialization error in the Glide image loading library by using the provided Registry parameter instead of calling glide.getRegistry().

  • Replaces glide.getRegistry() call with the provided registry parameter in the registerComponents method
  • Removes unused imports (DecodeFormat and RequestOptions)

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@graycreate
Copy link
Member

这个问题已经在主分支上修复了。

具体修复情况:

  • 在 commit ab1cf2c 中已经修复了递归初始化错误
  • 已将 glide.getRegistry().replace() 改为使用提供的 registry 参数
  • 添加了 isManifestParsingEnabled() 方法返回 false
  • 刚刚在 commit 5562969 中清理了未使用的导入

问题已解决,关闭此 PR。感谢贡献!

@graycreate
Copy link
Member

Issue has been resolved in the main branch.

@graycreate graycreate closed this Sep 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants