Visual Studio crashes in FSharp.Compiler.Service.ni.dll
See original GitHub issueVS 20222 crashes somewhere within FSharp.Compiler.Service.ni.dll when you open a file containing an async function with too many lines of code.
Repro steps
- git clone https://github.com/stmax82/vs-crash.git
- Open Kaputt.sln in VS 2022
- Open File Bang.fs => VS crashes after a few seconds
We were able to reproduce this on multiple systems.
Windows Event Log shows the following:
Faulting application name: devenv.exe, version: 17.0.31903.59, time stamp: 0x6182abc9
Faulting module name: FSharp.Compiler.Service.ni.dll, version: 41.0.121.52202, time stamp: 0xef6b0e45
Exception code: 0xc00000fd
Fault offset: 0x00000000023ca902
Faulting process id: 0x4d98
Faulting application start time: 0x01d865e23fcb2532
Faulting application path: C:\Program Files\Microsoft Visual Studio\2022\Professional\Common7\IDE\devenv.exe
Faulting module path: C:\WINDOWS\assembly\NativeImages_v4.0.30319_64\FSharp.Comp0c9a8de5#\e5953749aefb0cb791a2c38865cc4551\FSharp.Compiler.Service.ni.dll
Report Id: eab32086-15a2-438e-bc7d-3e59c8e3ef91
Faulting package full name:
Faulting package-relative application ID:
Expected behavior
VS doesn’t crash.
Actual behavior
VS crashes.
Known workarounds
Write shorter tests 😄
Issue Analytics
- State:
- Created a year ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
VS2022 crashes when using "Find all references" in F# ...
When I try to use “Find all references” in our F# project, the devenv.exe crashes after a while with reason “A new guard...
Read more >Choose Toolbox Items Crashes VS 2019 16.3.10
10, click toolbox tab, right click and choose Items. After a few moments VS crashes. Visual Studiowindows 10.0visual studio 2019 version 16.3.
Read more >F# on Visual Studio 2022 very slow
Sometimes I have a pop up Dialog about waiting to complete an editor process or a compile process. When devenev.exe is consuming CPU...
Read more >Symbol / PDB files in the Visual Studio debugger
Public Microsoft Symbol Servers: To debug a crash that occurs during a call to a system DLL or to a third-party library, you...
Read more >Visual Studio 2022 Release Notes
Get the latest features, bug fixes, and support for Visual Studio 2022 Preview. ... Compiler crashes for analysis of code including specialization of...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@vzarytovskii looks like I’ve been on an older version of VS (event log says 17.0.31903.59). I upgraded to 17.2.1 and the problem seems to be gone / cannot reproduce it any more.
Case closed?
Can’t repro it in 17.4/17.5 anymore, closing