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

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

Closed
stmax82 opened this issue May 12, 2022 · 5 comments
Closed

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

stmax82 opened this issue May 12, 2022 · 5 comments
Labels
Area-VS VS support for F# not covered elsewhere Bug Impact-High (Internal MS Team use only) Describes an issue with extreme impact on existing code.
Milestone

Comments

@stmax82
Copy link
Contributor

stmax82 commented May 12, 2022

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 😄

@stmax82 stmax82 added the Bug label May 12, 2022
@vzarytovskii
Copy link
Member

@dsyme looking at repro https://github.com/stmax82/vs-crash/blob/main/Bang.fs#L5, it seems like it's related to #12420.

@vzarytovskii
Copy link
Member

@stmax82 which VS version are you using? Is it 17.2 or 17.3?

@stmax82
Copy link
Contributor Author

stmax82 commented 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?

@vzarytovskii
Copy link
Member

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

Thanks for the update. I will check what changed and close it.

@dsyme dsyme added Area-VS VS support for F# not covered elsewhere Impact-High (Internal MS Team use only) Describes an issue with extreme impact on existing code. labels May 23, 2022
@vzarytovskii vzarytovskii moved this to Not Planned in F# Compiler and Tooling Jun 17, 2022
@vzarytovskii vzarytovskii added this to the Backlog milestone Sep 21, 2022
@vzarytovskii
Copy link
Member

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

Repository owner moved this from Not Planned to Done in F# Compiler and Tooling Oct 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-VS VS support for F# not covered elsewhere Bug Impact-High (Internal MS Team use only) Describes an issue with extreme impact on existing code.
Projects
Archived in project
Development

No branches or pull requests

3 participants