[TIMOB-7241] iOS: memory - Instruments reports memory leak with all Studio 1.0.8 templates
GitHub Issue | n/a |
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2012-01-17T09:18:28.000+0000 |
Affected Version/s | Release 1.8.1 |
Fix Version/s | n/a |
Components | iOS |
Labels | qe-ios11612, qe-nfc |
Reporter | Eric Merriman |
Assignee | Stephen Tramer |
Created | 2012-01-16T16:43:43.000+0000 |
Updated | 2017-03-09T23:20:18.000+0000 |
Description
Description:
While testing the new Studio provided templates with master, I ran each on device with instruments to check for leaks. All templates were leaking. This also occurred with the default template and one other I checked against 1.8.0.1.
Details:
Two-Tabbed template
Leaked Object # Address Size Responsible Library Responsible Frame
NSMutableDictionary,1 0x367af0 48 Bytes UIKit -[UIApplication _callInitializationDelegatesForURL:payload:suspended:]
Default template
Leaked Object # Address Size Responsible Library Responsible Frame
Malloc 16 Bytes,1 0x36b6a0 16 Bytes UIKit -[UIApplication _callInitializationDelegatesForURL:payload:suspended:]
Malloc 16 Bytes,1 0x36d1f0 16 Bytes UIKit -[UIApplication _callInitializationDelegatesForURL:payload:suspended:]
NSMutableDictionary,1 0x351320 48 Bytes UIKit -[UIApplication _callInitializationDelegatesForURL:payload:suspended:]
Single window template
Leaked Object # Address Size Responsible Library Responsible Frame
NSMutableDictionary,1 0x3ac440 48 Bytes UIKit -[UIApplication _callInitializationDelegatesForURL:payload:suspended:]
Malloc 16 Bytes,1 0x3abe50 16 Bytes UIKit -[UIApplication _callInitializationDelegatesForURL:payload:suspended:]
Malloc 16 Bytes,1 0x3ad960 16 Bytes UIKit -[UIApplication _callInitializationDelegatesForURL:payload:suspended:]
Master/Detail template
Leaked Object # Address Size Responsible Library Responsible Frame
NSMutableDictionary,1 0x34a5e0 48 Bytes UIKit -[UIApplication _callInitializationDelegatesForURL:payload:suspended:]
Steps to reproduce:
1) Install Titanium Studio, build: 1.0.8.201201131907
2) Create a new project, fill out fields, click "next"
3) Choose a template to use
4) Install to iOS device
5) Launch instruments and select app and device as targets
6) Begin recording
7) Exercise app on device (switch tabs, click labels, open windows)
Result:
Memory leak
Expected:
No memory leak
Attachments
This is an Apple bug; Apple reserves functions which begin with an _ token. If these functions are leaking memory, and no others inside of the Titanium stack, this is not our issue.
Can we try one of these templates with 1.7.5 release? It seems strange that all templates are leaking memory.
With 1.7.5 and the default template, also had a leak: Leaked Object # Address Size Responsible Library Responsible Frame NSMutableDictionary,1 0x339c40 48 Bytes UIKit -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] __NSCFString,2 < multiple > 32 Bytes Foundation +[NSDictionary(NSDictionary) newWithContentsOf:immutable:] __NSCFString,1 0x355f50 16 Bytes Foundation +[NSDictionary(NSDictionary) newWithContentsOf:immutable:] __NSCFString,1 0x3561d0 16 Bytes Foundation +[NSDictionary(NSDictionary) newWithContentsOf:immutable:] NSMutableDictionary,1 0x355f60 48 Bytes Foundation +[NSDictionary(NSDictionary) newWithContentsOf:immutable:] Malloc 16 Bytes,1 0x355f90 16 Bytes Foundation +[NSDictionary(NSDictionary) newWithContentsOf:immutable:] Malloc 16 Bytes,1 0x355fa0 16 Bytes Foundation +[NSDictionary(NSDictionary) newWithContentsOf:immutable:]
Commented which reopened, setting back as it was set.
Closing ticket as invalid.