{ "id": "172937", "key": "TIMOB-26783", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "20432", "name": "Release 8.0.1", "archived": false, "released": true, "releaseDate": "2019-05-15" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2019-03-28T13:43:29.000+0000", "created": "2019-01-30T17:58:27.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [ { "id": "19882", "name": "Release 8.0.0", "archived": false, "released": true, "releaseDate": "2019-03-14" } ], "issuelinks": [], "assignee": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2019-03-28T13:43:29.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "*Steps to reproduce the behavior*\r\n\r\n# Create a new classic project and replace {{Resources/app.js}} content with the following code: \r\n{code:js}\r\nconst win = Ti.UI.createWindow();\r\nconst label = Ti.UI.createLabel({ text: 'test require' });\r\nlabel.addEventListener('click', () => require('test'));\r\nwin.add(label);\r\nwin.open();\r\n{code}\r\n# Create a new file {{Resources/test.js}} with the following content:\r\n{code:js}\r\nexport const value = 1;\r\n{code}\r\n# Build the app and open Instruments. Choose the Leaks template and start recording the running test app, then switch into the \"Leak Checks\" view.\r\n# Repeatedly click on the label.\r\n\r\n*Actual behavior*\r\nMemory leaks will show up for {{tryFile}} and {{NSString stringByAppendingString:}}\r\n\r\n*Expected behavior*\r\nNo memory leaks are shown.", "attachment": [], "flagged": false, "summary": "iOS: Memory leak in require", "creator": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "comment": { "comments": [ { "id": "445775", "author": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR (master): https://github.com/appcelerator/titanium_mobile/pull/10659\r\nPR (8_0_X): https://github.com/appcelerator/titanium_mobile/pull/10660", "updateAuthor": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "created": "2019-01-30T18:27:32.000+0000", "updated": "2019-01-30T18:27:32.000+0000" }, { "id": "446913", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "PRs have been merged to master/8_0_X.", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2019-03-15T14:39:47.000+0000", "updated": "2019-03-15T14:39:47.000+0000" }, { "id": "447046", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The memory leaks have definitely decreased but on the new SDK builds their still seems to be 25 leaks according to instruments (Down from 445 though).", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-03-21T11:21:11.000+0000", "updated": "2019-03-21T11:21:20.000+0000" }, { "id": "447049", "author": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "body": "Are those related to the leaks described here or in TIMOB-26811? If not please open a separate ticket and include Instrument leak data so we can tackle them separately, thanks!", "updateAuthor": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "created": "2019-03-21T12:54:46.000+0000", "updated": "2019-03-21T12:54:46.000+0000" }, { "id": "447338", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "*Closing ticket*, fix verified in SDK version {{8.1.0.v20190325115012}} and SDK Version {{8.0.1.v20190327083138}} No memory leaks are being shown when repeatedly clicking on the table. \r\n\r\n*Test and other information can be found at:*\r\nPR (master): https://github.com/appcelerator/titanium_mobile/pull/10659\r\nPR (8_0_X): https://github.com/appcelerator/titanium_mobile/pull/10660", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-03-28T13:43:23.000+0000", "updated": "2019-03-28T13:43:23.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }