'tokio-runtime-worker' panicked at 'Invalid Data'
Opened this issue · 8 comments
[davidak@gaming:~]$ RUST_BACKTRACE=full nix run github:vlinkz/nixos-conf-editor
thread 'tokio-runtime-worker' panicked at 'Invalid Data', src/parse/cache.rs:96:21
stack backtrace:
0: 0x560cbfbb4e9c - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hf9a1e5015c7372de
1: 0x560cbfbe838e - core::fmt::write::h9fe85dc123605e26
2: 0x560cbfbc3838 - std::io::Write::write_fmt::hb015af194a783782
3: 0x560cbfbcb936 - std::panicking::default_hook::{{closure}}::h5be0c3f8bc5f82d3
4: 0x560cbfbcb5cc - std::panicking::default_hook::h26c625e8da3d12e5
5: 0x560cbfbcbf79 - std::panicking::rust_panic_with_hook::h9e5373efea59497b
6: 0x560cbfbb5af7 - std::panicking::begin_panic_handler::{{closure}}::h6675d1d897d2268b
7: 0x560cbfbb4fc4 - std::sys_common::backtrace::__rust_end_short_backtrace::h2eebb466dcccf8e7
8: 0x560cbfbcba72 - rust_begin_unwind
9: 0x560cbfa42823 - core::panicking::panic_fmt::h388cf0442c96c658
10: 0x560cbfaa0668 - core::panicking::panic_display::h61c4d900c29807b1
11: 0x560cbfa9d608 - nixos_conf_editor::parse::cache::setupcache::h4609d58d2cc23251
12: 0x560cbfa9bf57 - nixos_conf_editor::parse::cache::checkcache::h20d165e451c4fabb
13: 0x560cbfaa4235 - <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll::hcf8af2b3e258255f
14: 0x560cbfad0a68 - tokio::runtime::task::harness::poll_future::h4d33085fbd2d268e
15: 0x560cbfaccb81 - tokio::runtime::task::harness::Harness<T,S>::poll::h88f018d0b34dc369
16: 0x560cbfb969b0 - std::thread::local::LocalKey<T>::with::h6aad474042249cd8
17: 0x560cbfb926ff - tokio::runtime::thread_pool::worker::Context::run_task::h0205d63632eef786
18: 0x560cbfb919ae - tokio::runtime::thread_pool::worker::Context::run::h4d1ffb63402bc56c
19: 0x560cbfb9966b - tokio::macros::scoped_tls::ScopedKey<T>::set::h948f9a7e6e4c22ef
20: 0x560cbfb9140c - tokio::runtime::thread_pool::worker::run::h2ad3722576d6694e
21: 0x560cbfb95439 - tokio::loom::std::unsafe_cell::UnsafeCell<T>::with_mut::h0c0a6e6e04726100
22: 0x560cbfb9555b - tokio::runtime::task::harness::Harness<T,S>::poll::h01f71bc729e6cdcb
23: 0x560cbfb8a298 - tokio::runtime::blocking::pool::Inner::run::h4b76ae400a65d8f5
24: 0x560cbfb9a25c - std::sys_common::backtrace::__rust_begin_short_backtrace::h8c1e74afd8363ea7
25: 0x560cbfb8d3bf - core::ops::function::FnOnce::call_once{{vtable.shim}}::h50a132585e9d20ea
26: 0x560cbfbc8e23 - std::sys::unix::thread::Thread::new::thread_start::h17b4aae352c54ef4
27: 0x7f8bae31fff2 - start_thread
28: 0x7f8bae3a2bfc - clone3
29: 0x0 - <unknown>
My structure is that /etc/nixos/configuration.nix
is a symlink to /root/nixos/machines/gaming/configuration.nix
which is https://codeberg.org/davidak/nixos-config/src/branch/master/machines/gaming/configuration.nix (with few uncommitted updates)
Seems to be an issue with downloading options.json
. I updated that part of the code to handle errors better, so it might work now. Otherwise what's the output when you run nix-instantiate '<nixpkgs/lib>' -A version --eval --json
?
Hm, try rm -r ~/.config/nixos-conf-editor ~/.cache/nixos-conf-editor
Oh shoot, think I left a typo in the code when testing, I'll fix it in a min
Ok, should be good now!
Weird, I tried your config on my side and it worked fine, the only thing I could suggest would be to delete cache and config and try again, but I'm working on adding a verbose option so I can get better logs
Same error with deleted cache and config.