NetMemProfilerConsole crashes when run with /da parameter

Use this forum for questions on how to use .NET Memory Profiler and how to analyse memory usage.
Post Reply
Pawel
Posts: 3
Joined: Fri Aug 03, 2012 10:35 am

NetMemProfilerConsole crashes when run with /da parameter

Post by Pawel » Fri Aug 03, 2012 11:08 am

I am trying to attach the NetMemProfilerConsole to a running process using DbgTools (the process has concurrent GC enabled). Unfortunately, the Console keeps crashing because of some error (all I get is a message box - "The operation failed with the following error: Object reference not set to an instance of an object.").
It doesn't happen when I attach to the process using Memory Profiler GUI.
I am using .NetMemoryProfiler 4.5, on Windows 7 64-bit with Debugging Tools for Windows installed (both x64 an x86).
Do you know what could the reason be or what I should do about it?

EDIT: I checked it on Windows XP 32-bit and it behaves the same.

Andreas Suurkuusk
Posts: 1029
Joined: Wed Mar 02, 2005 7:53 pm

Re: NetMemProfilerConsole crashes when run with /da paramete

Post by Andreas Suurkuusk » Sun Aug 05, 2012 7:30 am

This does sound like a bug in NetMemProfilerConsole. To get more information about what's happening, can you send us the log-file from the profiler to support@scitech.se? The log-file is named ProfilerClientLog.txt and is stored in the folder "C:\Users\<User>\AppData\Local\SciTech\MemProfiler4\Logs".
Best regards,

Andreas Suurkuusk
SciTech Software AB

Pawel
Posts: 3
Joined: Fri Aug 03, 2012 10:35 am

Re: NetMemProfilerConsole crashes when run with /da paramete

Post by Pawel » Mon Aug 06, 2012 6:41 am

I've sent an e-mail.

thejas

Re: NetMemProfilerConsole crashes when run with /da paramete

Post by thejas » Tue Aug 07, 2012 10:04 am

I am getting the same error, when I run console program. And the log (C:\Users\user\AppData\Local\SciTech\MemProfiler4\Logs)is not getting updated when you run console program. Logs are written only when you run UI.

D:\MyToolBox>NmpCore /da My.exe /cs1 /sf "F:\Data
Tue 08/07/2012 15:28:20.59.prsession" /persistentregister
.NET Memory Profiler NmpCore Tool - Version 4.5.173.0
Copyright (C) SciTech Software AB. All rights reserved
Extracting temporary profiler files
Starting session
Waiting for profiled process to start.
The operation failed with the following error:
Object reference not set to an instance of an object.

Andreas Suurkuusk
Posts: 1029
Joined: Wed Mar 02, 2005 7:53 pm

Re: NetMemProfilerConsole crashes when run with /da paramete

Post by Andreas Suurkuusk » Tue Aug 07, 2012 10:08 am

@Pawel: Thank you for the log-file.

We have now fixed this error. A maintenance release containing the fix will be released within one or two days.
Best regards,

Andreas Suurkuusk
SciTech Software AB

Pawel
Posts: 3
Joined: Fri Aug 03, 2012 10:35 am

Re: NetMemProfilerConsole crashes when run with /da paramete

Post by Pawel » Mon Aug 13, 2012 7:03 am

I have just checked the new release and it works fine. Thank you.

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 19 guests