Mantis

View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0026028RunnerSurfacesPublic2017-03-24 19:112017-08-08 10:34
ReporterEric Bunese 
Assigned ToFritz 
PriorityHighSeverityB - MajorReproducibility100%
StatusClosedResolutionFixed 
PlatformWindowsOSWindows 10OS Version
Summary0026028: surface_save causes a memory leak for each call
DescriptionCreate a surface, and whenever you use surface_save, the memory usage will go up a little bit. Potentially crashing the game due to lack of memory.
Steps To Reproducesurface_create
repeat(X)
    surface_save
surface_free
1.4 Version1.4.1763
2.x Runtime Version2.0.5.
2.x Runtime Version Verified In
Attached Files? file icon Project1.gmz [^] (8,535 bytes) 2017-03-24 19:11
png file icon Screenshot_2.png [^] (53,093 bytes) 2017-03-24 19:11

- Relationships

-  Notes
(0052476)
Eric Bunese (Updater)
2017-03-24 19:20

Precisely the same behaviour if we use sprite_save from a sprite created from the surface as following:

 var spr = sprite_create_from_surface(surf, 0, 0, 1024, 768, 0, 0, 0, 0);
 sprite_save(spr, 0, "bla.png")
 sprite_delete(spr)

The surface must be copied at some point to create these functions and it is not freed.
(0052513)
Fritz (Developer)
2017-03-28 14:06

Not reproducing in Red, believe Russ has fixed this.


Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker