dwarfcorp icon indicating copy to clipboard operation
dwarfcorp copied to clipboard

Tracking: OutofMemoryException while creating overworld texture

Open mklingen opened this issue 7 years ago • 9 comments

Edit 4/26/18: This has been turned into a tracking bug. Any occurrences of the issue can be reported here.

https://sentry.io/cfg/dwarfcorp/issues/399903039/

OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
  File "C:\Users\matth\Desktop\dwarfcorp\DwarfCorp\DwarfCorpXNA\AssetManagement\GameSave\OverworldFile.cs", line 94, in CreateTexture
    Microsoft.Xna.Framework.Graphics.Texture2D CreateTexture(Microsoft.Xna.Framework.Graphics.GraphicsDevice, Int32, Int32, Single)
  File "C:\Users\matth\Desktop\dwarfcorp\DwarfCorp\DwarfCorpXNA\AssetManagement\GameSave\OverworldFile.cs", line 129, in .ctor
    Void .ctor(Microsoft.Xna.Framework.Graphics.GraphicsDevice, MapData[,], System.String, Single)
  File "C:\Users\matth\Desktop\dwarfcorp\DwarfCorp\DwarfCorpXNA\AssetManagement\GameSave\OverworldFile.cs", line 172, in .ctor
    Void .ctor(Microsoft.Xna.Framework.Graphics.GraphicsDevice, MapData[,], System.String, Single)
  File "C:\Users\matth\Desktop\dwarfcorp\DwarfCorp\DwarfCorpXNA\World\WorldManager.cs", line 556, in SaveThreadRoutine
    Boolean SaveThreadRoutine(System.String)

Exception of type 'System.OutOfMemoryException' was thrown.

mklingen avatar Dec 09 '17 17:12 mklingen

Close? @mklingen

com1clyf3 avatar Apr 26 '18 20:04 com1clyf3

No, this remains the top bug (still hundreds of users are having this bug). There are several copies of this though, so we should merge them all.

mklingen avatar Apr 26 '18 20:04 mklingen

Yikes. I'll make it an A bug.

I'll try and merge them now. Hopefully they're under searchable titles.

com1clyf3 avatar Apr 26 '18 20:04 com1clyf3

Ignore 546 and 562. They were incorrectly linked. References in comments were deleted, but I guess Issues might not recognize that.

com1clyf3 avatar Apr 26 '18 20:04 com1clyf3

https://steamcommunity.com/app/252390/discussions/1/1483232961038831123/

com1clyf3 avatar May 08 '18 04:05 com1clyf3

https://steamcommunity.com/app/252390/discussions/1/1483232961039833527/

com1clyf3 avatar May 08 '18 04:05 com1clyf3

Crash occurred while loading a save. Loading in general has been causing game freezes.

201805142025491218_Crashlog.txt

5fee6751

com1clyf3 avatar May 15 '18 00:05 com1clyf3

Oh, your system is running out of memory due to us implementing the triangle cache for designations. Clearly we should limit the size of that cache to some reasonable number (though you won't be able to see all of the designations).

mklingen avatar May 15 '18 20:05 mklingen

Regressing. We still getting these crash logs?

com1clyf3 avatar Jul 20 '18 19:07 com1clyf3