NullReferenceException when trying to GetSnapshot

I haven't found the better location for such a thread. Sorry)))

I start my app, then click MarkMemory and then GetSnapshot.
100% reproducable.

dotTrace Memory 3.5  build 360.114 for x64.

The trace:

JetBrains.ReSharper.Util.InternalErrorException: В экземпляре объекта не задана ссылка на объект.
Tried to open newly taken snapshot (OpenSnapShotFileAction.cs) ---> System.NullReferenceException: В экземпляре объекта не задана ссылка на объект.
   в JetBrains.dotTrace.SnapShot.Memory.UniversalSnapShotFile.MemoryDumpLoader.ProcessStaticHolders(RootBuildHelper rootHelper, Boolean[] arrayMarks, Boolean[] objectMarks, Int32[] arrayIncoming, Int32[] objectIncoming) в C:\Agent\work\85dc3e7652d2bf91\src\SnapShot.Memory\src\UniversalSnapShotFile\MemoryDumpLoader.cs:строка 455
   в JetBrains.dotTrace.SnapShot.Memory.UniversalSnapShotFile.MemoryDumpLoader.ReadRoots(DataReaderRoots dataReader, FunctionSignatureCollectionData functionSignatureCollection, StaticSignatureCollectionData staticSignatureCollection, Int32[] arrayIncoming, Int32[] objectIncoming) в C:\Agent\work\85dc3e7652d2bf91\src\SnapShot.Memory\src\UniversalSnapShotFile\MemoryDumpLoader.cs:строка 439
   в 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) в C:\Agent\work\85dc3e7652d2bf91\src\SnapShot.Memory\src\UniversalSnapShotFile\MemoryDumpLoader.cs:строка 1016
   в JetBrains.dotTrace.SnapShot.Memory.UniversalSnapShotFile.UniversalSnapShotFile.Load(IProgressIndicator streamProgress, IProgressIndicator progress, FileStream stream, Boolean dontUseCache) в C:\Agent\work\85dc3e7652d2bf91\src\SnapShot.Memory\src\UniversalSnapShotFile\UniversalSnapShotFile.cs:строка 257
   в JetBrains.dotTrace.SnapShot.Memory.MemorySnapShotFile.Load(IProgressIndicator progress, String filename, Boolean dontUseCache) в C:\Agent\work\85dc3e7652d2bf91\src\SnapShot.Memory\src\MemorySnapShotFile.cs:строка 30
   в JetBrains.dotTrace.ViewControls.Memory.TabGroup.Init(IProgressIndicator progress) в C:\Agent\work\85dc3e7652d2bf91\src\ViewControls.Memory\src\TabGroup.cs:строка 82
   в JetBrains.dotTrace.SnapshotManagement.OpenSnapShotFileAction.Helper.OpenSnapShotAndCreateRootTabPage(IProgressIndicator progress) в C:\Agent\work\85dc3e7652d2bf91\src\dotTrace2\src\Actions\SnapShot\OpenSnapShotFileAction.cs:строка 188
   --- Конец трассировки внутреннего стека исключений ---

    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

1 comment

Hello Ilya,
Sorry for inconvinience and for late response; unfortunately it looks like a known issue of dotTrace Memory 3.5. Please try EAP of the new version: http://confluence.jetbrains.com/display/NetProf/dotMemory+4.0+EAP

0

Please sign in to leave a comment.