Error: Arrays file has an invalid header.

Memory profiling for .NET developers

Moderators: Luke Jefferson, StephenC, AndrewH, melvyn.harbour, james.billings, Laura Morley, dene.boulton

Error: Arrays file has an invalid header.

Postby Eds » Wed Nov 07, 2012 1:45 pm

Hi !
I am trying to create a snapshot of my .NET4.0 application and get an error
\"Arrays file has an invalid header.\"
Image
Can anyone help me?
Full log:
07 Nov 2012 15:49:56.991 [1] INFO RedGate.Profiler.Logging.LogService - Starting new ANTS Memory Profiler 7 session
07 Nov 2012 15:49:57.007 [1] INFO RedGate.Profiler.Logging.LogService - Assembly version: 7.4.0.41
07 Nov 2012 15:50:02.405 [1] WARN RedGate.Profiler.OS.Local.LocalWindowsVersionInspector - Detected Windows version: Windows Server 2008 Business (6.1 64-bit)
07 Nov 2012 15:50:02.405 [1] WARN RedGate.Profiler.IISSupport.Local.LocalIisInspector - IIS is supported on installed OS version
07 Nov 2012 15:50:02.436 [1] WARN RedGate.Profiler.IISSupport.Local.LocalIisInspector - Result of check to see if inetinfo.exe running: True
07 Nov 2012 15:50:02.436 [1] WARN RedGate.Profiler.IISSupport.Local.LocalIisInspector - Checks confirm that IIS is running.
07 Nov 2012 15:50:02.436 [1] WARN RedGate.Profiler.IISSupport.Local.LocalIisInspector - Checks confirm that IIS is enabled.
07 Nov 2012 15:50:02.451 [1] WARN RedGate.Profiler.IISSupport.Local.LocalIisInspector - Successfully detected IIS installation: IIS 7 (Auto-detected)
07 Nov 2012 15:50:02.451 [1] WARN RedGate.Profiler.IISSupport.Local.LocalIisInspector - Checks confirm that IIS is installed.
07 Nov 2012 15:50:08.988 [10] WARN RedGate.Profiler.IISSupport.SharePointHelper - SharePoint version: none found (looking for 2010 or 2007 using registry keys)
07 Nov 2012 15:55:02.430 [Profiler pipe monitor] ERROR RedGate.Profiler.Engine.Startup.Basic.PipeConnection - Failed to retrieve message from core
07 Nov 2012 15:55:02.430 [Profiler pipe monitor] WARN RedGate.Profiler.Engine.Startup.Basic.PipeConnection - Received a 0-length message
07 Nov 2012 15:55:26.462 [9] FATAL RedGate.Memory.Controller.UIControllers.Error.ErrorController - Unhandled exception occurred in controller worker thread: Arrays file has an invalid header.
RedGate.Memory.Interface.Exceptions.BadSnapshotException: Arrays file has an invalid header.
в ?.??..ctor(? , String )
в ?.˜?..ctor(String , ? , ˜? , ? , ? , Boolean )
в ??..?(? , ? , ? , ? , String )
в ??..?(Int32 )
в ??.?.???(Int32 )
в ??.??.?()
в ??.??.?()
в ??.??.??()
в ??.??.???(IDispatchTask , IImmutableState , ?? )
в ??.??.??(IDispatchTask , String , ?? )
в ??.??.??(String , IDispatchTask , ?? )
в ??.??.?1.??(IDispatchTask )
в ??.??.Dispatch(? )
07 Nov 2012 15:55:26.509 [1] ERROR RedGate.Memory.UI.TheUI - Arrays file has an invalid header.
07 Nov 2012 15:55:26.509 [1] ERROR RedGate.Memory.UI.TheUI - Arrays file has an invalid header.
07 Nov 2012 15:55:26.509 [1] ERROR RedGate.Memory.UI.TheUI - RedGate.Memory.Interface.Exceptions.BadSnapshotException
07 Nov 2012 15:55:26.556 [1] ERROR RedGate.Memory.UI.TheUI - в ?.??..ctor(? , String )
в ?.˜?..ctor(String , ? , ˜? , ? , ? , Boolean )
в ??..?(? , ? , ? , ? , String )
в ??..?(Int32 )
в ??.?.???(Int32 )
в ??.??.?()
в ??.??.?()
в ??.??.??()
в ??.??.???(IDispatchTask , IImmutableState , ?? )
в ??.??.??(IDispatchTask , String , ?? )
в ??.??.??(String , IDispatchTask , ?? )
в ??.??.?1.??(IDispatchTask )
в ??.??.Dispatch(? )
07 Nov 2012 15:55:36.194 [9] FATAL RedGate.Memory.Controller.UIControllers.Error.ErrorController - Unhandled exception occurred in controller worker thread: Arrays file has an invalid header.
RedGate.Memory.Interface.Exceptions.BadSnapshotException: Arrays file has an invalid header.
в ?.??..ctor(? , String )
в ?.˜?..ctor(String , ? , ˜? , ? , ? , Boolean )
в ??..?(? , ? , ? , ? , String )
в ??..?(Int32 )
в ??.?.???(Int32 )
в ??.??.?()
в ??.??.?(IDispatchTask , IImmutableState , ?? )
в ??.??.??(IDispatchTask , String , ?? )
в ??.??.??(String , IDispatchTask , ?? )
в ??.??.?1.??(IDispatchTask )
в ??.??.Dispatch(? )
07 Nov 2012 15:55:36.241 [1] ERROR RedGate.Memory.UI.TheUI - Arrays file has an invalid header.
07 Nov 2012 15:55:36.257 [1] ERROR RedGate.Memory.UI.TheUI - Arrays file has an invalid header.
07 Nov 2012 15:55:36.257 [1] ERROR RedGate.Memory.UI.TheUI - RedGate.Memory.Interface.Exceptions.BadSnapshotException
07 Nov 2012 15:55:36.257 [1] ERROR RedGate.Memory.UI.TheUI - в ?.??..ctor(? , String )
в ?.˜?..ctor(String , ? , ˜? , ? , ? , Boolean )
в ??..?(? , ? , ? , ? , String )
в ??..?(Int32 )
в ??.?.???(Int32 )
в ??.??.?()
в ??.??.?(IDispatchTask , IImmutableState , ?? )
в ??.??.??(IDispatchTask , String , ?? )
в ??.??.??(String , IDispatchTask , ?? )
в ??.??.?1.??(IDispatchTask )
в ??.??.Dispatch(? )
07 Nov 2012 15:55:59.728 [9] FATAL RedGate.Memory.Controller.UIControllers.Error.ErrorController - Unhandled exception occurred in controller worker thread: Arrays file has an invalid header.
RedGate.Memory.Interface.Exceptions.BadSnapshotException: Arrays file has an invalid header.
в ?.??..ctor(? , String )
в ?.˜?..ctor(String , ? , ˜? , ? , ? , Boolean )
в ??..?(? , ? , ? , ? , String )
в ??..?(Int32 )
в ??.?.???(Int32 )
в ??.??.?()
в ??.?.?(IDispatchTask , IImmutableState , ?? )
в ??.??.??(IDispatchTask , String , ?? )
в ??.??.??(String , IDispatchTask , ?? )
в ??.??.?1.??(IDispatchTask )
в ??.??.Dispatch(? )
07 Nov 2012 15:55:59.790 [1] ERROR RedGate.Memory.UI.TheUI - Arrays file has an invalid header.
07 Nov 2012 15:55:59.790 [1] ERROR RedGate.Memory.UI.TheUI - Arrays file has an invalid header.
07 Nov 2012 15:55:59.790 [1] ERROR RedGate.Memory.UI.TheUI - RedGate.Memory.Interface.Exceptions.BadSnapshotException
07 Nov 2012 15:55:59.790 [1] ERROR RedGate.Memory.UI.TheUI - в ?.??..ctor(? , String )
в ?.˜?..ctor(String , ? , ˜? , ? , ? , Boolean )
в ??..?(? , ? , ? , ? , String )
в ??..?(Int32 )
в ??.?.???(Int32 )
в ??.??.?()
в ??.?.?(IDispatchTask , IImmutableState , ?? )
в ??.??.??(IDispatchTask , String , ?? )
в ??.??.??(String , IDispatchTask , ?? )
в ??.??.?1.??(IDispatchTask )
в ??.??.Dispatch(? )
07 Nov 2012 15:56:00.289 [9] FATAL RedGate.Memory.Controller.UIControllers.Error.ErrorController - Unhandled exception occurred in controller worker thread: Arrays file has an invalid header.
RedGate.Memory.Interface.Exceptions.BadSnapshotException: Arrays file has an invalid header.
в ?.??..ctor(? , String )
в ?.˜?..ctor(String , ? , ˜? , ? , ? , Boolean )
в ??..?(? , ? , ? , ? , String )
в ??..?(Int32 )
в ??.?.???(Int32 )
в ??.??.?()
в ??.??.?()
в ??.??.??()
в ?.??.??(IDispatchTask , IImmutableState , ?? )
в ??.??.??(IDispatchTask , String , ?? )
в ??.??.??(String , IDispatchTask , ?? )
в ??.??.?1.??(IDispatchTask )
в ??.??.Dispatch(? )
07 Nov 2012 15:56:00.289 [1] ERROR RedGate.Memory.UI.TheUI - Arrays file has an invalid header.
07 Nov 2012 15:56:00.289 [1] ERROR RedGate.Memory.UI.TheUI - Arrays file has an invalid header.
07 Nov 2012 15:56:00.289 [1] ERROR RedGate.Memory.UI.TheUI - RedGate.Memory.Interface.Exceptions.BadSnapshotException
07 Nov 2012 15:56:00.289 [1] ERROR RedGate.Memory.UI.TheUI - в ?.??..ctor(? , String )
в ?.˜?..ctor(String , ? , ˜? , ? , ? , Boolean )
в ??..?(? , ? , ? , ? , String )
в ??..?(Int32 )
в ??.?.???(Int32 )
в ??.??.?()
в ??.??.?()
в ??.??.??()
в ?.??.??(IDispatchTask , IImmutableState , ?? )
в ??.??.??(IDispatchTask , String , ?? )
в ??.??.??(String , IDispatchTask , ?? )
в ??.??.?1.??(IDispatchTask )
в ??.??.Dispatch(? )
07 Nov 2012 15:56:00.601 [9] FATAL RedGate.Memory.Controller.UIControllers.Error.ErrorController - Unhandled exception occurred in controller worker thread: Arrays file has an invalid header.
RedGate.Memory.Interface.Exceptions.BadSnapshotException: Arrays file has an invalid header.
в ?.??..ctor(? , String )
в ?.˜?..ctor(String , ? , ˜? , ? , ? , Boolean )
в ??..?(? , ? , ? , ? , String )
в ??..?(Int32 )
в ??.?.???(Int32 )
в ??.??.?()
в ??.??.?()
в ??.??.??()
в ??.??.??()
в ??.?.??(IDispatchTask , IImmutableState , ?? )
в ??.??.??(IDispatchTask , String , ?? )
в ??.??.??(String , IDispatchTask , ?? )
в ??.??.?1.??(IDispatchTask )
в ??.??.Dispatch(? )
07 Nov 2012 15:56:00.648 [1] ERROR RedGate.Memory.UI.TheUI - Arrays file has an invalid header.
07 Nov 2012 15:56:00.648 [1] ERROR RedGate.Memory.UI.TheUI - Arrays file has an invalid header.
07 Nov 2012 15:56:00.648 [1] ERROR RedGate.Memory.UI.TheUI - RedGate.Memory.Interface.Exceptions.BadSnapshotException
07 Nov 2012 15:56:00.648 [1] ERROR RedGate.Memory.UI.TheUI - в ?.??..ctor(? , String )
в ?.˜?..ctor(String , ? , ˜? , ? , ? , Boolean )
в ??..?(? , ? , ? , ? , String )
в ??..?(Int32 )
в ??.?.???(Int32 )
в ??.??.?()
в ??.??.?()
в ??.??.??()
в ??.??.??()
в ??.?.??(IDispatchTask , IImmutableState , ?? )
в ??.??.??(IDispatchTask , String , ?? )
в ??.??.??(String , IDispatchTask , ?? )
в ??.??.?1.??(IDispatchTask )
в ??.??.Dispatch(? )
07 Nov 2012 15:56:00.991 [9] FATAL RedGate.Memory.Controller.UIControllers.Error.ErrorController - Unhandled exception occurred in controller worker thread: Arrays file has an invalid header.
RedGate.Memory.Interface.Exceptions.BadSnapshotException: Arrays file has an invalid header.
в ?.??..ctor(? , String )
в ?.˜?..ctor(String , ? , ˜? , ? , ? , Boolean )
в ??..?(? , ? , ? , ? , String )
в ??..?(Int32 )
в ??.?.???(Int32 )
в ??.??.?()
в ?.??.??(Int32 , ?? )
в ?.??.??(IDispatchTask , IImmutableState , ?? )
в ??.??.??(IDispatchTask , String , ?? )
в ??.??.??(String , IDispatchTask , ?? )
в ??.??.?1.??(IDispatchTask )
в ??.??.Dispatch(? )
07 Nov 2012 15:56:00.991 [1] ERROR RedGate.Memory.UI.TheUI - Arrays file has an invalid header.
07 Nov 2012 15:56:00.991 [1] ERROR RedGate.Memory.UI.TheUI - Arrays file has an invalid header.
07 Nov 2012 15:56:00.991 [1] ERROR RedGate.Memory.UI.TheUI - RedGate.Memory.Interface.Exceptions.BadSnapshotException
07 Nov 2012 15:56:00.991 [1] ERROR RedGate.Memory.UI.TheUI - в ?.??..ctor(? , String )
в ?.˜?..ctor(String , ? , ˜? , ? , ? , Boolean )
в ??..?(? , ? , ? , ? , String )
в ??..?(Int32 )
в ??.?.???(Int32 )
в ??.??.?()
в ?.??.??(Int32 , ?? )
в ?.??.??(IDispatchTask , IImmutableState , ?? )
в ??.??.??(IDispatchTask , String , ?? )
в ??.??.??(String , IDispatchTask , ?? )
в ??.??.?1.??(IDispatchTask )
в ??.??.Dispatch(? )
07 Nov 2012 15:56:08.071 [Profiler pipe monitor] WARN RedGate.Profiler.Engine.Startup.Basic.PipeConnection - Pipe has been closed; most likely the process being profiled has terminated.
Eds
 
Posts: 2
Joined: Wed Nov 07, 2012 1:14 pm

Postby Brian Donahue » Thu Nov 08, 2012 3:52 pm

When ANTS Memory Profiler starts profiling, it creates a memory-mapped file at %userprofile%\\AppData\\Local\\Red Gate\\ANTS Memory Profiler 7\\tmp*.ampd

This file is used to hold array information.

The error indicates that the file does not begin with "AMPA".

I have not got an explantion as to why this would happen. I would start with looking into anti-virus and/or security programs that may be quarantining or sanitizing the contents of the file.
Brian Donahue
 
Posts: 6669
Joined: Mon Aug 23, 2004 10:48 am

Postby Eds » Fri Nov 09, 2012 4:59 pm

When my application is started, and consumes a bit of memory, snapshots are created correctly. *.ampd file is present on disk and begin with "AMPD" (not "AMPA").
Then, when the application begins to consume a lot of (>3Gb) memory, I'm trying to make a new snapshot and get the error "Arrays file has an invalid header". *.ampd file does not exist in my %userprofile%\\AppData\\Local\\Red Gate\\ANTS Memory Profiler 7\\ directory.
Run as admin and antivirus disabling not helps me.
Eds
 
Posts: 2
Joined: Wed Nov 07, 2012 1:14 pm

Postby Brian Donahue » Mon Nov 12, 2012 11:06 am

The memory-mapped file ANTS uses has a 2GB size limit - after this it begins overwriting from the start (trashing the header). The advice is, take snapshots more frequently.
Brian Donahue
 
Posts: 6669
Joined: Mon Aug 23, 2004 10:48 am


Return to ANTS Memory Profiler 7

Who is online

Users browsing this forum: No registered users and 0 guests