Search Issue Tracker
Duplicate
Votes
15
Found in
4.6.3f1
Issue ID
675546
Regression
Yes
[iOS] Memory leak in GetPixels and GetPixels32
To Reproduce:
1. Open & deploy the attached project to iOS.
2. After run transfer the debug session to instruments profiler.
3. Observe that memory usage continues to grow until the app crashes due to 'memory pressure'.
This increase in memory usage is not visible in Xcode, it shows that it's only around 100-200mb at the time of crash.
Comments (6)
-
chimn
Jun 11, 2015 07:04
I got the same problem in Unity 4.6.5 for iOS project.
Memory usage increases sooooon when calling webcamTexture.GetPixels32 () or webcamTexture.GetPixels()
The problem seems exist for months, can you fix it ASAP? -
Henning_Justare
Mar 30, 2015 10:35
Have been working on project on Android (easier as I'm on PC) for about two months now, keeping up to date with the newest unity ver. So I was a bit shocked, when I had to show the project to the customer on iPad and it crashed after a few minuter, as the memory was leaking bad on IOS.
Hope it'll be fixed soon..Thanks for a great product :)
-
tkikuike
Mar 26, 2015 07:42
This simple code cause crash. Unity5.0.0f4 / IL2CPP Universal / iPhone5 ( iOS7)
In Unity4.6.1(mono), this code works, and memory doesn't leak.
-------------------------------------------
void Update()
{
if (webcamTexture != null && webcamTexture.isPlaying) {
Color32[] pixels = webcamTexture.GetPixels32 (); // cause error
}
}
-------------------------------------------> 2015-03-24 14:44:36.925 ProductName[991:60b] Received memory warning.
> WARNING -> applicationDidReceiveMemoryWarning()Reference Post:
http://forum.unity3d.com/threads/ios-crashing-after-using-webcamtexture.299306/ -
DRhodes
Mar 26, 2015 03:06
I can confirm that WebCamTexture.didUpdateThisFrame is not working with iOS 8 in Unity 5.0.0.f4, as well.
-
Leekafka
Mar 24, 2015 16:11
Also, it seems that "WebCamTexture.didUpdateThisFrame" is not working properly on iOS 8 with Unity 4.6.3p3.
-
beetlejesss
Mar 18, 2015 17:36
This is causing a crash in our iOS app after we access the camera function (both in iOS 8 and iOS 7).
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- var VisionOSEDRHeadromm has a comma instead of a dot when building with Metal Rendering App Mode and local OS localization is set to German
- IAP Catalog remove product “x” and add product “+” buttons are not consistent with other remove and add buttons in the Editor
- Performance issues in Play Mode when quickly hovering the mouse cursor over Hierarchy GameObjects
- Frame Debugger displays incorrect output when FidelityFX Super Resolution or Spatial-Temporal Upscaler is used with Temporal Anti-aliasing or Subpixel Morphological Anti-aliasing
- Crash with “Fatal Error! The file ‘MemoryStream’ is corrupted!” when adding a large number in Font Character Rects Size field
This is a duplicate of issue #684028