Skip to content

duplicate preregistration for type bevy_render::texture::image::Image. #11896

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mockersf opened this issue Feb 16, 2024 · 1 comment
Closed
Labels
A-Assets Load files from disk to use for things like images, models, and sounds A-Rendering Drawing game state to the screen C-Bug An unexpected or incorrect behavior
Milestone

Comments

@mockersf
Copy link
Member

mockersf commented Feb 16, 2024

Bevy version

main, should be related to #11644

What you did

Run any example from the Bevy repo

What went wrong

It logs

2024-02-16T08:24:57.379191Z  INFO bevy_asset::server::loaders: duplicate preregistration for type `bevy_render::texture::image::Image`.

But as a Bevy user I can't do anything and don't know the actual impact.

Additional information

The ImagePlugin first register the asset loader HdrTextureLoader which can load Image assets

app.init_asset_loader::<HdrTextureLoader>();

Then it preregister the asset loader ImageLoader that loads Image assets

app.preregister_asset_loader::<ImageLoader>(IMG_FILE_EXTENSIONS);

So Image assets are registered twice (could be more depending on features)

@mockersf mockersf added C-Bug An unexpected or incorrect behavior A-Rendering Drawing game state to the screen A-Assets Load files from disk to use for things like images, models, and sounds labels Feb 16, 2024
@mockersf mockersf added this to the 0.13 milestone Feb 16, 2024
@mockersf
Copy link
Member Author

duplicate of #11881

@mockersf mockersf closed this as not planned Won't fix, can't repro, duplicate, stale Feb 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Assets Load files from disk to use for things like images, models, and sounds A-Rendering Drawing game state to the screen C-Bug An unexpected or incorrect behavior
Projects
None yet
Development

No branches or pull requests

1 participant