[TIMOB-24081] Hyperloop: iOS - App crashes when scrolling UICollectionViews
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Hyperloop |
Labels | engSchedule, hyperloop, ios |
Reporter | Rodolfo Perottoni |
Assignee | Jan Vennemann |
Created | 2016-09-02T04:26:29.000+0000 |
Updated | 2019-09-24T15:48:59.000+0000 |
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).
My code is attached in this ticket, along with the crash file.
Example:
var HL_CollectionView = require('HL_CollectionView');
$.window.add(HL_CollectionView.createCollectionView([
"1", "2", "3", "4","5", "6", "7", "8","9", "10", "11", "12","13", "14", "15", "16",
"1", "2", "3", "4","5", "6", "7", "8","9", "10", "11", "12","13", "14", "15", "16",
]));
After scrolling the collection a little bit, the app crashes.
I'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.
Attachments
File | Date | Size |
---|---|---|
Collection View_2016-09-02-140856_Rodolfos-Mac-mini.crash | 2016-09-02T04:20:18.000+0000 | 91334 |
HL_CollectionView.js | 2016-09-02T04:20:41.000+0000 | 3051 |
UICollectionViewDelegate.js | 2016-09-02T04:20:41.000+0000 | 1319 |
Hello, Can you try it with latest version 1.2.7? Let us know. Thanks.
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.
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!