Log files for the new 'Import Dump' function

Hello, how can I get log files for the new function 'Import Dump' for dotMemory 2017.3.5.0?
This guide does not seem to work: https://dotnettools-support.jetbrains.com/hc/en-us/articles/207242595-How-to-get-trace-logs-for-dotMemory-v4-2-and-later-

My problem is that it works great on a small memory dump, but with larger dumps (> 6 GB), the progress bar disappears after some time and nothing happens.
Do you have any idea what the problem could be?

6 comments
Comment actions Permalink

This guide is actual for all dotMemory functionality. What of these steps does not work for you?

0
Comment actions Permalink

dotMemory simply does not create a log file.
A peculiarity could be that %temp% is redirected to Z:\temp.

Some screenshots:





 


0
Comment actions Permalink

Please try to check %localappdata%\Temp\JetLogs folder.

dotMemory logs are created on each product start (in Info mode by default), so right JetLogs folder can't be empty.

0
Comment actions Permalink

If you still can't find the logs, you can specify certain log file from the command line, for example:

dotMemory.UI.64.exe /LogLevel=Trace /LogFile="Z:\temp\JetLogs\LogFile.txt"

0
Comment actions Permalink

Thank you, Anna. The dotMemory.UI.64.exe /LogLevel=Trace /LogFile="Z:\temp\JetLogs\LogFile.txt" command line works as expected.
Now I have log files and I know where the problem is coming from.
80070070 -> There is not enough space on the disk

So the disk space of %localappdata% will be too small.
Maybe you can check the free space or at least give a message to the user.

--- EXCEPTION #1/4 [IOException]
Message = “Es steht nicht genug Speicherplatz auf dem Datenträger zur Verfügung.”
ExceptionPath = Root.InnerException.InnerException.InnerException
ClassName = System.IO.IOException
HResult = 80070070
Source = mscorlib
StackTraceString = “
  at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
     at System.IO.FileStream.WriteCore(Byte[] buffer, Int32 offset, Int32 count)
     at System.IO.FileStream.FlushWrite(Boolean calledFromFinalizer)
     at System.IO.FileStream.Flush(Boolean flushToDisk)
     at System.IO.BinaryWriter.get_BaseStream()
     at JetBrains.dotMemory.Dal.GraphReferenceDetailsWriter.<.ctor>b__1(Int64 headerPosition)
     at JetBrains.DataFlow.Lifetime.Terminate()


--- Outer ---

--- EXCEPTION #2/4 [RemotingException]
Message = “Exception in remote process occured”
ExceptionPath = Root.InnerException.InnerException
ClassName = System.Runtime.Remoting.RemotingException
InnerException = “Exception #1 at Root.InnerException.InnerException.InnerException”
HResult = COR_E_REMOTING=8013150B

--- Outer ---

--- EXCEPTION #3/4 [ExternalExecutionException]
Message = “Exception in remote process occured”
ExceptionPath = Root.InnerException
ClassName = JetBrains.dotMemory.Core.Remoting.ExternalExecutionException
InnerException = “Exception #2 at Root.InnerException.InnerException”
HResult = COR_E_EXCEPTION=80131500
Source = JetBrains.dotMemory.Core
StackTraceString = “
  at JetBrains.dotMemory.Core.Remoting.ExternalExecutor.Execute[TSourceData,TResultingData](String executorName, TSourceData sourceData, Func`3 execute, IExecutionController executionController, PlatformKind platformKind)
     at JetBrains.dotMemory.Dal.Dumps.ProcessDumpImporter.CreateProfilingSessionFromProcessDumpRuntime(FileSystemPath dumpPath, Int32 runtimeIndex, ProcessDumpRuntime runtime, JsonWorkspaceIndex workspaceIndex, FileSystemPath targetFolder, FileSystemPath tempDirectory, IExecutionController executionController)
     at JetBrains.dotMemory.Dal.Dumps.ProcessDumpImporter.ReadData(FileSystemPath dumpPath, FileSystemPath targetFolder, IExecutionController executionController)
     at JetBrains.dotMemory.Dal.Workspace.WorkspaceDiskUtil.ImportWorkspace(FileSystemPath workspacePath, IWorkspaceImporter workspaceImporter, IExecutionController executionController)
     at JetBrains.dotMemory.Presentation.Standalone.MainView.MainVm.<>c__DisplayClass2d.<ImportProcessDump>b__25(IProgressIndicator progressIndicator)


--- Outer ---

--- EXCEPTION #4/4 [LoggerException]
Message = “Exception in remote process occured”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
InnerException = “Exception #3 at Root.InnerException”
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
  at JetBrains.UI.SrcView.Progress.UITaskExecutorRun.<>c__DisplayClass15.<RunStartTask>b__14()
     at JetBrains.Threading.JetDispatcher.Closure.Execute()
     at JetBrains.Util.Concurrency.WinJetDispatcher.ProcessQueue(Int32 nMinBucket)
     at System.Windows.Threading.DispatcherOperation.InvokeDelegateCore()
     at System.Windows.Threading.DispatcherOperation.InvokeImpl()
     at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
     at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
     at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
     at System.Windows.Threading.DispatcherOperation.Invoke()
     at System.Windows.Threading.Dispatcher.ProcessQueue()
     at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
     at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
     at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
     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.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
     at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
     at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
     at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
     at System.Windows.Forms.Application.ThreadContext.LocalModalMessageLoop(Form form)
     at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
     at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
     at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
     at JetBrains.UI.SrcView.Progress.UITaskExecutorRun.RunCore(TaskThreadAffinity taskThreadAffinity, Action`1 FTask, Func`3 FAttachUi, ProgressIndicator progressIndicator, IWin32Window parentWindow, IThreading threading, WorkerThreadShop workerThreadShop, Boolean enforceModalityState)
     at JetBrains.UI.SrcView.Progress.UITaskExecutorRuns.ExecuteTask(String name, TaskCancelable cancelable, Action`1 task)
     at System.Windows.Controls.Button.OnClick()
     at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
     at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
     at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
     at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
     at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
     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.Input.InputManager.ProcessStagingArea()
     at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
     at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
     at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
     at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
     at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
     at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
     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.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
     at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
     at JetBrains.Interop.WinApi.Interfaces.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentId, Int32 uReason, Void* pvLoopData)
     at JetBrains.Interop.WinApi.Interfaces.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentId, Int32 uReason, Void* pvLoopData)
     at JetBrains.Application.UI.MsoComponentManager.NativeComponentManagerProxy.PushMessageLoop(Int32 uReason, IProperty`1 continueLoop)
     at JetBrains.Application.Env.NativeComponentManagerProxyHostMixin.<>c__DisplayClass8.<JetBrains.Application.Environment.HostParameters.IRunMainLoopHostMixin.RunMainLoop>b__6(Lifetime lifetime)
     at JetBrains.DataFlow.Lifetimes.Using(Action`1 λ)
     at JetBrains.Application.Env.NativeComponentManagerProxyHostMixin.JetBrains.Application.Environment.HostParameters.IRunMainLoopHostMixin.RunMainLoop(ComponentContainer containerEnv)
     at JetBrains.Application.Environment.HostParameters.JetHostParametersCaller.RunMainLoop(ComponentContainer containerEnv)
     at JetBrains.Application.Environment.JetEnvironment.InternalRun(JetHostParametersCaller host, ComponentContainer containerEnv)
     at JetBrains.Application.Environment.JetEnvironment.CreateAndRun(Full hostparams)
     at JetBrains.Standalone.TabWell.Shell.Host.LauncherTabWell.RunApplication(Void* hwndSplashScreen)
     at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
     at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
     at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
     at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)

 

0
Comment actions Permalink

Workspace can takes a lot of disk space. You can change workspace files location to avoid this issue:

Set "dotMemory Home | Preferences | Workspace files location" path to the disk with enough space.

About correct message in dotMemory interface: we'll investigate why it wasn't shown.

Sorry for inconvenience.

0

Please sign in to leave a comment.