Cannot take snapshots in 3.1

I am having a tough time taking memory snapshots of an app that uses .Net Framework 3.5 SP1 with WPF. Every time I say "Get Snapshot", my app crashes and then dotTrace hangs indefinitely. I am running on Vista 64 with SP1.

Here is the call stack. Kindly help/suggest a workaround.

> ntdll.dll!0000000076f24ea0()

mscorwks.dll!000007fef0a92ce9()
mscorwks.dll!000007fef0845ff7()
mscorwks.dll!000007fef0c72f2e()
mscorwks.dll!000007fef06baa81()
mscorwks.dll!000007fef06f2c30()
mscorwks.dll!000007fef06f2e37()
mscorwks.dll!000007fef06ba6e6()
ntdll.dll!0000000076f1eb7c()
ntdll.dll!0000000076f1e8a5()
ntdll.dll!0000000076f259f8()
mscorwks.dll!000007fef07693c3()
mscorwks.dll!000007fef07743ef()
mscorwks.dll!000007fef0b87c6b()
mscordbc.dll!00000642ff8dbb93()
JetBrains.dotTrace.Core.amd64.dll!0000000180006538()
JetBrains.dotTrace.Core.amd64.dll!000000018000756a()
JetBrains.dotTrace.Core.amd64.dll!00000001800227bd()
JetBrains.dotTrace.Core.amd64.dll!000000018002a73b()
mscordbc.dll!00000642ff8db141()
mscorwks.dll!000007fef0ac87b6()
mscorwks.dll!000007fef0a60db7()
mscorwks.dll!000007fef07947d9()
mscorwks.dll!000007fef08653e9()
mscorwks.dll!000007fef0addbdb()
JetBrains.dotTrace.Core.amd64.dll!0000000180026745()
JetBrains.dotTrace.Core.amd64.dll!00000001800020bd()
msvcr80.dll!00000000502637d7()
msvcr80.dll!0000000050263894()
kernel32.dll!0000000076aa495d()
ntdll.dll!0000000076f08791()

16 comments

I had this issue as well. I had to go to another machine (with x86 version of OS), install dotTrace there and run the profiler there. It seems to have some issues on x64 bit systems (I had the same behavior on Vista Ultimate x64 with SP1, as well as Windows Server 2008 x64).

David.

0

Same problem here.

The only work-around I found was to flag my app as 32-bit. Then taking snapshots work.

Jean-Marie

0

And as always JetBrains doesn't seem to care. Is this product still alive or not? I haven't seen anyone from JetBrains on this forum for months! Hallo!

David.

0

Hi David,

  Sorry for not answering: it seems like synchronization between usenet groups and web forums has been broken, so I wasn't able to see all the messages. We will reply soon to all unanswered questions.

WBR, Oleg

0

Hi David,

To solve this problem we need the simple test application from you. Could you send it to me to Mikhail (dot) Pilin (a) JetBrains (dot) com.

WBR, Mikhail Pilin

0

I have already sent one to Oleg Stepanov. Check with him please. If you can't get it from him, then let me know and I will send it to you.

David.

0

David,

  We are working on your issue. We have detected that in your case CLR fails for some reason internally, seemingly due to Profiling API bug. We are working with Microsoft devs to investigate the issue further. I will get in touch with you as soon as we get more information on your case. Thanks!

WBR, Oleg Stepanov

0

Dear David,

We found and fix a problem in our x64 core DLL. So, could you test new core DLL on your computer? Please, give me your e-mail.

WBR, Mikhail Pilin

P.S. My e-mail is Mikhail (dot) Pilin (a) JetBrains (dot) com.

0

You are joking right? Let me remind you something. The bug is titled "Cannot take snapshot in 3.1". The author here means the released version of 3.1. You are telling us that the bug was fixed in 3.1 EAP (build 355 is the latest EAP build on the page you mentioned)? Please, read the posts at least. If it was fixed at 3.1 EAP then it wouldn't be reported in 3.1 RTM!!!

Besides in the previous message you gave me a private build of a DLL that was supposed to fix the issue and I replied to you and Oleg (on your gmail account) that the "Get Memory Snapshot" is still crashing dotTrace on assembly that I gave you guys.

I still have no solution that would enable me profile my .NET assembly in dotTrace.

Regards,
David.

0

Dear David,

Let's split memory and performance profilers. I'd fixed x64 memory profiler bug.
You tell me in your e-mail about performance profiler bug with name "Unknown function identifier".
I know this bug, but can't reproduce it.

WBR,
Mikhail Pilin

0

It doesn't matter - performance as well as memory profiling. Whenever you try to "Get Snapshot" the application (dotTrace) will crash. I gave you an application that will crash the profiler. You even gave me a fix, so I assume you were able to reproduce the issue at one point.

David.

0

Dear David,

Pleae check your e-mail. I've sent you the new version of core to test "Unknown function identifier" problem. I belive it helps.

Best wishes,
Mikhail Pilin

0

Ok, the same result as before. This is what I did:

  • start dotTrace 3.1 with your changes
  • start profiling of AnimatedAlgorithm2 application (which you have)
  • set profiling type to Memory profiling
  • click on Start Application
  • click on Mark Memory
  • click on Get Snapshot


The application (dotTrace) crashes with the following exception:

JetBrains.ReSharper.Util.InternalErrorException: An internal error has occurred An exception has occurred ---> JetBrains.ReSharper.Util.InternalErrorException: An internal error has occurred at JetBrains.ReSharper.Util.InternalErrorException..ctor(String, Exception) in c:\Agent\work\44defee5e214028b\src\Util\src\InternalErrorException.cs:line 28 column 7 at JetBrains.ReSharper.Util.InternalErrorException..ctor(String) in c:\Agent\work\44defee5e214028b\src\Util\src\InternalErrorException.cs:line 19 column 87 at JetBrains.ReSharper.Util.Logger.Assert(Boolean, String, Object[]) in c:\Agent\work\44defee5e214028b\src\Util\src\Logger.cs:line 130 column 11 at JetBrains.ReSharper.Util.Logger.Assert(Boolean) in c:\Agent\work\44defee5e214028b\src\Util\src\Logger.cs:line 121 column 5 at JetBrains.dotTrace.SnapShot.Memory.UniversalSnapShotFile.StaticSignatureCollectionData..ctor(DataReader, StringCollectionData, StringCollectionData, ClassSignatureCollectionData) in C:\Agent\work\75fd6b4bb07661b5\src\SnapShot.Memory\src\UniversalSnapShotFile\StaticSignatureCollectionData.cs:line 128 column 5 at JetBrains.dotTrace.SnapShot.Memory.UniversalSnapShotFile.UniversalSnapShotFile.Load(IProgressIndicator, IProgressIndicator, FileStream, Boolean) in C:\Agent\work\75fd6b4bb07661b5\src\SnapShot.Memory\src\UniversalSnapShotFile\UniversalSnapShotFile.cs:line 257 column 4 at JetBrains.dotTrace.SnapShot.Memory.MemorySnapShotFile.Load(IProgressIndicator, String, Boolean) in C:\Agent\work\75fd6b4bb07661b5\src\SnapShot.Memory\src\MemorySnapShotFile.cs:line 30 column 6 at JetBrains.dotTrace.ViewControls.Memory.TabGroup.Init(IProgressIndicator) in C:\Agent\work\75fd6b4bb07661b5\src\ViewControls.Memory\src\TabGroup.cs:line 82 column 4 at JetBrains.dotTrace.SnapshotManagement.Helper.OpenSnapShotAndCreateRootTabPage(IProgressIndicator) in C:\Agent\work\75fd6b4bb07661b5\src\dotTrace2\src\Actions\SnapShot\OpenSnapShotFileAction.cs:line 189 column 6 at JetBrains.ReSharper.Shell.Progress.TaskHelper.Run() in c:\Agent\work\44defee5e214028b\src\Shell\src\Progress\UITaskExecutor.cs:line 231 column 13 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.Callback(IntPtr, Int32, IntPtr, IntPtr) at JetBrains.UI.Interop.Win32Declarations.DispatchMessage(MSG&) at JetBrains.ReSharper.Shell.Progress.UITaskExecutor.OnInitialTimeoutElapsed() in c:\Agent\work\44defee5e214028b\src\Shell\src\Progress\UITaskExecutor.cs:line 379 column 15 at JetBrains.ReSharper.Shell.Progress.UITaskExecutor.ExecuteTask(TaskHelper, String, Boolean, Boolean&) in c:\Agent\work\44defee5e214028b\src\Shell\src\Progress\UITaskExecutor.cs:line 153 column 11 at JetBrains.ReSharper.Shell.Progress.UITaskExecutor.ExecuteTask(TaskWithProgress, String, Boolean&) in c:\Agent\work\44defee5e214028b\src\Shell\src\Progress\UITaskExecutor.cs:line 170 column 7 at JetBrains.dotTrace.SnapshotManagement.Helper.OpenSnapShotAndCreateRootTabPage() in C:\Agent\work\75fd6b4bb07661b5\src\dotTrace2\src\Actions\SnapShot\OpenSnapShotFileAction.cs:line 89 column 8 at JetBrains.dotTrace.SnapshotManagement.OpenSnapShotFileAction.OpenTemporal(String, ITaskExecutor) in C:\Agent\work\75fd6b4bb07661b5\src\dotTrace2\src\Actions\SnapShot\OpenSnapShotFileAction.cs:line 257 column 5 at JetBrains.dotTrace.Handlers.SnapShotUpdater.LoadOrRemoveSnapShot(String) in C:\Agent\work\75fd6b4bb07661b5\src\dotTrace2\src\Handlers\SnapShotUpdater.cs:line 52 column 4 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.Callback(IntPtr, Int32, IntPtr, IntPtr) at System.Windows.Forms.NativeWindow.DefWndProc(Message&) at System.Windows.Forms.NativeWindow.WndProc(Message&) at JetBrains.ReSharper.CommonControls.WindowListener.WndProc(Message&) in c:\Agent\work\44defee5e214028b\src\CommonControls\src\Utils\WindowListener.cs:line 37 column 5 at System.Windows.Forms.NativeWindow.Callback(IntPtr, Int32, IntPtr, IntPtr) at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG&) at System.Windows.Forms.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32, Int32, Int32) at System.Windows.Forms.ThreadContext.RunMessageLoopInner(Int32, ApplicationContext) at System.Windows.Forms.ThreadContext.RunMessageLoop(Int32, ApplicationContext) at System.Windows.Forms.Application.Run(Form) at JetBrains.dotTrace.PocketTasks.RunMainFormTask.Execute() in C:\Agent\work\75fd6b4bb07661b5\src\dotTrace2\src\PocketTasks\RunMainFormTask.cs:line 17 column 3 at JetBrains.dotTrace.MainStuff.Main(String[]) in C:\Agent\work\75fd6b4bb07661b5\src\dotTrace2\src\MainStuff.cs:line 31 column 6    at JetBrains.ReSharper.Util.Logger.Assert(Boolean condition, String messageFormat, Object[] args) in c:\Agent\work\44defee5e214028b\src\Util\src\Logger.cs:line 130    --- End of inner exception stack trace --- at JetBrains.ReSharper.Util.InternalErrorException..ctor(String, Exception) in c:\Agent\work\44defee5e214028b\src\Util\src\InternalErrorException.cs:line 28 column 7 at JetBrains.ReSharper.Util.Logger.LogExceptionEx(Exception, String, Boolean) in c:\Agent\work\44defee5e214028b\src\Util\src\Logger.cs:line 331 column 9 at JetBrains.ReSharper.Util.Logger.LogException(Exception) in c:\Agent\work\44defee5e214028b\src\Util\src\Logger.cs:line 343 column 5 at JetBrains.ReSharper.Util.Logger.Assert(Boolean, String, Object[]) in c:\Agent\work\44defee5e214028b\src\Util\src\Logger.cs:line 134 column 11 at JetBrains.ReSharper.Util.Logger.Assert(Boolean) in c:\Agent\work\44defee5e214028b\src\Util\src\Logger.cs:line 121 column 5 at JetBrains.dotTrace.SnapShot.Memory.UniversalSnapShotFile.StaticSignatureCollectionData..ctor(DataReader, StringCollectionData, StringCollectionData, ClassSignatureCollectionData) in C:\Agent\work\75fd6b4bb07661b5\src\SnapShot.Memory\src\UniversalSnapShotFile\StaticSignatureCollectionData.cs:line 128 column 5 at JetBrains.dotTrace.SnapShot.Memory.UniversalSnapShotFile.UniversalSnapShotFile.Load(IProgressIndicator, IProgressIndicator, FileStream, Boolean) in C:\Agent\work\75fd6b4bb07661b5\src\SnapShot.Memory\src\UniversalSnapShotFile\UniversalSnapShotFile.cs:line 257 column 4 at JetBrains.dotTrace.SnapShot.Memory.MemorySnapShotFile.Load(IProgressIndicator, String, Boolean) in C:\Agent\work\75fd6b4bb07661b5\src\SnapShot.Memory\src\MemorySnapShotFile.cs:line 30 column 6 at JetBrains.dotTrace.ViewControls.Memory.TabGroup.Init(IProgressIndicator) in C:\Agent\work\75fd6b4bb07661b5\src\ViewControls.Memory\src\TabGroup.cs:line 82 column 4 at JetBrains.dotTrace.SnapshotManagement.Helper.OpenSnapShotAndCreateRootTabPage(IProgressIndicator) in C:\Agent\work\75fd6b4bb07661b5\src\dotTrace2\src\Actions\SnapShot\OpenSnapShotFileAction.cs:line 189 column 6 at JetBrains.ReSharper.Shell.Progress.TaskHelper.Run() in c:\Agent\work\44defee5e214028b\src\Shell\src\Progress\UITaskExecutor.cs:line 231 column 13 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.Callback(IntPtr, Int32, IntPtr, IntPtr) at JetBrains.UI.Interop.Win32Declarations.DispatchMessage(MSG&) at JetBrains.ReSharper.Shell.Progress.UITaskExecutor.OnInitialTimeoutElapsed() in c:\Agent\work\44defee5e214028b\src\Shell\src\Progress\UITaskExecutor.cs:line 379 column 15 at JetBrains.ReSharper.Shell.Progress.UITaskExecutor.ExecuteTask(TaskHelper, String, Boolean, Boolean&) in c:\Agent\work\44defee5e214028b\src\Shell\src\Progress\UITaskExecutor.cs:line 153 column 11 at JetBrains.ReSharper.Shell.Progress.UITaskExecutor.ExecuteTask(TaskWithProgress, String, Boolean&) in c:\Agent\work\44defee5e214028b\src\Shell\src\Progress\UITaskExecutor.cs:line 170 column 7 at JetBrains.dotTrace.SnapshotManagement.Helper.OpenSnapShotAndCreateRootTabPage() in C:\Agent\work\75fd6b4bb07661b5\src\dotTrace2\src\Actions\SnapShot\OpenSnapShotFileAction.cs:line 89 column 8 at JetBrains.dotTrace.SnapshotManagement.OpenSnapShotFileAction.OpenTemporal(String, ITaskExecutor) in C:\Agent\work\75fd6b4bb07661b5\src\dotTrace2\src\Actions\SnapShot\OpenSnapShotFileAction.cs:line 257 column 5 at JetBrains.dotTrace.Handlers.SnapShotUpdater.LoadOrRemoveSnapShot(String) in C:\Agent\work\75fd6b4bb07661b5\src\dotTrace2\src\Handlers\SnapShotUpdater.cs:line 52 column 4 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.Callback(IntPtr, Int32, IntPtr, IntPtr) at System.Windows.Forms.NativeWindow.DefWndProc(Message&) at System.Windows.Forms.NativeWindow.WndProc(Message&) at JetBrains.ReSharper.CommonControls.WindowListener.WndProc(Message&) in c:\Agent\work\44defee5e214028b\src\CommonControls\src\Utils\WindowListener.cs:line 37 column 5 at System.Windows.Forms.NativeWindow.Callback(IntPtr, Int32, IntPtr, IntPtr) at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG&) at System.Windows.Forms.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32, Int32, Int32) at System.Windows.Forms.ThreadContext.RunMessageLoopInner(Int32, ApplicationContext) at System.Windows.Forms.ThreadContext.RunMessageLoop(Int32, ApplicationContext) at System.Windows.Forms.Application.Run(Form) at JetBrains.dotTrace.PocketTasks.RunMainFormTask.Execute() in C:\Agent\work\75fd6b4bb07661b5\src\dotTrace2\src\PocketTasks\RunMainFormTask.cs:line 17 column 3 at JetBrains.dotTrace.MainStuff.Main(String[]) in C:\Agent\work\75fd6b4bb07661b5\src\dotTrace2\src\MainStuff.cs:line 31 column 6
0

Greetings,

Is this hotfix more widely available? I'm experiencing the same issue.

-rory

0

Dear David,

I can't reproduce the problem on my computer. Could you send me the short example.

WBR, Mikhail Pilin

0

Please sign in to leave a comment.