[GH-ISSUE #660] Can't start stream: thread '<unnamed>' panicked: no process-level CryptoProvider available #340

Closed
opened 2026-02-25 20:33:22 +03:00 by kerem · 1 comment
Owner

Originally created by @kentookura on GitHub (Oct 27, 2024).
Original GitHub issue: https://github.com/asciinema/asciinema/issues/660

When calling asciinema stream -r, I get (after export RUST_BACKTRACE=full)

❯ asciinema stream -r       
::: Streaming session started
::: Live stream available at https://asciinema.org/s/U55KSv5B0Suosau3
::: Press <ctrl+d> or type 'exit' to end
thread '<unnamed>' panicked at /build/cargo-vendor-dir/rustls-0.23.7/src/crypto/mod.rs:260:14:
no process-level CryptoProvider available -- call CryptoProvider::install_default() before this point
stack backtrace:
0:     0x55cc8ce799c5 - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::h1b9dad2a88e955ff
1:     0x55cc8cea4d0b - core::fmt::write::h4b5a1270214bc4a7
2:     0x55cc8ce763df - std::io::Write::write_fmt::hd04af345a50c312d
3:     0x55cc8ce7acb1 - std::panicking::default_hook::{{closure}}::h96ab15e9936be7ed
4:     0x55cc8ce7a98c - std::panicking::default_hook::h3cacb9c27561ad33
5:     0x55cc8ce7b311 - std::panicking::rust_panic_with_hook::hfe205f6954b2c97b
6:     0x55cc8ce7b177 - std::panicking::begin_panic_handler::{{closure}}::h6cb44b3a50f28c44
7:     0x55cc8ce79e89 - std::sys::backtrace::__rust_end_short_backtrace::hf1c1f2a92799bb0e
8:     0x55cc8ce7ae04 - rust_begin_unwind
9:     0x55cc8c838bf3 - core::panicking::panic_fmt::h3d8fc78294164da7
10:     0x55cc8c838bbb - core::option::expect_failed::h3a757a693188cc6e
11:     0x55cc8ca77b43 - rustls::client::client_conn::ClientConfig::builder_with_protocol_versions::h6d02d335495824b5
12:     0x55cc8ca77a66 - rustls::client::client_conn::ClientConfig::builder::h4c2a4faccaecc770
13:     0x55cc8c94add9 - tokio_tungstenite::tls::encryption::rustls::wrap_stream::{{closure}}::hb51aa72357cf7929
14:     0x55cc8c95a5dc - asciinema::streamer::forwarder::connect_and_forward::{{closure}}::h73c58f03db500f1b
15:     0x55cc8c9550d0 - <tokio::future::poll_fn::PollFn<F> as core::future::future::Future>::poll::hc6c10f6e9761a7e0
16:     0x55cc8c8aadad - asciinema::streamer::forwarder::forward::{{closure}}::h22bf23a99de91670
17:     0x55cc8c8a415b - tokio::runtime::task::core::Core<T,S>::poll::h69aabadb124221b1
18:     0x55cc8c88d9cc - tokio::runtime::task::harness::Harness<T,S>::poll::h811e9d56186456c7
19:     0x55cc8c8fcbea - tokio::runtime::scheduler::current_thread::Context::enter::hc61a4cd03ee8c841
20:     0x55cc8c95235b - tokio::runtime::context::scoped::Scoped<T>::set::h48151c8f22e7cb16
21:     0x55cc8c8fcddd - tokio::runtime::scheduler::current_thread::CoreGuard::block_on::hfd357e17a30c99ac
22:     0x55cc8c9527e4 - tokio::runtime::context::runtime::enter_runtime::h6cbdb13a0d179909
23:     0x55cc8c952aa0 - tokio::runtime::runtime::Runtime::block_on::h925b417a5fd8effc
24:     0x55cc8c8f184d - std::sys::backtrace::__rust_begin_short_backtrace::hf919a45d2db2ebbf
25:     0x55cc8c8f29d2 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h5a0bc620075a4b7e
26:     0x55cc8ce7fdeb - std::sys::pal::unix::thread::Thread::new::thread_start::ha8af9c992ef0b208
27:     0x7f5d48fc5a42 - start_thread
28:     0x7f5d4904505c - clone3
29:                0x0 - <unknown>

Note that I still "enter a session" successfully, so I still need to press Ctrl-d to exit.

To Reproduce
Steps to reproduce the behavior:

  1. Install asciinema using nix. The rev that this occurs at is 44b28794c0d12027d55964291c5f66da913ba3d0
  2. Authenticate (I have successfully recorded and uploaded already.)
  3. Call asciinema stream -r

Expected behavior
It successfully starts a stream

Versions:

  • NixOS 24.11.20241009.5633bcf (Vicuna)
  • asciinema cli: asciinema 3.0.0-rc.3
Originally created by @kentookura on GitHub (Oct 27, 2024). Original GitHub issue: https://github.com/asciinema/asciinema/issues/660 When calling `asciinema stream -r`, I get (after `export RUST_BACKTRACE=full`) ``` ❯ asciinema stream -r ::: Streaming session started ::: Live stream available at https://asciinema.org/s/U55KSv5B0Suosau3 ::: Press <ctrl+d> or type 'exit' to end thread '<unnamed>' panicked at /build/cargo-vendor-dir/rustls-0.23.7/src/crypto/mod.rs:260:14: no process-level CryptoProvider available -- call CryptoProvider::install_default() before this point stack backtrace: 0: 0x55cc8ce799c5 - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::h1b9dad2a88e955ff 1: 0x55cc8cea4d0b - core::fmt::write::h4b5a1270214bc4a7 2: 0x55cc8ce763df - std::io::Write::write_fmt::hd04af345a50c312d 3: 0x55cc8ce7acb1 - std::panicking::default_hook::{{closure}}::h96ab15e9936be7ed 4: 0x55cc8ce7a98c - std::panicking::default_hook::h3cacb9c27561ad33 5: 0x55cc8ce7b311 - std::panicking::rust_panic_with_hook::hfe205f6954b2c97b 6: 0x55cc8ce7b177 - std::panicking::begin_panic_handler::{{closure}}::h6cb44b3a50f28c44 7: 0x55cc8ce79e89 - std::sys::backtrace::__rust_end_short_backtrace::hf1c1f2a92799bb0e 8: 0x55cc8ce7ae04 - rust_begin_unwind 9: 0x55cc8c838bf3 - core::panicking::panic_fmt::h3d8fc78294164da7 10: 0x55cc8c838bbb - core::option::expect_failed::h3a757a693188cc6e 11: 0x55cc8ca77b43 - rustls::client::client_conn::ClientConfig::builder_with_protocol_versions::h6d02d335495824b5 12: 0x55cc8ca77a66 - rustls::client::client_conn::ClientConfig::builder::h4c2a4faccaecc770 13: 0x55cc8c94add9 - tokio_tungstenite::tls::encryption::rustls::wrap_stream::{{closure}}::hb51aa72357cf7929 14: 0x55cc8c95a5dc - asciinema::streamer::forwarder::connect_and_forward::{{closure}}::h73c58f03db500f1b 15: 0x55cc8c9550d0 - <tokio::future::poll_fn::PollFn<F> as core::future::future::Future>::poll::hc6c10f6e9761a7e0 16: 0x55cc8c8aadad - asciinema::streamer::forwarder::forward::{{closure}}::h22bf23a99de91670 17: 0x55cc8c8a415b - tokio::runtime::task::core::Core<T,S>::poll::h69aabadb124221b1 18: 0x55cc8c88d9cc - tokio::runtime::task::harness::Harness<T,S>::poll::h811e9d56186456c7 19: 0x55cc8c8fcbea - tokio::runtime::scheduler::current_thread::Context::enter::hc61a4cd03ee8c841 20: 0x55cc8c95235b - tokio::runtime::context::scoped::Scoped<T>::set::h48151c8f22e7cb16 21: 0x55cc8c8fcddd - tokio::runtime::scheduler::current_thread::CoreGuard::block_on::hfd357e17a30c99ac 22: 0x55cc8c9527e4 - tokio::runtime::context::runtime::enter_runtime::h6cbdb13a0d179909 23: 0x55cc8c952aa0 - tokio::runtime::runtime::Runtime::block_on::h925b417a5fd8effc 24: 0x55cc8c8f184d - std::sys::backtrace::__rust_begin_short_backtrace::hf919a45d2db2ebbf 25: 0x55cc8c8f29d2 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h5a0bc620075a4b7e 26: 0x55cc8ce7fdeb - std::sys::pal::unix::thread::Thread::new::thread_start::ha8af9c992ef0b208 27: 0x7f5d48fc5a42 - start_thread 28: 0x7f5d4904505c - clone3 29: 0x0 - <unknown> ``` Note that I still "enter a session" successfully, so I still need to press `Ctrl-d` to exit. **To Reproduce** Steps to reproduce the behavior: 1. Install asciinema using nix. The rev that this occurs at is `44b28794c0d12027d55964291c5f66da913ba3d0` 2. Authenticate (I have successfully recorded and uploaded already.) 3. Call `asciinema stream -r` **Expected behavior** It successfully starts a stream **Versions:** - NixOS 24.11.20241009.5633bcf (Vicuna) - asciinema cli: asciinema 3.0.0-rc.3
kerem closed this issue 2026-02-25 20:33:22 +03:00
Author
Owner

@ku1ik commented on GitHub (Oct 27, 2024):

Thanks for reporting. I can also reproduce on NixOS 24.05. This seems to be related to this https://github.com/snapview/tokio-tungstenite/issues/336

<!-- gh-comment-id:2440044965 --> @ku1ik commented on GitHub (Oct 27, 2024): Thanks for reporting. I can also reproduce on NixOS 24.05. This seems to be related to this https://github.com/snapview/tokio-tungstenite/issues/336
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/asciinema#340
No description provided.