1
Vote

OutOfMemoryException

description

Building Content\Phase2RadarX.X -> bin\x86\Debug\Content\Phase2RadarX.xnb
Content\Phase2RadarX.X : error : Building content threw OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
Content\Phase2RadarX.X : error : at System.IO.MemoryStream.set_Capacity(Int32 value)
Content\Phase2RadarX.X : error : at System.IO.MemoryStream.EnsureCapacity(Int32 value)
Content\Phase2RadarX.X : error : at System.IO.MemoryStream.Write(Byte[] buffer, Int32 offset, Int32 count)
Content\Phase2RadarX.X : error : at System.IO.BinaryWriter.Write(String value)
Content\Phase2RadarX.X : error : at Microsoft.Xna.Framework.Content.Pipeline.Serialization.Compiler.ContentWriter.WriteExternalReference[T](ExternalReference1 reference)
Content\Phase2RadarX.X : error : at Microsoft.Xna.Framework.Content.Pipeline.Serialization.Compiler.BasicEffectWriter.Write(ContentWriter output, BasicMaterialContent value)
Content\Phase2RadarX.X : error : at Microsoft.Xna.Framework.Content.Pipeline.Serialization.Compiler.ContentTypeWriter
1.Write(ContentWriter output, Object value)
Content\Phase2RadarX.X : error : at Microsoft.Xna.Framework.Content.Pipeline.Serialization.Compiler.ContentWriter.InvokeWriter[T](T value, ContentTypeWriter writer)
Content\Phase2RadarX.X : error : at Microsoft.Xna.Framework.Content.Pipeline.Serialization.Compiler.ContentWriter.WriteObject[T](T value)
Content\Phase2RadarX.X : error : at Microsoft.Xna.Framework.Content.Pipeline.Serialization.Compiler.ContentWriter.WriteSharedResources()
Content\Phase2RadarX.X : error : at Microsoft.Xna.Framework.Content.Pipeline.Serialization.Compiler.ContentWriter.Dispose(Boolean disposing)
Content\Phase2RadarX.X : error : at System.IO.BinaryWriter.System.IDisposable.Dispose()
Content\Phase2RadarX.X : error : at Microsoft.Xna.Framework.Content.Pipeline.Serialization.Compiler.ContentCompiler.Compile(Stream output, Object value, TargetPlatform targetPlatform, String rootDirectory, String referenceRelocationPath)
Content\Phase2RadarX.X : error : at Microsoft.Xna.Framework.Content.Pipeline.BuildCoordinator.SerializeOutputAsset(BuildItem item, Object assetData, String outputFilename)
Content\Phase2RadarX.X : error : at Microsoft.Xna.Framework.Content.Pipeline.BuildCoordinator.SerializeAsset(BuildItem item, Object assetData)
Content\Phase2RadarX.X : error : at Microsoft.Xna.Framework.Content.Pipeline.BuildCoordinator.BuildAssetWorker(BuildItem item)
Content\Phase2RadarX.X : error : at Microsoft.Xna.Framework.Content.Pipeline.BuildCoordinator.BuildAsset(BuildItem item)
Content\Phase2RadarX.X : error : at Microsoft.Xna.Framework.Content.Pipeline.BuildCoordinator.RunTheBuild()
Content\Phase2RadarX.X : error : at Microsoft.Xna.Framework.Content.Pipeline.Tasks.BuildContent.RemoteProxy.RunTheBuild(BuildCoordinatorSettings settings, TimestampCache timestampCache, ITaskItem[] sourceAssets, String[]& outputContent, String[]& rebuiltContent, String[]& intermediates, Dictionary2& dependencyTimestamps, KeyValuePair2[]& warnings)

comments

missileControl wrote Nov 6, 2007 at 10:16 PM

WorkAround:
This issue only seems to occur with a large file... with a large/long animation export 0-4000 frames.
Creating a smaller animation export range of 100 frames seems to work better.
Also, using the XML file to split the animation seems to be a nice workaround too. As I was able to process the .X file if I had an XML file to split the animation.

wrote Feb 14, 2013 at 7:40 PM