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

Debugging ifort in VS 2022 17.7 hangs expression evaluator

AONym
新分销商 II
46,476 次查看

Just updated VS2022 from 17.6.x to 17.7.0. Now, none of the following work when using the VS debugger on Fortran code:

1) Data tips on stack variables give nothing.

2) Locals window is empty (shows busy...).

3) Attempt to add watch of a stack variable hangs (see attached screen shot), and now VS2022 is completely unresponsive.

This makes debugging Fortran code nearly impossible. Is there a fix? Would updating the compiler make any difference?

 

Windows 11, VS 7.7.0, ifort  2023.0.0. Complete details in attached VS about file.

0 项奖励
1 解答
Devorah_H_Intel
主持人
45,411 次查看

@wajahat @BrunoAmaral 


Attached please find the preview update of VSIX installer for the latest FEE Visual Studio extension with a fix for the hang issue reported here.

Please let me know if the hanging issue is fixed for you in VS 17.7.

To install:

  • download and unzip attached VSIX installer
  • run the installer and follow prompts

NOTE: attached FEE VSIX installer for VS 17.7 is for testing only, VS 17.7 (released after oneAPI 2023.2 release) is not officially supported until next upcoming oneAPI HPC Toolkit release. 

在原帖中查看解决方案

26 回复数
AONym
新分销商 II
14,197 次查看

I downloaded and installed the latest oneAPI Base and HPC kits, and the same error occurs. In addition to hanging VS2022, it uses rapidly increasing amounts of memory (GB). Intel, this needs to be fixed ASAP.

0 项奖励
ZlamalJakub
新分销商 III
14,186 次查看

I observed the same behavior when updated to VS 17.7.0.

 

I finally rolled back to 17.6 to be able to debug

To roll back VS:

1. run VS installer

2. press the More button

3. look for 'Rollback to previous version' and choose it

 

 

Barbara_P_Intel
14,173 次查看

This article lists the VS versions have been validated with various compiler releases. These versions have been validated with oneAPI 2023.2: Up to VS 2022 17.6.4.

0 项奖励
Nick3
新分销商 I
14,162 次查看

I just always have to do my upgrades without checking the version compatibility list, and when something is broken ... please let us know when ifort works with VS 17.7

0 项奖励
AONym
新分销商 II
14,146 次查看

Intel should be testing with each new VS release, or better, preview release. If there are incompatibilities, the oneAPI installer should warn users. Intel should never be releasing a product that files catastrophically like this. It shouldn't be the users who do your testing.

0 项奖励
AONym
新分销商 II
14,146 次查看

I can confirm that the VS rollback works, but before you do it, save your current VS settings (Tools / Import and Export Settings...), because the rollback reverts to the default settings. After you have finished the rollback, import the settings you exported.

TiborKibedi1
初学者
14,084 次查看

I made a clean installation of MS VS 17.7.0 and Intel OneAPI 2023.2.0 and can confirm the problem. Removing OneAPI (Aug 2023) and installing 2023.0.0 (March 2023) the problem is still there. Looks like have to go back to VS 17.6.0? Any comment on that?

0 项奖励
ZlamalJakub
新分销商 III
14,022 次查看

VS 17.7.0 is not yet supported by Intel (see reply of Barbara_P_Intel above).

0 项奖励
Devorah_H_Intel
主持人
13,715 次查看

This debugger issue has been fixed. Let me know if you are unable to obtain/rollback to  supported version of the VS for oneAPI 2023.2 

0 项奖励
JohnNichols
重要分销商 III
13,704 次查看

@Devorah_H_Intel , your brief post has left me more confused than usual.  What do you mean it has been fixed?  and how do you obtain a rollback version to community. 

The simplest method is just to use 2019 until you catch up.  

Thanks

John

The other paradox, on this site, the same question can be asked many times.  

Plus, why do I have to get a code from my email and then answer my phone.  The security level reminds me of a Black Adder story. If you not watched Black Adder then you are missing a treat.  

I watched the James Webb Telescope documentary last night, really excellent, explains the Nasa system really well,  especially error control. 

I assume that the analysis for the telescope flight path was done in Fortran.  Do NASA use Intel Fortran?

 

0 项奖励
Devorah_H_Intel
主持人
13,701 次查看

The fix is in the next oneAPI release. If one had a previous version of VS Community installed and then upgraded to unsupported 17.7 (with FEE issue) then the rollback feature can be utilized as described in this thread.

The supported 2022 VS versions are listed here

0 项奖励
AONym
新分销商 II
13,692 次查看

When will the "next oneAPI release" be available? And what VS 2022 version will it be compatible with?

0 项奖励
Barbara_P_Intel
13,625 次查看

The next release is planned before the end of 2023. I do not know which VS 2022 version will be supported since the release cadence is so different between the two products.

 

0 项奖励
BrunoAmaral
新手
13,556 次查看

@Devorah_H_Intel  @Barbara_P_Intel , what about the users that have only the VS 2022 community version and cannot roll back to a previous version prior to 17.7.3? Will there be a version release only at the end of the year? Without the watch feature working properly, Fortran coding becomes a difficult task, especially with complex projects.

Barbara_P_Intel
13,469 次查看

We are working on a solution to the VS issues. No news yet.

 

0 项奖励
Devorah_H_Intel
主持人
13,364 次查看

@AONym  please see the suggested workaround below:

Open Visual Studio 2022

Open your Solution

On the VS menu bar, select and open the menu item

"Debug"

     select

     "Options"

          under "Debugging" -> "General"

          scroll to near the end of the list of General options and un-select the following:

Disable “Load debug symbols in external process (Native only)" in the debug settings window.

fee-workaround.png

wajahat
初学者
13,288 次查看

I had the same issue as others have reported here. Thanks @Devorah_H_Intel  for your workaround. This helped me to gain back the debugging functionality for my Fortran code in VS2022 v17.7.3 and without having to rollback to an earlier version, but only after a complete reboot.

0 项奖励
Devorah_H_Intel
主持人
45,412 次查看

@wajahat @BrunoAmaral 


Attached please find the preview update of VSIX installer for the latest FEE Visual Studio extension with a fix for the hang issue reported here.

Please let me know if the hanging issue is fixed for you in VS 17.7.

To install:

  • download and unzip attached VSIX installer
  • run the installer and follow prompts

NOTE: attached FEE VSIX installer for VS 17.7 is for testing only, VS 17.7 (released after oneAPI 2023.2 release) is not officially supported until next upcoming oneAPI HPC Toolkit release. 

JohnNichols
重要分销商 III
12,797 次查看

Screenshot 2023-09-19 104512.png

This is a fairly stock standard Fortran Program running on the latest VS 2022 preview with the VSIX file installed as supplied by Intel. It appears on the surface to be working. 

Could you thank the poor programmer who had to spend time doing this, it must be lonely in the Intel Basement.  

istockphoto-1491689429-612x612.jpg

Matthew_Z_
新手
12,548 次查看

The VSIX worked for me with VS 2022 17.7.4

 

Thanks and Kudos!

回复