mihaichiritescu
Joined: 21 Jun 2012 Posts: 2
|
Posted: Thu Jun 28, 2012 5:00 pm Post subject: Specified argument was out of the range of valid values |
|
|
Hi,
I have created 2 memory snapshots with ANTS memory profiler and I am not able to compare the instances between the first and second memory snapshots. I am not using any filtering on the class/instance list. Also note that this behavior happens also if I saved the results and opened the profiler results. The error I encounter is the following one:
Specified argument was out of the range of valid values.Parameter name: endId
System.ArgumentOutOfRangeException
at ?.??.???(Int32 , Int32 , ??[] , Int32 )
at ??.??.?()
at ??.??.?()
at ??.??.?(IObject )
at ??..(IObject , ISnapshotComparison , ?? )
at ??..??(IDispatchTask , IImmutableState , ?? )
at ??.??.??(IDispatchTask , String , ?? )
at ??.??.??(String , IDispatchTask , ?? )
at ??.??.?1.??(IDispatchTask )
at ??.??.Dispatch(? )
Also I tried the following scenario: filtered the instance list of only one memory snapshot (no comparation on snapshots) and I tried to see the instance retention graph on some objects and I am seeing the following error:
Operation is not valid due to the current state of the object.
RedGate.Memory.Interface.Exceptions.ObjectNotFoundException
at ??.??.???(Int64 , Int32 )
at ???.?.??(ArrayIndex )
at (Object , ArrayIndex )
at ???.??.??.??()
at ??..??(IDispatchTask , IImmutableState , ?? )
at ??.??.??(IDispatchTask , String , ?? )
at ??.??.??(String , IDispatchTask , ?? )
at ??.??.?1.??(IDispatchTask )
at ??.??.Dispatch(? )
I have searched the first error on the forum and found something related to gcServer, but I checked that gcServer is not specified in the app config file. The application is a 32bit windows desktop app running on a x64 Windows 7 so I presume the GC is on workstation mode, not on server mode.
Also I have found answers saying that this could happen if the results would be bigger than 2 GB so I saved my results and say that they are only 1.2GB.
Not sure if it matters but I will specify that the desktop app consumes 1.1GB of private bytes and the RedGate.MemoryProfiler.UI.exe process consumes 790MB, I am using licensed DotNetDeveloperBundle and the memory profiler is update to the latest 7.4 version.
Does anyone know any workaround for this? In my opinion what I tried is a basic scenario and should be working properly, this is forcing us to consider other profilers.
Thanks,
Paul |
|