Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-20256] Windows: Reduce memory consumption at TitaniumKit startup

GitHub Issuen/a
TypeStory
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2016-02-03T01:35:55.000+0000
Affected Version/sRelease 5.1.0
Fix Version/sRelease 5.2.0
ComponentsWindows
Labelsn/a
ReporterKota Iguchi
AssigneeKota Iguchi
Created2016-01-20T12:37:37.000+0000
Updated2017-03-16T21:59:48.000+0000

Description

According to [Application Verifier](https://msdn.microsoft.com/en-us/library/windows/hardware/ff538115%28v=vs.85%29.aspx) for Windows Phone, bad memory allocation due to heap corruption and "out of memory" error has been observed. This may be a root cause of crash at application startup (TIMOB-20197). I'm observing that one of "out of memory" error occurs at Titanium::ApplicationBuilder constructor. Because we are instantiating every Titanium object in there, we may have a chance to reduce memory consumption by delaying instantiation of them. We might be able to instantiate them on demand.

Comments

  1. Kota Iguchi 2016-01-26

    https://github.com/appcelerator/titanium_mobile_windows/pull/539
  2. Lee Morris 2017-03-16

    Closing ticket as fixed.

JSON Source