Altar.NET icon indicating copy to clipboard operation
Altar.NET copied to clipboard

OutOfMemoryException when exporting large amount of sprite definitions

Open underscoren opened this issue 6 years ago • 0 comments

I'm trying to extract the sprite definitions for deltarune, and it stops at 106/1015 sprites with an unhandled OutOfMemoryException.

Here's the full log:

Warning: unknown chunk LANG is not empty, its content will not be exported!
Warning: unknown chunk EXTN is not empty, its content will not be exported!
Warning: unknown chunk GLOB is not empty, its content will not be exported!
Warning: unknown chunk SHDR is not empty, its content will not be exported!
Warning: unknown chunk TMLN is not empty, its content will not be exported!
Warning: unknown chunk DAFL is not empty, its content will not be exported!
Warning: unknown chunk EMBI is not empty, its content will not be exported!
Error reading ROOM #88 - skipping others.
System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
   at Altar.Unpack.SectionReader.ReadRoomObjInst(GMFileContent content, IntPtr p) in C:\Users\Marius\Documents\deltarune\Altar.NET\Altar.NET\Unpack\SectionReader.cs:line 161
   at Altar.Unpack.SectionReader.ReadList[T](GMFileContent content, CountOffsetsPair* list, Func`3 readThing) in C:\Users\Marius\Documents\deltarune\Altar.NET\Altar.NET\Unpack\SectionReader.cs:line 75
   at Altar.Unpack.SectionReader.GetRoomInfo(GMFileContent content, UInt32 id) in C:\Users\Marius\Documents\deltarune\Altar.NET\Altar.NET\Unpack\SectionReader.cs:line 585
   at Altar.GMFile.<>c__DisplayClass89_0.<.ctor>b__6(UInt32 i) in C:\Users\Marius\Documents\deltarune\Altar.NET\Altar.NET\GMFile.cs:line 231
   at Altar.GMFile.TryReadMany[T](SectionCountOffsets* hdr, Func`2 readOne) in C:\Users\Marius\Documents\deltarune\Altar.NET\Altar.NET\GMFile.cs:line 181
Exporting sprites... (106/1015)An error occured during export

Unhandled Exception: OutOfMemoryException.

underscoren avatar Nov 06 '18 20:11 underscoren