cpal icon indicating copy to clipboard operation
cpal copied to clipboard

CPAL 0.18 devel with PipeWire enabled and PipeWire+PulseAudio running not working on FuriOS - Seems to block quietly on initialization

Open marin-m opened this issue 6 months ago • 8 comments

Hello,

As I mentioned on #1145 I got two user reports with logs about this:

  • https://github.com/marin-m/SongRec/issues/296
  • https://github.com/marin-m/SongRec/issues/276

These reports seem to suggest that the call to cpal::default_host(); hangs and that CPAL hence doesn't even reach initialization (cf. https://github.com/marin-m/SongRec/issues/296#issuecomment-4408280665)

These reports also seem to suggest that CPAL 0.17 stable works on this platform

marin-m avatar May 08 '26 18:05 marin-m

Is 078787ee8061c41fc3198e3a39d55238bc68fa4d any different?

Thanks for helping me provide any debugging information; the more, the merrier.

I have no experience with Flatpak and while I could set it up myself to debug it, anyone who can help me do that would be of great help.

roderickvd avatar May 08 '26 22:05 roderickvd

Actually it doesn't seem to be specific to Flatpak, just some user compiled from source using the version of SongRec distributed on crates.io (which uses stable CPAL and hence is not up-to-date) and it worked with that

Regarding the next version of SongRec: I will bump CPAL to the latest devel, and compile without PipeWire support on the Flatpak target I think + add compile and runtime flags to disable PipeWire support if needed

marin-m avatar May 09 '26 09:05 marin-m

These targets are actually very interesting because I don't get to test them by default, and I would very much like to fix them so they'd work without the need to disable them ((or automatically fall through and certainly not hang).

I'll do some digging to see what I can come up with. Thanks for your help.

roderickvd avatar May 09 '26 12:05 roderickvd

Please try #1194.

roderickvd avatar May 09 '26 13:05 roderickvd

Downstream stakeholder note: Minutes is pinned to cpal master (currently 33e05ec) for PipeWire support, and is blocked from publishing our crate to crates.io while this git dependency remains. No timeline pressure from us.

Happy to test pre-release tags on macOS and Linux+PipeWire. We can run against any tag or branch you point us at.

silverstein avatar May 13 '26 17:05 silverstein

I merged #1194 so hopefully that fixes it. Happy if you or your users could confirm. I'm working on my final list before v0.18, shouldn't be long now.

roderickvd avatar May 15 '26 20:05 roderickvd

I merged #1194 so hopefully that fixes it.

It seems that just before merging you force-pushed and retained only the changes in the PulseAudio module, not the PipeWire one? Can you please explain why? (I build CPAL without the PulseAudio module in SongRec)

Especially, this change was not merged in the master tree: https://github.com/RustAudio/cpal/commit/f5532e5cab56a7c89d39cd730149aad111e16113#diff-5831bef7a0861c35114e460f81feb1874df9199c1f2c6783adca5e17f2d0fce2R965

marin-m avatar May 16 '26 00:05 marin-m

Rebasing mistake. Pushed to master: https://github.com/RustAudio/cpal/commit/8e4d5ddb4fac1af95915f80382b70a95f711bdcb

roderickvd avatar May 16 '26 08:05 roderickvd