Mantis

View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0019222Runner[All Projects] VariablesPublic2015-11-05 11:482017-08-04 15:46
ReporterFlorian Preinfalk 
Assigned ToRussell Kay 
PriorityHighSeverityB - MajorReproducibility100%
StatusClosedResolutionFixed 
PlatformWindowsOSWindows 8OS Version
Summary0019222: Variables: Memory leak when copying arrays
DescriptionIf you make a reference to an array, force gm to copy the referenced array by changing a value and replace the old array by a reference to the new array gm doesn't free the old array. SAMPLE URL: https://www.dropbox.com/s/d4py2wu604nreav/MemTest.gmz?dl=0 [^]
Steps To Reproduce1) Run the supplied project in Windows
2) Open the Task Manager to see the memory leak
Additional InformationOriginal helpdesk ticket: http://help.yoyogames.com/tickets/96943 [^]
1.4 Version1.99.464
2.x Runtime Version
2.x Runtime Version Verified In
Attached Files? file icon MemTest.gmz [^] (8,638 bytes) 2017-04-06 17:00

- Relationships

-  Notes
(0043403)
Russell Kay (Manager)
2016-05-20 13:47

OK this is interesting and bares more investigation it is an issue in the VM but YYC is fine...
(0043506)
Timocop (Reporter)
2016-05-26 12:09

Killing the array before the copy solves the memory leak:
var a = v;
v = 0; //No Leak

// Force GM to copy the array
a[0] = a[0];

//v = 0; //Still Leaks
v = a;
(0052693)
Russell Kay (Manager)
2017-04-07 12:28

Fixed in gitlab


Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker