billions-monitor-73921
11/19/2024, 3:34 PMsave_to_disk
example on Linux arm64 (Raspbian to be precise).
It compiles fine, but the app crashes with the following:
free(): invalid pointer
[1] 20607 abort RUST_LOG=debug cargo run --bin livekit-test
By commenting bits out, I narrowed the issue down to the following line:
let (room, mut rx) = Room::connect(&url, &token, RoomOptions::default())
.await
.unwrap();
The LIVEKIT_URL
and LIVEKIT_TOKEN
env vars are set. Am I missing something basic here? Any way I can debug this further?
The exact same code runs fine on a Mac.billions-monitor-73921
11/19/2024, 6:04 PMnative-tls
feature. The fix was to switch from native-tls
to rustls-tls-native-roots
:
before:
livekit = { version = "0.7.0", features = ["native-tls"] }
after:
livekit = { version = "0.7.0", features = ["rustls-tls-native-roots"] }