Chleba / netscanner

Terminal Network scanner & diagnostic tool with modern TUI
MIT License
869 stars 20 forks source link

Panic #9

Closed Rattlyy closed 8 months ago

Rattlyy commented 8 months ago
"name" = "netscanner"
"operating_system" = "Linux 22.04 (jammy) [64-bit]"
"crate_version" = "0.4.0"
"explanation" = """
Panic occurred in file '/home/---/.cargo/registry/src/index.crates.io-6f17d22bba15001f/netscanner-0.4.0/src/components/interfaces.rs' at line 103
"""
"cause" = "called `Option::unwrap()` on a `None` value"
"method" = "Panic"
"backtrace" = """

   0: 0x5566936b6233 - core::panicking::panic::hf516d800ede7db8c
                at /build/rustc-kAv1jW/rustc-1.75.0+dfsg0ubuntu1~bpo0/library/core/src/panicking.rs:127
   1: 0x5566936ce426 - <netscanner::components::interfaces::Interfaces as netscanner::components::Component>::draw::h2195c5e186d37deb
   2: 0x5566936f60f0 - ratatui::terminal::terminal::Terminal<B>::draw::h13420ef1d6bede5a
   3: 0x5566936cf3ee - netscanner::main::{{closure}}::hcfe4222b34aa50b8
   4: 0x5566936c8ddd - tokio::runtime::park::CachedParkThread::block_on::h1cdd8ead0928b014
   5: 0x55669372064a - tokio::runtime::context::runtime::enter_runtime::h578e81ee3fdac36e
   6: 0x556693728fee - tokio::runtime::runtime::Runtime::block_on::hb0a163feb391245a
   7: 0x556693724eda - netscanner::main::h822020d439f5d631
   8: 0x55669371ab43 - std::sys_common::backtrace::__rust_begin_short_backtrace::h5cb65313e663ea01
   9: 0x5566936fde6d - std::rt::lang_start::{{closure}}::h725cfbf0a3128718
  10: 0x556693a6d3e4 - core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once::h9504c37abfb6f513
                at /build/rustc-kAv1jW/rustc-1.75.0+dfsg0ubuntu1~bpo0/library/core/src/ops/function.rs:284
                 - std::panicking::try::do_call::h4e8ae0d3fdaef5a1
                at /build/rustc-kAv1jW/rustc-1.75.0+dfsg0ubuntu1~bpo0/library/std/src/panicking.rs:552
                 - std::panicking::try::hd686c4fbf6e25a1e
                at /build/rustc-kAv1jW/rustc-1.75.0+dfsg0ubuntu1~bpo0/library/std/src/panicking.rs:516
                 - std::panic::catch_unwind::h6357f6a92a957bb2
                at /build/rustc-kAv1jW/rustc-1.75.0+dfsg0ubuntu1~bpo0/library/std/src/panic.rs:142
                 - std::rt::lang_start_internal::{{closure}}::h6e901a66b8cf246f
                at /build/rustc-kAv1jW/rustc-1.75.0+dfsg0ubuntu1~bpo0/library/std/src/rt.rs:148
                 - std::panicking::try::do_call::h7474622977779c90
                at /build/rustc-kAv1jW/rustc-1.75.0+dfsg0ubuntu1~bpo0/library/std/src/panicking.rs:552
                 - std::panicking::try::h88d686af4e2ea353
                at /build/rustc-kAv1jW/rustc-1.75.0+dfsg0ubuntu1~bpo0/library/std/src/panicking.rs:516
  11: 0x556693a54e3b - std::panic::catch_unwind::h602261075d2dc6e5
                at /build/rustc-kAv1jW/rustc-1.75.0+dfsg0ubuntu1~bpo0/library/std/src/panic.rs:142
                 - std::rt::lang_start_internal::hea207582130b429d
                at /build/rustc-kAv1jW/rustc-1.75.0+dfsg0ubuntu1~bpo0/library/std/src/rt.rs:148
  12: 0x5566936fde5e - std::rt::lang_start::h7456e3b4507ff260
  13: 0x7f38e2c29d90 - __libc_start_call_main
                at ./csu/../sysdeps/nptl/libc_start_call_main.h:58
  14: 0x7f38e2c29e40 - __libc_start_main_impl
                at ./csu/../csu/libc-start.c:392
  15: 0x5566936b6ac5 - _start
  16:        0x0 - <unresolved>"""
alonsoir commented 8 months ago

I have to run this as root in order to get up and running. Little snitch also advised me about the hash app. It says is not the same. I have installed it using cargo install. I am checking it now in search of malware.

Chleba commented 8 months ago

Hi, Sorry about that. This has been already fixed yesterday and will be in the next version. Thank you for your patience.

Rattlyy commented 8 months ago

Hi, Sorry about that. This has been already fixed yesterday and will be in the next version. Thank you for your patience.

Cloned the repo, built it and got the same error.

Chleba commented 8 months ago

Hmm, that's interesting. Thank You for letting me know. I will take a look at it later today and give you an echo after I find something.

Chleba commented 8 months ago

@Rattlyy Can I ask you if you have iw installed? netscanner unfortunately using third-party apps for getting WiFi data. In the case of Linux - iw and for MacOS airport. So please try to install iw to fix your issue until I make some better error handling. And If I may ask what app are you using for WiFi control?

Rattlyy commented 8 months ago

@Rattlyy Can I ask you if you have iw installed? netscanner unfortunately using third-party apps for getting WiFi data. In the case of Linux - iw and for MacOS airport. So please try to install iw to fix your issue until I make some better error handling. And If I may ask what app are you using for WiFi control?

I am on KDE neon. After installing iw I get the same issue. If it helps, I'm using for ethernet an usb to rj45 dongle with a driver (r8152)

Chleba commented 8 months ago

fixed here: https://github.com/Chleba/netscanner/commit/9fd28fecfbd1fc7358a6fa6fb2776f9e85861101