Hey all, I did a fresh clone off <https://github....
# sdk-rust
n
Hey all, I did a fresh clone off https://github.com/livekit/rust-sdks/blob/main/examples/save_to_disk/src/main.rs. I'm experiencing an extensive error about webrtc-sys (I will send a text snippet in this thread). All I did was run
cargo run
My system is Ubuntu 22.04 (PopOS) I'm wondering if anyone have any ideas how to resolve this?
Error message
Additional observation: it seems to work on macOS with command
RUSTFLAGS="-C link-args=-ObjC" cargo run
I tried running the basic room, it also doesn't seem to work.
Rust version
rustc 1.80.1 (3f5fd8dd4 2024-08-06)
After extensive debugging, this is where it failed: https://github.com/livekit/rust-sdks/blob/5e8101ea20725fabededcc6c5239451da0f35759/livekit-api/src/signal_client/signal_stream.rs#L99
let (ws_stream, _) = _connect_async_(url)._await_?;
It runs into segfault here when I try to run it in my linux.
b
hey, this is a conflict happening with boringssl, this should have been resolved in this PR cc @fancy-vegetable-74967
n
interesting, that PR is merged 3 weeks ago, I tried on latest main by running the examples, still doesn't work, do I need to do anything on top?
b
mmh I’m not sure, I’m not aware of any other steps to do
n
ok thanks for the reply! appreciate it!
f
currently investigating, will keep you posted
n
thanks! if you need further info about the environment I'm in, please let me know
f
89e039d
is a regression. will figure out the details tomorrow and push a new release as soon as possible
👏 1
n
that was quick, appreciate you! thanks!
f
livekit
0.5.2 released, should now fix the symbol conflict issues.
n
Awesome, thanks @fancy-vegetable-74967!
@fancy-vegetable-74967 sorry for the mention, but I tried pulling from latest main on
rust-sdks
then cd into
examples/basic_room
then run
cargo run
(I also ran
cargo clean
before
cargo run
to ensure clean dep compiles) But still get the exact same Segfault error in the exact same location. Here's my env:
Copy code
Ubuntu 22.04 LTS (popos)
rustc 1.80.1 (3f5fd8dd4 2024-08-06)
cargo 1.80.1 (376290515 2024-07-16)
Is there any way I can help here? Should I also open an issue in the repo?
I also created a simple script that just copied basic_room and tried installing 0.5.2 crate directly instead of folder based import like the examples folder. Still, no luck
f
found the fix. will let you know when a new new version is released, sorry for the trouble
n
goddamn that is such a weird bug
I'm wondering, do we actually need to wait for the GH action workflow to run before we can use the update? I tried pulling from
main
just now and try the example again, it still produces segfault even with
cargo clean
f
the build creates statically linked libraries so you don’t have to build the C++ lib yourself. the new version will pull in artifacts from those actions
new version of livekit released
🙏 1