question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Visual Studio crashes in FSharp.Compiler.Service.ni.dll

See original GitHub issue

VS 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

  1. git clone https://github.com/stmax82/vs-crash.git
  2. Open Kaputt.sln in VS 2022
  3. 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:closed
  • Created a year ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
stmax82commented, May 20, 2022

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

0reactions
vzarytovskiicommented, Oct 7, 2022

Can’t repro it in 17.4/17.5 anymore, closing

Read more comments on GitHub >

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

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found