Skip to content

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

@stmax82

Description

@stmax82

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 😄

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-VSVS support for F# not covered elsewhereBugImpact-High(Internal MS Team use only) Describes an issue with extreme impact on existing code.

    Type

    No type

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions