-
Notifications
You must be signed in to change notification settings - Fork 29
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
InferSharp 1.41 Crashes Visual Studio Pro 2022 17.4.4 #209
Comments
It looks like WSL is enabled on your machine, but somehow it still claims that To answer your second question - After you click yes on the dialog, the extension is trying to download the Infer# WSL distro (assuming you have WSL enabled) and configures everything necessary to run Infer#. |
Okay, I have:
Note: from the Windows CMD, wget is not recognized, only from the Ubuntu prompt. Now what? |
The only thing that the extension should be trying to do in the setup phase is install and set up the Infer# custom distro you see at the link. If you terminate the download, setup will not be able to proceed, as the extension relies on the custom distro. If this poses security issues, you can manually build Infer# from source and Infer from source -- the custom distro is for helping you circumvent this hassle and also control the release version. If it works with your scenario, you can also download/verify and manually install the distro at the link yourself. The extension will then be able to proceed with the analysis; it's been stuck on the download step because the download and installation is a prerequisite for the extension being able to run the analysis. |
If it's OK with the security issues, you can also try our Docker: https://github.com/microsoft/infersharp/blob/main/RUNNING_IN_DOCKER.md The dockerfile is here: https://github.com/microsoft/infersharp/blob/main/Dockerfile You can see all items being downloaded/libraries being installed as dependencies of the project there. Let me know what the limitations are and I can try to recommend the best approach to get this working for you |
I got this
working but not this
output
Now what? |
Where can I find the VSIX source code to the InferSharp extension so that I can debug it? |
I've looked at this issue #151 and created a new Console App (.net 4.8) at I even logon to the machine as a new test user, run through all the steps and it still crashes VS. |
This issue occurs when Infer# does not find compatible dll/pdb pairs. Can you please confirm that you have the output of a Debug build (meaning the dll/pdbs are both present in the input directory)? |
We don't have it out on the open web, but essentially it works like this:
The important stuff is here, where we invoke the actual infersharp translation (renders the C# binaries in a way that Infer can understand): Line 58 in 2a604a4
and then this line runs the infer analysis: Line 60 in 2a604a4
|
The VS extension isn't doing anything fancy; it's essentially a UI wrapper around WSL. To isolate the issue, can you try to run the analysis directly in the WSL container? Directions here: https://github.com/microsoft/infersharp/blob/main/RUNNING_INFERSHARP_ON_WINDOWS.md |
For my second larger test, No. I didn't copy the pdbs only the DLLs. Let me try that. This worked thanks. Will this not work for Exec then? I have read these https://github.com/microsoft/infersharp/blob/main/RUNNING_INFERSHARP_ON_WINDOWS.md instructions several times. But this line doesn't work for several reasons.
If I run this from a DOS command, DOS states it can't find If I add Is it possible that you are not running from a clean Windows 10 Pro machine? Perhaps you have something like |
We need debug information. Without it, we would still be able to identify bugs but would lack valuable information for users to locate them, like line numbers. You're right per the wget comment -- thank you, we will fix that shortly. The wget command should work in Windows PowerShell, not Windows Command Prompt. Please give that a try instead. |
I'm trying to use this tool on a N-Layered Framework. Which means I have several projects in my solutions. It doesn't matter; it still crashed VS. :( |
Did WSL work with you after downloading/installing the Infer# custom distro? The path you provide should be the root directory of the projects you want to scan. Infer# then scans through the tree rooted at that path for all DLL/PDB pairs and creates the CFG from them. If you have several projects, just give it the path that contains all of them. |
I have VS Pro 2022 and have installed the infersharp 1.41 managed extension.
If I click
Tools > Infer# Analysis
, my mouse cursor shows a spinning arrow for a few seconds, VS is unresponsive for 5-10 seconds, and then Visual Studio crashes! Visual Studio then restarts with the following message:From a dos cmd prompt, I tried running this command:
from here step 1
However,
wget
return this error:Therefore, I used Chrome to download the file manually.
Then I ran the rest of the command line:
which also failed.
I have WSL2 installed, and working (I believe):
And still, InferSharp crashes Visual Studio.
I have also looked at issue #184, which didn't seem to help much.
What log files (and where would I find them) I can review and/or upload?
The text was updated successfully, but these errors were encountered: