Red Gate forums :: View topic - Error: Arrays file has an invalid header.
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
ANTS Memory Profiler 7
ANTS Memory Profiler 7 forum

Error: Arrays file has an invalid header.

Search in ANTS Memory Profiler 7 forum
Post new topic   Reply to topic
Jump to:  
Author Message
Eds



Joined: 07 Nov 2012
Posts: 2

PostPosted: Wed Nov 07, 2012 1:45 pm    Post subject: Error: Arrays file has an invalid header. Reply with quote

Hi !
I am trying to create a snapshot of my .NET4.0 application and get an error
"Arrays file has an invalid header."

Can anyone help me?
Full log:
Quote:
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.
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6646

PostPosted: Thu Nov 08, 2012 3:52 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Eds



Joined: 07 Nov 2012
Posts: 2

PostPosted: Fri Nov 09, 2012 4:59 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6646

PostPosted: Mon Nov 12, 2012 11:06 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group