Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-18325] Windows: Module crashes at destructor

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2015-01-28T20:13:40.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsWindows
Labelsn/a
ReporterIngo Muschenetz
AssigneeMatt Langston
Created2015-01-06T20:57:22.000+0000
Updated2017-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.

Comments

  1. Kota Iguchi 2015-01-20

    This is a issue on HAL and fixed in https://github.com/appcelerator/HAL/pull/21, needs to be integrated in titanium_mobile_windows.
  2. Christopher Williams 2015-01-28

    Sounds like this was fixed.
  3. Lee Morris 2017-03-14

    Closing ticket as fixed.

JSON Source