-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Minimal Setup Causes Segfault #3449
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
Comments
Thanks for the report :) Could you send us the backtrace? And after that, could you test on |
I'm not seeing any backtrace. I tried
I know the API is subject to change, but the official docs show this usage as well and I'm a bit confused. |
Alright, hmm 🤔
Ah, those docs are for our latest release, 0.5. That's changed on use bevy::prelude::*;
fn setup(mut commands: Commands) {
commands.spawn_bundle(OrthographicCameraBundle::new_2d());
}
fn main() {
App::new()
.add_startup_system(setup.system())
.add_plugins(DefaultPlugins).run();
} If you run into "could not select a matching version" errors, delete your |
Okay, I can view the updated documentation with
I did run
|
Precisely; our rendering solution is failing on your hardware / driver combination. Thanks for the information about your device; that's extremely helpful for us. It's using your integrated GPU: I presume your machine does not have a dedicated graphics card? I would try updating your graphics drivers, but if that fails this is likely an upstream bug in In the meantime, you should be able to get started with Bevy by disabling default features (or excluding rendering from your plugin set), on either 0.5 or bevy = { git = "https://github.com/bevyengine/bevy/", default-features = false, features = ["audio"]} Here I've manually enabled the "audio" feature. If you're feeling particularly adventurous, Bevy is able to run on CPU-emulated graphics cards: #3358 is the PR that enables our CI to run on machines without a GPU. |
Yes, it's a Lenovo laptop. No dedicated graphics card.
Yes, it looks like I can't run some of their examples. Similar output.
Graphics is definitely something I wanted to play with, but CPU emulation might be a decent workaround. |
Hello! I wanted to update this ticket with my findings. The cause was definitely related to I suppose that's a bit of a cop out, but it solves the immediate problem and allows me to move forward. |
Bevy version
Operating system & version
Linux 5.4.0-89-generic Ubuntu SMP Fri Sep 24 14:50:10 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Distributor ID: Ubuntu
Description: Ubuntu 20.04.3 LTS
Codename: focal
What you did
What you expected to happen
Running the app should get an empty window.
What actually happened
The text was updated successfully, but these errors were encountered: