GyulyVGC/sniffnet

The program shows a white screen and crashes upon opening

swola opened this issue ยท 6 comments

swola commented

Is there an existing issue for this?

  • I have searched the existing issues.

What's the problem?

The program shows a white screen and crashes upon opening
I have installed npcap and configured the npcap SDK environment
I try to set the environment variable ICED_BACKEND=tiny-skia but it still crashes.
use the sniffnet Windows_64-bit.msi v1.3.1

93cfdfd3b77dd52911a93778957f571

no log output
b265a2456cea9f196a1f6969ecb0504

How did you install the app?

downloaded one of the provided packages

Operating System

Windows

Additional context

Intel(R) Core(TM) i7-9700 CPU @ 3.00GHz
Windows 10 21H2 19044.1826

I'm sorry to see that also setting the ICED_BACKEND isn't helping ๐Ÿ˜ž
You don't see any output because of #578, but actually it'd be interesting to see some error trace in this case...

Hey @swola I just built a new version of the app for you.

Here you are: Sniffnet_Windows_64-bit.msi.zip

It is built against commit 0c67e7e on the windows-debug branch, and using this one you should be able to see some logs in your terminal so that hopefully we can understand and fix the issue.

swola commented

Thank you
10aa88b6b4a20fc35953a78680ba093

It looks like libpcap returned invalid UTF-8 when list device or something wrong in CStr::from_ptr
image

I try to use pcap:Device in rust but failed,maybe it neet to install visual studio (I don't know how to use Rust)
4255779c50e9347b33397d93d7f7c67

Mm, it seems that your Npcap installation still have some problems.

Are you sure you installed Npcap in WinPcap compatible mode as described in the guide?
However, the Npcap SDK and visual studio are only required for the build, but you don't need them to run the .exe app.
Only Npcap is required.

Another thing you can do to solve the UTF-8 error is to check the box "Beta : use unicode utf8 format" in windows regional options, as described in #120.

swola commented

Thank for you help it works by checking the box "Beta : use unicode utf8 format" in windows regional options
31ef39df354c63491b783bc8e023f30

Awesome ๐ŸŽ‰
Remember that now you can remove the ICED_BACKEND environment variable, because the default renderer will probably work better than tiny-skia.