Closed HuyHung0 closed 2 months ago
I'm encountering a very similar thing. However, in my case the thread that panicked is "tokio-runtime-worker" with a different line number in icicle.
One thing I'm unsure about this error is that I don't have a directory called /home/ubuntu and I'm not sure where the code for this icicle.rs file is. My system is Arch linux, I have nvidia-smi and nvcc available with cuda version 12.5.
thread 'tokio-runtime-worker' panicked at /home/ubuntu/.cargo/git/checkouts/halo2-9de98af521c882c2/8cfca22/halo2_proofs/src/icicle.rs:28:56:
called `Result::unwrap()` on an `Err` value: UnknownError
stack backtrace:
0: 0x7f96c7ba4055 - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::hca750ad87bb2f1d4
1: 0x7f96c7bd25cb - core::fmt::write::h133a0eb20f0a6a5d
2: 0x7f96c7b9ff1f - std::io::Write::write_fmt::h0b1c7497ddea4e96
3: 0x7f96c7ba53d1 - std::panicking::default_hook::{{closure}}::h7dd45b5804215332
4: 0x7f96c7ba50ac - std::panicking::default_hook::haed8ee3169af9669
5: 0x7f96c7ba5aa1 - std::panicking::rust_panic_with_hook::h4bf66cb658082ab2
6: 0x7f96c7ba5907 - std::panicking::begin_panic_handler::{{closure}}::h7a19fc32e0e387d7
7: 0x7f96c7ba4519 - std::sys::backtrace::__rust_end_short_backtrace::h6117389318248cc0
8: 0x7f96c7ba5594 - rust_begin_unwind
9: 0x7f96c7bcf543 - core::panicking::panic_fmt::h1817a57f977b857c
10: 0x7f96c7bcfa16 - core::result::unwrap_failed::h99589da762c28d07
11: 0x7f96c6399b0a - std::sys::sync::once::futex::Once::call::hf6d75ff54f950544
12: 0x7f96c64343f7 - <halo2_proofs::poly::kzg::commitment::ParamsKZG<E> as halo2_proofs::poly::commitment::Params<<E as pairing::Engine>::G1Affine>>::read::h7af1a359dd067aad
13: 0x7f96c67bb427 - <pyo3_asyncio::generic::Cancellable<F> as core::future::future::Future>::poll::ha6c75760cb63e15a
14: 0x7f96c62e4a01 - <tokio::task::task_local::TaskLocalFuture<T,F> as core::future::future::Future>::poll::h43991bd32da23418
15: 0x7f96c6727060 - <tokio::task::task_local::TaskLocalFuture<T,F> as core::future::future::Future>::poll{{reify.shim}}::h4603a937a3cf8b00
16: 0x7f96c634fc7d - <pyo3_asyncio::tokio::TokioRuntime as pyo3_asyncio::generic::Runtime>::spawn::{{closure}}::h14e05e0613e768b4
17: 0x7f96c633c4a2 - tokio::runtime::task::raw::poll::h66e9531ca71a8300
18: 0x7f96c7a970ce - tokio::runtime::scheduler::multi_thread::worker::Context::run_task::h30493a11634a310c
19: 0x7f96c7a9632c - tokio::runtime::scheduler::multi_thread::worker::Context::run::he29ff9d6903bdd27
20: 0x7f96c7a9f5c7 - tokio::runtime::context::scoped::Scoped<T>::set::hb20639a6e5eb1e42
21: 0x7f96c7aaabde - tokio::runtime::context::runtime::enter_runtime::ha3a5570bf838abe0
22: 0x7f96c7a9550c - tokio::runtime::scheduler::multi_thread::worker::run::h0c398294f5610ce4
23: 0x7f96c7aa69a7 - <tokio::runtime::blocking::task::BlockingTask<T> as core::future::future::Future>::poll::h257fcbc5f6b9411c
24: 0x7f96c7aac2ee - tokio::runtime::task::core::Core<T,S>::poll::h0715b4ad8d9db3ab
25: 0x7f96c7a90ec2 - tokio::runtime::task::harness::Harness<T,S>::poll::hdb09ed4c2bb27bf3
26: 0x7f96c7aa5f29 - tokio::runtime::blocking::pool::Inner::run::h4141c0353f3719ec
27: 0x7f96c7aab1df - std::sys::backtrace::__rust_begin_short_backtrace::hafe2843e914ef1d0
28: 0x7f96c7aa25e2 - core::ops::function::FnOnce::call_once{{vtable.shim}}::hd6b39531c3c0c880
29: 0x7f96c7bab20b - std::sys::pal::unix::thread::Thread::new::thread_start::he74bac229ff12ca4
30: 0x7f9885ea339d - <unknown>
31: 0x7f9885f2849c - <unknown>
32: 0x0 - <unknown>
---------------------------------------------------------------------------
RustPanic Traceback (most recent call last)
Cell In[13], line 1
----> 1 res = await ezkl.get_srs()
RustPanic: rust future panicked: unknown error
Hey all thanks for your updates :) we'll have a patch for icicle coming through soon
I tested with new version 13.0.1 and it worked. Thanks for the support.
To reproduce the error, I downloaded the ezkl_demo.ipynb in the notebook example of the repository https://github.com/zkonduit/ezkl/blob/main/examples/notebooks/ezkl_demo.ipynb, then add three lines at the very beginning of the notebook:
Here is my system info
I would say I installed the driver. Here is the output of nvidia smi
When running the notebook with 3 lines above, it shows the following error at the setup step