ReSharper crashing Visual Studio

Hi,

Visual Studio is exiting when ReSharper is active after several (many many) exceptions are thrown. The crash happens during file 'parsing'. I have submitted the problem as many times as possible before the 'Submit' button on the exception form simply refuses to submit any more exceptions (displays some error about the service being down--but only until I restart VS).

The solution includes 5 projects, one of them an ASP.NET web folder project with about 400-500 pages. Everything works fine until around 300 pages are parsed and then ReSharper throws an exception displaying the Exception form with the option of sending the error to JetBrains or just ignoring the error. I have done both but the error continues to show up at least 8 or 10 times before Visual Studio simply exits without warning.

At this point my only option is to disable ReSharper until further notice.

Here is the error that comes up time and again despite checking the 'Ignore this exception' checkbox:

JetBrains.Util.InternalErrorException: Error generating from file: C:\Documents and Settings\cgray\My Documents\Visual Studio 2005\Projects\iPro WebSite\iPro\App_Page\UsersQuery.aspx
Parsing file C:\Documents and Settings\cgray\My Documents\Visual Studio 2005\Projects\iPro WebSite\iPro\App_Page\UsersQuery.aspx ---> System.Exception: Error generating from file: C:\Documents and Settings\cgray\My Documents\Visual Studio 2005\Projects\iPro WebSite\iPro\App_Page\UsersQuery.aspx ---> System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
at JetBrains.ReSharper.Psi.Impl.PsiBuilderLexer.AppendSkippedTokensInternal(CompositeElement parent, TokenNodeType expectedTokenType) in c:\Agent\work\Server\be08dc054b0f1225\src\Psi\src\impl\PsiBuilderLexer.cs:line 102
at JetBrains.ReSharper.Psi.Impl.PsiBuilderLexer.AppendNewChild(CompositeElement parent, TreeElement child) in c:\Agent\work\Server\be08dc054b0f1225\src\Psi\src\impl\PsiBuilderLexer.cs:line 131
at JetBrains.ReSharper.Asp.Impl.AspTreeBuilder.ParseTagAttributeValue(AspTokenNodeType& tokenType) in c:\Agent\work\Server\be08dc054b0f1225\src\Asp\src\impl\AspTreeBuilder.cs:line 753
at JetBrains.ReSharper.Asp.Impl.AspTreeBuilder.ParseTagAttribute(AspTokenNodeType& tokenType) in c:\Agent\work\Server\be08dc054b0f1225\src\Asp\src\impl\AspTreeBuilder.cs:line 815
at JetBrains.ReSharper.Asp.Impl.AspTreeBuilder.ParseTagAttributes(HtmlTagHeader header, AspTokenNodeType tokenType) in c:\Agent\work\Server\be08dc054b0f1225\src\Asp\src\impl\AspTreeBuilder.cs:line 435
at JetBrains.ReSharper.Asp.Impl.AspTreeBuilder.ParseTagHeader(AspCompositeElement element, AspTokenNodeType& tokenType) in c:\Agent\work\Server\be08dc054b0f1225\src\Asp\src\impl\AspTreeBuilder.cs:line 405
at JetBrains.ReSharper.Asp.Impl.AspTreeBuilder.Parse() in c:\Agent\work\Server\be08dc054b0f1225\src\Asp\src\impl\AspTreeBuilder.cs:line 562
at JetBrains.ReSharper.Asp.Impl.AspTreeBuilder.CreateAspTree(IProjectFile aspFile, Boolean resolveIncludeFiles) in c:\Agent\work\Server\be08dc054b0f1225\src\Asp\src\impl\AspTreeBuilder.cs:line 42
at JetBrains.ReSharper.Asp.Impl.AspCodeBehindFileGenerator.GenerateFile(IProjectFile aspFile, Boolean resolveIncludeFiles, Boolean profileEnabled, WebPageParameters& pageParameters, AspFileParameters& fileParameters) in c:\Agent\work\Server\be08dc054b0f1225\src\Asp\src\impl\AspCodeBehindFileGenerator.cs:line 65
--- End of inner exception stack trace ---
at JetBrains.ReSharper.Asp.Impl.AspCodeBehindFileGenerator.GenerateFile(IProjectFile aspFile, Boolean resolveIncludeFiles, Boolean profileEnabled, WebPageParameters& pageParameters, AspFileParameters& fileParameters) in c:\Agent\work\Server\be08dc054b0f1225\src\Asp\src\impl\AspCodeBehindFileGenerator.cs:line 115
at JetBrains.ReSharper.Asp.Impl.AspDocumentManagerImpl.Generate(IProjectFile file, PsiLanguageType& language, IRangeTranslator& rangeTranslator, FileToFileSetMap& immediateIncludes) in c:\Agent\work\Server\be08dc054b0f1225\src\Asp\src\impl\AspDocumentManagerImpl.cs:line 469
at JetBrains.ReSharper.Asp.GeneratedDocumentServiceBase.GetGeneratedDocument(IProjectFile file, PsiLanguageType& language, IRangeTranslator& rangeTranslator, IReferenceProvider& referenceProvider, ISymbolTableProvider& symbolTableProvider) in c:\Agent\work\Server\be08dc054b0f1225\src\Asp\src\GeneratedDocumentServiceBase.cs:line 49
at JetBrains.ReSharper.Psi.Impl.PsiManagerImpl.GeneratedDocumentsManager.CreateGeneratedDocument(IProjectFile file, PsiLanguageType& language, IRangeTranslator& rangeTranslator, IReferenceProvider& referenceProvider, ISymbolTableProvider& symbolTableProvider) in c:\Agent\work\Server\be08dc054b0f1225\src\Psi\src\impl\PsiManager\GeneratedDocumentsManager.cs:line 48
at JetBrains.ReSharper.Psi.Impl.PsiManagerImpl.PsiFilesCache.ParseFileHelper.Run() in c:\Agent\work\Server\be08dc054b0f1225\src\Psi\src\impl\PsiManager\PsiFilesCache.cs:line 160
--- End of inner exception stack trace ---

at JetBrains.Util.Logger.LogExceptionEx(Exception, String, Boolean) in c:\Agent\work\Server\be08dc054b0f1225\Platform\src\JetBrains.Util\src\Logger\Logger.cs:line 263 column 4
at JetBrains.Util.Logger.LogException(String, Exception) in c:\Agent\work\Server\be08dc054b0f1225\Platform\src\JetBrains.Util\src\Logger\Logger.cs:line 282 column 3
at JetBrains.ReSharper.Psi.Impl.PsiManagerImpl.ParseFileHelper.Run() in c:\Agent\work\Server\be08dc054b0f1225\src\Psi\src\impl\PsiManager\PsiFilesCache.cs:line 187 column 11
at JetBrains.ReSharper.Psi.Impl.PsiManagerImpl.PsiFilesCache.GetPsiFile(IProjectFile) in c:\Agent\work\Server\be08dc054b0f1225\src\Psi\src\impl\PsiManager\PsiFilesCache.cs:line 74 column 7
at JetBrains.ReSharper.Psi.Impl.PsiManagerImpl.PsiManagerImpl.GetPsiFile(IProjectFile) in c:\Agent\work\Server\be08dc054b0f1225\src\Psi\src\impl\PsiManager\PsiManagerImpl.cs:line 649 column 7
at JetBrains.ReSharper.Psi.Impl.Caches2.ProjectFileJob.Do() in c:\Agent\work\Server\be08dc054b0f1225\src\Psi\src\impl\caches2\symbolCache\CacheUpdater.cs:line 214 column 13
at JetBrains.ReSharper.Psi.Impl.Caches2.CacheUpdateThread.Run() in c:\Agent\work\Server\be08dc054b0f1225\src\Psi\src\impl\caches2\CacheUpdateThread.cs:line 91 column 11
at System.Threading.ThreadHelper.ThreadStart_Context(Object)
at System.Threading.ExecutionContext.Run(ExecutionContext, ContextCallback, Object)
at System.Threading.ThreadHelper.ThreadStart()

Please sign in to leave a comment.