Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-7241] iOS: memory - Instruments reports memory leak with all Studio 1.0.8 templates

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionInvalid
Resolution Date2012-01-17T09:18:28.000+0000
Affected Version/sRelease 1.8.1
Fix Version/sn/a
ComponentsiOS
Labelsqe-ios11612, qe-nfc
ReporterEric Merriman
AssigneeStephen Tramer
Created2012-01-16T16:43:43.000+0000
Updated2017-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

FileDateSize
default.trace.zip2012-01-16T16:43:43.000+00001774307
singleAll.trace.zip2012-01-16T16:43:43.000+00002626812
ttall.trace.zip2012-01-16T16:43:43.000+00001790624

Comments

  1. Stephen Tramer 2012-01-16

    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.
  2. Neeraj Gupta 2012-01-16

    Can we try one of these templates with 1.7.5 release? It seems strange that all templates are leaking memory.
  3. Eric Merriman 2012-01-17

    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:]
  4. Eric Merriman 2012-01-17

    Commented which reopened, setting back as it was set.
  5. Lee Morris 2017-03-09

    Closing ticket as invalid.

JSON Source