-
Notifications
You must be signed in to change notification settings - Fork 173
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Sometimes when I subscribe on an remote publication I get the crash:
AURemoteIO.cpp:1091 failed: 1701737535 (enable 2, outf< 2 ch, 0 Hz, Float32, deinterleaved> inf< 2 ch, 0 Hz, Float32, deinterleaved>)
AURemoteIO.cpp:1091 failed: 1701737535 (enable 2, outf< 2 ch, 0 Hz, Float32, deinterleaved> inf< 2 ch, 0 Hz, Float32, deinterleaved>)
AVAEInternal.h:71 required condition is false: [AVAudioEngineGraph.mm:2161:_Connect: (IsFormatSampleRateAndChannelCountValid(format))]
*** Terminating app due to uncaught exception 'com.apple.coreaudio.avfaudio', reason: 'required condition is false: IsFormatSampleRateAndChannelCountValid(format)'
*** First throw call stack:
(0x19131a5fc 0x18e8b1244 0x1914676e0 0x1abf7ec50 0x1ac0419a0 0x1ac045964 0x10706a490 0x1070671fc 0x107066bec 0x1071cb58c 0x1071472b0 0x106e6ee20 0x106e6f244 0x106e6c24c 0x106eeb958 0x106f7743c 0x106f76334 0x106f779a8 0x21bffe7d0 0x21bffe480)
libc++abi: terminating due to uncaught exception of type NSException
Both listener and streamer are my local iOS devices connected to Xcode. I stream opus audio only.
As far as I understand this is because of 0 Hz audio settings.
SDK Version
v2.1.0
LiveKit Cloud
iOS/macOS Version
iOS 18.3
Xcode Version
Version 16.2 (16B5100e)
Steps to Reproduce
It happens randomly. I've never seen it before. I used an older version of the SDK (2.0.8). Probably, moving from background <-> foreground affects this.
What I'm doing is basically this:
public func room(_ room: Room, participant: RemoteParticipant, didPublishTrack publication: RemoteTrackPublication) {
//... some logic
try await publication.set(subscribed: true)
}
Expected behavior
No crash

Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working