GyulyVGC / sniffnet

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

SegFault when selecting Settings/Style #355

Closed joepolcari closed 1 year ago

joepolcari commented 1 year ago

Is there an existing issue for this?

What's the problem?

When selecting Style in Settings, version 1.2.2, the app crashes. Running with strace shows segfault.

How did you install the app?

downloaded one of the provided packages

Operating System

Linux

Additional context

running on Linux Mint 21.2. Installed Rust using synaptic then sudo apt install libpcap-dev libfontconfig libfontconfig1-dev libasound2-dev then downloaded Sniffnet_LinuxDEB_i386.deb from your github page and sudo apt installed it. All with no errors. Everything seems to work except the Style tab.

joepolcari commented 1 year ago

Also this may help rustc --version rustc 1.66.1 (90743e729 2023-01-10) (built from a source tarball)

GyulyVGC commented 1 year ago

I think it's due to the color gradients contained in that page.

The default renderer used (wgpu) sometimes has problems; you can try downloading the app from there: https://github.com/GyulyVGC/sniffnet/suites/14909529200/artifacts/849640693.

This is an alternative version of Sniffnet that uses a different graphical renderer (tiny-skia). It should fix this issue.

GyulyVGC commented 1 year ago

Closing the issue. I was able to reproduce the issue on an older VM based on Linux. I confirm that the problem is due to color gradients and can be solved using the tiny-skia renderer.

@joepolcari don't hesitate to reopen the issue if you still have doubts.

seppzer0 commented 11 months ago

@GyulyVGC , hi!

The issue reproduces for me as well. I do run a Linux system in a VM, and when opening the "Style" section the app crashes.

More data on my side:

The link to an alternative version of Sniffnet seems expired.

Is there maybe a setting I could switch in the Hypervisor/OS I'm using or will there be a fix for the Sniffnet itself in relation to this?

GyulyVGC commented 11 months ago

Hi @seppzer0

Try to set an environment variable ICED_BACKEND=tiny-skia. This should automatically run the app using the other graphical renderer. Otherwise, you can also download an updated version of Sniffnet using tiny-skia from the links in the README, troubleshooting section. I had to update the old links since they expire after 90 days.

seppzer0 commented 11 months ago

@GyulyVGC ,

Try to set an environment variable ICED_BACKEND=tiny-skia

It worked, thank you!

from the links in the README, troubleshooting section

Understood, will use this for reference in future.