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

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

Open
Manu8586Fr opened this issue Jun 7, 2023 · 16 comments
Open
Labels
bug Something isn't working Windows Something related to Windows operating system

Comments

@Manu8586Fr
Copy link

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

@GyulyVGC GyulyVGC added the Windows Something related to Windows operating system label Jun 7, 2023
@GyulyVGC
Copy link
Owner

GyulyVGC commented Jun 7, 2023

Hi @Manu8586Fr did you install the required dependencies?

@Manu8586Fr
Copy link
Author

Manu8586Fr commented Jun 7, 2023

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 😉

@GyulyVGC
Copy link
Owner

GyulyVGC commented Jun 7, 2023

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

GyulyVGC commented Jun 7, 2023

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

@Manu8586Fr
Copy link
Author

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

@GyulyVGC
Copy link
Owner

GyulyVGC commented Jun 7, 2023

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

@Manu8586Fr
Copy link
Author

Capture

@4r7if3x
Copy link
Contributor

4r7if3x commented Jun 8, 2023

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

@GyulyVGC
Copy link
Owner

GyulyVGC commented Jun 8, 2023

Here you are:

Sniffnet_Windows_64-bit.msi.zip

Let us know if it solves the original problem.

@Manu8586Fr
Copy link
Author

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

@4r7if3x
Copy link
Contributor

4r7if3x commented Jun 8, 2023

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

@GyulyVGC GyulyVGC added the bug Something isn't working label Jun 8, 2023
@Manu8586Fr
Copy link
Author

Manu8586Fr commented Jun 8, 2023

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?

@4r7if3x
Copy link
Contributor

4r7if3x commented Jun 8, 2023

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

@Manu8586Fr
Copy link
Author

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

@4r7if3x
Copy link
Contributor

4r7if3x commented Jun 9, 2023

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.

@Manu8586Fr
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Windows Something related to Windows operating system
Projects
None yet
Development

No branches or pull requests

3 participants