GyulyVGC / sniffnet

Comfortably monitor your Internet traffic 🕵️‍♂️
https://sniffnet.net
Apache License 2.0
18.64k stars 558 forks source link

crash app on arch linux #463

Closed pooh2pooh closed 7 months ago

pooh2pooh commented 9 months ago

Is there an existing issue for this?

What's the problem?

application closes instantly with this log in the terminal:

➜ sniffnet                        

  /---------------------------------------------------------\
 |     _____           _    __    __                  _      |
 |    / ____|         (_)  / _|  / _|                | |     |
 |   | (___    _ __    _  | |_  | |_   _ __     ___  | |_    |
 |    \___ \  | '_ \  | | |  _| |  _| | '_ \   / _ \ | __|   |
 |    ____) | | | | | | | | |   | |   | | | | |  __/ | |_    |
 |   |_____/  |_| |_| |_| |_|   |_|   |_| |_|  \___|  \__|   |
 |                                                           |
 |                   ___________                             |
 |                  /___________\                            |
 |                 | ___________ |                           |
 |                 | |         | |                           |
 |                 | | v1.2.2  | |                           |
 |                 | |_________| |________________________   |
 |                 \_____________/   by Giuliano Bellini  )  |
 |                 / ''''''''''' \                       /   |
 |                / ::::::::::::: \                  =D-'    |
 |               (_________________)                         |
  \_________________________________________________________/
interface 'wl_surface' has no event 2
warning: queue 0x7f1074000ca0 destroyed while proxies still attached:
  zwp_primary_selection_offer_v1@4278190081 still attached
  wl_data_offer@4278190080 still attached
  zwp_primary_selection_device_v1@50 still attached
  zwp_primary_selection_device_manager_v1@46 still attached
  wl_data_device@49 still attached
  wl_seat@48 still attached
  wl_data_device_manager@47 still attached
  wl_registry@45 still attached
warning: queue 0x5610a632c940 destroyed while proxies still attached:
  xdg_wm_base@23 still attached
  wl_output@15 still attached
  wl_seat@14 still attached
  xdg_activation_v1@13 still attached
  wp_fractional_scale_manager_v1@12 still attached
  wp_viewporter@11 still attached
  zwp_text_input_manager_v3@10 still attached
  zwp_pointer_constraints_v1@9 still attached
  zwp_relative_pointer_manager_v1@8 still attached
  zxdg_decoration_manager_v1@7 still attached
  wl_subcompositor@6 still attached
  wl_compositor@5 still attached
  wl_shm@4 still attached
  wl_registry@2 still attached
    %                              

How did you install the app?

downloaded one of the provided packages

Operating System

Linux

Additional context

No response

GyulyVGC commented 9 months ago

Hi @pooh2pooh do you confirm you installed the app with pacman -S sniffnet?

Anyway, I suspect that this is related to the GUI library used by Sniffnet. Try setting an environment variable ICED_BACKEND=tiny-skia and try again; this tells the app to use an alternative graphical renderer (tiny-skia instead of wgpu).

pooh2pooh commented 9 months ago

ICED_BACKEND=tiny-skia

yes, pacman -S sniffnet

anyway:

➜ ICED_BACKEND=tiny-skia sniffnet

  /---------------------------------------------------------\
 |     _____           _    __    __                  _      |
 |    / ____|         (_)  / _|  / _|                | |     |
 |   | (___    _ __    _  | |_  | |_   _ __     ___  | |_    |
 |    \___ \  | '_ \  | | |  _| |  _| | '_ \   / _ \ | __|   |
 |    ____) | | | | | | | | |   | |   | | | | |  __/ | |_    |
 |   |_____/  |_| |_| |_| |_|   |_|   |_| |_|  \___|  \__|   |
 |                                                           |
 |                   ___________                             |
 |                  /___________\                            |
 |                 | ___________ |                           |
 |                 | |         | |                           |
 |                 | | v1.2.2  | |                           |
 |                 | |_________| |________________________   |
 |                 \_____________/   by Giuliano Bellini  )  |
 |                 / ''''''''''' \                       /   |
 |                / ::::::::::::: \                  =D-'    |
 |               (_________________)                         |
  \_________________________________________________________/
interface 'wl_surface' has no event 2
warning: queue 0x7f7440000ca0 destroyed while proxies still attached:
  zwp_primary_selection_offer_v1@4278190081 still attached
  wl_data_offer@4278190080 still attached
  zwp_primary_selection_device_v1@37 still attached
  zwp_primary_selection_device_manager_v1@33 still attached
  wl_data_device@36 still attached
  wl_seat@35 still attached
  wl_data_device_manager@34 still attached
  wl_registry@32 still attached
warning: queue 0x55d3fffa3940 destroyed while proxies still attached:
  xdg_wm_base@23 still attached
  wl_output@15 still attached
  wl_seat@14 still attached
  xdg_activation_v1@13 still attached
  wp_fractional_scale_manager_v1@12 still attached
  wp_viewporter@11 still attached
  zwp_text_input_manager_v3@10 still attached
  zwp_pointer_constraints_v1@9 still attached
  zwp_relative_pointer_manager_v1@8 still attached
  zxdg_decoration_manager_v1@7 still attached
  wl_subcompositor@6 still attached
  wl_compositor@5 still attached
  wl_shm@4 still attached
  wl_registry@2 still attached
    %                           
GyulyVGC commented 9 months ago

After some investigation I've found out that this problem is probably due to version of winit older than 0.28.7 (source).

This means that for this problem to be solved it's necessary to wait until a new Sniffnet release using the most recent version of Iced will be published (this should happen in about one month or so).

Alternatively, you can build Sniffnet from the main branch with cargo (main depends on winit 0.28.7, while Sniffnet 1.2.2 depends on winit 0.28.6).

kohane27 commented 8 months ago

I have the exact same issue and I can confirmed that cargo install sniffnet solved it. Thank you! Have a good day! <3

GyulyVGC commented 8 months ago

Fantastic! Thank you @kohane27 for the confirmation 🎉

Given the circumstances, I'm adding this issue to the v1.3.0 milestone (it'll be considered fixed once the next Sniffnet version will be released).

Cthulu201 commented 7 months ago

I use Arch and I can't replicate this issue. Is there a coredumpctl file?