Unhandled exception on Dump Memory
I have dowloaded and installed demo version of dotTrace memory 3.5 64 bits. My sample WPF application have only one empty function (button OnClick) and Dump Memory throws an unhandled exception:
JetBrains.ReSharper.Util.InternalErrorException: Object reference not set to an instance of an object.
Tried to open newly taken snapshot (OpenSnapShotFileAction.cs) ---> System.NullReferenceException: Object reference not set to an instance of an object.
at JetBrains.dotTrace.SnapShot.Memory.UniversalSnapShotFile.MemoryDumpLoader.ProcessStaticHolders(RootBuildHelper rootHelper, Boolean[] arrayMarks, Boolean[] objectMarks, Int32[] arrayIncoming, Int32[] objectIncoming) in C:\Agent\work\85dc3e7652d2bf91\src\SnapShot.Memory\src\UniversalSnapShotFile\MemoryDumpLoader.cs:line 455
at JetBrains.dotTrace.SnapShot.Memory.UniversalSnapShotFile.MemoryDumpLoader.ReadRoots(DataReaderRoots dataReader, FunctionSignatureCollectionData functionSignatureCollection, StaticSignatureCollectionData staticSignatureCollection, Int32[] arrayIncoming, Int32[] objectIncoming) in C:\Agent\work\85dc3e7652d2bf91\src\SnapShot.Memory\src\UniversalSnapShotFile\MemoryDumpLoader.cs:line 439
at JetBrains.dotTrace.SnapShot.Memory.UniversalSnapShotFile.MemoryDumpLoader..ctor(DataReaderRoots readerRoots, DataReaderArrays readerArrays, DataReaderObjects readerObjects, DataReaderInterconnectArrays readerInterconnectArrays, DataReaderInterconnectObjects readerInterconnectObjects, StringCollectionData fieldNameCollection, ClassSignatureCollectionData classSignatureCollection, FunctionSignatureCollectionData functionSignatureCollection, StaticSignatureCollectionData staticSignatureCollection) in C:\Agent\work\85dc3e7652d2bf91\src\SnapShot.Memory\src\UniversalSnapShotFile\MemoryDumpLoader.cs:line 1016
at JetBrains.dotTrace.SnapShot.Memory.UniversalSnapShotFile.UniversalSnapShotFile.Load(IProgressIndicator streamProgress, IProgressIndicator progress, FileStream stream, Boolean dontUseCache) in C:\Agent\work\85dc3e7652d2bf91\src\SnapShot.Memory\src\UniversalSnapShotFile\UniversalSnapShotFile.cs:line 257
at JetBrains.dotTrace.SnapShot.Memory.MemorySnapShotFile.Load(IProgressIndicator progress, String filename, Boolean dontUseCache) in C:\Agent\work\85dc3e7652d2bf91\src\SnapShot.Memory\src\MemorySnapShotFile.cs:line 30
at JetBrains.dotTrace.ViewControls.Memory.TabGroup.Init(IProgressIndicator progress) in C:\Agent\work\85dc3e7652d2bf91\src\ViewControls.Memory\src\TabGroup.cs:line 82
at JetBrains.dotTrace.SnapshotManagement.OpenSnapShotFileAction.Helper.OpenSnapShotAndCreateRootTabPage(IProgressIndicator progress) in C:\Agent\work\85dc3e7652d2bf91\src\dotTrace2\src\Actions\SnapShot\OpenSnapShotFileAction.cs:line 188
--- 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(String, Exception) in c:\Agent\work\44defee5e214028b\src\Util\src\Logger.cs:line 348 column 5
at JetBrains.dotTrace.SnapshotManagement.Helper.SubmitException(Exception) in C:\Agent\work\85dc3e7652d2bf91\src\dotTrace2\src\Actions\SnapShot\OpenSnapShotFileAction.cs:line 225 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.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry)
at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
at System.Windows.Forms.Control.MarshaledInvoke(Control, Delegate, Object[], Boolean)
at System.Windows.Forms.Control.Invoke(Delegate, Object[])
at JetBrains.dotTrace.SnapshotManagement.Helper.OpenSnapShotAndCreateRootTabPage(IProgressIndicator) in C:\Agent\work\85dc3e7652d2bf91\src\dotTrace2\src\Actions\SnapShot\OpenSnapShotFileAction.cs:line 212 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\85dc3e7652d2bf91\src\dotTrace2\src\Actions\SnapShot\OpenSnapShotFileAction.cs:line 89 column 8
at JetBrains.dotTrace.SnapshotManagement.OpenSnapShotFileAction.OpenTemporal(String, ITaskExecutor) in C:\Agent\work\85dc3e7652d2bf91\src\dotTrace2\src\Actions\SnapShot\OpenSnapShotFileAction.cs:line 254 column 5
at JetBrains.dotTrace.Handlers.SnapShotUpdater.LoadOrRemoveSnapShot(String) in C:\Agent\work\85dc3e7652d2bf91\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\85dc3e7652d2bf91\src\dotTrace2\src\PocketTasks\RunMainFormTask.cs:line 17 column 3
at JetBrains.dotTrace.MainStuff.Main(String[]) in C:\Agent\work\85dc3e7652d2bf91\src\dotTrace2\src\MainStuff.cs:line 31 column 6
Any idea?
Best,
Juro
Please sign in to leave a comment.
Hello Juro,
Unfortunately it looks like a known issue of dotTrace Memory 3.5. Please try EAP of the new version that doesn't have such problems: http://confluence.jetbrains.com/display/NetProf/dotMemory+4.0+EAP