Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
28873 Discussions

Visual Studio 2022 crash when opening C# project properties

fixro
Novice
5,269 Views

System environment:

- Windows 11 

Iulian_PanaitFecioru_0-1695195764829.png

- Visual Studio 2022

Iulian_PanaitFecioru_1-1695195822411.png

- Intel Fortran Compiler 2023.2 (oneAPI)

Iulian_PanaitFecioru_2-1695195945677.png

I have a Solution opened in Visual Studio 2022, that contains a intel Fortran project.

Iulian_PanaitFecioru_3-1695196060140.png

When trying to open project properties (C#),

Iulian_PanaitFecioru_5-1695196159300.png

the Visual Studio 2022 freezes (crahses), then it restarts itself.

Iulian_PanaitFecioru_4-1695196126398.png

Disabling Fortran IDE extension will solve the issue but will also disable support for the Fortran project. 

Iulian_PanaitFecioru_6-1695196332076.png

Some assistance, or a fix, would be appreciated!

PS: Attached the result of 
Microsoft VS/.NET Log Collection Tool - Visual Studio Setup
Download VS Log Collection Tool from Official Microsoft Download Center

1 Solution
Devorah_H_Intel
Moderator
4,748 Views

This issue has been fixed. The fix will be available in the next Intel oneAPI HPC toolkit 2024.0

Thank you for your report. 

 

View solution in original post

0 Kudos
17 Replies
fixro
Novice
5,245 Views

Added files generated by WER
Also there is a dump file at https://ln5.sync.com/dl/09b74c8f0/iqj5pmq2-bqzrjbrb-6tenmn2z-5rpvjmr7

Devorah_H_Intel
Moderator
5,215 Views

I don't see this issue with oneAPI 2023.2 and supported VS 2022 version 17.6.4 on Windows 10

Is this a new issue, did you start to experience it with VS 17.7?

Could you please provide a zip of the entire solution for testing ?

0 Kudos
fixro
Novice
5,200 Views

I don't know about 17.6.4, but it happened on Windows 10 also.

I've attached the sample solution that crash.
Thanks!

fixro
Novice
5,185 Views

Unfortunately 17.6.4 is not available anymore to download, but I've tried with 17.6.7 

Iulian_PanaitFecioru_0-1695286762880.png

And still the same issue.
I've attached also the dump 

0 Kudos
fixro
Novice
5,176 Views

Unhandled exception at 0x00007FFD850DD381 (clr.dll) in devenv.exe.13156.dmp: 0xC00000FD: Stack overflow (parameters: 0x0000000000000001, 0x00000027A8A18FE8).
[External Code]
> Microsoft.VisualStudio.CommonIDE.dll!Microsoft.VisualStudio.CommonIDE.Solutions.Solution.GetProperty(Microsoft.VisualStudio.CommonIDE.Solutions.Project pProject, int propid, out object pvar) Line 19399 C#
IFLangService.dll!Intel.Fortran.UnionDataBase.HierarchyListener.InternalScanHierarchy(uint itemId, bool firstScan) Unknown
IFLangService.dll!Intel.Fortran.UnionDataBase.HierarchyListener.InternalScanHierarchy(uint itemId, bool firstScan) Unknown
[The 1 frame(s) above this were repeated 6834 times]
IFLangService.dll!Intel.Fortran.UnionDataBase.HierarchyListener.InternalScanHierarchy(uint itemId, bool firstScan) Unknown
IFLangService.dll!Intel.Fortran.UnionDataBase.HierarchyListener.StartListening(bool doInitialScan, bool scanSystemModules) Unknown
IFLangService.dll!Intel.Fortran.UnionDataBase.UnionDB.RegisterHierarchy(Microsoft.VisualStudio.Shell.Interop.IVsHierarchy hierarchy) Unknown
IFLangService.dll!Intel.Fortran.UnionDataBase.UnionDB.OnBeforeDocumentWindowShow(uint docCookie, int fFirstShow, Microsoft.VisualStudio.Shell.Interop.IVsWindowFrame pFrame) Unknown
[External Code]
Microsoft.VisualStudio.Platform.WindowManagement.dll!Microsoft.VisualStudio.Platform.WindowManagement.Rdt.NotifyOnBeforeShow(uint cookie, bool firstShow, Microsoft.VisualStudio.Shell.Interop.IVsWindowFrame frame) Unknown
Microsoft.VisualStudio.Platform.WindowManagement.dll!Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.NotifyFrameShowing(uint cookie, bool firstShow) Unknown
Microsoft.VisualStudio.Platform.WindowManagement.dll!Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.ShowInternal(Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.ShowFlags showFlags) Unknown
Microsoft.VisualStudio.Platform.WindowManagement.dll!Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.Show.AnonymousMethod__553_0() Unknown
Microsoft.VisualStudio.Shell.Framework.dll!Microsoft.VisualStudio.ErrorHandler.CallWithCOMConvention(System.Func<int> method, bool reportError, bool setShellErrorInfo) Unknown
Microsoft.VisualStudio.Platform.WindowManagement.dll!Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.Show() Unknown
[External Code]
Microsoft.VisualStudio.AppDesigner.dll!Microsoft.VisualStudio.Editors.ApplicationDesigner.ApplicationDesignerView.InitView() Unknown
Microsoft.VisualStudio.AppDesigner.dll!Microsoft.VisualStudio.Editors.ApplicationDesigner.ApplicationDesignerWindowPane.PopulateView() Unknown
Microsoft.VisualStudio.AppDesigner.dll!Microsoft.VisualStudio.Editors.ApplicationDesigner.ApplicationDesignerWindowPane.ActivateLogicalView(ref System.Guid rguidLogicalView) Unknown
[External Code]
Microsoft.VisualStudio.Shell.UI.Internal.dll!Microsoft.VisualStudio.PlatformUI.VsCommand.Execute(object parameter) Unknown

0 Kudos
Ron_Green
Moderator
5,168 Views

I escalated this issue to the support team.

David_Billinghurst
New Contributor III
5,135 Views

I have also been hit by this with a couple of users

  • Windows 10 Pro and 11 Pro
  • VS 2022 LTSC 17.6.6
  • oneAPI 2023.2

It doesn't happen with oneAPI 2023.1 (same machine, uninstalled oneAPI 2023.2 and installed 2023.1).  I will cycle the compilers on another machine over the weekend.

I have a simple reproducer with C# main calling Fortran DLL if you need it attached.

 

Edit:

  • small reproducer attached - C# main calling Fortran DLL.  (My abysmal C# skills on display).  No need to compile to get error.
  • I think the same problem occurs with VS2019 Pro 16.11.29 with oneAPI 2023.2 but not 2023.1.  I can't confirm right now, but may be able to check over weekend.

Edit2:

I have VS2019 Pro 16.11.29 and VS 2022 LTSC 17.6.6 installed in parallel on a Windows 10 workstation.  I can confirm both VS2019 and VS2022 crash/restart with oneAPI 2023.2 (only) installed but are OK with 2023.1 (only) installed.

I can log this as a support call if that helps.

Devorah_H_Intel
Moderator
5,100 Views

@fixro and @David_Billinghurst  - thank you for the test cases, now I can reproduce the crash.  This issue is now escalated to engineering. 

fixro
Novice
4,879 Views

Some progress?! It is possible to download the previous version, that worked, from somewhere, or to attach it here?

0 Kudos
Devorah_H_Intel
Moderator
4,863 Views

@fixro wrote:

Some progress?! It is possible to download the previous version, that worked, from somewhere, or to attach it here?


If you have Priority Support then you can download previous versions from Intel Registration Center https://registrationcenter.intel.com/en/products 

It will take some time for the engineering team to investigate and fix if this is indeed an Intel Fortran Compiler related issue.

 

0 Kudos
fixro
Novice
4,805 Views

Thanks for the response. In my  https://registrationcenter.intel.com/en/products I have only "Intel® Parallel Studio XE Composer Edition for Fortran Windows*" and "Intel® oneAPI Math Kernel Library - Community Support", so there is a way to download older version of 

Intel Fortran Compiler Classic and Intel Fortran Compiler for Windows*2023.2.0_or_2023.1

?

 

0 Kudos
Devorah_H_Intel
Moderator
4,746 Views

@fixro wrote:

Thanks for the response. In my  https://registrationcenter.intel.com/en/products I have only "Intel® Parallel Studio XE Composer Edition for Fortran Windows*" and "Intel® oneAPI Math Kernel Library - Community Support", so there is a way to download older version of 

Intel Fortran Compiler Classic and Intel Fortran Compiler for Windows* 2023.2.0_or_2023.1

?

 


You can download it from here 

The fix will be in the next Intel Fortran Compiler release. 

0 Kudos
Devorah_H_Intel
Moderator
4,749 Views

This issue has been fixed. The fix will be available in the next Intel oneAPI HPC toolkit 2024.0

Thank you for your report. 

 

0 Kudos
Nick1618
Novice
2,939 Views

David, this issue came back again

 

Nick1618_0-1713703447513.pngNick1618_1-1713703484656.png

 

 

 

Microsoft Visual Studio Community 2022
Version 17.9.6
VisualStudio.17.Release/17.9.6+34728.123
Microsoft .NET Framework
Version 4.8.09032

Installed Version: Community

Visual C++ 2022 00476-80000-00000-AA006
Microsoft Visual C++ 2022

ASP.NET and Web Tools 17.9.199.22661
ASP.NET and Web Tools

Azure App Service Tools v3.0.0 17.9.199.22661
Azure App Service Tools v3.0.0

Azure Functions and Web Jobs Tools 17.9.199.22661
Azure Functions and Web Jobs Tools

C# Tools 4.9.0-3.24121.1+a98c90d56455379836dd5c845b35fa932b00cfa3
C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

Common Azure Tools 1.10
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

GitHub Copilot 1.147.0.0 (v1.147.0.0@218a5ecac)
GitHub Copilot is an AI pair programmer that helps you write code faster and with less work.

GitHub Copilot Agent 1.147.0

Intel® Advisor 2024 1.3.25
Intel® Advisor 2024, (Plugin Version 1.3.25), Copyright © 2009-2023 Intel Corporation. All rights reserved.

Intel® C++ Compiler 2024.1
Intel® C++ Compiler 2024.1, Copyright © 2002-2024 Intel Corporation. All rights reserved.

Intel® DPC++ Compatibility Tool 2024.1
Intel® DPC++ Compatibility Tool 2024.1, Copyright © 2019-2024 Intel Corporation. All rights reserved.

Intel® Fortran Compiler 2024.0
Intel® Fortran Compiler 2024.0, Copyright © 2002-2023 Intel Corporation. All rights reserved.

Intel® Libraries for oneAPI 2024.1
Intel® Libraries for oneAPI 2024.1, Copyright © 2019-2024 Intel Corporation. All rights reserved.

Intel® oneAPI DPC++ Compiler 2024.1
Intel® oneAPI DPC++ Compiler 2024.1, Copyright © 2019-2024 Intel Corporation. All rights reserved.

Intel® oneAPI Menu & Samples 10.10.392.9731
Intel® oneAPI Visual Studio Menu & Samples Extension

Microsoft JVM Debugger 1.0
Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines

NuGet Package Manager 6.9.2
NuGet Package Manager in Visual Studio. For more information about NuGet, visit https://docs.nuget.org/

Razor (ASP.NET Core) 17.9.2.2412004+684740676513b3b208d5bd5b7f8786dab8d287b7
Provides languages services for ASP.NET Core Razor.

SQL Server Data Tools 17.9.56.1
Microsoft SQL Server Data Tools

Test Adapter for Boost.Test 1.0
Enables Visual Studio's testing tools with unit tests written for Boost.Test. The use terms and Third Party Notices are available in the extension installation directory.

Test Adapter for Google Test 1.0
Enables Visual Studio's testing tools with unit tests written for Google Test. The use terms and Third Party Notices are available in the extension installation directory.

TypeScript Tools 17.0.30103.2001
TypeScript Tools for Microsoft Visual Studio

Visual Basic Tools 4.9.0-3.24121.1+a98c90d56455379836dd5c845b35fa932b00cfa3
Visual Basic components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

Visual F# Tools 17.9.0-beta.23614.3+a521e1cd420beb56c15faf6836184fadd2b7937a
Microsoft Visual F# Tools

Visual Studio IntelliCode 2.2
AI-assisted development for Visual Studio.

0 Kudos
fixro
Novice
2,900 Views

@Nick1618 , I think the problem is "Intel® Fortran Compiler 2024.0", it was fixed already in the next releases of 2024.0. I'm using 2024.1 and the issue is still fixed!

0 Kudos
Nick1618
Novice
2,865 Views

Thanks for your suggestion. See mycomments below

0 Kudos
Nick1618
Novice
2,866 Views

Thanks for fixro! I went to the HPC site and found out a new version of HPC w_HPCKit_p_2024.1.0.561. I installed it and Visual STudio is good for now. No crashes!

 

Be careful, don't use those versions: w_BaseKit_p_2024.1.0.595. That version upgrades everything else (C++) to 2024.1 and leaves FORTRAN to 2024.0, which will crash when you load a FORTRAN project!

I tested on the most recent version of Visual Studio 2022  17.9.6, so  17.9.6 VS+2024.1 FORTRAN works! 

Reply