Memory leak in "collmemory" after a relaunch+reload

Bugs will be moved here once resolved.

Post » Sun Aug 02, 2015 8:17 pm

Problem Description
Memory leak (or save file leak?): the "collmemory" section of a savefile gets larger and larger after the game has been closed, relaunched and loaded from a savefile.

Attach a Capx
https://dl.dropboxusercontent.com/u/313 ... empty.capx

Description of Capx
Spawn objects that are destroyed on collision with another object. The capx also autosave every 1 sec and output the savefile to the browser console.

Steps to Reproduce Bug
  • Launch the game (Layout "menu").
  • Click on the "New Game" button.
  • Open the browser console: The game saves and output the savefile every 1 sec in the console.
  • Notice that the section "collmemory" (near the bottom) stays empty.
  • Close the game (close the entire tab running the game).
  • Re-launch the game (Layout "menu").
  • Click on the "Load" button
  • Observe the browser console again: the "collmemory" section in the savefile gets bigger and bigger.

Observed Result
Memory leak in the savefile: the "collmemory" section keep expending.

Expected Result
No memory leak in the savefile: the "collmemory" section doesn't expend.

Affected Browsers
  • Chrome: (YES)
  • Internet Explorer: (YES)

Operating System and Service Pack
Windows 8.1

Construct 2 Version ID
r206, 64bits
B
20
S
5
Posts: 80
Reputation: 1,408

Post » Tue Aug 04, 2015 2:43 am

Was able to reproduce in Chrome, didn't need to close the tab either, hitting refresh was enough. This only happens with the collision event, not with the "is overlapping" event.
B
5
S
1
Posts: 10
Reputation: 293

Post » Tue Aug 04, 2015 4:39 am

In other words, it's exactly the same issue as this one: savestate-growing-when-using-on-collision_t126439
...but it now requires the game to be relaunched (closing or refreshing the tab or using the "reload" button in the debugger) for the issue to happen.
B
20
S
5
Posts: 80
Reputation: 1,408

Post » Thu Aug 06, 2015 3:10 pm

Should be fixed in the next beta, thanks for the find.
Scirra Founder
B
403
S
238
G
89
Posts: 24,648
Reputation: 196,133


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 2 guests