Titanium JIRA Archive
Appcelerator Community (AC)

[AC-1527] Analytics leak memory

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionCannot Reproduce
Resolution Date2016-02-24T14:24:40.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsn/a
ReporterAndrew McElroy
AssigneeMostafizur Rahman
Created2016-02-23T21:43:40.000+0000
Updated2016-03-08T07:37:59.000+0000

Description

When using instruments to profile (using memory leak tool) a hello world Titanium app, I observe that is leaks memory. When I turn analytics off in tiapp.xml and clean the build and reset the simulator, the app no longer leaks memory. Steps to reproduce: ti create --type app -p all --id com.hello.leak --name=helloleak -u http://example.com -d ~/Desktop ti build --platform=iphone open instruments select memory leak select the app and hit record, observe that responsible caller CFNetwork leaks memory. Steps to prove CFNetwork is coming from analytics: stop the simulator and instruments change analytics to false in tiapp.xml ti clean ti build --platform=iphone reopen instruments and select memory leak tool observe no memory leaks. A few more notes: this matters because Titanium should not be leaking memory by default. If this can get fixed then Appcelerator can make an interesting and true claim, which is that hello world React-Native and NativeScript (aka native leak) leak memory by default, while titanium (for now when analytics are off) does not.

Comments

  1. Andrew McElroy 2016-02-24

    this is not resolved! I'll record a video and give you a .trace file and cc ingo on this later today.
  2. Andrew McElroy 2016-02-25

    This apparently is resolved in 5.2.0.GA but was an issue in 5.2.0.v20160216202526 as well as master branch back in January. I now agree with closing this issue. If I see it come back up, I'll report it again.

JSON Source