Problem with NmpCore

Use this forum for questions on how to use .NET Memory Profiler and how to analyse memory usage.
Post Reply
evgeniy
Posts: 2
Joined: Tue Sep 18, 2012 7:08 am

Problem with NmpCore

Post by evgeniy » Tue Sep 18, 2012 7:35 am

Hello.

I am trying to use NmpCore (v4.5.179) to profile .Net 2.0 application on XP machine. Goal is to start profile session from command line and then make snapshots from within application using API.
Everything works fine when I am using following command:

Code: Select all

NmpCore /pr /as /cp- /hu /dt /iid /sf <sessionfilename> /p <program>
But I am particularly interested in having unmanaged resources tracking. When I add /rt parameter I am getting twice message boxes with following exception:
Exception1.png
Exception1.png (4.65 KiB) Viewed 7170 times
After clicking OK on both message boxes everything works fine and snapshots contain unmanaged resources.
Only error line in profiler log during profiler start:

Code: Select all

2012-09-18 04:19:39.0468|1|ERROR|SciTech.Profiler.NativeLibraries|Failed to load 'C:\Documents and Settings\All Users\Application Data\SciTech\NmpCore\4612fce4-2b3b-414b-9834-a09fbca67e0b\32Bit\NativeSciTechUI' (Win32 error: 126)
So question is do I forget some parameter to pass or?

Here is full Profiler log:

Code: Select all

2012-09-18 04:19:39.0312|1|INFO|SciTech.Profiler.NativeLibraries|Loading native libraries
2012-09-18 04:19:39.0468|1|INFO|SciTech.Profiler.ProfilerFolders|Getting native base path
2012-09-18 04:19:39.0468|1|INFO|SciTech.Profiler.ProfilerFolders|Returning native base path: C:\Documents and Settings\All Users\Application Data\SciTech\NmpCore\4612fce4-2b3b-414b-9834-a09fbca67e0b\32Bit
2012-09-18 04:19:39.0468|1|ERROR|SciTech.Profiler.NativeLibraries|Failed to load 'C:\Documents and Settings\All Users\Application Data\SciTech\NmpCore\4612fce4-2b3b-414b-9834-a09fbca67e0b\32Bit\NativeSciTechUI' (Win32 error: 126)
2012-09-18 04:19:39.0937|1|INFO|SciTech.Profiler.ProfilerApplicationCore|ProfilerApplicationCore.ctor enter
2012-09-18 04:19:39.1093|1|INFO|SciTech.Profiler.DebuggingTools|ValidateDbgEngFolder: 'C:\Program Files\Debugging Tools for Windows (x86)' for 32bit
2012-09-18 04:19:39.1093|1|INFO|SciTech.Profiler.DebuggingTools|DbgEng folder 'C:\Program Files\Debugging Tools for Windows (x86)' validated.
2012-09-18 04:19:39.1093|1|WARN|SciTech.Profiler.ProfilerApplicationCore|Failed to load default ignored issues
2012-09-18 04:19:39.1093|1|WARN|SciTech.Profiler.ProfilerApplicationCore|Failed to load default filters
2012-09-18 04:19:39.1093|1|INFO|SciTech.Profiler.ProfilerApplicationCore|ProfilerApplicationCore.ctor leave
2012-09-18 04:19:39.3125|1|INFO|SciTech.Profiler.Memory.ProfilerComparison|New PrimarySession
2012-09-18 04:19:39.3125|1|INFO|SciTech.Profiler.Memory.InstanceHeap|ReleaseHeap begin, releaseMemory=True
2012-09-18 04:19:39.3125|1|INFO|SciTech.Profiler.Memory.InstanceHeap|ReleaseHeap end
2012-09-18 04:19:39.3437|1|INFO|SciTech.Profiler.ProfilerClient|  Resetting cancel event in ResetCancel.
2012-09-18 04:19:39.3437|1|INFO|SciTech.Profiler.ProfilerClient|  Cancel event reset in ResetCancel.
2012-09-18 04:19:39.3593|3|INFO|SciTech.Profiler.ProfilerClient|Initializing pipes
2012-09-18 04:19:39.3750|3|INFO|SciTech.Internal.IO.ProfilerPipe|ProfilerPipe: 524
2012-09-18 04:19:39.3750|3|INFO|SciTech.Internal.IO.ProfilerPipe|ProfilerPipe: 528
2012-09-18 04:19:39.3750|3|INFO|SciTech.Internal.IO.ProfilerPipe|ProfilerPipe: 532
2012-09-18 04:19:39.3750|3|INFO|SciTech.Profiler.ProfilerClient|Pipes initialized, pipeId=617c188a-712f-4d5a-833d-506593a5d3ef
2012-09-18 04:19:39.3906|3|INFO|SciTech.Profiler.ProfilerClient|StartApplicationProfiling enter
2012-09-18 04:19:39.4687|3|INFO|SciTech.Profiler.ProfilerFolders|  Getting native base path
2012-09-18 04:19:39.4687|3|INFO|SciTech.Profiler.ProfilerFolders|  Returning native base path: C:\Documents and Settings\All Users\Application Data\SciTech\NmpCore\4612fce4-2b3b-414b-9834-a09fbca67e0b\32Bit
2012-09-18 04:19:39.4687|3|INFO|SciTech.Profiler.ProfilerClient|  Starting process: C:\InstantDVD\Kioskware.exe
2012-09-18 04:19:39.5156|3|INFO|SciTech.Profiler.ProfilerClient|  Process started: 2400
2012-09-18 04:19:39.5156|3|INFO|SciTech.Profiler.ProfilerClient|StartApplicationProfiling leave
2012-09-18 04:19:39.5156|3|INFO|SciTech.Profiler.ProfilerClient|Profiled process started, waiting to connect
2012-09-18 04:19:39.5156|3|INFO|SciTech.Profiler.ProfilerClient|Waiting for connect
2012-09-18 04:19:39.6406|5|INFO|SciTech.Profiler.ProfilerFolders|Getting native base path
2012-09-18 04:19:39.6406|5|INFO|SciTech.Profiler.ProfilerFolders|Returning native base path: C:\Documents and Settings\All Users\Application Data\SciTech\NmpCore\4612fce4-2b3b-414b-9834-a09fbca67e0b\32Bit
2012-09-18 04:19:39.7187|5|INFO|SciTech.Profiler.ProfilerFolders|Getting native base path
2012-09-18 04:19:39.7187|5|INFO|SciTech.Profiler.ProfilerFolders|Returning native base path: C:\Documents and Settings\All Users\Application Data\SciTech\NmpCore\4612fce4-2b3b-414b-9834-a09fbca67e0b\32Bit
2012-09-18 04:24:33.1718|4|INFO|SciTech.Profiler.ProfilerClient|ProfilerConnected received.
2012-09-18 04:24:33.1718|4|INFO|SciTech.Profiler.ProfilerClient|RuntimeConnected received.
2012-09-18 04:24:33.1718|4|INFO|SciTech.Profiler.ProfilerClient|Setting connected event
2012-09-18 04:24:33.1718|3|INFO|SciTech.Profiler.ProfilerClient|Connect wait done
2012-09-18 04:24:33.1718|3|INFO|SciTech.Profiler.ProfilerClient|Profiled process connected
2012-09-18 04:27:09.9531|6|INFO|SciTech.Profiler.ProfilerClient|ProfilerClient.RequestStop entered, reason=W, error=
2012-09-18 04:27:09.9531|6|INFO|SciTech.Profiler.ProfilerClient|Setting event for wake-up in RequestStop
2012-09-18 04:27:09.9531|6|INFO|SciTech.Profiler.ProfilerClient|Wake-up event set in RequestStop
2012-09-18 04:27:09.9531|5|ERROR|SciTech.Profiler.ProfilerClient|Exception caught in UnmanagedReportListener: 
System.IO.EndOfStreamException: Attempted to read past the end of the stream.
   at y.Wj.A(Int32 F)
   at y.Wj.O()
   at y.HN.Ws(WI F)
   at y.He.TD()
2012-09-18 04:27:09.9531|4|ERROR|SciTech.Profiler.ProfilerClient|Exception caught in ReportListener: 
System.IO.EndOfStreamException: Attempted to read past the end of the stream.
   at y.Wj.A(Int32 F)
   at y.Wj.O()
   at y.HN.Ws(WI F)
   at y.He.TX()
2012-09-18 04:27:09.9687|3|INFO|SciTech.Profiler.ProfilerClient|ProfilerClient.Stop entered, reason=W, error=
2012-09-18 04:27:09.9687|3|INFO|SciTech.Profiler.ProfilerClient|Setting event for wake-up in Stop
2012-09-18 04:27:09.9687|3|INFO|SciTech.Profiler.ProfilerClient|Wake-up events set in Stop
2012-09-18 04:27:09.9687|3|INFO|SciTech.Profiler.ProfilerClient|Closing pipes and listeners
2012-09-18 04:27:10.4531|5|INFO|SciTech.Profiler.ProfilerClient|ProfilerClient.RequestStop entered, reason=Y, error=Attempted to read past the end of the stream.
2012-09-18 04:27:10.4531|4|INFO|SciTech.Profiler.ProfilerClient|ProfilerClient.RequestStop entered, reason=Y, error=Attempted to read past the end of the stream.
2012-09-18 04:27:10.4531|3|INFO|SciTech.Profiler.ProfilerClient|Pipes and listeners closed, set the stopped event
2012-09-18 04:27:10.4531|3|INFO|SciTech.Profiler.ProfilerClient|Trying to end session
2012-09-18 04:27:10.4687|3|INFO|SciTech.Profiler.ProfilerClient|EndSession returned, set state to Stopped
2012-09-18 04:27:10.5312|3|INFO|SciTech.Profiler.SessionFileWriter|WriteSession enter
2012-09-18 04:27:11.2500|1|INFO|SciTech.Profiler.Memory.ProfilerComparison|New PrimarySession
2012-09-18 04:27:11.2500|1|INFO|SciTech.Profiler.Memory.InstanceHeap|ReleaseHeap begin, releaseMemory=True
2012-09-18 04:27:11.2500|1|INFO|SciTech.Profiler.Memory.InstanceHeap|ReleaseHeap end
2012-09-18 04:27:11.2500|1|INFO|SciTech.Profiler.ProfilerClient|ProfilerClient.Dispose enter
2012-09-18 04:27:11.2500|1|INFO|SciTech.Profiler.ProfilerClient|ProfilerClient.Dispose leave
2012-09-18 04:27:11.2500|1|INFO|SciTech.Profiler.Memory.InstanceHeap|ReleaseHeap begin, releaseMemory=True
2012-09-18 04:27:11.2500|1|INFO|SciTech.Profiler.Memory.InstanceHeap|ReleaseHeap end

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

Re: Problem with NmpCore

Post by Andreas Suurkuusk » Tue Sep 18, 2012 8:30 pm

Thanks for the error report. It seems like there are some files missing within NmpCore.exe. These files are needed when using the unmanaged resources tracker under Windows XP. We are currently correcting this problem, and a fix will be included in the next maintenance release.

The error message related to NativeSciTechUi can be ignored. It's a library that is only needed when running the full profiler.
Best regards,

Andreas Suurkuusk
SciTech Software AB

evgeniy
Posts: 2
Joined: Tue Sep 18, 2012 7:08 am

Re: Problem with NmpCore

Post by evgeniy » Wed Sep 19, 2012 7:15 am

Thanks for quick answer.
Only question I have is when are you going have next release?

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

Re: Problem with NmpCore

Post by Andreas Suurkuusk » Wed Sep 19, 2012 2:03 pm

I expect that we will release the next maintenance build in the beginning of next week.
Best regards,

Andreas Suurkuusk
SciTech Software AB

Post Reply

Who is online

Users browsing this forum: No registered users and 21 guests