[AC-1527] Analytics leak memory
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Resolved |
Resolution | Cannot Reproduce |
Resolution Date | 2016-02-24T14:24:40.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | n/a |
Reporter | Andrew McElroy |
Assignee | Mostafizur Rahman |
Created | 2016-02-23T21:43:40.000+0000 |
Updated | 2016-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.
this is not resolved! I'll record a video and give you a .trace file and cc ingo on this later today.
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.