Visual Studio 2010 Crashes with resharper 6
Since installing Resharper 6.0 Visual Studio has started to bomb out, on a regular basis. There does not seem to be any pattern to this, sometimes VS is in the background whilst I am using another app and sometimes when I am doing something in VS. It does not happen every day, more like every other day, however its still quite annoying.
When the crash happenes I don't get any error or exception messages, just a Visual Studio dialogue asking if I want to debug the problem.
Is this a known problem [feature :-)] and is there anywhere Resharper saves logs of errors which might give more info to why the problem occurs?
I'm using r# 6.0.2202.6889 on Windows XP (SP3) and I have an i3 CPU with 4Gb Ram.
I've used resharper v4 and v5 and never had this kind of problem before, so here's hoping you can fix this soon!
Thanks.
Joel.
Please sign in to leave a comment.
Hello Joel,
First of all, could you please check if suspending ReSharper under Tools
| Options | ReSharper | General helps to avoid those crashes? Also, are there
any error messages under Control Panel | Administrative Tools | Event Viewer
after Visual Studio crashes? Thank you!
Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
Hi Andrey,
I am not sure if suspending Resharper would help, like I said it does not occur frequently enough, less than once per day, and personally I don't know if I could handle developing without Resharper for several days to prove it, its too great an aid to my productivity! All I can says as that I have been using this PC for 4 months now and the problem only started after I installed R# v6. Not conclusive I know, but very suspicious indeed.
However there are some events in the windows log which also look suspicious (I don't why I did not think of looking there earlier). Here are a couple from this morning
--------------------------------------------------------------------------------------------------------------------
An unhandled exception occurred and the process was terminated.
Application ID: DefaultDomain
Process ID: 4432
Exception: System.OutOfMemoryException
Message: Exception of type 'System.OutOfMemoryException' was thrown.
StackTrace: at System.Threading.ExecutionContext.CreateCopy()
at System.Threading._TimerCallback.PerformTimerCallback(Object state)
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
--------------------------------------------------------------------------------------------------------------------
followed about 30secs later by
The description for Event ID ( 0 ) in Source ( VSTTExecution ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: (devenv.exe, PID 4280, Thread 1) TuipPackage.InitializeTestProjectPlugins: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.VisualStudio.QualityTools.CodedUITestPackage, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
File name: 'Microsoft.VisualStudio.QualityTools.CodedUITestPackage, PublicKeyToken=b03f5f7f11d50a3a'
at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMarkHandle stackMark, Boolean loadTypeFromPartialName, ObjectHandleOnStack type)
at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, Boolean loadTypeFromPartialName)
at System.RuntimeType.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark)
at System.Type.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase)
at Microsoft.VisualStudio.TestTools.Tips.TuipPackage.TuipPackage.InitializeTestProjectPlugins()
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
Now I am thinking that this may not be resharper after all, but would like you to confirm this for me.
Many thanks.
Joel.
Hello Joel,
Do you have a 32-bit or a 64-bit version of Windows XP? Thank you!
Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
Hi Andrey,
I have 32-bit XP
Joel
I have also installed SP1 for VS2010 today. Maybe that will help!
Hello Joel,
The OOM exceptions (which seem to be causing Visual Studio crashes) is a
known problem on 32-bit operating systems. Have you tried using /3GB switch
that may help to avoid such problems? Thank you!
Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
Today I had another crash with out of memory exception. I did however notice a Resharper dialogue box saying that it was out of memory just before Visual Studio crashed. Unfortunetly Visual studio closed down before I could make a note of the exact resharper message, however it really seems like a Respharper problem to me.
I will also try to /3G switch as you have suggested and see if that makes a difference.
Thanks.
Joel.
Hi Andrey,
Well since I applied the /3G switch to my setup, I've not had any more Visual Studio crashes, so I guess thats fixed it!!
Thanks for your help.
Joel.
What is the /3GB switch you speak of?
I have the same problem, crashes constantly unless I suspend resharper. Usually just suspending resharper and reloading VS will drop me 1 GB of memory and put average CPU at something other than 100%.
x86 windows 7.
Hello Charles,
You can read more about this switch here: http://msdn.microsoft.com/en-us/library/windows/hardware/ff556232(v=vs.85).aspx
for instance. Let me know if this helps. Thank you!
Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
The /3GB switch basically remaps the virtual address space used by Windows.
By default, Windows reserves the lower 2GB virtual address space for
applications and the upper 2GB virtual address space for the kernel. When
you use the /3GB switch, windows reserves the lower 3GB virtual address
space for applications and the upper 1GB virtual address space for the
kernel.
Keep in mind that device drivers and video memory are also allocated in the
kernel virtual address space, so you can potentially run into problems with
bad drivers and insufficient video memory. If this is the case, you can also
use the /userva switch to change the application virtual address space to
anywhere between 2GB and 3GB to give the kernel more virtual address space.
You can find various articles discussing the /3GB switch by searching for
"3GB switch". If you decide to go that route, I recommend keeping your
original boot menu item unmodified. Instead, make a copy of the original
entry and then modify the duplicate to enable the /3GB switch. This way
you'll end up with something like this for Windows XP:
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP
Professional" /fastdetect
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP
Professional 3GB" /3GB /fastdetect
The advantage here is that you'll get a menu at boot to pick from one of
these two options. If you can't boot with /3GB enabled or if you run into
problems with /3GB enabled, just reboot and pick your original from the menu
to get back to work. If you're using Windows XP or 7, use something like
EasyBCD to edit the boot configuration database.
"Charles Hooks" wrote in message
news:16437447.33201318456874485.JavaMail.devnet@confluence.jetbrains.net...
What is the /3GB switch you speak of?
I have the same problem, crashes constantly unless I suspend resharper.
Usually just suspending resharper and reloading VS will drop me 1 GB of
memory and put average CPU at something other than 100%.
x86 windows 7.
---
Original message URL: http://devnet.jetbrains.net/message/5322117#5322117