{ "id": "162962", "key": "TIMOB-24081", "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": [], "resolution": null, "resolutiondate": null, "created": "2016-09-02T04:26:29.000+0000", "priority": null, "labels": [ "engSchedule", "hyperloop", "ios" ], "versions": [], "issuelinks": [], "assignee": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2019-09-24T15:48:59.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "13715", "name": "Hyperloop", "description": "Hyperloop project" } ], "description": "While using a UICollectionView with HyperLoop I've noticed that my app crashes after scrolling the view a few times due to a Segmentation Fault 11 (bad memory address access).\r\n\r\nMy code is attached in this ticket, along with the crash file.\r\nExample:\r\n\r\n{code:java}\r\nvar HL_CollectionView = require('HL_CollectionView');\r\n$.window.add(HL_CollectionView.createCollectionView([\r\n \"1\", \"2\", \"3\", \"4\",\"5\", \"6\", \"7\", \"8\",\"9\", \"10\", \"11\", \"12\",\"13\", \"14\", \"15\", \"16\",\r\n \"1\", \"2\", \"3\", \"4\",\"5\", \"6\", \"7\", \"8\",\"9\", \"10\", \"11\", \"12\",\"13\", \"14\", \"15\", \"16\",\r\n]));\r\n{code}\r\n\r\nAfter scrolling the collection a little bit, the app crashes.\r\nI've monitored the app on Instruments and apparently it's not a memory leak issue (memory usage stays low). I guess this error is coming from the *cellForItemAtIndexPath* method when i'm changing the labels inside each *UICollectionViewCell*. It's a dirty solution, but it's all we have. \r\n\r\n\r\n\r\n", "attachment": [ { "id": "60184", "filename": "Collection View_2016-09-02-140856_Rodolfos-Mac-mini.crash", "author": { "name": "rdperottoni", "key": "rdperottoni", "displayName": "Rodolfo Perottoni", "active": true, "timeZone": "Australia/Brisbane" }, "created": "2016-09-02T04:20:18.000+0000", "size": 91334, "mimeType": "application/octet-stream" }, { "id": "60183", "filename": "HL_CollectionView.js", "author": { "name": "rdperottoni", "key": "rdperottoni", "displayName": "Rodolfo Perottoni", "active": true, "timeZone": "Australia/Brisbane" }, "created": "2016-09-02T04:20:41.000+0000", "size": 3051, "mimeType": "text/javascript" }, { "id": "60182", "filename": "UICollectionViewDelegate.js", "author": { "name": "rdperottoni", "key": "rdperottoni", "displayName": "Rodolfo Perottoni", "active": true, "timeZone": "Australia/Brisbane" }, "created": "2016-09-02T04:20:41.000+0000", "size": 1319, "mimeType": "text/javascript" } ], "flagged": false, "summary": "Hyperloop: iOS - App crashes when scrolling UICollectionViews", "creator": { "name": "rdperottoni", "key": "rdperottoni", "displayName": "Rodolfo Perottoni", "active": true, "timeZone": "Australia/Brisbane" }, "subtasks": [], "reporter": { "name": "rdperottoni", "key": "rdperottoni", "displayName": "Rodolfo Perottoni", "active": true, "timeZone": "Australia/Brisbane" }, "environment": "Hyperloop 1.2.6\r\nSDK 5.4.0.GA", "comment": { "comments": [ { "id": "399788", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, Can you try it with latest version 1.2.7? Let us know. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-10-25T15:07:57.000+0000", "updated": "2016-10-25T15:07:57.000+0000" }, { "id": "417211", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "The crash is happening because the JSCore GC deallocated the reference incorrectly in some cases. I know [~jvennemann] is already working on, so reassigning to him! *EDIT*: Might be related to TIMOB-23868.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-04-11T19:54:55.000+0000", "updated": "2017-04-11T19:55:45.000+0000" }, { "id": "427942", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Quick heads-up: This still has still not been forgotten and we are working on it. I just moved it out of 2.2.0 so it does not block the release with all other features and improvements. We are trying to do more frequent releases with Hyperloop, so various issues and improvements can be used more easily. We will update this ticket once the core-issue was found, thanks guys!", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-09-15T14:58:42.000+0000", "updated": "2017-09-15T14:58:42.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }