Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-5762] Closing a window in nav group doesn't destroy window nor it's contents even after nulling out

GitHub Issuen/a
TypeBug
PriorityHigh
StatusReopened
ResolutionUnresolved
Affected Version/sRelease 1.7.2
Fix Version/sSprint 2011-43, Release 1.8.0
ComponentsiOS
Labelsmodule_navgroup, qe-testadded
ReporterRick Blalock
AssigneeUnknown
Created2011-10-16T08:30:38.000+0000
Updated2018-03-06T18:58:00.000+0000

Description

Attached is a basic example showing the issue: Windows opened in a navgroup do not get GC'd despite attempts to null out the window after it's closed in the navgroup. In the example I'm using a commonJS module to add to the new window, open it, etc. Even nulling out 'exports' yields no results. NOTE: If you hit the auto generated back button - the window DOES get GC'd. Only if you close it programmatically does it retain the windows. Here is a video example - first click on the auto generated buttons, which do release - then clicking the button to programmatically close it, which never releases: http://screencast.com/t/MtzkI4ZRhn

Attachments

FileDateSize
Archive.zip2011-10-16T08:32:00.000+00001570594
Screen Shot 2013-08-08 at 11.23.10 AM.png2013-08-08T18:35:56.000+0000194310

Comments

  1. Rick Blalock 2011-10-16

    Attached is a sample app
  2. Rick Blalock 2011-10-16

    The only thing I can figure is there is some voodoo going on in the background with the auto generated back button and close that doesn't apply to programmatically closing it. I thought maybe the CommonJS module was being retained but after a few tests, I'm sure it's not the COmmonJS module getting retained (quick test is to create a bunch of TiUI objects in the module but don't add it to the window...they all get GC'd - however if you add them to the window they will, of course, stay around since the window is staying around).
  3. Rick Blalock 2011-10-17

    Ok just converted the test to a non commonJS example since that doesn't work on 1.8 right now - http://pastie.org/2714222 Results: 1.7.X - Does not release windows (just like CommonJS example) 1.8.0 - Releases memory appropriately.
  4. Reggie Seagraves 2011-10-17

    Previously fixed in 1.8.
  5. Natalie Huynh 2011-11-17

    Pass: Tested with 1.8.0.1.v20111116185058 on iPad 2 4.3.5 iPod Touch 4.02 iPhone 4s 5.0
  6. Olga Romero 2013-08-08

    Reopened. Tested with: Appcelerator Studio: , build: 3.1.2.201308071912 Titanium SDK, build: 3.1.2.v20130807171139 CLI: 3.1.2-alpha Alloy: 1.2.0-alpha6 Xcode5-DP4 Devices: iPad mini iOS 6.1.3 Check the attachment

JSON Source