bevyengine / bevyengine/bevy

Closing a window hangs for a second & causes pipewire to glitch

Open
#9,948 4 comments 1 reaction 0 assignees View on GitHub
A-Audio A-Tasks C-Bug O-Linux S-Ready-For-Implementation
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.