Skip to content

Regression: Disabling multi_threaded feature causes broken rendering #14993

@BigWingBeat

Description

@BigWingBeat

Bevy version

  • Issue occurs on current git main (ffe0f7f)
  • Git bisect identifies d9527c101c2f49c6884763cce36ea1d27dd6a597 (Rewrite screenshots. #14833) as the first bad commit
  • Issue does not occur on crates.io v0.14.1

[Optional] Relevant system information

  • cargo 1.80.1 (376290515 2024-07-16)
  • Pop!_OS 22.04 LTS
  • AdapterInfo { name: "AMD Radeon RX 6600 XT (RADV NAVI23)", vendor: 4098, device: 29695, device_type: DiscreteGpu, driver: "radv", driver_info: "Mesa 24.0.3-1pop1~1711635559~22.04~7a9f319", backend: Vulkan }

What you did

  • Cargo.toml:
[package]
name = "testy"
version = "0.1.0"
edition = "2021"

[dependencies]
bevy = { git = "https://github.com/bevyengine/bevy", branch = "main", default-features = false, features = [
	"x11",
	"bevy_core_pipeline",
] }
  • main.rs:
use bevy::prelude::*;

fn main() -> AppExit {
    App::new()
        .add_plugins(DefaultPlugins)
        .add_systems(Startup, |world: &mut World| {
            world.spawn(Camera3dBundle::default()); // Camera2dBundle also works
        })
        .run()
}

What went wrong

1

3

Additional information

Changing the above Cargo.toml to the following fixes the issue:

[package]
name = "testy"
version = "0.1.0"
edition = "2021"

[dependencies]
bevy = { git = "https://github.com/bevyengine/bevy", branch = "main", default-features = false, features = [
	"x11",
	"bevy_core_pipeline",
+	"multi_threaded",
] }

Additionally, all other features seem to have no effect on it. You can manually re-enable all of the default features except multi_threaded, and the issue still occurs. Then enable multi_threaded, and it's fixed.

Metadata

Metadata

Assignees

Labels

A-RenderingDrawing game state to the screenC-BugAn unexpected or incorrect behaviorP-RegressionFunctionality that used to work but no longer does. Add a test for this!S-Needs-InvestigationThis issue requires detective work to figure out what's going wrong

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions