Log in or register to post comments

Vuforia 5 Scene Unload memory leak was not resolved in Vuforia 6 and is way worse

December 11, 2016 - 7:35pm #1

Believe it or not this memory leak is over one year old, they told me they resolved in version 6, it actually got worse again ( its now 20-30 megs on each scene unload that contains vuforia ).  This is the last thread I started on the issue.

 

https://developer.vuforia.com/forum/unity-extension-technical-discussion/memory-leak-if-use-loadscene-unity-ios

Old Post

------------------------------------

This has been an issue for me for almost 1 year, I noticed it November 2015 and reported it in the forum.  Never got a helpful response from Vuforia, its a pretty serious issue.  I think its actually gotten worse, it use to be 2-3 megs.  I am working on upgrading an old project now and can confirm its 10 megs when you unload a scene with vuforia in it.  Does not matter if you do garbage collect or resource unload.  Also does not make a difference if you use the scene manager or application.loadlevel.  My guess is they are sloppy with assigning a bunch of listeners and don't automatically remove them in the trackable object, hopefully its not in the plugin and can be manually addressed in Unity.  I will let you know if I figure anything out.

------------------------------------

 

I have a museum installation waiting for this to be resolved, this a serious issue.  Any immediate help from Vuforia would be appreciated.

Best regards

Stephan

Vuforia 5 Scene Unload memory leak was not resolved in Vuforia 6 and is way worse

April 19, 2017 - 1:11pm #5

Is this issue ever going to get resolved?

Vuforia 5 Scene Unload memory leak was not resolved in Vuforia 6 and is way worse

December 12, 2016 - 7:37pm #4

I have tested on iOS 10 ( iPhone 6s ) and the memory accumulation was about 30 megs each time you leave the scene with vuforia in it.

On iOS 9 on an iPad Air it was 3-5 megs.

Vuforia 5 Scene Unload memory leak was not resolved in Vuforia 6 and is way worse

December 11, 2016 - 8:30pm #3

Hi

In this post:

https://developer.vuforia.com/forum/unity-extension-technical-discussion/vuforia6-unity-ios-memory-leak-0

mebit said there was no problem testing,

medabit wrote:

We were unable to reproduce the problem. Here are the steps taken with corresponding memory info:

First launch of the app Vuforia Samples Menu -> VM 25 MiB

Launch Vuforia Detection/Tracking -> 76 MiB

Double tap and exit back Vuforia Samples Menu -> 46 MiB

Repeat 2 and 3. Same results as above i.e 76 MiB for step 2 and 46 MiB

The App does hold on to about 20 MiB of memory which is never released. But app didn't crash for 25 iterations nor did we see a 20-30M increase on every iteration.

Tested on iPhone7 with iOS 10.x and iPad Air 2 with iOS 9.x

I found that iOS8 and 9 first increase the memory, the second and later will not add. IOS10.x memory accumulation will not be released each time.

Test in iphone6s ios10.1.1:

1.First launch of the app Vuforia Samples Menu -> VM 27.6 MiB

2.Launch Vuforia Detection / Tracking -> 106.4 MiB

3. Double tap and exit back Vuforia Samples Menu -> 61 MiB

4.Launch Vuforia Detection / Tracking -> 122.3 MiB

5. Double tap and exit back Vuforia Samples Menu -> 86.4 MiB

6.Launch Vuforia Detection / Tracking -> 149.6 MiB

7. Double tap and exit back Vuforia Samples Menu -> 106.8 MiB

8.Launch Vuforia Detection / Tracking -> 168.6 MiB

9. Double tap and exit back Vuforia Samples Menu -> 128.1 MiB

10.Launch Vuforia Detection / Tracking -> 187.1 MiB

11. Double tap and exit back Vuforia Samples Menu -> 146.4 MiB

12.Launch Vuforia Detection / Tracking -> 205.3 MiB

13. Double tap and exit back Vuforia Samples Menu -> 164.9 MiB

14.Launch Vuforia Detection / Tracking -> 225 MiB

15. Double tap and exit back Vuforia Samples Menu -> 184.7 MiB

Every time there are about 20M memory accumulation, and constantly repeat the operation, to the equipment after the collapse of the limit

I have another iphone6plus 10.0.2, each operating memory accumulated about 10M

I downloaded the latest 6.1.17 to test, the problem still exists.

Vuforia 5 Scene Unload memory leak was not resolved in Vuforia 6 and is way worse

December 11, 2016 - 7:43pm #2

FYI this is an iOS / Unity specific bug

It does not show up in the Unity Editor

It shows up when profiling / debugging from xcode

I tested with the Vuforia 6-1-17 Unity plugin

Log in or register to post comments