Closing a window hangs for a second & causes pipewire to glitch
- Dominant language
- Rust
- Stars
- 48.2k
- Forks
- 4.8k
- Avg merge
- 3d 16h
- Merged PRs (30d)
- 171
Description
## Bevy version
Bevy v0.11.2
## Relevant system information
Archlinux + pipewire 0.3.80 + x11
## What you did
Close any bevy program's main window (if it includes the AudioPlugin).
Close any bevy program using Ctrl+C in the terminal (if it includes the AudioPlugin).
This happens whether or not bevy is actually playing any sound.
## What went wrong
Expected: The window should close (almost) instantly without any audio issues.
Actual:
When I close the main window: it takes about ~1 second to close, and during that time, all of my desktop audio stutters (the last few milliseconds of audio repeat, causing audio popping).
When I Ctrl+C the terminal directly: the window closes almost instantly, and there is a short but loud popping sound.
It's not a major issue but it's a bit annoying as the audio glitching is often quite loud & uncomfortable, especially when it happens during a drum hit.
Contributor guide
Research direction
No source files or tests are named. Reproduce an AudioPlugin-enabled Bevy program closing its window or receiving Ctrl+C on Arch Linux with PipeWire, then trace the shutdown path; done means the window closes promptly without desktop audio stuttering or a loud pop.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100