Skip to content
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

Some KTX2 Images fail to load #13289

Open
DGriffin91 opened this issue May 9, 2024 · 0 comments
Open

Some KTX2 Images fail to load #13289

DGriffin91 opened this issue May 9, 2024 · 0 comments
Labels
A-Rendering Drawing game state to the screen C-Bug An unexpected or incorrect behavior S-Needs-Investigation This issue requires detective work to figure out what's going wrong

Comments

@DGriffin91
Copy link
Contributor

Bevy version Main d9d305d and 0.13

When loading the KTX2 file I get the error:

thread 'Compute Task Pool (21)' panicked at \.cargo\registry\src\index.crates.io-6f17d22bba15001f\wgpu-0.19.4\src\util\device.rs:174:26:
range end index 1164112 out of range for slice of length 1163552
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Encountered a panic in system `bevy_render::render_asset::prepare_assets<bevy_render::texture::image::Image>`!
thread 'Compute Task Pool (21)' panicked at \.cargo\registry\src\index.crates.io-6f17d22bba15001f\bevy_render-0.13.2\src\pipelined_rendering.rs:49:67:
called `Result::unwrap()` on an `Err` value: RecvError

This is the source PNG (from San Miguel):
muros_b
This is the KTX2 file generated by kram:
muros_b.zip

I was able to successfully load and view the image in NVIDIA Texture Tools Exporter. I also tried using NVIDIA Texture Tools Exporter to generate a KTX2 file from the PNG and got the same error.

The KTX2 file was generated with kram via:
kram encode -f bc7 -type 2d -srgb -i muros_b.png -o muros_b.ktx2

@DGriffin91 DGriffin91 added C-Bug An unexpected or incorrect behavior S-Needs-Triage This issue needs to be labelled labels May 9, 2024
@alice-i-cecile alice-i-cecile added A-Rendering Drawing game state to the screen S-Needs-Investigation This issue requires detective work to figure out what's going wrong and removed S-Needs-Triage This issue needs to be labelled labels May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Rendering Drawing game state to the screen C-Bug An unexpected or incorrect behavior S-Needs-Investigation This issue requires detective work to figure out what's going wrong
Projects
None yet
Development

No branches or pull requests

2 participants