XtoMDL OOM error (SOLVED!)
Guys, I'm trying to export the latest version of my F-4 VC, but I'm getting an out of memory error. I've located the problem to be the circuit breakers in the rear cockpit. Around 50-60% of them will export. It won't go any higher, though.
Truth be told, I made them too detailed for their size, so I supposed the problem could be due to vertex buffer limits.
But: When I first exported them, they all shared the same material (as well as a bunch of levers and switches), they were all independent objects and exported perfectly 2-3 times.
The problem came after I made a swap of 3-4 materials from Standard to FSX. Additionally, not even the pre-swap model compiles now. Anyone with an idea?
I'm using P3D v1.4 SDK with the x64 tools.
CPU and RAM are 4 cores @3.6GHz (with HyperThreading active), 16GB RAM @2133
Here is the error:
Guys, I'm trying to export the latest version of my F-4 VC, but I'm getting an out of memory error. I've located the problem to be the circuit breakers in the rear cockpit. Around 50-60% of them will export. It won't go any higher, though.
Truth be told, I made them too detailed for their size, so I supposed the problem could be due to vertex buffer limits.
But: When I first exported them, they all shared the same material (as well as a bunch of levers and switches), they were all independent objects and exported perfectly 2-3 times.
The problem came after I made a swap of 3-4 materials from Standard to FSX. Additionally, not even the pre-swap model compiles now. Anyone with an idea?
I'm using P3D v1.4 SDK with the x64 tools.
CPU and RAM are 4 cores @3.6GHz (with HyperThreading active), 16GB RAM @2133
Here is the error:
Code:
(0): error : XToMdl.exe Unhandled Application Exception
(0): error : System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
(0): error : at System.IO.MemoryStream.set_Capacity(Int32 value)
(0): error : at System.IO.MemoryStream.EnsureCapacity(Int32 value)
(0): error : at System.IO.MemoryStream.Write(Byte[] buffer, Int32 offset, Int32 count)
(0): error : at System.IO.StreamWriter.Flush(Boolean flushStream, Boolean flushEncoder)
(0): error : at System.IO.StreamWriter.Flush()
(0): error : at Microsoft.FlightSimulator.XToXmlLib.FileExporter.EndElement(Boolean bIndent)
(0): error : at Microsoft.FlightSimulator.XToXmlLib.FileExporter.StartElement(String szElement, String[] Attributes, String[] AttributeValues, String ElementContents)
(0): error : at Microsoft.FlightSimulator.XToXmlLib.PartMesh.ExportIndexList(FileExporter Exporter)
(0): error : at Microsoft.FlightSimulator.XToXmlLib.LODBucket.ExportIndexList(FileExporter Exporter)
(0): error : at Microsoft.FlightSimulator.XToXmlLib.LODBuckets.ExportIndexList(FileExporter Exporter)
(0): error : at Microsoft.FlightSimulator.XToXmlLib.ModelProcessingContext.ExportIndexList(FileExporter Exporter)
(0): error : at Microsoft.FlightSimulator.XToXmlLib.FileExporter.WriteShadowModelEntry(String szDecoration, ModelProcessingContext Context)
(0): error : at Microsoft.FlightSimulator.XToXmlLib.ModelProcessingContext.Export(FileExporter Exporter)
(0): error : at Microsoft.FlightSimulator.XToXmlLib.FileExporter.OutputModels(IEnumerable ProcessedModels)
(0): error : at Microsoft.FlightSimulator.XToXmlLib.XToXmlLib.OutputModels(IEnumerable`1 processedModels)
(0): error : at Microsoft.FlightSimulator.XToXmlLib.XToXmlLib.Process(ModelFile[] InputFiles, Hashtable[] AnimationLinkage, String[] AnimationFileRef, XPartDict PartDictionary)
(0): error : at Microsoft.FlightSimulator.XToMDL.XToMDL.ProcessInputs()
(0): error : at Microsoft.FlightSimulator.XToMDL.XToMDL.RealMain(String[] args)
(0): error : at Microsoft.FlightSimulator.XToMDL.XToMDL.Main(String[] args)
(0): error :
(0): error : Exception of type 'System.OutOfMemoryException' was thrown.
(0): error :
(0): error : Stack Trace:
(0): error : at System.IO.MemoryStream.set_Capacity(Int32 value)
(0): error : at System.IO.MemoryStream.EnsureCapacity(Int32 value)
(0): error : at System.IO.MemoryStream.Write(Byte[] buffer, Int32 offset, Int32 count)
(0): error : at System.IO.StreamWriter.Flush(Boolean flushStream, Boolean flushEncoder)
(0): error : at System.IO.StreamWriter.Flush()
(0): error : at Microsoft.FlightSimulator.XToXmlLib.FileExporter.EndElement(Boolean bIndent)
(0): error : at Microsoft.FlightSimulator.XToXmlLib.FileExporter.StartElement(String szElement, String[] Attributes, String[] AttributeValues, String ElementContents)
(0): error : at Microsoft.FlightSimulator.XToXmlLib.PartMesh.ExportIndexList(FileExporter Exporter)
(0): error : at Microsoft.FlightSimulator.XToXmlLib.LODBucket.ExportIndexList(FileExporter Exporter)
(0): error : at Microsoft.FlightSimulator.XToXmlLib.LODBuckets.ExportIndexList(FileExporter Exporter)
(0): error : at Microsoft.FlightSimulator.XToXmlLib.ModelProcessingContext.ExportIndexList(FileExporter Exporter)
(0): error : at Microsoft.FlightSimulator.XToXmlLib.FileExporter.WriteShadowModelEntry(String szDecoration, ModelProcessingContext Context)
(0): error : at Microsoft.FlightSimulator.XToXmlLib.ModelProcessingContext.Export(FileExporter Exporter)
(0): error : at Microsoft.FlightSimulator.XToXmlLib.FileExporter.OutputModels(IEnumerable ProcessedModels)
(0): error : at Microsoft.FlightSimulator.XToXmlLib.XToXmlLib.OutputModels(IEnumerable`1 processedModels)
(0): error : at Microsoft.FlightSimulator.XToXmlLib.XToXmlLib.Process(ModelFile[] InputFiles, Hashtable[] AnimationLinkage, String[] AnimationFileRef, XPartDict PartDictionary)
(0): error : at Microsoft.FlightSimulator.XToMDL.XToMDL.ProcessInputs()
(0): error : at Microsoft.FlightSimulator.XToMDL.XToMDL.RealMain(String[] args)
(0): error : at Microsoft.FlightSimulator.XToMDL.XToMDL.Main(String[] args)
Last edited:




