-
Notifications
You must be signed in to change notification settings - Fork 37
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
Latest VS 2019 update causes VS to hang and results in OOM #186
Comments
Hmmm that's weird even rolling back to a previous version doesn't seem to stop the hang. I even wiped my |
Same issue here for multiple developers, using VS2022 on non-UE projects/solutions. There's ~5 minute hang on launch and devenv.exe uses ~15GB of RAM before becoming responsive again. Delay seems to vary depending on the size/complexity of the solution. |
Hi, sorry for the late response, I will investigate the issue. The code path in the call stack should only be executed if the project does not have any data available (.suo or .json file) for the extension. The extension then tries to gather all the used arguments from the VS configuration. But this is done on a per project basis and if you opened the solution before there should be a configuration for each project for the extension to look at. This does not explain the Issue but I am wondering if @skyleryork does trigger the same code path. Do you have any log files (or log entries) for me to look at? Could you also give me the kind of solution you have (C++, C#, ...). |
I am facing a similar issue with my UE5 project (both at work and home). I don't remember updating my Visual Studio, the issue just seem to happen overnight (one day was working fine next day started taking 5mins to load the project) Issue: Workaround:
|
Thanks for the detailed comment. The issue comes from accessing the config of each C++ project to collect the command line args. This is done because there aren't any ".args.json" files for these projects and therefore they are "new" to the extension. To avoid ignoring already set arguments we scan those projects and add the arguments to the extension. I am a bit confused as in how creating a .args.json file for a single project solves the issue as the extension should still scan the rest of the solution. I implemented a solution for you to test. It basically asks you if you want to ignore C++ projects from the command args collection process when it finds more than 15 C++ projects. SmartCmdArgs-vs2017-v3.2.0.1.vsix.zip It would be nice if you could test the solution and share you feedback, thanks! |
I'm not sure about the callstack, but this is a solution with hundreds of C++ projects, so it makes sense that scanning would be the bottleneck. But only a single project builds an executable target, and it already has an .args.json that I've been using for a long time. Is it supposed to scan library projects, and/or generate argument files once it does? As far as I can tell, it doesn't create any new files so there's nothing to stop it from repeating the scan every time. |
@Irame Thanks for the patch, I'll check if those changes fixes the issue for me. I am a bit confused as in how creating a .args.json file for a single project solves the issue as the extension should still scan the rest of the solution. Not sure about the issue @skyleryork is facing. Since their project is non UE5 maybe something changed internally on how VS extensions handle project loading? (I don't have much experience in this area 😞) |
Hi. Had the same issue as everyone here. This morning VS2022 completely stalled opening a pretty big UE solution. Now do we know why we were previously able to scan everything and that it suddenly stopped working? That's a bit worrying. -Mat |
The extension updates itself unfortunately. Even if I mark it as preview... |
It would be great to have a configuration option to opt-out of the new behavior and revert to old behavior which has served well for years. Scanning just the project marked as Startup would be ideal in my case, as it's the only project for which I will ever configure command-line arguments. |
Yeah the patch seems to work for me, I can now open my UE4 project at regular speed again :) Agree with @mundifex that if it only scanned the Startup project that would be great, I only ever change args for that one. |
I implemented a different way to deal with the problem. It allows for a better default handling. This behavior is configurable in the options (I think I'll also put it in the solutions settings dialog):
SmartCmdArgs-vs2017-v3.2.0.2.vsix.zip |
Tested using 3.2.0.2 and performance is back to expected in Visual Studio. Thank you for implementing a fix! |
Hey
The latest update from 01/24/25 seem to cause my VS2019 to hang on loading the project, and seems to result in an out of memory exception.
The text was updated successfully, but these errors were encountered: