Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2194] iOS: Contexts are not closed

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionInvalid
Resolution Date2011-12-22T17:00:17.000+0000
Affected Version/sRelease 1.5.0
Fix Version/sRelease 1.8.0.1
ComponentsiOS
Labelsn/a
ReporterStephen Tramer
AssigneeStephen Tramer
Created2011-04-15T03:13:11.000+0000
Updated2017-03-02T22:49:31.000+0000

Description

Contexts are not currently closed. This is because there were a series of bugs involving contexts where closing a context would:

  • Invalidate certain windows which were opened from inside a context which was then closed
  • Closing a context could interact unfavorably with certain types of event listeners

Unfortunately I no longer have the specific bug #s for bugs caused by context shutdown so that context cleanup can be tested.

Context cleanup is an extremely important task and this should be considered a CRITICAL BUG.

Assigning to Blain for bookkeeping.

Comments

  1. Stephen Tramer 2011-04-15

    Claiming. This is related to a helpdesk issue involving memory management. Contexts have a death grip on all proxies and possibly their view contents.

  2. Stephen Tramer 2011-04-15

    This is actually untrue right now, but may have re-introduced a large number of bugs. See commit f5887ae, which cleans up contexts when they are no longer required (by closing windows).

    Putting this one on the back burner. Instead what we're more interested in now is why contexts don't release objects that are clearly no longer in use. See brand new sister bug #2207.

  3. Stephen Tramer 2011-04-15

    Swapping back to new/future since technically this bug is fixed. We just need more accurate context management.

  4. Stephen Tramer 2011-04-15

    Bumping to 'medium' priority, since we do currently release contexts. We just need to do it more intelligently.

  5. Stephen Tramer 2011-12-22

    Invalidated by the majority of memory management work that we've performed over the last several releases. Also supplanted by the concept of moving to single-context.
  6. Lee Morris 2017-03-02

    Closing ticket as invalid.

JSON Source