symphorien / nix-du

Visualise which gc-roots to delete to free some space in your nix store
GNU Lesser General Public License v3.0
371 stars 5 forks source link

Panic 'Unknown store path type: {lsof}' #2

Closed lilyball closed 5 years ago

lilyball commented 5 years ago

nix-du panics on my computer

> nix run nixpkgs.nix-du -c nix-du
Reading dependency graph from store... removing stale temporary roots file '/nix/var/nix/temproots/67725'
thread 'main' panicked at 'Unknown store path type: {lsof}', src/depgraph.rs:182:13
stack backtrace:
   0: std::sys_common::backtrace::print
   1: std::panicking::default_hook::{{closure}}
   2: std::panicking::default_hook
   3: std::panicking::rust_panic_with_hook
   4: std::panicking::continue_panic_fmt
   5: std::panicking::begin_panic_fmt
   6: register_node
   7: _ZNSt3__110__function6__funcIZ13populateGraphE3$_0NS_9allocatorIS2_EEFvvEEclEv
   8: _ZN3nix16handleExceptionsERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEENS0_8functionIFvvEEE
   9: populateGraph
  10: nix_du::depgraph::DepInfos::read_from_store
  11: nix_du::main

symphorien commented 5 years ago

Oops, I forgot to push to another branch. If the fix does not work, feel free to reopen.

lilyball commented 5 years ago

Latest master no longer panics. I get a bunch of test failures (filed as https://github.com/symphorien/nix-du/issues/3) but they seem to be unrelated to this panic issue.