Skip to content

.add_systems DONT WORK #17130

Open
Open
@KeiMuriKoe

Description

@KeiMuriKoe

Bevy version

current main version - 0.15

What you did

I wanted to try out a new engine (Bevy) and started following the "Get Started" documentation. Things went off track when I tried to use app.add_systems It seemed like such a basic and straightforward function that should definitely work, so I feel like I must be missing something. But for some reason, it just doesn't work—the simplest example code doesn't run for me. Everything else I've tested so far works perfectly fine for me. Fot example connecting plugins. When installing rust and bevy, I strictly followed the provided instructions. Also example was working for me.

use bevy::prelude::*;

fn main() {
    let mut app = App::new();
    app.add_systems(Startup, hello_world);
    app.run();
}

fn hello_world() {
    println!("hello world");
}

Windows 11.

What went wrong

INFO bevy_render::renderer: AdapterInfo { name: "AMD Radeon RX 6700 XT", vendor: 4098, device: 29663, device_type: DiscreteGpu, driver: "AMD proprietary driver", driver_info: "24.4.1 (AMD proprietary shader compiler)", backend: Vulkan }
error: process didn't exit successfully: target\debug\my_bevy_game.exe (exit code: 0xc0000005, STATUS_ACCESS_VIOLATION)

Additional information

Image
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-BugAn unexpected or incorrect behaviorC-DocsAn addition or correction to our documentationD-StraightforwardSimple bug fixes and API improvements, docs, test and examplesO-WindowsSpecific to the Windows desktop operating systemS-Needs-InvestigationThis issue requires detective work to figure out what's going wrong

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions