sniffnet icon indicating copy to clipboard operation
sniffnet copied to clipboard

error: Invalid record (Producer: 'LLVM3.8.0' Reader: 'LLVM 3.8.0')

Open Manu8586Fr opened this issue 2 years ago β€’ 16 comments

Hello, I have installed Sniffnet with the msi file because I can't install it with rust (don't know why it fails) and when I try to lunch the app in terminal, I have the Sniffnet logo and the error message: error: Invalid record (Producer: 'LLVM3.8.0' Reader: 'LLVM 3.8.0') So I've installed LLVM and set the path in the environment variable but still get this message.

I'm on Windows 10

Thanks

Manu8586Fr avatar Jun 07 '23 03:06 Manu8586Fr

Hi @Manu8586Fr did you install the required dependencies?

GyulyVGC avatar Jun 07 '23 07:06 GyulyVGC

Yes I did. I tried to retry from the beginning this morning: and reinstall with cargo sniffnet without any problem and no error message. But there's something weird, if I try to start sniffnet from the .cargo folder, nothing happens. And if I go to the sniffnet folder (copy of the GitHub) and do the cargo run sniffnet, I have the same problem with LLVM. 😒 I'm not sure to do it well because it's the first time I use GitHub, Rust and all the stuff. Don't even know I my English is good enough to be understood πŸ˜‰

Manu8586Fr avatar Jun 07 '23 11:06 Manu8586Fr

So, you did cargo install sniffnet with no errors. And if you just type sniffnet in your terminal, error: Invalid record (Producer: 'LLVM3.8.0' Reader: 'LLVM 3.8.0') this error is raised, right?

And you also tried cloning the repository and use cargo run...

You did it right, but this error was never raised before. I'll try to investigate

GyulyVGC avatar Jun 07 '23 12:06 GyulyVGC

Can you include the full error message (picture or copy the error log)

GyulyVGC avatar Jun 07 '23 12:06 GyulyVGC

If I just type sniffnet in my terminal nothing happens but I have the error when I type cargo run sniffnet from the repository clone

Manu8586Fr avatar Jun 07 '23 12:06 Manu8586Fr

Could you post the output of cargo b and of cargo r from your repo clone?

GyulyVGC avatar Jun 07 '23 12:06 GyulyVGC

Capture

Manu8586Fr avatar Jun 07 '23 12:06 Manu8586Fr

@Manu8586Fr The run sub-command is used for a test build & run of a rust project, but when you install binaries using the install command, you should call them directly by the name and make sure the %USERPROFILE%\.cargo\bin path is added to the Windows environment variables. Besides, in the screenshot, i see that an argument (sniffnet) is sent to sniffnet.exe which looks odd...

Regarding the main issue, please uninstall/remove everything and re-install the app using the latest MSI package that we put at staging yesterday. @GyulyVGC probably can give you a link soon...

4r7if3x avatar Jun 08 '23 09:06 4r7if3x

Here you are:

Sniffnet_Windows_64-bit.msi.zip

Let us know if it solves the original problem.

GyulyVGC avatar Jun 08 '23 09:06 GyulyVGC

I've uninstalled everything, restart my computeur, re-installed npcap 1.75 and rust x64 then re-installed sniffnet with the last msi package. In the sniffnet folder there is only 2 files (licence.txt & sniffnet.exe) and nothing happens when I double-click on the exe file. Hope the environnement variable is ok (I've replaced the C:\users\emman.cargo\bin by %USERPROFILE%.cargo\bin) Capture

Manu8586Fr avatar Jun 08 '23 15:06 Manu8586Fr

@Manu8586Fr Well, you didn't have to install Rust or Npcap SDK unless you're a developer. What you need is the Npcap DLL which would be installed by Npcap Installer. I'm also curious to know whether MSVC Runtime is installed on your system.

4r7if3x avatar Jun 08 '23 16:06 4r7if3x

rust and Npcap SDK are removed and MSVC Runtime is installed (x86 & x64) but still the same😰 Can you tell me where can I find the Npcap DLL because There is no DLL file in the Npcap folder?

Manu8586Fr avatar Jun 08 '23 17:06 Manu8586Fr

@Manu8586Fr DLLs are usually placed under %SystemRoot%\System32 and/or %SystemRoot%\SysWOW64 directories. This one is using the legacy name though: Npcap\wpcap.dll.

Anyways, you must use the installer since there are more required resources that would be installed on the system.

4r7if3x avatar Jun 08 '23 17:06 4r7if3x

Just found the DLLs under sysWoW64. I've reinstalled with the last MSI package but doesn't work better.

Manu8586Fr avatar Jun 09 '23 05:06 Manu8586Fr

I've reinstalled with the last MSI package but doesn't work better.

I meant the Npcap installer, are we on the same page? If so, please give us some more time to investigate this further.

4r7if3x avatar Jun 09 '23 07:06 4r7if3x

Yes, Npcap and Sniffnet are re-installed, sorry my English is not very good 😁 I'll wait as long as it takes. Thanks

Manu8586Fr avatar Jun 09 '23 21:06 Manu8586Fr