Visual Studio 2017 (non-programming) problem
-
I have had a number of occasions recently when building a project*, that VS stops and kills Windows completely. The mouse cursor disappears, the text caret stops flashing and even Ctrl-Alt-Del does not work. The only way to get out of it is to power off and on again. *I think it only happens when I press F5 to build and debug. And the code itself is not exactly complicated. Anyone else had this?
Maybe you need to try a different IDE.[^] ;)
-
first, make sure you have all updates. second, try staring VS as admin and running the same series of steps. third, check the windows event logs. fourth, turn off any antivirus, etc. and run the series of steps again. fifth, no, this has never happened to me. Google as much as you can, and as a last resort, open a ticket with the beast. wish you the best of luck in this, especially when dealing with the beast (if you have to go that far.). Notes: I have been using VS2017 @ constant professional basis and have not even heard of the issue you are encountering.
Slacker007 wrote:
try staring VS as admin
I've been staring at VS all day, it just stares back at me...
-
I have had a number of occasions recently when building a project*, that VS stops and kills Windows completely. The mouse cursor disappears, the text caret stops flashing and even Ctrl-Alt-Del does not work. The only way to get out of it is to power off and on again. *I think it only happens when I press F5 to build and debug. And the code itself is not exactly complicated. Anyone else had this?
I, too, have experienced this behavior from Visual Studio for the last few months, both 2015 and 2017. I have yet to find a solution; however, it seems to help when I take the time to reboot the PC every 10 to 12 debug sessions. The trouble is that I tend to get wrapped up in the task at hand, and forget to do the reboots! I assume that there is something in my PC environment that is causing this, and would love to hear of any solutions anyone out there comes up with.
-
I have had a number of occasions recently when building a project*, that VS stops and kills Windows completely. The mouse cursor disappears, the text caret stops flashing and even Ctrl-Alt-Del does not work. The only way to get out of it is to power off and on again. *I think it only happens when I press F5 to build and debug. And the code itself is not exactly complicated. Anyone else had this?
Are you running VS 2017 "run as administrator"?
-
I have had a number of occasions recently when building a project*, that VS stops and kills Windows completely. The mouse cursor disappears, the text caret stops flashing and even Ctrl-Alt-Del does not work. The only way to get out of it is to power off and on again. *I think it only happens when I press F5 to build and debug. And the code itself is not exactly complicated. Anyone else had this?
I'm not convinced F5 / Debug always "builds" enough and winds up trying to execute "out of date" code. I'm convinced that a "build" + F5 is sometimes needed versus a straight "F5" at certain times. (My solutions usually involve multiple projects / dll's). And "cleaning" and "unloading / reloading" a project can also "straighten out" VS when it gets symptomatic.
"(I) am amazed to see myself here rather than there ... now rather than then". ― Blaise Pascal
-
I have had a number of occasions recently when building a project*, that VS stops and kills Windows completely. The mouse cursor disappears, the text caret stops flashing and even Ctrl-Alt-Del does not work. The only way to get out of it is to power off and on again. *I think it only happens when I press F5 to build and debug. And the code itself is not exactly complicated. Anyone else had this?
-
Are you running VS 2017 "run as administrator"?
-
I'm not convinced F5 / Debug always "builds" enough and winds up trying to execute "out of date" code. I'm convinced that a "build" + F5 is sometimes needed versus a straight "F5" at certain times. (My solutions usually involve multiple projects / dll's). And "cleaning" and "unloading / reloading" a project can also "straighten out" VS when it gets symptomatic.
"(I) am amazed to see myself here rather than there ... now rather than then". ― Blaise Pascal
-
Try Again sorry. I have not tried 2017 yet, I have always had issues with debug mode until I set devenv.exe to launch as admin https://docs.microsoft.com/en-us/visualstudio/ide/user-permissions-and-visual-studio?view=vs-2015 https://docs.microsoft.com/en-us/visualstudio/ide/user-permissions-and-visual-studio?view=vs-2015[^] need coffee..
Toto1107
-
No, just as normal user. I have not actually tried it as administrator, but since the problem is so random it is difficult to reproduce at will.
I recommend you always run VS 2017 "as administrator". You may find some of your occasional issues disappear.
-
Sometimes I build first, and then use F5. At other times I just use F5. In both cases the build either completes (sometimes with errors) or the hang occurs. I have not seen it with a different project, but I am building this one quite frequently.
I'd keep Task Manager open and watch the "profile" of your session and see if there is a pattern for that particular project: all kinds of stuff runs under VS; including JavaScript. Your browsers are also competing for memory: a "window" (process) for each Tab. Each (my) VS session and each browser can easily consume over 1 GB.
"(I) am amazed to see myself here rather than there ... now rather than then". ― Blaise Pascal
-
MS employee here. I unfortunately have no connection to the VS team and am not an avid developer myself, but if you'd like a code for a free support case please let me know, I'd be happy to help get you rolling forward. -- Jon
-
Try Again sorry. I have not tried 2017 yet, I have always had issues with debug mode until I set devenv.exe to launch as admin https://docs.microsoft.com/en-us/visualstudio/ide/user-permissions-and-visual-studio?view=vs-2015 https://docs.microsoft.com/en-us/visualstudio/ide/user-permissions-and-visual-studio?view=vs-2015[^] need coffee..
Toto1107
-
I'd keep Task Manager open and watch the "profile" of your session and see if there is a pattern for that particular project: all kinds of stuff runs under VS; including JavaScript. Your browsers are also competing for memory: a "window" (process) for each Tab. Each (my) VS session and each browser can easily consume over 1 GB.
"(I) am amazed to see myself here rather than there ... now rather than then". ― Blaise Pascal
-
I recommend you always run VS 2017 "as administrator". You may find some of your occasional issues disappear.
-
I have had a number of occasions recently when building a project*, that VS stops and kills Windows completely. The mouse cursor disappears, the text caret stops flashing and even Ctrl-Alt-Del does not work. The only way to get out of it is to power off and on again. *I think it only happens when I press F5 to build and debug. And the code itself is not exactly complicated. Anyone else had this?
-
This is a stretch, but when I am having weird system problems I sometimes go to event viewer and look at Windows Logs --> System Logs. Disk errors and other ephemera may show up around the time you had the Visual Studio problems.
-
This is a stretch, but when I am having weird system problems I sometimes go to event viewer and look at Windows Logs --> System Logs. Disk errors and other ephemera may show up around the time you had the Visual Studio problems.
-
I have had a number of occasions recently when building a project*, that VS stops and kills Windows completely. The mouse cursor disappears, the text caret stops flashing and even Ctrl-Alt-Del does not work. The only way to get out of it is to power off and on again. *I think it only happens when I press F5 to build and debug. And the code itself is not exactly complicated. Anyone else had this?
We have had Visual Studio crash on us. For most, we found that disabling the source control plugin and/or deleting the intellisense file helped. You could try running VS in safe mode to see if the problem still happens (devenv.exe /SafeMode) or you could try looking at suppressed alert messages to see if that gives you any more information (devenv.exe /ResetSkipPkgs).