-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[SDL3] jack audio driver throws assertion #8344
Comments
This doesn't trigger for me, but I suspect the problem is this code... // !!! FIXME: implement and register these!
// typedef int(* JackSampleRateCallback)(jack_nframes_t nframes, void *arg)
// typedef int(* JackBufferSizeCallback)(jack_nframes_t nframes, void *arg) ...which we need to check to find out that JACK decided we need a different sample rate or buffer size. |
This reproduces on Fedora 38. The jack library also deadlocks when running testautomation in a loop, but that's another issue. |
When you get a chance, can you see if the thing I just pushed fixes it for you? |
I get this segfault now when creating a logical device, probably not connected to the jack issue:
About jack, I can worsen its behavior by running a few testautomation iterations before running testaudio.
|
On this line...? SDL_assert(thing->texture != NULL); |
Yes. I was testing on current main. Sorry if I wasn't clear on this. |
This happens to work because our current textures are all 128x128, but in theory one shouldn't hit this case anyhow...right?! Reference Issue #8344.
I just pushed a fix that should bypass that crash, although I'm not sure how we got into a state where that would crash in the first place. :/ |
Also, I'm going to bump up from Ubuntu 22.10 to 23.04 and see if I get a more recent PipeWire install out of it. Although the temptation to nuke everything and move to Fedora is growing daily. :) |
There's something really wrong with jack (in testaudio). The testaudio works as usual for other audio drivers, though there is heavy stuttering with the pipewire audio driver. When running
(pipewire also stutters in |
Can you go back a few revisions and see if this is still broken this badly, to make sure it isn't something from today? And if it is...maybe reboot and see if it fixes it? 😬 |
A restart makes pipewire and pipewire-jack behave again. (I didn't try previous comits) |
I think we can close this one, now that PipeWire added a fix...? |
Yeah, let's close it. |
testaudio
asserts when started with jack audio driverreproducer
Start testaudio with:
Then create a logical device for some output
actual result
desired result
audio plays, no assertion
The text was updated successfully, but these errors were encountered: