Memory Leak on Windows Phone (universal export)

Bugs will be moved here once resolved.

Post » Mon Apr 28, 2014 2:16 am

Problem Description
Over time, a project exported as a Universal 8.1 (Windows 8.1 and Windows Phone 8.1) app from Construct 2 r168 will leak memory only in Windows Phone 8.1. Despite sharing the same code, the Windows 8.1 build does not leak memory. Only the Windows Phone build does.

Attach a Capx
This issue was observed with my own capx as well as your own template files. No need to appach a capx file... simply use the Flapping Bird template with no modifications. I tested and confirmed the same issue occurs.

Description of Capx
Test with Flapping Bird template.

Steps to Reproduce Bug
  • Export app from Construct 2 as Universal 8.1.
  • Open the project in Visual Studio 2013.
  • Run app on Windows Phone
  • Do nothing. The app immediately starts leaking memory, even just sitting on the main play screen.
  • Try with Windows 8 and notice there is no memory leak.

Observed Result
The app slowly increases total memory used, about 1-2 MBs per minute. Eventually, app crashes as it runs out of memory.

Expected Result
I expect the memory use to remain the same over time.

Affected Browsers
  • Windows Phone 8.1 Only.

Operating System and Service Pack
Windows Phone 8.1 (issue occurs on device with Lumia 920, and in emulator)

Construct 2 Version ID
Construct 2 release 168 64bit
You do not have the required permissions to view the files attached to this post.
B
5
Posts: 21
Reputation: 267

Post » Mon Apr 28, 2014 12:00 pm

So this does not affect any other browsers or platforms? I will look in to this but it may be that it's a problem in WP8.1 itself, since our engine is nearly identical on all platforms, so if the problem was in our engine it ought to show up on other platforms.
Scirra Founder
B
397
S
236
G
88
Posts: 24,420
Reputation: 194,549

Post » Mon Apr 28, 2014 2:25 pm

No, it does not appear to affect other browsers or platforms. I can confirm the Android version (exported via Crosswalk) does not have the issue.

I thought it might be an issue with WP8.1 itself, but I am able to run other apps on it for several hours. Do you know of any WP8.1 apps made with HTML5 that I could download and test?

Looking forward to more info on this. I'm just waiting on this (or any kind of workaround you might find) to release my app.

Thanks,
Andy
B
5
Posts: 21
Reputation: 267

Post » Wed Apr 30, 2014 1:55 am

Any updates or an eta as to when I might hear back regarding this issue? I've released my app in Google Play and I'm waiting to hear back before I can release to Windows and Windows Phone.
B
5
Posts: 21
Reputation: 267

Post » Wed Apr 30, 2014 4:35 am

Mortar Melon is a construct 2 app on windows 8
B
49
S
12
G
10
Posts: 1,833
Reputation: 14,583

Post » Wed Apr 30, 2014 7:05 am

I am yet to investigate, but it would be helpful to produce the smallest .capx possible that reproduces the problem.
Scirra Founder
B
397
S
236
G
88
Posts: 24,420
Reputation: 194,549

Post » Wed Apr 30, 2014 8:46 pm

The Flapping Bird template is (considerably) smaller than my alarm app, so that's the best I can do. I'll test a few other templates and let you know.

Worth noting: Interestingly, if I try the examples (like, say, the 8 direction templates), I see a similar behaviour but with cleanup. The memory rises slowly, then returns to normal, rises, returns to normal, and so on. The same example on Windows 8, the memory just stays steady. It looks like as soon the project has events, the cleanup phase doesn't happen.

Andy
B
5
Posts: 21
Reputation: 267

Post » Thu May 01, 2014 5:00 am

I have tested and I can confirm that the issue occurs with the Ghost Shooter (tutorial example) at 264kb, the flapping bird template at 196kb and even the Autorunner template at only 56kb. The Driving Game template at 13kb was not an issue (it did the rise and fall motion I described earlier).

Hope that helps speed things up for you. The sooner I know what's going on, the sooner I can make my future plans. My app is just sitting in the Google Play store waiting for proper promotion while I wait for this to get sorted out.
B
5
Posts: 21
Reputation: 267

Post » Thu May 01, 2014 11:53 am

I mean if you can narrow it down to a single object. You can reduce the stock projects even further. A minimal repro means the closest to an empty project that still causes the problem.
Scirra Founder
B
397
S
236
G
88
Posts: 24,420
Reputation: 194,549

Post » Thu May 01, 2014 1:37 pm

Isn't that your job, since I paid for your application? ;)

I'll see if I have time to do this tonight.
B
5
Posts: 21
Reputation: 267

Next

Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 3 guests