Skip to content

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

@Azorlogh

Description

@Azorlogh

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-AudioSounds playback and modificationA-TasksTools for parallel and async workC-BugAn unexpected or incorrect behaviorO-LinuxSpecific to the Linux desktop operating systemS-Ready-For-ImplementationThis issue is ready for an implementation PR. Go for it!

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions