CodingGorilla Posted May 29, 2012 Report Share Posted May 29, 2012 My solution size varies based on the branch I'm working on; but just based on my memory I would venture to say that it does happen more often on the branches with many projects / files. The "internal beta" branch has 12 projects and it seems like most often when I get the hang that's where I get it. I haven't seen it since 4.1.10.284, but I've been working on a small branch with only 4 projects. Link to comment Share on other sites More sharing options...
manu Posted May 29, 2012 Report Share Posted May 29, 2012 Hi, we have been also told in the support mail that this issue is not resolved. We will reopen the task, thanks for reporting. Link to comment Share on other sites More sharing options...
CodingGorilla Posted May 29, 2012 Report Share Posted May 29, 2012 I guess I spoke too soon, VS11 Beta just locked up in the smaller branch that I'm working on. So maybe size is not related; is there any kind of information I can gather that will help? Link to comment Share on other sites More sharing options...
manu Posted May 29, 2012 Report Share Posted May 29, 2012 In the previous research of the issue we concluded that it was a thread lock during the checkout operation, carried out at the ctrl + s action, it was provoked when visual studio was having multiple Plastic SCM views opened but it was also reproducible without them. Tomorrow I'll speak with Daniel to refix this issue. Link to comment Share on other sites More sharing options...
danipen Posted May 30, 2012 Report Share Posted May 30, 2012 Hey, I think I have detected other potential piece of code that could be causing the issue. Someone volunteers to test the patched dll and verify that the problem is solved? I prefer to do that before publish the fix in a new public release, to ensure that is really fixed. Thanks in advance. Link to comment Share on other sites More sharing options...
CodingGorilla Posted May 30, 2012 Report Share Posted May 30, 2012 I'd be happy too, I haven't been able to make it happen or predict when it's going to happen, but I can test it out for a week or so and let you know if the problem goes away. Link to comment Share on other sites More sharing options...
Olaf Kober Posted May 30, 2012 Author Report Share Posted May 30, 2012 I will test it!!! Link to comment Share on other sites More sharing options...
danipen Posted May 30, 2012 Report Share Posted May 30, 2012 Attached to this post there is a DLL that should fix the "sporadic IDE hangs" issue. The DLL is compatible ONLY with 4.1.10.285 version. In order to change the DLL, follow these steps: 1.- Close VS 2.- Go to the PlasticSCM client installation directory (tipically c:\Program Files\PlasticSCM\client) 2.- Backup the current DLL file libplasticbridge.dll -> libPlasticBridge.dll.old 3.- Copy the client DLL (libPlasticBridge.dll) into the client directory Please, let me know if this DLL fixes the issue. Thanks for your time. libPlasticBridge.zip Daniel Link to comment Share on other sites More sharing options...
Olaf Kober Posted May 30, 2012 Author Report Share Posted May 30, 2012 I followed your steps and now I get following error message at VS start: "Could't get an instance of LibPlasticAccessImpl" The message box appears two times, then VS starts but without Plastic plugin. Do I have to register the dll? Link to comment Share on other sites More sharing options...
danipen Posted May 30, 2012 Report Share Posted May 30, 2012 No, sorry, the libPlasticBridge.dll version I uploaded was wrong, it was for v4.1.10.285, that is not public yet. So, I will redo the fix for Plastic v4.1.10.284 Are you able to restore the previous version of the DLL? Link to comment Share on other sites More sharing options...
Olaf Kober Posted May 30, 2012 Author Report Share Posted May 30, 2012 I created a copy of the original DLL; not my first time patching an application, we are all devs here ;-) Link to comment Share on other sites More sharing options...
danipen Posted May 30, 2012 Report Share Posted May 30, 2012 Ok, here is a DLL for the v4.1.10.284 VSPackage_Patch_4.1.10.248.zip You also need to unregister the VSPackage dll and register it again: 1.- Close Visual Studio 2.- Unregister the VSPackage dll (open a cmd as administrator and run): For VS2005: "<plasticclientdir>\tools\regpkg.exe" /unregister "<plasticclientdir>\plasticVSextensibility.dll" For VS2008: "<plasticclientdir>\tools\regpkg.exe" /root:Software\Microsoft\VisualStudio\9.0 /unregister "<plasticclientdir>\plasticVSextensibility.dll" For VS2010: "<plasticclientdir>\tools\regpkg.exe" /root:Software\Microsoft\VisualStudio\10.0 /unregister "<plasticclientdir>\plasticVSextensibility.dll" 3.- Backup the following client files: plasticVSextensibility.dll and libPlasticBridge.dll 4.- Copy the attached files to the client directory 5.- Register the VSPackage dll (open a cmd as administrator and run): For VS2005: "<plasticclientdir>\tools\regpkg.exe" /codebase "<plasticlientdir>\plasticVSextensibility.dll" For VS2008: "<plasticclientdir>\regpkg.exe" /root:Software\Microsoft\VisualStudio\9.0 /codebase "<plasticlientdir>\plasticVSextensibility.dll" For VS2010: "<plasticclientdir>\regpkg.exe" /root:Software\Microsoft\VisualStudio\10.0 /codebase "<plasticlientdir>\plasticVSextensibility.dll" Best regards, Daniel Link to comment Share on other sites More sharing options...
Olaf Kober Posted May 31, 2012 Author Report Share Posted May 31, 2012 Thanks, Daniel! I tried your patch on two different machines, but it does not fix the VS hangs. It is strange. I'm able to reproduce the behavior 100% of the time. I thought it has something to do with our solution/projects and tried out another project (Microsoft All-In-One Code Framework) and was still able to lock VS. Here is a detailed list of steps I did. Maybe this helps to reproduce it on your site. One important note, as mentioned in my first post, when using 4.0.239.24 the bug does not happen, only after upgrading/installing 4.1.10.267 or later. There is something broken in between 4.0 and 4.1. Preparation: I did my testing in a clean virtual machine: Win 7 x64 SP1, German, VS2010 + SP1 English (no CodeRush, Resharper) Install Plastic SCM 4.0.239.24 with default settings (client, server, vs integration, local users, sql ce database) Open Plastic client Create a new workspace Test (c:\test) in a new repository Test Download the Microsoft All-In-One Code Framework source code from http://1code.codeplex.com/SourceControl/list/changesets (on the right side: latest version, download) Extract source code into c:\test Add all files to Plastic; this will check-in about 185 MB Navigate to c:\test\Visual Studio 2010; open solution CSWPFListBoxValidation.sln Bind solution to Plastic SCM source control provider; commit changes Steps to verify that 4.0.239.24 does work: Open solution CSWPFListBoxValidation.sln VS2010 Menu > View > Plastic SCM > Pending changes on Workspace Solution Explorer: open app.xaml Goto XAML view Add some empty lines above <Application>... Hit Ctrl + S You should be able to move the caret around; no VS hanging Undo all changes Steps to reproduce the bug: Close everything Upgrade Plastic SCM to 4.1.10.267 (or later, but this is the first version I have that has the bug) Open solution CSWPFListBoxValidation.sln from c:\test\Visual Studio 2010 VS2010 Menu > View > Plastic SCM > Pending changes on Workspace Solution Explorer: open app.xaml (ensure that this file has a blue lock symbol; neither changed or checked-out) Goto XAML view Add some empty lines above <Application>... Hit Ctrl + S Now, I can't move the caret and VS shows "not responding" after a few seconds Hopefully you will be able to reproduce this. Kind regards, Olaf Link to comment Share on other sites More sharing options...
danipen Posted May 31, 2012 Report Share Posted May 31, 2012 Thanks Olaf, I will try to reproduce the issue, and I will contact you when I have any results. Link to comment Share on other sites More sharing options...
danipen Posted June 1, 2012 Report Share Posted June 1, 2012 Hi, Olaf, thank you very much for the detailed example, I finally was able to reproduce and fix the problem. Ok, here is a DLL for the v4.1.10.284 version that fixes the problem: VSPackage_patch_II_4.1.10.284.zip You need to unregister the VSPackage dll and register it again: 1.- Close Visual Studio 2.- Unregister the VSPackage dll (open a cmd as administrator and run): For VS2005: "<plasticclientdir>\tools\regpkg.exe" /unregister "<plasticclientdir>\plasticVSextensibility.dll" For VS2008: "<plasticclientdir>\tools\regpkg.exe" /root:Software\Microsoft\VisualStudio\9.0 /unregister "<plasticclientdir>\plasticVSextensibility.dll" For VS2010: "<plasticclientdir>\tools\regpkg.exe" /root:Software\Microsoft\VisualStudio\10.0 /unregister "<plasticclientdir>\plasticVSextensibility.dll" 3.- Backup the following client files: plasticVSextensibility.dll and libPlasticBridge.dll 4.- Copy the attached files to the client directory 5.- Register the VSPackage dll (open a cmd as administrator and run): For VS2005: "<plasticclientdir>\tools\regpkg.exe" /codebase "<plasticlientdir>\plasticVSextensibility.dll" For VS2008: "<plasticclientdir>\regpkg.exe" /root:Software\Microsoft\VisualStudio\9.0 /codebase "<plasticlientdir>\plasticVSextensibility.dll" For VS2010: "<plasticclientdir>\regpkg.exe" /root:Software\Microsoft\VisualStudio\10.0 /codebase "<plasticlientdir>\plasticVSextensibility.dll" Please, let me know if the patch fixes the problem. In that case, we will include the fix in the next public Plastic SCM release. Thank you again. Best regards, Daniel Link to comment Share on other sites More sharing options...
CodingGorilla Posted June 1, 2012 Report Share Posted June 1, 2012 It no longer appears to be usable in VS 2012 RC, so I can't test it right now. Link to comment Share on other sites More sharing options...
Olaf Kober Posted June 4, 2012 Author Report Share Posted June 4, 2012 Hi Daniel! I worked the whole day with your patch-2 installed and never had any hang. It's no longer reproducible on my machines. /Fixed Many thanks for your time! Olaf Link to comment Share on other sites More sharing options...
danipen Posted June 4, 2012 Report Share Posted June 4, 2012 Oh, great!! That bug was really annoying, and was difficult for me to reproduce. I will notify to the release building department to integrate my fix in the next public version. Thanks for your feedback! Link to comment Share on other sites More sharing options...
p80 Posted June 5, 2012 Report Share Posted June 5, 2012 Seems to work also for me. THX Link to comment Share on other sites More sharing options...
manu Posted June 6, 2012 Report Share Posted June 6, 2012 Good work @danipen! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.