bevyengine / bevyengine/bevy

Segfault and Window Not Appearing on v0.12.0

Open
#10,717 9 comments 0 reactions 0 assignees View on GitHub
A-Rendering A-Windowing C-Bug I-Crash
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 22h
Merged PRs (30d)
161

Description

## Bevy version

0.12.0

## \[Optional\] Relevant system information

- Rust: 1.74.0
- OS: Ubuntu 22.04.3 LTS (on Windows 10, WSL2)

## What you did

I ran example codes on the `release-0.12.0` branch:

```sh
cargo run --example sprite --features wayland
```

## What went wrong

The window didn't appear, and the script suddenly encountered a segmentation fault:

```sh
% cargo run --example sprite --features wayland [release-0.12.0]
Compiling bevy v0.12.0 (/home/user/Rust/bevy)
Finished dev [unoptimized + debuginfo] target(s) in 14.65s
Running `target/debug/examples/sprite`
2023-11-24T01:35:57.591011Z INFO bevy_winit::system: Creating new window "App" (0v0)
2023-11-24T01:35:57.601675Z ERROR sctk_adwaita::config: XDG Settings Portal did not return response in time: timeout: 100ms, key: color-scheme
2023-11-24T01:35:57.878248Z INFO bevy_render::renderer: AdapterInfo { name: "D3D12 (NVIDIA GeForce GTX 1650)", vendor: 0, device: 0, device_type: Other, driver: "", driver_info: "", backend: Gl }
ALSA lib confmisc.c:855:(parse_card) cannot find card '0'
ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory
ALSA lib confmisc.c:422:(snd_func_concat) error evaluating strings
ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1334:(snd_func_refer) error evaluating name
ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5701:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM default
2023-11-24T01:35:58.117300Z WARN bevy_audio::audio_output: No audio device found.
2023-11-24T01:35:58.231021Z WARN bevy_pbr::ssao: ScreenSpaceAmbientOcclusionPlugin not loaded. GPU lacks support: TextureFormat::R16Float does not support TextureUsages::STORAGE_BINDING.
2023-11-24T01:35:58.232566Z INFO bevy_diagnostic::system_information_diagnostics_plugin::internal: SystemInfo { os: "Linux 22.04 Ubuntu", kernel: "5.15.133.1-microsoft-standard-WSL2", cpu: "AMD Ryzen 7 5700X 8-Core Processor", core_count: "8", memory: "7.7 GiB" }
zsh: segmentation fault cargo run --example sprite --features wayland
```
## Additional information

- `apt update && apt upgrade` didn't resolve the problem.
- the `release-0.11.3` branch worked well for me (it produced the same errors and warnings, but the window is displayed correctly.):
```sh
% cargo run --example sprite --features wayland [release-0.11.3]
warning: unused doc comment
--> crates/bevy_pbr/src/light.rs:62:13
|
62 | /// Luminous power in lumens
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
63 | intensity: 800.0, // Roughly a 60W non-halogen incandescent bulb
| ---------------- rustdoc does not generate documentation for expression fields
|
= help: use `//` for a plain comment
= note: `#[warn(unused_doc_comments)]` on by default

warning: unused doc comment
--> crates/bevy_pbr/src/light.rs:130:13
|
130 | /// Luminous power in lumens
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
131 | intensity: 800.0, // Roughly a 60W non-halogen incandescent bulb
| ---------------- rustdoc does not generate documentation for expression fields
|
= help: use `//` for a plain comment

warning: `bevy_pbr` (lib) generated 2 warnings
Finished dev [unoptimized + debuginfo] target(s) in 0.14s
Running `target/debug/examples/sprite`
2023-11-24T01:58:14.404376Z INFO bevy_winit::system: Creating new window "App" (0v0)
2023-11-24T01:58:14.406863Z ERROR sctk_adwaita::config: XDG Settings Portal did not return response in time: timeout: 100ms, key: color-scheme
ALSA lib confmisc.c:855:(parse_card) cannot find card '0'
ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory
ALSA lib confmisc.c:422:(snd_func_concat) error evaluating strings
ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1334:(snd_func_refer) error evaluating name
ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5701:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM default
2023-11-24T01:58:14.619281Z WARN bevy_audio::audio_output: No audio device found.
2023-11-24T01:58:14.849030Z INFO bevy_render::renderer: AdapterInfo { name: "D3D12 (NVIDIA GeForce GTX 1650)", vendor: 0, device: 0, device_type: Other, driver: "", driver_info: "", backend: Gl }
2023-11-24T01:58:14.957976Z WARN bevy_pbr::ssao: ScreenSpaceAmbientOcclusionPlugin not loaded. GPU lacks support: TextureFormat::R16Float does not support TextureUsages::STORAGE_BINDING.
2023-11-24T01:58:14.959516Z INFO bevy_diagnostic::system_information_diagnostics_plugin::internal: SystemInfo { os: "Linux 22.04 Ubuntu", kernel: "5.15.133.1-microsoft-standard-WSL2", cpu: "AMD Ryzen 7 5700X 8-Core Processor", core_count: "8", memory: "7.7 GiB" }
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.