Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Visual Studio 2017 (non-programming) problem

Visual Studio 2017 (non-programming) problem

Scheduled Pinned Locked Moved The Lounge
visual-studiocsharpdebugginghelpquestion
39 Posts 17 Posters 34 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Lost User

    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?

    C Offline
    C Offline
    crax13
    wrote on last edited by
    #19

    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.

    1 Reply Last reply
    0
    • L Lost User

      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?

      M Offline
      M Offline
      MSBassSinger
      wrote on last edited by
      #20

      Are you running VS 2017 "run as administrator"?

      L 1 Reply Last reply
      0
      • L Lost User

        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?

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #21

        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

        L 1 Reply Last reply
        0
        • L Lost User

          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?

          T Offline
          T Offline
          Toto1107
          wrote on last edited by
          #22

          https://msdn.microsoft.com/en-us/library/jj662724.aspx

          Toto1107

          L 1 Reply Last reply
          0
          • M MSBassSinger

            Are you running VS 2017 "run as administrator"?

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #23

            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.

            M 1 Reply Last reply
            0
            • L Lost User

              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

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #24

              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.

              L 1 Reply Last reply
              0
              • T Toto1107

                https://msdn.microsoft.com/en-us/library/jj662724.aspx

                Toto1107

                L Offline
                L Offline
                Lost User
                wrote on last edited by
                #25

                That link points to your answer.

                T 1 Reply Last reply
                0
                • L Lost User

                  That link points to your answer.

                  T Offline
                  T Offline
                  Toto1107
                  wrote on last edited by
                  #26

                  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

                  L 1 Reply Last reply
                  0
                  • L Lost User

                    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.

                    M Offline
                    M Offline
                    MSBassSinger
                    wrote on last edited by
                    #27

                    I recommend you always run VS 2017 "as administrator". You may find some of your occasional issues disappear.

                    L 1 Reply Last reply
                    0
                    • L Lost User

                      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.

                      L Offline
                      L Offline
                      Lost User
                      wrote on last edited by
                      #28

                      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

                      L 1 Reply Last reply
                      0
                      • J jonmbutler

                        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

                        L Offline
                        L Offline
                        Lost User
                        wrote on last edited by
                        #29

                        Thanks Jon, I may get back to you on that. In the meantime I think I need to gather more useful information before opening a bug report.

                        1 Reply Last reply
                        0
                        • T Toto1107

                          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

                          L Offline
                          L Offline
                          Lost User
                          wrote on last edited by
                          #30

                          I have had that problem with a previous version, but this one is quite different.

                          1 Reply Last reply
                          0
                          • M MSBassSinger

                            I recommend you always run VS 2017 "as administrator". You may find some of your occasional issues disappear.

                            L Offline
                            L Offline
                            Lost User
                            wrote on last edited by
                            #31

                            I will give it a try but I do not think it's a permissions issue; it actually hangs the system completely so I cannot even get task manager started in order to kill the offending process.

                            1 Reply Last reply
                            0
                            • L Lost User

                              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

                              L Offline
                              L Offline
                              Lost User
                              wrote on last edited by
                              #32

                              Thanks Gerry, I had not thought of that.

                              1 Reply Last reply
                              0
                              • L Lost User

                                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?

                                O Offline
                                O Offline
                                OldTomas
                                wrote on last edited by
                                #33

                                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.

                                O L 2 Replies Last reply
                                0
                                • O OldTomas

                                  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.

                                  O Offline
                                  O Offline
                                  OldTomas
                                  wrote on last edited by
                                  #34

                                  I meant to write "Windows Logs --> System".

                                  1 Reply Last reply
                                  0
                                  • O OldTomas

                                    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.

                                    L Offline
                                    L Offline
                                    Lost User
                                    wrote on last edited by
                                    #35

                                    Thanks, good suggestion.

                                    1 Reply Last reply
                                    0
                                    • L Lost User

                                      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?

                                      S Offline
                                      S Offline
                                      SkysTheLimit
                                      wrote on last edited by
                                      #36

                                      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).

                                      L 1 Reply Last reply
                                      0
                                      • S SkysTheLimit

                                        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).

                                        L Offline
                                        L Offline
                                        Lost User
                                        wrote on last edited by
                                        #37

                                        Thanks, I will try your suggestions also.

                                        1 Reply Last reply
                                        0
                                        • P Paulo_JCG

                                          Have a look at the hardware.These have a spike on "F5" -HDD/SSD (bad sectors, a lot of writing happening) -Memory (any issue can freeze the OS) -Graphics card (some drivers don't really fancy VS) disable graphics acceleration on VS It could also be the AV. Some other options :-D - use notepad and command line compile - use a hammer/basebal bat and fix the machine

                                          Paulo Gomes Measuring programming progress by lines of code is like measuring aircraft building progress by weight. —Bill Gates Everything should be made as simple as possible, but not simpler. —Albert Einstein

                                          C Offline
                                          C Offline
                                          Carlosian
                                          wrote on last edited by
                                          #38

                                          I was thinking similarly: - memory. Run intensive memory tests overnight. Someone posted tips elsewhere. If they don't run for hours you aren't testing thoroughly enough. - thermal problems. there are various apps that monitor your systems thermal sensors. Check what temperatures you are running. - HD/SSD - can you check SMART status? Check the event logs for IO errors Try going to build settings to only allow a single build at a time. This will reduce system load quite a bit, though of course the builds will take longer. It would be interesting to see if it makes a difference. If it does I'd say it points to one of the problems above, or some similar physical issue with the machine. Good luck.

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups