Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

thread 'main' panicked at 'called Result::unwrap() - when "Open full Report" button is pressed #23

Closed
vosskaem opened this issue Nov 24, 2022 · 4 comments
Labels
bug Something isn't working Linux Something related to Linux operating system

Comments

@vosskaem
Copy link

vosskaem commented Nov 24, 2022

Describe the bug
After pressing the button "Open full Report" the program is crashing.

To Reproduce

  1. Install in your user with: cargo install sniffnet
  2. sudo sniffnet
  3. press Run
  4. press Open full Report
  5. see error

Expected behavior
See some advanced report

Program start
This is before error:
sudo sniffnet [sudo] Passwort für myuser: error: XDG_RUNTIME_DIR is invalid or not set in the environment.

Error
thread 'main' panicked at 'called Result::unwrap()on anErrvalue: Os { code: 2, kind: NotFound, message: "No such file or directory" }', /home/myuser/.cargo/registry/src/github.com-1ecc6299db9ec823/sniffnet-1.0.0/src/gui/app.rs:102:22 note: run withRUST_BACKTRACE=1 environment variable to display a backtrace

thread 'main' panicked at 'called Result::unwrap()on anErrvalue: Os { code: 2, kind: NotFound, message: "No such file or directory" }', /home/myuser/.cargo/registry/src/github.com-1ecc6299db9ec823/sniffnet-1.0.0/src/gui/app.rs:102:22 stack backtrace: 0: rust_begin_unwind at /rustc/a55dd71d5fb0ec5a6a3a9e8c27b2127ba491ce52/library/std/src/panicking.rs:584:5 1: core::panicking::panic_fmt at /rustc/a55dd71d5fb0ec5a6a3a9e8c27b2127ba491ce52/library/core/src/panicking.rs:142:14 2: core::result::unwrap_failed at /rustc/a55dd71d5fb0ec5a6a3a9e8c27b2127ba491ce52/library/core/src/result.rs:1814:5 3: iced_winit::application::update 4: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll 5: iced_winit::application::run::{{closure}} 6: winit::platform_impl::platform::EventLoop<T>::run_return 7: iced_winit::application::run 8: sniffnet::main note: Some details are omitted, run withRUST_BACKTRACE=full for a verbose backtrace.

Desktop:

  • OS: EndeavourOS + Gnome
@GyulyVGC
Copy link
Owner

I think it could be related to issue #13.
Can you try opening the file manually? The app creates a sniffnet_report folder in the same directory where it has been launched.

@vosskaem
Copy link
Author

The file is there. Looks ok for me.

@vosskaem
Copy link
Author

I can confirm that it works after
sudo ln -s /usr/bin/xdg-open /usr/bin/open

@GyulyVGC
Copy link
Owner

GyulyVGC commented Nov 24, 2022

Then the problem is the same as the issue linked above: I already updated the code on GitHub with xdg-open over open but still I have not published an updated release for that.

@GyulyVGC GyulyVGC added the bug Something isn't working label Mar 27, 2023
@GyulyVGC GyulyVGC added the Linux Something related to Linux operating system label May 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Linux Something related to Linux operating system
Projects
None yet
Development

No branches or pull requests

2 participants