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

Constant byte index xxx is out of bounds of `` errors (Naga) #6288

Open
hakolao opened this issue Sep 17, 2024 · 0 comments
Open

Constant byte index xxx is out of bounds of `` errors (Naga) #6288

hakolao opened this issue Sep 17, 2024 · 0 comments

Comments

@hakolao
Copy link
Contributor

hakolao commented Sep 17, 2024

Apologies for a not so helpful bug report, but perhaps you know what was changed in naga in 22.0 (or previous version).

I recreate my pipelines using on_uncaptured_error (hot reload), and quite often now I get following kinds of panics:

[2024-09-17T11:35:14Z ERROR wgpu_core::device::global] Device::create_shader_module error:
    Shader validation error:
      ┌─ Combine shader:1:1
      │
    1 │
      │
      │
      │ naga::Expression [42]
      │ naga::Function [13]


thread 'main' panicked at C:\...\.cargo\registry\src\index.crates.io-6f17d22bba15001f\naga-22.1.0\src\span.rs:73:29:
byte index 4424 is out of bounds of ``

I don't think this should happen, because previously I just got the error nicely printed out and I could keep changing my shaders and running my hot-reloads.

Some errors don't cause this, others do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

1 participant