You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, we were using FBBitmapFont/View repeatedly [i.e. changing the text] and it is causing very large spike in memory - suddenly it grows to 50MB, 100MB and 200MB before it is killed by iOS.
We have tested a few times and narrowed it down to this component. It happens very frequently if you change size of text and adjust the number of padding dots so it is centered.
I've looked at Instruments and it is showing very huge single allocations [39MB, etc] with many CG calls.
Hi,
It is a cool library - great work!
However, we were using FBBitmapFont/View repeatedly [i.e. changing the text] and it is causing very large spike in memory - suddenly it grows to 50MB, 100MB and 200MB before it is killed by iOS.
http://stackoverflow.com/questions/19326551/sudden-memory-spike-with-cgcontextfillrect
Most likely something like this is going on, but I am not a CoreGraphics expert.
@autoreleasepool {
per
http://stackoverflow.com/questions/5121120/uigraphicsgetimagefromcurrentimagecontext-memory-leak-pdf-previews
and ensure it runs on main thread
per
http://stackoverflow.com/questions/11582223/ios-ensure-execution-on-main-thread
Thanks in advance if you can look into it. Is a nice library.
Nicole
The text was updated successfully, but these errors were encountered: