Hello everyone, I'm trying to run the `save_to_di...
# sdk-rust
b
Hello everyone, I'm trying to run the
save_to_disk
example on Linux arm64 (Raspbian to be precise). It compiles fine, but the app crashes with the following:
Copy code
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:
Copy code
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.
Got it working in the end! In case anyone runs into the same issue, in my case it was caused by the
native-tls
feature. The fix was to switch from
native-tls
to
rustls-tls-native-roots
: before:
Copy code
livekit = { version = "0.7.0", features = ["native-tls"] }
after:
Copy code
livekit = { version = "0.7.0", features = ["rustls-tls-native-roots"] }