#Segfault with bevy_ecs_ldtk

14 messages · Page 1 of 1 (latest)

spice yarrow
#

When trying to run the bevy_ecs_ldtk example I get the following:

cargo run --example platformer --release
    Finished release [optimized] target(s) in 0.35s
     Running `target/release/examples/platformer`
2022-10-25T04:09:51.937219Z  INFO winit::platform_impl::platform::x11::window: Guessed window scale factor: 1
2022-10-25T04:09:52.013291Z  INFO bevy_render::renderer: AdapterInfo { name: "llvmpipe (LLVM 12.0.0, 256 bits)", vendor: 65541, device: 0, device_type: Cpu, backend: Vulkan }
WARNING: lavapipe is not a conformant vulkan implementation, testing use only.
2022-10-25T04:09:52.140266Z  INFO gilrs_core::platform::platform::gamepad: Gamepad /dev/input/event16 (RetroUSB.com RetroPad) connected.
2022-10-25T04:09:52.157188Z  INFO bevy_input::gamepad: Gamepad { id: 0 } Connected
2022-10-25T04:09:52.395577Z  INFO naga::back::spv::writer: Skip function Some("get_mesh")
Segmentation fault (core dumped)

I'm not sure if this is bevy or the ldtk plugin. The application starts for a few seconds but then crashes with the seg fault. The simple bevy "hello world" works however, but that doesn't do anything except print hello world before exiting so I'm not sure that tells anything at all.

Is there a way to get more info on what is causing this issue? extra debug, etc?

spice yarrow
#

I did a quick run via valgrind before work and it seems the crash is in libvulcan. Is there a way to use another backend? (To test I mean)

tropic heron
#

Looks like you don't have GPU drivers installed. Bevy is picking the lavapipe adapter which is a software vulkan implementation.

spice yarrow
#

Well I have a rather old gpu...and I do have drivers but no new ones have been released since 2015

tropic heron
#

There is an OpenGL backend but I'm not sure how well its supported..

spice yarrow
#

It's a Radeon HD 7660D

#

Running with WGPU_BACKEND=gl atleast doesn't crash but it just shows a grey windows instead :/ I might give this a shot on my other computer to see if it's any better (slightly newer hardware atleast)

tropic heron
#

Radeon HD 7660D doesn't support vulkan

#

it probably could have with a driver update but it looks like that never happened

spice yarrow
#

Thanks

somber moat
#

Is there a way to handle these kind of things more ... decently? This is rust and we're talking segfaults when some configuration is not supported.

tropic heron
spice yarrow
#

I may try to look into the issue as I can reproduce it.