[TIMOB-26098] iOS: Simulator randomly crashes during Ti.Buffer "toBlob()" test
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | None |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | iOS |
Labels | n/a |
Reporter | Hans Knöchel |
Assignee | Unknown |
Created | 2018-06-05T22:00:42.000+0000 |
Updated | 2018-06-05T22:15:33.000+0000 |
Description
We recently updated the Ti.Buffer API to be more comprehensive and tested. In a recent PR, I now noticed a crash occurring when calling "toBlob" on a Ti.Buffer instance (crash log attached). It looks like it instantiates a Ti.Blob successfully, but it then gets deallocated too early and crashes with a bad access.
This might either be related to [this change](https://github.com/appcelerator/titanium_mobile/commit/38f9ebcc506f9b5275ea9a032794fd66c6cb4502#diff-cf2c45a6e64c734d0a5fc57a971170d7R309) from 2 years ago or from [this change](https://github.com/appcelerator/titanium_mobile/pull/10028) a few months ago. I feel it might even have happened before these two, but haven't been surfaced before [~cwilliams] added the unit tests for it.
Attachments
File | Date | Size |
---|---|---|
mocha_2018-05-31-162329_curlywurly-macos.crash | 2018-06-05T22:06:21.000+0000 | 166692 |
A quick stress test does not trigger the crash (30+ runs):