[TIMOB-25910] Android: Memory leak when using TextFields in TableView rows
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | None |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2018-06-19T13:45:20.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 7.3.0 |
Components | Android |
Labels | n/a |
Reporter | Shuo Liang |
Assignee | Gary Mathews |
Created | 2018-03-28T11:48:07.000+0000 |
Updated | 2018-07-09T20:21:10.000+0000 |
Description
Reproduce steps
1. Run the attached simple Alloy app. (Just an Alloy project that opens a modal window which has a TableView with rows containing Textfields. ) 2. Click the "Open Window" 3. Hit the Android "back" button to dismiss the window with the tableview textfield rows 4. Repeat steps 2 & 3 repeatedly until you start seeing messages such as the following:
[INFO] : zygote64: Background concurrent copying GC freed 302993(13MB) AllocSpace objects, 31(496KB) LOS objects, 44% free, 30MB/54MB, paused 214us total 258.736ms
Attached screenshot for that as well.
Attachments
File | Date | Size |
---|---|---|
index.js | 2018-03-28T11:49:51.000+0000 | 140 |
index.xml | 2018-03-28T11:49:42.000+0000 | 100 |
ListViewPage.js | 2018-03-28T11:49:52.000+0000 | 260 |
ListViewPage.xml | 2018-03-28T11:49:42.000+0000 | 95 |
MemLeak3.png | 2018-03-28T11:48:06.000+0000 | 523047 |
Any update?
[~sliang] What is the customer name here?
This is not a memory leak, the messages are routine logs from the GC after doing a cleanup. If after running for some time, the customers app crashes with an
Out of memory
exception, then I would consider that a memory leak or mismanagement of memory.[~gmathews] Using the example code and repeat 2&3 steps, the app will crash eventually. It might take 5 -10 mins to repeat those steps. but customer confirmed that app will crash for sure.
*TEST CASE*
master: https://github.com/appcelerator/titanium_mobile/pull/10081
Here's the builds for
7_1_0
https://jenkins.appcelerator.org/blue/organizations/jenkins/titanium-sdk%2Ftitanium_mobile/detail/7_1_0-TIMOB-25910/3/artifactsVerified the fix in SDK 7.4.0.v20180709112648 & 7.3.0.v20180703051211. Closing. Studio Ver: 5.1.0.201806291005 OS Ver: 4.2.13 Xcode Ver: 7.0.4 Appc NPM: 1.1.3 Appc CLI: 10.13.5 Daemon Ver: Xcode 9.4.1 Ti CLI Ver: 5.1.1 Alloy Ver: 1.12.0 Node Ver: 8.9.1 NPM Ver: 5.5.1 Java Ver: 1.8.0_131 Devices: ⇨ google Nexus 5 --- Android 6.0.1 ⇨ google Nexus 6P --- Android 8.1.0 Emulator: ⇨ Android 4.1.2