Olaf Kober Posted May 9, 2012 Report Share Posted May 9, 2012 Hello! Since upgrading to Plastic 4.1 we experiencing sporadic hangs of Visual Studio 2010. Me and three colleagues working on two different projects have the same symptoms. You are in the middle of some work; typing, building, saving, committing in Visual Studio and suddenly the Visual Studio IDE hangs, showing “not responding”. Everyone here has VS Plastic integration installed and both projects are bound to Plastic source control. Uninstalling the VS Plastic Integration solves the problem, so it must have something to do with Plastic SCM. Before 4.1 we never had the problem, thus it is very likely that something broke between 4.0 and 4.1. We observed the issue in both 4.1.10.268 and 4.1.20.273. Above, I said “sporadic”, but sometimes it does happen every 5-15 minutes, especially when you save very often. We are not sure, but it seems that the hangs occur after saving files, or when starting a build, which automatically saves all files. Opening the pending changes view within VS seems to increase the likelihood of the next hang. You can download mini-dumps of hung Visual Studio here: https://s3-eu-west-1.amazonaws.com/amarokfiles/devenv-minidumps.7z Is there a way to enable logging output for the VS integration plugin? Anybody else having the same problem? Regards, Olaf Link to comment Share on other sites More sharing options...
CodingGorilla Posted May 9, 2012 Report Share Posted May 9, 2012 I have been noticing the exact same problem (in fact it's hung right now) in VS11 beta. I had previously written it off to VS11 being in beta, as well as R# 7 beta. But possibly it's related to Plastic? Mine doesn't seem quite as frequent as yours, definitely not 5-15 minutes, but it does happen quite frequently. Update - This almost always happens when I'm saving changes, usually by pressing Ctrl+S or Ctrl+Shift+s. Link to comment Share on other sites More sharing options...
manu Posted May 10, 2012 Report Share Posted May 10, 2012 It's seems that you both are having problems with the Ctrl+S action. I'm going to check if we have some kind of hook of that action. Link to comment Share on other sites More sharing options...
Olaf Kober Posted May 10, 2012 Author Report Share Posted May 10, 2012 A small update: I was able to work trouble-free the entire morning by consequently committing changes via Plasic SCM standalone client. After opening the Pending Changes view integrated in VS once about 5 minutes later I had my next hang... Link to comment Share on other sites More sharing options...
manu Posted May 10, 2012 Report Share Posted May 10, 2012 One question guys. When you are getting the hang you are editing the file (the item is still checked in) and then you save (ctrl+s)? Or the file is checked out and then you save it? We have a hook when you are saving the file and it's still checked-in but not when the file is checked out. Link to comment Share on other sites More sharing options...
Olaf Kober Posted May 10, 2012 Author Report Share Posted May 10, 2012 Yes, that's it!! open a source file still checked-in edit the source file Hit Ctrl+S -> Bäng! I tried it three times, every time I got a hung VS, but only if I opened pending changes view before. Link to comment Share on other sites More sharing options...
CodingGorilla Posted May 10, 2012 Report Share Posted May 10, 2012 Yes, that's it!! open a source file still checked-in edit the source file Hit Ctrl+S -> Bäng! I tried it three times, every time I got a hung VS, but only if I opened pending changes view before. I haven't tested this specifically, but this seems to be my general workflow as well. I don't usually explicitly check out files. In regards to Olaf's previous comments about using the GUI client rather than the VS client views, I almost always use the GUI client, I don't open up the VS panes very often. Link to comment Share on other sites More sharing options...
manu Posted May 10, 2012 Report Share Posted May 10, 2012 Ok so we have a test case, that's good I'll insert the task into the bug tracking system, Link to comment Share on other sites More sharing options...
manu Posted May 10, 2012 Report Share Posted May 10, 2012 One question about this, can you confirm me that it's working fine without the pending changes view opened? How many files do you have inside your workspace/solution? Link to comment Share on other sites More sharing options...
CodingGorilla Posted May 10, 2012 Report Share Posted May 10, 2012 One question about this, can you confirm me that it's working fine without the pending changes view opened? How many files do you have inside your workspace/solution? No, I never (or very rarely) have the pending changes view opened inside the IDE. Although it is possible at times that it's open in the GUI client (but I'm sure it's not 100% of the time). I've had it happen with just a few files open, and I've had it happen with lots of files open. Anecdotally, yesterday when it was happening quite a bit, I had several files open in an external window that was floating on a separate monitor. I can't say that's always the case though. Link to comment Share on other sites More sharing options...
Olaf Kober Posted May 11, 2012 Author Report Share Posted May 11, 2012 Yes, I confirm that. When I open and close either the Pending Changes view, the Branches view or the Branch Explorer (I didn't tried other views), then open and change a still checked-in file and save it, I got the hang. It's no longer sporadic, it is reproducible. On the other side, as mentioned above, I was able to work without hangs yesterday by avoiding Plastic's integrated views. Our workspace contains about 5000 files, the other project has about 3000 files. Link to comment Share on other sites More sharing options...
manu Posted May 11, 2012 Report Share Posted May 11, 2012 Thanks for the info, we'll try to reproduce and fix ASAP. Link to comment Share on other sites More sharing options...
danipen Posted May 11, 2012 Report Share Posted May 11, 2012 This issue seems to be ugly, so I'm going to take a look right now. I'll come back you when I have more information. Thanks for your feedback. I you could give any further information that could help me to find the bug, please, write down it here. Link to comment Share on other sites More sharing options...
Olaf Kober Posted May 11, 2012 Author Report Share Posted May 11, 2012 Hmm... I have to disprove my statement from above. Today I experienced VS hangs even though I did not open any of the Plastic views. This is a little bit strange. Yesterday I was coding a lot. Today I do a lot UI stuff, opening WPF XAML files and so on. Having VS and Expression Blend open at the same time, switching between them; had VS hang now and then. I'm not sure with this, but after disabling the options "Compare file contents instead of timestamps when determining "Changed" status" and "Update operations set repository timestamps on files" hangs occurred less frequent...?! Link to comment Share on other sites More sharing options...
danipen Posted May 11, 2012 Report Share Posted May 11, 2012 Still looking into it ... sorry for the inconveniences Link to comment Share on other sites More sharing options...
danipen Posted May 11, 2012 Report Share Posted May 11, 2012 One question, for all. Do you have installed resharper (or other similar VS Package)? Link to comment Share on other sites More sharing options...
Olaf Kober Posted May 11, 2012 Author Report Share Posted May 11, 2012 <- CodeRush My colleagues have Resharper installed. But our UI designer has neither CodeRush nor Resharper installed and had VS hangs too. Link to comment Share on other sites More sharing options...
CodingGorilla Posted May 11, 2012 Report Share Posted May 11, 2012 I have Resharper installed. Again, in my case this is happening in Visual Studio 11 beta. But the symptoms are identical. Link to comment Share on other sites More sharing options...
psantosl Posted May 11, 2012 Report Share Posted May 11, 2012 Sorry for the inconveniences guys. We're on it. Link to comment Share on other sites More sharing options...
danipen Posted May 15, 2012 Report Share Posted May 15, 2012 Hi, I think the problem is solved. I detected a cross thread access exception debugging the VS plugin when checking out files (saving from VS). This exception is not visible on release, but the behavior of the application could be unpredictable. I tried to reproduce it in a release environment, but I was unable to completely hang VS, but I noticed a significant delay when saving files (4-5 seconds). Then I fixed the cross thread access exception and successfully tested again in the release environment. The fix is ready. It will included in the next public Plastic SCM release, that will be published along this week (in two or three days). Please, check the Web and the release notes to get it. Thanks for your feedback. Best regards, Daniel Link to comment Share on other sites More sharing options...
CodingGorilla Posted May 15, 2012 Report Share Posted May 15, 2012 I look forward to trying to break it again! Link to comment Share on other sites More sharing options...
Olaf Kober Posted May 15, 2012 Author Report Share Posted May 15, 2012 Jipppii!!! I'll give it a try as soon as it is available. Many thanks! Olaf Link to comment Share on other sites More sharing options...
CodingGorilla Posted May 25, 2012 Report Share Posted May 25, 2012 I've downloaded the latest version, and it seems to be nearly eliminated, but not completely gone. It just hung on me for the first time since I downloaded the latest version (about a week?). Again, though, I'm using VS11 so it's hard to tell if it's directly related to Plastic or if it's a VS11 Beta thing. But in the case of this hang, it's the same circumstances, I hit CTRL+S on a file which was controlled and previously unchanged (so it would be doing an implicit checkout?). Maybe Olaf could also chime in as to whether the problem seems fixed for him. Link to comment Share on other sites More sharing options...
psantosl Posted May 26, 2012 Report Share Posted May 26, 2012 We'll be publishing 4.1.10.283 on Monday, let's give it a try again. If the issue is not fixed, please tell us ASAP and we'll release a fix this week. I don't want to see this bug anymore, so whatever it takes will fix it. Link to comment Share on other sites More sharing options...
Olaf Kober Posted May 29, 2012 Author Report Share Posted May 29, 2012 I hate to say that, but the newest version 4.1.10.284 does not solve the problem. Saving an edited source file under source control (but not checked out or changed) still hang Visual Studio. I did some additional testing on my workstation and also on a clean virtual machine with just VS2010 + SP1 + Plastic. Neither CodeRush nor Resharper seem to have bad influence on this. It does not happen on any project. For example, a new repository with a new solution containing a single WPF project does not show the problem. One of our smaller projects with about 300 files, 80 folders does not show the problem too. But, I was able to reproduce the behavior on the clean VM with three bigger projects (2500-8000 files and 700-1100 folders). Hmmm... CodingGorilla, how many files do you have in your solution/workspace? @Codice: I can send you (per e-mail) one of these projects. I copied the source files to my VM, added them to a new repository and was still able to hang VS. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.