-
Notifications
You must be signed in to change notification settings - Fork 323
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pipewire: Long timeout stalls user application #820
Comments
Is this possibly related to #795 |
Some of my personal thoughts:
Phil and I agree that 10mins is too long. The question is what is the best value. Ultimately it's up to interested parties to develop a patch. |
It may take a while to decide on the optimal timeout. |
Having looked at the pa_jack.c code in more detail, i think all of the calls to WaitCondition need to be reviewed as it doesn't seem like pthread_cond_timedwait is being used correctly (i.e. a condition is not always checked). |
Describe the bug
In case the audio callback stops because of an other error condition, the WaitCondition() will never happen and the long timeout of 10 min takes place. This is so long that the user will likely kill the application before, loosing his unsaved data.
To Reproduce
systemctl --user restart pipewire.service
It happens here:
portaudio/src/hostapi/jack/pa_jack.c
Line 1724 in 2fe67f3
Expected behavior
Actual behavior
Desktop (please complete the following information):
Additional context
The original bug is here: mixxxdj/mixxx#11587
Is it possible to lower the timeout to a reasonable short time?
Can we detect the error condition before start waiting?
The text was updated successfully, but these errors were encountered: