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

The program shows a white screen and crashes upon opening #583

Closed
1 task done
swola opened this issue Aug 9, 2024 · 6 comments
Closed
1 task done

The program shows a white screen and crashes upon opening #583

swola opened this issue Aug 9, 2024 · 6 comments
Labels
bug Something isn't working duplicate This issue or pull request already exists Windows Something related to Windows operating system

Comments

@swola
Copy link

swola commented Aug 9, 2024

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

@GyulyVGC
Copy link
Owner

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...

@GyulyVGC GyulyVGC added bug Something isn't working Windows Something related to Windows operating system labels Aug 13, 2024
@GyulyVGC
Copy link
Owner

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
Copy link
Author

swola commented Aug 14, 2024

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

@GyulyVGC
Copy link
Owner

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
Copy link
Author

swola commented Aug 16, 2024

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

@GyulyVGC
Copy link
Owner

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

@GyulyVGC GyulyVGC added the duplicate This issue or pull request already exists label Aug 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists Windows Something related to Windows operating system
Projects
None yet
Development

No branches or pull requests

2 participants