bevyengine / bevyengine/bevy

Panic/crash on using rfd (and in some other random situations)

Open
#10,525 2 comments 0 reactions 0 assignees View on GitHub
C-Dependencies I-Crash O-Linux S-Waiting-on-Author
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 22h
Merged PRs (30d)
161

Description

## Bevy version

0.12 (release/stable)

## Hardware Information:
- **Hardware Model:** Gigabyte Technology Co., Ltd. B450M DS3H
- **Memory:** 16,0 GiB
- **Processor:** AMD Ryzen™ 5 3600 × 12
- **Graphics:** AMD Radeon™ RX 7800 XT
- **Disk Capacity:** 1,5 TB

## Software Information:
- **Firmware Version:** F64
- **OS Name:** EndeavourOS
- **OS Build:** 2022.09.10
- **OS Type:** 64-bit
- **GNOME Version:** 45.1
- **Windowing System:** Wayland
- **Kernel Version:** Linux 6.5.9-arch2-1

Nightly rust, same under stable.

## What you did
I'm using rfd for file dialogs in my level editor. The problem occurs most often when selecting/double-clicking a file in the file dialog (as in the action that finalizes the file picking), but I've had it occur as seemingly random points in my game such as when it first starts or if I "mess" with the window too much during startup (such as resizing, switching monitor, etc.).

## What went wrong
The program crashes with the following error:
`ERROR bevy_app: smithay_client_toolkit::event_loop: Error trying to flush the wayland display: Broken pipe (os error 32)` and no additional info.

## Additional information

Google turns up 0 results for me with this particular error, which scares me a bit. It is quite annoying since we use our editor to edit our scenes. The action the file picking is for saving/loading which seems to go through, but the app crashes immediately after (so a save will succeed in writing to a file but a load will technically succeed but be useless since it crashes right away).

Contributor guide

Open the contributing guide

Research direction

Reproduce the crash in the reported Bevy 0.12 setup, focusing on rfd file selection and window actions under Wayland. Trace the smithay_client_toolkit Wayland display flush failure and determine what change prevents the broken-pipe crash while preserving file dialog behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux, rust
Domain
desktop, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.