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

Multiple Fog Volumes Panic #17590

Open
the-real-ale opened this issue Jan 28, 2025 · 0 comments
Open

Multiple Fog Volumes Panic #17590

the-real-ale opened this issue Jan 28, 2025 · 0 comments
Labels
A-Rendering Drawing game state to the screen C-Bug An unexpected or incorrect behavior P-Crash A sudden unexpected crash S-Needs-Investigation This issue requires detective work to figure out what's going wrong

Comments

@the-real-ale
Copy link

Bevy version

release-0.15.1, tag: v0.15.1

[Optional] Relevant system information

cargo 1.86.0-nightly (cecde95c1 2025-01-24)

SystemInfo { os: "Windows 10 Home", kernel: "19045", cpu: "11th Gen Intel(R) Core(TM) i7-11700K @ 3.60GHz", core_count: "8", memory: "63.9 GiB" }

AdapterInfo { name: "NVIDIA GeForce RTX 3060 Ti", vendor: 4318, device: 9353, device_type: DiscreteGpu, driver: "NVIDIA", driver_info: "566.36", backend: Vulkan }

What you did

In volumetric_fog example, duplicate the FogVolume spawn.
Possibly unrelated, but the only way I could get volumetric fog to run on Windows 10 was to change the gpu backend to VULKAN.

    App::new()
        .add_plugins(DefaultPlugins.set(RenderPlugin {
            render_creation: RenderCreation::Automatic(WgpuSettings {
                backends: Some(Backends::VULKAN),
                ..default()
            }),
            ..default()
        }))
	...

Other than these two changes, the example code is identical to release 0.15.1.

What went wrong

With the two fog volumes spawning, attempt to run and encounter panic:

thread 'Compute Task Pool (6)' panicked at bevy\crates\bevy_render\src\render_resource\uniform_buffer.rs:368:34:
called `Result::unwrap()` on an `Err` value: BufferTooSmall { expected: 288, found: 0 }
@the-real-ale the-real-ale added C-Bug An unexpected or incorrect behavior S-Needs-Triage This issue needs to be labelled labels Jan 28, 2025
@alice-i-cecile alice-i-cecile added A-Rendering Drawing game state to the screen P-Crash A sudden unexpected crash 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 Jan 28, 2025
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 P-Crash A sudden unexpected crash 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