History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: RSRP-56402
Type: Exception Exception
Status: Closed Closed
Resolution: Fixed
Priority: Critical Critical
Assignee: Dmitry Shaporenkov
Reporter: Damien White
Votes: 5
Watchers: 6
Operations

If you were logged in you would be able to see more operations.
ReSharper

ReSharper 3.1 Bug - Modifying CSS crashes Visual Studio 2008

Created: 23 Jan 08 05:18   Updated: 21 Apr 08 22:56
Component/s: None
Fix Version/s: 4.0, 3.1.1
Security Level: Everybody (All jira users)

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 3.1
Fixed in build: 773


 Description  « Hide
When modifying CSS files in VS 2008, a message saying that the memory cannot be read comes up. Often times this is preluded by a ReSharper exception. The build is 3.1.584.3

 All   Comments   Work Log   Change History      Sort Order:
Damien White - 23 Jan 08 05:27
The actual message is:

Attempted to read or write protected memory. This is often an indication that other memory is corrupt.


Dmitry Shaporenkov - 23 Jan 08 12:08
Hi Daniel,

could you please clarify if the crash only happens when there is an underlined squiggly error in the CSS file?

Thanks.



Damien White - 23 Jan 08 17:46
Most recently I was modifying a color attribute, in the process of typing a hex code (e.g. #336699); there is a squiggle while I was typing, and then I got the error.

Matt Weaver - 22 Feb 08 13:13
Same thing happens to me. I tried using multiple attributes such as hex color, font-face etc. but the error definitely seems to be related to the squiggle. Sometimes the IDE becomes unresponsive and I have to task kill, other times it just right out crashes with

Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

Verified that it is only when the squiggle is at, if not near, the caret.



mark warfield - 25 Mar 08 12:23
Having exactly the same issue here - driving me mad!!!

paul barrass - 26 Mar 08 16:20
Exactly the same issue here too - how do we get this fixed - Resharper is useless to me if I can't edit a CSS file without VS crashing!

Damien McGivern - 26 Mar 08 19:36
You can disable ReSharper on a per file basis by using the command Crtl+8, I find this stops VS from crashing most of the time.

paul barrass - 26 Mar 08 19:51
Thanks for the tip Damien - I guess I will need to get into the ctrl+8 habit!

James Shallard - 28 Mar 08 21:47
I have the same issues. I am close to uninstalling Resharper because of it. I will try the ctrl+8 trick for now and see how that goes. Any timeline on a fix would be appreciated.

paul barrass - 31 Mar 08 18:34
Hey guys, I contacted JetBrains support about this issue and it appears to be fixed in the latest nightly builds here:

http://www.jetbrains.net/confluence/display/ReSharper/Nightly+Builds

It hasnt crashed for me yet.....

Cheers,

Paul


James Shallard - 21 Apr 08 20:45
I have downloaded and installed the latest build. The problem is happening less, but I am still getting VS 2008 crashing frequently when editing CSS files.

(Resharper 3.1 VB.Net edition, build 3.1.584.3)


James Shallard - 21 Apr 08 22:56
In case it is useful, this was the error information:

JetBrains.Util.InternalErrorException: Unable to call IVsTextView.GetPointsOfLineColumn. NullReferenceException occoured.

at JetBrains.Util.InternalErrorException..ctor(String, Exception) in c:\A\work\be08dc054b0f1225\Platform\src\JetBrains.Util\src\InternalErrorException.cs:line 29 column 7
at JetBrains.Util.Logger.Fail(String) in c:\A\work\be08dc054b0f1225\Platform\src\JetBrains.Util\src\Logger\Logger.cs:line 135 column 5
at JetBrains.Util.Logger.Assert(Boolean, String) in c:\A\work\be08dc054b0f1225\Platform\src\JetBrains.Util\src\Logger\Logger.cs:line 110 column 3
at JetBrains.VSAddin.TextControl.VSTextControl.GetSafePointOfLineColumn(Int32, Int32) in c:\A\work\be08dc054b0f1225\src\VSAddin\src\TextControl\VSTextControl.cs:line 339 column 7
at JetBrains.VSAddin.TextControl.VSTextControl.VisualToCanvas(POINT[], VisualPosition) in c:\A\work\be08dc054b0f1225\src\VSAddin\src\TextControl\VSTextControl.cs:line 354 column 7
at JetBrains.VSAddin.TextControl.VSTextControl.VisualToCanvas(VisualPosition) in c:\A\work\be08dc054b0f1225\src\VSAddin\src\TextControl\VSTextControl.cs:line 347 column 7
at JetBrains.ReSharper.Daemon.Impl.BulbManagerImpl.AsyncBuildAvailableActionsList(Boolean, Boolean, ITextControl, Boolean, Int32, Action) in c:\A\work\be08dc054b0f1225\src\Daemon\src\Impl\BulbManagerImpl.cs:line 221 column 7
at JetBrains.ReSharper.Daemon.Impl.<>c_DisplayClass1.<JetBrains.ReSharper.CodeInsight.Services.IAsyncCommitClient.BeforeCommit>b_0() in c:\A\work\be08dc054b0f1225\src\Daemon\src\Impl\BulbManagerImpl.cs:line 168 column 18
at JetBrains.ReSharper.Psi.Impl.<>c_DisplayClass4.<DoCommit>b_3() in c:\A\work\be08dc054b0f1225\src\Psi\src\impl\AsyncCommitServiceImpl.cs:line 148 column 25
at JetBrains.ReSharper.Psi.Impl.PsiManagerImpl.PsiManagerImpl.AsyncCommitAllDocuments(CheckForInterrupt, Action, Action) in c:\A\work\be08dc054b0f1225\src\Psi\src\impl\PsiManager\PsiManagerImpl.cs:line 734 column 11
at JetBrains.ReSharper.Psi.Impl.Commiter.DoCommit() in c:\A\work\be08dc054b0f1225\src\Psi\src\impl\AsyncCommitServiceImpl.cs:line 141 column 11
at JetBrains.ReSharper.Psi.Impl.<>c_DisplayClass1.<OnAlarm>b_0() in c:\A\work\be08dc054b0f1225\src\Psi\src\impl\AsyncCommitServiceImpl.cs:line 100 column 17
at JetBrains.ReSharper.Psi.Impl.AsyncCommitServiceImpl.OnAlarm() in c:\A\work\be08dc054b0f1225\src\Psi\src\impl\AsyncCommitServiceImpl.cs:line 104 column 5
at JetBrains.Shell.PendingAction.Execute() in c:\A\work\be08dc054b0f1225\Platform\src\JetBrains.Shell\src\Invocator.cs:line 292 column 7
at JetBrains.Shell.Invocator.ProcessQueue() in c:\A\work\be08dc054b0f1225\Platform\src\JetBrains.Shell\src\Invocator.cs:line 129 column 11
at System.RuntimeMethodHandle._InvokeMethodFast(Object, Object[], SignatureStruct&, MethodAttributes, RuntimeTypeHandle)
at System.RuntimeMethodHandle.InvokeMethodFast(Object, Object[], Signature, MethodAttributes, RuntimeTypeHandle)
at System.Reflection.RuntimeMethodInfo.Invoke(Object, BindingFlags, Binder, Object[], CultureInfo, Boolean)
at System.Delegate.DynamicInvokeImpl(Object[])
at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry)
at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object)
at System.Threading.ExecutionContext.runTryCode(Object)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode, CleanupCode, Object)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext, ContextCallback, Object)
at System.Threading.ExecutionContext.Run(ExecutionContext, ContextCallback, Object)
at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry)
at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
at System.Windows.Forms.Control.WndProc(Message&)
at System.Windows.Forms.ScrollableControl.WndProc(Message&)
at System.Windows.Forms.ContainerControl.WndProc(Message&)
at System.Windows.Forms.Form.WndProc(Message&)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message&)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message&)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr, Int32, IntPtr, IntPtr)

at JetBrains.Util.Logger.Fail(String messageText) in c:\A\work\be08dc054b0f1225\Platform\src\JetBrains.Util\src\Logger\Logger.cs:line 135