chevron-thin-right chevron-thin-left brand cancel-circle search youtube-icon google-plus-icon linkedin-icon facebook-icon twitter-icon toolbox download check linkedin phone twitter-old google-plus facebook profile-male chat calendar profile-male
0 votes
Hi,

this is Kirill Osenkov from Microsoft Visual Studio C# IDE QA. I was helping James Johnson (MVP) to debug a crash in Visual Studio 2010 and the root cause was that he had Typemock installed. Uninstalling TypeMock fixed the issue for him.

The repro is basically calling Find in Files twice. The second time you call it, VS crashes. I attach the call stack at the bottom. Minidump with heap is also available on request.

Hope this helps,
Kirill Osenkov
http://blogs.msdn.com/kirillosenkov

Stack:

> Microsoft.VisualStudio.Editor.Implementation.dll!Microsoft.VisualStudio.Editor.Implementation.VsTextViewAdapter.DTETextPane.get() + 0x7d bytes
Microsoft.VisualStudio.Editor.Implementation.dll!Microsoft.VisualStudio.Editor.Implementation.VsTextViewAdapter.EnvDTE.IExtensibleObject.GetAutomationObject(string Name, EnvDTE.IExtensibleObjectSite pParent, out object ppDisp) + 0x9e bytes
Microsoft.VisualStudio.Platform.WindowManagement.dll!Microsoft.VisualStudio.Platform.WindowManagement.DTE.Window.Object.get() + 0x7d bytes
Microsoft.VisualStudio.Platform.WindowManagement.dll!Microsoft.VisualStudio.Platform.WindowManagement.DTE.WindowBase.get_Object.AnonymousMethod__29() + 0x10 bytes
Microsoft.VisualStudio.Shell.10.0.dll!Microsoft.VisualStudio.Shell.ThreadHelper.Invoke<object>(System.Func<object> method) + 0x4d bytes
Microsoft.VisualStudio.Platform.WindowManagement.dll!Microsoft.VisualStudio.Platform.WindowManagement.DTE.WindowBase.Object.get() + 0x47 bytes
TypeMock.Productivity.dll!TypeMock.Productivity.Events.CaretWatcherBase.NotifyOnCaretChange() + 0x2f bytes
TypeMock.Productivity.dll!TypeMock.Productivity.Events.CaretWatcherBase.InvokeOnInputDetected(object sender, System.EventArgs e) + 0x6 bytes
TypeMock.Productivity.dll!TypeMock.Productivity.Events.KeyboardMouseWatcher.HandleKeyOrMouseAction(System.Windows.Forms.Message message) + 0x45 bytes
TypeMock.Productivity.dll!TypeMock.Productivity.Events.KeyboardMouseWatcher.WndProc(ref System.Windows.Forms.Message message) + 0x7e bytes
System.Windows.Forms.dll!System.Windows.Forms.NativeWindow.DebuggableCallback(System.IntPtr hWnd, int msg = 513, System.IntPtr wparam, System.IntPtr lparam) + 0x64 bytes
user32.dll!_InternalCallWinProc@20() + 0x23 bytes
user32.dll!_UserCallWinProcCheckWow@32() + 0xb7 bytes
user32.dll!_DispatchMessageWorker@8() + 0xed bytes
user32.dll!_DispatchMessageW@4() + 0xf bytes
msenv.dll!ProcessMessage() + 0x4d bytes
msenv.dll!CMsoCMHandler::EnvironmentMsgLoop() + 0x87 bytes
msenv.dll!CMsoCMHandler::FPushMessageLoop() + 0x79 bytes
msenv.dll!SCM::FPushMessageLoop() + 0x8c bytes
msenv.dll!SCM_MsoCompMgr::FPushMessageLoop() + 0x2a bytes
msenv.dll!CMsoComponent::PushMsgLoop() + 0x28 bytes
msenv.dll!VStudioMainLogged() + 0x22a bytes
msenv.dll!_VStudioMain() + 0x78 bytes
devenv.exe!util_CallVsMain() + 0xdb bytes
devenv.exe!CDevEnvAppId::Run() + 0x693 bytes
devenv.exe!_WinMain@16() + 0x88 bytes
devenv.exe!operator new[]() + 0x3271 bytes
kernel32.dll!@BaseThreadInitThunk@12() + 0x12 bytes
ntdll.dll!___RtlUserThreadStart@8() + 0x27 bytes
ntdll.dll!__RtlUserThreadStart@8() + 0x1b bytes


at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
at Microsoft.VisualStudio.Platform.WindowManagement.Rdt.FindAndLockDocument(RdtFlags flags, String moniker)
at Microsoft.VisualStudio.Platform.WindowManagement.DTE.DocumentWindows.Impl..ctor(Document document)
at Microsoft.VisualStudio.Platform.WindowManagement.WindowManagerService.get_DocumentWindows(Document document, Windows& windows)
at EnvDTE.Document.get_ActiveWindow()
at Microsoft.VisualStudio.Editor.Implementation.VsTextViewAdapter.get_DTETextWindow()
at Microsoft.VisualStudio.Editor.Implementation.VsTextViewAdapter.EnvDTE.IExtensibleObject.GetAutomationObject(String Name, IExtensibleObjectSite pParent, Object& ppDisp)
at Microsoft.VisualStudio.Editor.Implementation.VsTextViewAdapter.EnvDTE.IExtensibleObject.GetAutomationObject(String Name, IExtensibleObjectSite pParent, Object& ppDisp)


at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
at Microsoft.VisualStudio.Platform.WindowManagement.Rdt.FindAndLockDocument(RdtFlags flags, String moniker)
at Microsoft.VisualStudio.Platform.WindowManagement.DTE.DocumentWindows.Impl..ctor(Document document)
at Microsoft.VisualStudio.Platform.WindowManagement.WindowManagerService.get_DocumentWindows(Document document, Windows& windows)
at EnvDTE.Document.get_ActiveWindow()
at Microsoft.VisualStudio.Editor.Implementation.VsTextViewAdapter.get_DTETextWindow()
at Microsoft.VisualStudio.Editor.Implementation.VsTextViewAdapter.EnvDTE.IExtensibleObject.GetAutomationObject(String Name, IExtensibleObjectSite pParent, Object& ppDisp)
at Microsoft.VisualStudio.Editor.Implementation.VsTextViewAdapter.EnvDTE.IExtensibleObject.GetAutomationObject(String Name, IExtensibleObjectSite pParent, Object& ppDisp)
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
at Microsoft.VisualStudio.Editor.Implementation.VsTextViewAdapter.get_DTETextPane()
at Microsoft.VisualStudio.Editor.Implementation.VsTextViewAdapter.EnvDTE.IExtensibleObject.GetAutomationObject(String Name, IExtensibleObjectSite pParent, Object& ppDisp)
at Microsoft.VisualStudio.Platform.WindowManagement.DTE.Window.get_Object()
at Microsoft.VisualStudio.Platform.WindowManagement.DTE.WindowBase.<get_Object>b__29()
at Microsoft.VisualStudio.Shell.ThreadHelper.Invoke[TResult](Func`1 method)
at Microsoft.VisualStudio.Platform.WindowManagement.DTE.WindowBase.get_Object()
at TypeMock.Productivity.Events.CaretWatcherBase.NotifyOnCaretChange()
at TypeMock.Productivity.Events.CaretWatcherBase.InvokeOnInputDetected(Object sender, EventArgs e)
at TypeMock.Productivity.Events.KeyboardMouseWatcher.HandleKeyOrMouseAction(Message message)
at TypeMock.Productivity.Events.KeyboardMouseWatcher.WndProc(Message& message)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
asked by KirillOsenkov (640 points)

2 Answers

0 votes
Hi Kirill,

Thanks for the report.
We found the problem and fixed it, I'll send you patch.

Please let me know if solves the problem.
answered by ohad (35.4k points)
0 votes
Thanks Ohad,

I've followed up with James Johnson who originally found the bug and he might get back to you. I feel you can close the ticket as fixed now.

Thanks!
Kirill
answered by KirillOsenkov (640 points)
...