Quantcast
Channel: YouTrackReSharper (RSRP) - Bug and Issue Tracker
Viewing all articles
Browse latest Browse all 106942

RSRP-291045: Failed to modify document. Exception from HRESULT: 0x80041001

$
0
0
Reporter Serge Baltic (baltic) Serge Baltic (baltic)
Created Mar 21, 2012 8:30:42 PM
Updated Mar 21, 2012 8:30:45 PM
Priority Normal
Type Exception
Fix versions No Fix versions
State Submitted
Assignee Unassigned
Subsystem No subsystem
Affected versions No Affected versions
Fixed in build No Fixed in build
ReSharper 6.1 EAP Version=6.5.0.0, Built=2012-01-23T16:53:03, Configuration=“Csharp InternalMode Vbnet VS1000”
Failed to modify document. Exception from HRESULT: 0x80041001

--- EXCEPTION #1/2 [COMException]
Message = “Exception from HRESULT: 0x80041001”
ExceptionPath = Root.InnerException
ClassName = System.Runtime.InteropServices.COMException
HResult = BUFFER_E_READONLY=80041001
StackTraceString = “
  at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
     at JetBrains.UI.Interop.HResultsEx.AssertSucceeded(Int32 hresult) in w:\ReSharper\Platform\src\Util\src\Interop\HResultsEx.cs:line 53
     at JetBrains.VsIntegration.Interop.Shim.TextManager.IVsTextBuffer.ReplaceStreamEx(REPLACE_TEXT_FLAGS dwFlags, Int32 iPos, Int32 iOldLen, String pszText, Int32 iNewLen) in w:\ReSharper\Platform\src\VisualStudio\Core\src\Interop\Shim\TextManager\IVsTextBuffer.cs:line 496
     at JetBrains.VsIntegration.DocumentModel.VsDocumentOperationsHandlerWhidbey.ReplaceVsStream(TextRange range, String newText) in w:\ReSharper\Platform\src\VisualStudio\Core\src\DocumentModel\Whidbey\VsDocumentOperationsHandlerWhidbey.cs:line 380


--- Outer —

--- EXCEPTION #2/2 [LoggerException]
Message = “Failed to modify document.”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
Data.Document = C:\Users\baltic\AppData\Local\Temp\ReSharperCache\_ReSharper.PlatformProductStandalone.1322106123\Decompiler\decompiler\ba\532202f4\StickyNoteControl.cs
Data.DocumentRange = “(0 - 71,419)”
Data.RangeToReplace = “(3,052 - 3,053)”
Data.OldText = D
Data.OldTextLen = 1
Data.NewText = ResourceDictionary
Data.NewTextLen = 18
Data.AroundOldText = “
;
internal static readonly DependencyPropertyKey AuthorPrope

Data.LastExtension = cs
Data.PlatformSccRevision = CompiledWithoutBuildServer
Data.ProductSccRevision = CompiledWithoutBuildServer
Data.VsVersion = 10.0.40219.1
InnerException = “Exception #1 at Root.InnerException”
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
  at JetBrains.VsIntegration.DocumentModel.VsDocumentOperationsHandlerWhidbey.ReplaceVsStream(TextRange range, String newText) in w:\ReSharper\Platform\src\VisualStudio\Core\src\DocumentModel\Whidbey\VsDocumentOperationsHandlerWhidbey.cs:line 384
     at JetBrains.VsIntegration.DocumentModel.VsDocumentOperationsHandlerWhidbey.JetBrains.VsIntegration.Whidbey.DocumentModel.IDocumentOperationsHandlerWhidbey.ReplaceText(TextRange range, String newText) in w:\ReSharper\Platform\src\VisualStudio\Core\src\DocumentModel\Whidbey\VsDocumentOperationsHandlerWhidbey.cs:line 568
     at JetBrains.VsIntegration.DocumentModel.Whidbey.VsDocumentWhidbey.ApplyInternalDocumentChange(DocumentChange documentChange, Boolean underWriteLock, Int32 timestamp) in w:\ReSharper\Platform\src\VisualStudio\Core\src\DocumentModel\Whidbey\VsDocumentWhidbey.cs:line 205
     at JetBrains.DocumentModel.impl.ManagedDocumentBase.ChangeDocument(DocumentChange documentChange, Int32 timestamp) in w:\ReSharper\Platform\src\Documents\src\impl\ManagedDocumentBase.cs:line 105
     at JetBrains.DocumentModel.impl.ManagedDocumentBase.ReplaceText(TextRange atRange, String text) in w:\ReSharper\Platform\src\Documents\src\impl\ManagedDocumentBase.cs:line 130
     at JetBrains.ReSharper.Feature.Services.Lookup.TextLookupItemBase.DoReplaceText(ITextControl textcontrol, TextRange replaceRange, String typeInName) in w:\ReSharper\Psi.Features\src\Services\_Core\src\Lookup\TextLookupItemBase.cs:line 242
     at JetBrains.ReSharper.Feature.Services.CSharp.CodeCompletion.CSharpDeclaredElementLookupItem.DoReplaceText(ITextControl textcontrol, TextRange replaceRange, String typeInName) in w:\ReSharper\Psi.Features\src\Services\CSharp\src\CodeCompletion\CSharpDeclaredElementLookupItem.cs:line 72
     at JetBrains.ReSharper.Feature.Services.Lookup.TextLookupItemBase.Accept(ITextControl textControl, TextRange nameRange, LookupItemInsertType lookupItemInsertType, Suffix suffix, ISolution solution, Boolean keepCaretStill) in w:\ReSharper\Psi.Features\src\Services\_Core\src\Lookup\TextLookupItemBase.cs:line 157
     at JetBrains.ReSharper.Feature.Services.CSharp.CodeCompletion.CSharpDeclaredElementLookupItem.Accept(ITextControl textControl, TextRange nameRange, LookupItemInsertType lookupItemInsertType, Suffix suffix, ISolution solution, Boolean keepCaretStill) in w:\ReSharper\Psi.Features\src\Services\CSharp\src\CodeCompletion\CSharpDeclaredElementLookupItem.cs:line 89
     at JetBrains.ReSharper.Feature.Services.Lookup.LookupItemCompletor.CompleteItem(Action executeInsideCommandScope) in w:\ReSharper\Psi.Features\src\Services\_Core\src\Lookup\LookupItemCompletor.cs:line 107
     at JetBrains.ReSharper.Feature.Services.Lookup.LookupActions.TypingHandler.Type(ITypingContext typingContext) in w:\ReSharper\Psi.Features\src\Services\_Core\src\Lookup\LookupActions.cs:line 198
     at JetBrains.TextControl.Impl.TextControlTypingHandlers.TypingContext.CallNext() in w:\ReSharper\Platform\src\TextControl\src\impl\TextControlTypingHandlersManager.cs:line 164
     at JetBrains.ReSharper.Feature.Services.Html.TypingAssist.ChangedTagNameTracker.HandleAction(ITextControl textControl, Action action, Func`2 selRangeConverter, Boolean shouldReCheckAfterNoMarkers) in w:\ReSharper\Psi.Features\src\Services\Html\src\TypingAssist\ChangedTagNameTracker.cs:line 297
     at JetBrains.ReSharper.Feature.Services.Html.TypingAssist.ChangedTagNameTracker.Type(ITypingContext typingContext) in w:\ReSharper\Psi.Features\src\Services\Html\src\TypingAssist\ChangedTagNameTracker.cs:line 481
     at JetBrains.TextControl.Impl.TextControlTypingHandlers.TypingContext.CallNext() in w:\ReSharper\Platform\src\TextControl\src\impl\TextControlTypingHandlersManager.cs:line 164
     at JetBrains.ReSharper.Feature.Services.Html.TypingAssist.ChangedTagNameTracker.HandleAction(ITextControl textControl, Action action, Func`2 selRangeConverter, Boolean shouldReCheckAfterNoMarkers) in w:\ReSharper\Psi.Features\src\Services\Html\src\TypingAssist\ChangedTagNameTracker.cs:line 297
     at JetBrains.ReSharper.Feature.Services.Html.TypingAssist.ChangedTagNameTracker.Type(ITypingContext typingContext) in w:\ReSharper\Psi.Features\src\Services\Html\src\TypingAssist\ChangedTagNameTracker.cs:line 481
     at JetBrains.TextControl.Impl.TextControlTypingHandlers.TypingContext.CallNext() in w:\ReSharper\Platform\src\TextControl\src\impl\TextControlTypingHandlersManager.cs:line 164
     at JetBrains.ReSharper.Feature.Services.Html.TypingAssist.ChangedTagNameTracker.HandleAction(ITextControl textControl, Action action, Func`2 selRangeConverter, Boolean shouldReCheckAfterNoMarkers) in w:\ReSharper\Psi.Features\src\Services\Html\src\TypingAssist\ChangedTagNameTracker.cs:line 297
     at JetBrains.ReSharper.Feature.Services.Html.TypingAssist.ChangedTagNameTracker.Type(ITypingContext typingContext) in w:\ReSharper\Psi.Features\src\Services\Html\src\TypingAssist\ChangedTagNameTracker.cs:line 481
     at JetBrains.TextControl.Impl.TextControlTypingHandlers.TypingContext.CallNext() in w:\ReSharper\Platform\src\TextControl\src\impl\TextControlTypingHandlersManager.cs:line 164
     at JetBrains.ReSharper.LiveTemplates.Execution.LiveTemplateTracker.TypingHandler.Type(ITypingContext typingContext) in w:\ReSharper\Psi.Features\src\LiveTemplates\_Core\src\Actions\LiveTemplateTracker.cs:line 102
     at JetBrains.TextControl.Impl.TextControlTypingHandlers.TypingContext.CallNext() in w:\ReSharper\Platform\src\TextControl\src\impl\TextControlTypingHandlersManager.cs:line 164
     at JetBrains.ReSharper.Feature.Services.CodeCompletion.NextTypingHandler.Type(ITypingContext typingContext) in w:\ReSharper\Psi.Features\src\Services\_Core\src\CodeCompletion\NextTypingHandler.cs:line 40
     at JetBrains.TextControl.Impl.TextControlTypingHandlers.TypingContext.CallNext() in w:\ReSharper\Platform\src\TextControl\src\impl\TextControlTypingHandlersManager.cs:line 164
     at JetBrains.ReSharper.Feature.Services.CodeCompletion.IntellisenseManager.Type(ITypingContext typingContext) in w:\ReSharper\Psi.Features\src\Services\_Core\src\CodeCompletion\IntellisenseManager.cs:line 250
     at JetBrains.TextControl.Impl.TextControlTypingHandlers.TypingContext.CallNext() in w:\ReSharper\Platform\src\TextControl\src\impl\TextControlTypingHandlersManager.cs:line 164
     at JetBrains.ReSharper.Features.Intellisense.ParameterInfo.ParameterInfoPopupControllerImpl.TypingHandler.Type(ITypingContext typingContext) in w:\ReSharper\Psi.Features\src\Features\Intellisense\src\ParameterInfo\ParameterInfoPopupControllerImpl.cs:line 334
     at JetBrains.TextControl.Impl.TextControlTypingHandlers.TypingContext.CallNext() in w:\ReSharper\Platform\src\TextControl\src\impl\TextControlTypingHandlersManager.cs:line 164
     at JetBrains.ReSharper.Features.Environment.Tips.TipsManagerTypingHandler.<>c__DisplayClass2.<.ctor>b__0(ITypingContext context) in w:\ReSharper\Psi.Features\src\Features\Environment\src\Tips\SolutionEventListener.cs:line 22
     at JetBrains.TextControl.Impl.TextControlTypingHandlers.TypingContext.CallNext() in w:\ReSharper\Platform\src\TextControl\src\impl\TextControlTypingHandlersManager.cs:line 164
     at JetBrains.ReSharper.Feature.Services.TypingAssist.SkippingTypingAssist.Type(ITypingContext typingContext) in w:\ReSharper\Psi.Features\src\Services\_Core\src\TypingAssist\SkippingTypingAssist.cs:line 55
     at JetBrains.TextControl.Impl.TextControlTypingHandlers.TypingContext.CallNext() in w:\ReSharper\Platform\src\TextControl\src\impl\TextControlTypingHandlersManager.cs:line 164
     at JetBrains.TextControl.Impl.TextControlTypingHandlers.TypingContext.CallFirst(Lifetime lifetime, TypingHandler[] handlers, ITextControl textControl, Char ch, IShellLocks locks) in w:\ReSharper\Platform\src\TextControl\src\impl\TextControlTypingHandlersManager.cs:line 143
     at JetBrains.TextControl.Impl.TextControlTypingHandlers.<>c__DisplayClass7.<Type>b__6(Lifetime lifetime1) in w:\ReSharper\Platform\src\TextControl\src\impl\TextControlTypingHandlersManager.cs:line 109
     at JetBrains.DataFlow.Lifetimes.Using(Action`1 F) in w:\ReSharper\Platform\src\Util\src\DataFlow\Lifetime\Lifetimes.cs:line 20
     at JetBrains.TextControl.Impl.TextControlTypingHandlers.<>c__DisplayClass7.<Type>b__5(Lifetime lifetime) in w:\ReSharper\Platform\src\TextControl\src\impl\TextControlTypingHandlersManager.cs:line 114
     at JetBrains.DataFlow.Lifetimes.Using(Action`1 F) in w:\ReSharper\Platform\src\Util\src\DataFlow\Lifetime\Lifetimes.cs:line 20
     at JetBrains.TextControl.Impl.TextControlTypingHandlers.Type(ITextControl textControl, Char c) in w:\ReSharper\Platform\src\TextControl\src\impl\TextControlTypingHandlersManager.cs:line 120
     at JetBrains.VsIntegration.Whidbey.TextControl.VsTextControlOleCommandTarget.<>c__DisplayClass12.<TryDelegateToReSharper_Typing>b__10() in w:\ReSharper\Platform\src\VisualStudio\Core\src\TextControl\VsTextControlOleCommandTarget.cs:line 307
     at JetBrains.VsIntegration.Whidbey.TextControl.VsTextControlOleCommandTarget.WithRegisteredDelegateBackToVsHandler(String sCommandName, Action`1 FExecDelegateBackToVs, Action FRun) in w:\ReSharper\Platform\src\VisualStudio\Core\src\TextControl\VsTextControlOleCommandTarget.cs:line 351
     at JetBrains.VsIntegration.Whidbey.TextControl.VsTextControlOleCommandTarget.<>c__DisplayClass12.<TryDelegateToReSharper_Typing>b__11() in w:\ReSharper\Platform\src\VisualStudio\Core\src\TextControl\VsTextControlOleCommandTarget.cs:line 311
     at JetBrains.DocumentModel.Impl.DocumentBase.ExpectCallbacksFromUnderlyingStore(Action F) in w:\ReSharper\Platform\src\Documents\src\impl\DocumentBase.cs:line 94
     at JetBrains.VsIntegration.Whidbey.TextControl.VsTextControlOleCommandTarget.TryDelegateToReSharper_Typing(IntPtr pvaIn, Action`1 FExecDelegateBackToVs) in w:\ReSharper\Platform\src\VisualStudio\Core\src\TextControl\VsTextControlOleCommandTarget.cs:line 310
     at JetBrains.VsIntegration.Whidbey.TextControl.VsTextControlOleCommandTarget.TryDelegateToReSharper(Boolean bIsTyping, CommandID commandid, IntPtr pvaIn, Action`1 FExecDelegateBackToVsClosed) in w:\ReSharper\Platform\src\VisualStudio\Core\src\TextControl\VsTextControlOleCommandTarget.cs:line 258
     at JetBrains.VsIntegration.Whidbey.TextControl.VsTextControlOleCommandTarget.<>c__DisplayClass19.<Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget.Exec>b__17() in w:\ReSharper\Platform\src\VisualStudio\Core\src\TextControl\VsTextControlOleCommandTarget.cs:line 406
at Action(VsTextControl.Exec).Execute(Action )
     at JetBrains.Threading.ReentrancyGuard.Execute(String name, Action action) in w:\ReSharper\Platform\src\Util\src\Concurrency\ReentrancyGuard.cs:line 264
     at JetBrains.Threading.ReentrancyGuard.TryExecute(String name, Action action) in w:\ReSharper\Platform\src\Util\src\Concurrency\ReentrancyGuard.cs:line 415
     at JetBrains.VsIntegration.Whidbey.TextControl.VsTextControlOleCommandTarget.Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget.Exec(Guid& pguidCmdGroupRef, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut) in w:\ReSharper\Platform\src\VisualStudio\Core\src\TextControl\VsTextControlOleCommandTarget.cs:line 395
     at Microsoft.VisualStudio.Editor.Implementation.VsTextViewAdapter.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
     at Microsoft.VisualStudio.Editor.Implementation.VsKeyboardFilter.SendCommand(Guid cmdGroup, UInt32 cmdID, Object inParam)
     at Microsoft.VisualStudio.Editor.Implementation.VsKeyboardFilter.TextInput(TextCompositionEventArgs args)
     at Microsoft.VisualStudio.Text.Editor.Implementation.KeyProcessorDispatcher.<DispatchTextInputEvents>b__0(KeyProcessor p, TextCompositionEventArgs args)
     at Microsoft.VisualStudio.Text.Editor.Implementation.KeyProcessorDispatcher.<>c__DisplayClass1e`1.<Dispatch>b__1a()
     at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.CallExtensionPoint(Object errorSource, Action call)
     at Microsoft.VisualStudio.Text.Editor.Implementation.KeyProcessorDispatcher.Dispatch[T](Action`2 action, T args)
     at Microsoft.VisualStudio.Text.Editor.Implementation.KeyProcessorDispatcher.<>c__DisplayClass18.<MakeHandler>b__17(Object sender, TextCompositionEventArgs args)
     at System.Windows.Input.TextCompositionEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
     at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
     at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
     at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
     at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
     at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
     at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
     at System.Windows.Input.InputManager.ProcessStagingArea()
     at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
     at System.Windows.Input.TextCompositionManager.UnsafeCompleteComposition(TextComposition composition)
     at System.Windows.Input.TextCompositionManager.PostProcessInput(Object sender, ProcessInputEventArgs e)
     at System.Windows.Input.InputManager.RaiseProcessInputEventHandlers(ProcessInputEventHandler postProcessInput, ProcessInputEventArgs processInputEventArgs)
     at System.Windows.Input.InputManager.ProcessStagingArea()
     at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
     at System.Windows.Input.TextCompositionManager.UnsafeStartComposition(TextComposition composition)
     at System.Windows.Input.TextCompositionManager.PostProcessInput(Object sender, ProcessInputEventArgs e)
     at System.Windows.Input.InputManager.RaiseProcessInputEventHandlers(ProcessInputEventHandler postProcessInput, ProcessInputEventArgs processInputEventArgs)
     at System.Windows.Input.InputManager.ProcessStagingArea()
     at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
     at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
     at System.Windows.Interop.HwndKeyboardInputProvider.ProcessTextInputAction(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
     at System.Windows.Interop.HwndSource.OnPreprocessMessage(Object param)
     at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
     at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
     at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
     at System.Windows.Interop.HwndSource.OnPreprocessMessageThunk(MSG& msg, Boolean& handled)
     at System.Windows.Interop.HwndSource.WeakEventPreprocessMessage.OnPreprocessMessage(MSG& msg, Boolean& handled)
     at System.Windows.Interop.ComponentDispatcherThread.RaiseThreadMessage(MSG& msg)
     at Microsoft.VisualStudio.Platform.WindowManagement.WindowManagerService.PreTranslateInput(MSG[] lpmsg, Boolean handled)

Viewing all articles
Browse latest Browse all 106942

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>