[TIMOB-18325] Windows: Module crashes at destructor
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2015-01-28T20:13:40.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Windows |
Labels | n/a |
Reporter | Ingo Muschenetz |
Assignee | Matt Langston |
Created | 2015-01-06T20:57:22.000+0000 |
Updated | 2017-03-14T19:52:54.000+0000 |
Description
TitaniumKit Module instance crashes as soon as its destructor is fired.
javascript
'use strict';
for (var i = 0; i < 1000; i++) {
var b = Ti.UI.createButton({
top: 20,
bottom: 20,
width: 200,
height: Ti.UI.SIZE
});
b = null;
}
This crashes at UI::Button destructor. Tested on Windows Store app, 100% reproducible.
000000533 <Tue Dec 16 15:18:46 2014> DEBUG: UI::createButton.
000001067 <Tue Dec 16 15:18:46 2014> DEBUG: Button::ctor Initialize.
000001068 <Tue Dec 16 15:18:46 2014> DEBUG: Button::ctor CallAsConstructor.
000000534 <Tue Dec 16 15:18:46 2014> DEBUG: UI::createButton.
000001069 <Tue Dec 16 15:18:46 2014> DEBUG: Button::dtor.
First-chance exception at 0x54E60262 (TitaniumKit.dll) in Issue34.exe: 0xC0000005: Access violation reading location 0xDDDDDDDD.
Unhandled exception at 0x54E60262 (TitaniumKit.dll) in Issue34.exe: 0xC0000005: Access violation reading location 0xDDDDDDDD.
I'll push a new PR which demonstrates this issue.
This is a issue on HAL and fixed in https://github.com/appcelerator/HAL/pull/21, needs to be integrated in titanium_mobile_windows.
Sounds like this was fixed.
Closing ticket as fixed.