Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2106] Module listeners need to be removed on context close

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:58:06.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.5.0
ComponentsiOS
Labelsios, iphone, listeners, module
ReporterStephen Tramer
AssigneeStephen Tramer
Created2011-04-15T03:10:36.000+0000
Updated2011-04-17T01:58:06.000+0000

Description

Module listeners need to be removed on context close, otherwise they can cause an EXEC_BAD_ACCESS when events are fired, due to having been released. To see this behavior in KS:

  • Run KS->Phone->Geolocation
  • Run KS->Mashups->Foursquare
  • Run KS->Phone->Geolocation again

We need to manage this manually rather than have users be responsible for removing their listeners.

Comments

  1. Jeff Haynie 2011-04-15

    (from [ea69b1b8a02f0b1b382f4251cda7db98821c0513]) [#2106 state:fixed-in-qa] Destroyed modules are recreated instead of loaded from cache. Bugfixes for audio event listeners & session handling. http://github.com/appcelerator/titanium_mobile/commit/ea69b1b8a02f0b1b382f4251cda7db98821c0513"> http://github.com/appcelerator/titanium_mobile/commit/ea69b1b8a02f0...

  2. Thomas Huelbert 2011-04-15

    4th gen ipod running 4.1, 3g iphone 3.1.2 .5.0.77ad8ac

    unable to repro in todays build, closing.

JSON Source