Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-6997] iOS: Opening Windows with Navigationgroup show an error: [ERROR] Adding an event listener to a proxy that isn't already in the context

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-02-10T00:00:45.000+0000
Affected Version/sRelease 1.8.0.1, Release 2.0.0
Fix Version/sSprint 2012-01, Release 2.0.0, Release 1.8.1
ComponentsiOS
Labelsmodule_window, qe-testadded, regression
ReporterFrancisco Antonio Duran Ramirez
AssigneeVishal Duggal
Created2012-01-05T08:46:15.000+0000
Updated2012-02-10T00:00:45.000+0000

Description

Problem

Adding event listener to a window opened using navGroup gives the below error in 1.8.0.1 Titanium SDK. [ERROR] Adding an event listener to a proxy that isn't already in the context

Reproducible steps:

1. Run the code attached. 2. Click on Open New Window button 3. Click on first window button 4. Repeat the steps 2 & 3 for until you get the message error on the console. Error message on the console: [ERROR] Adding an event listener to a proxy that isn't already in the context

Expected behavior:

Customer's app crashes eventually with this error message.

More info:

Using the same sample in 1.7.x - we don't see this error message.

Tested with the next specs:

Simulator iOS SDK 5 Titanium Studio, build: 1.0.8.201112291658 Titanium SDK: 1.8.0.1, 1.9.0.v20111221123134 & 1.7.5

Console Logs:

[INFO] One moment, building ...
[INFO] Titanium SDK version: 1.9.0 (12/21/11 12:31 162895f)
[INFO] iPhone Device family: universal
[INFO] iPhone SDK version: 5.0
[INFO] iPhone simulated device: iphone
[INFO] Launching application in Simulator
[INFO] Launched application in Simulator (7.16 seconds)
[INFO] Found 5.0 patch installed
[INFO] Application started
[INFO] i13582/1.0 (1.9.0.v20111221123134.162895f)
[INFO] Creating nav group
[INFO] >>> Setting win nav group[object TiUIiPhoneNavigationGroup]
[INFO] Opening nav group (Create): firstWindow
[INFO] >>> Setting parent nav group
[INFO] Creating nav group
[INFO] >>> Setting win nav group (parent)
[INFO] Opening nav group (Normal): secondWindow
[INFO] Opening second window
[INFO] >>> Setting parent nav group
[INFO] Creating nav group
[INFO] >>> Setting win nav group (parent)
[INFO] Opening nav group (Normal): secondWindow
[INFO] Opening second window
[INFO] >>> Setting parent nav group
[INFO] Creating nav group
[INFO] >>> Setting win nav group (parent)
[INFO] Opening nav group (Normal): secondWindow
[INFO] Opening second window
[INFO] >>> Setting parent nav group
[INFO] Creating nav group
[INFO] >>> Setting win nav group (parent)
[INFO] Opening nav group (Normal): secondWindow
[INFO] Opening second window
[INFO] >>> Setting parent nav group
[INFO] Creating nav group
[INFO] >>> Setting win nav group (parent)
[INFO] Opening nav group (Normal): secondWindow
[INFO] Opening second window
[ERROR] Adding an event listener to a proxy that isn't already in the context
[INFO] One moment, building ...
[INFO] Titanium SDK version: 1.8.0.1 (12/22/11 13:09 fbdc96f)
[INFO] iPhone Device family: universal
[INFO] iPhone SDK version: 5.0
[INFO] iPhone simulated device: iphone
[INFO] Performing full rebuild. This will take a little bit. Hold tight...
[INFO] Skipping JS compile, running from simulator
[INFO] Performing clean build
[INFO] Launching application in Simulator
[INFO] Launched application in Simulator (88.73 seconds)
[INFO] Found 5.0 patch installed
[INFO] Application started
[INFO] i13582/1.0 (1.8.0.1.fbdc96f)
[INFO] Creating nav group
[INFO] >>> Setting win nav group[object TiUIiPhoneNavigationGroup]
[INFO] Opening nav group (Create): firstWindow
[INFO] >>> Setting parent nav group
[INFO] Creating nav group
[INFO] >>> Setting win nav group (parent)
[INFO] Opening nav group (Normal): secondWindow
[INFO] Opening second window
[INFO] >>> Setting parent nav group
[INFO] Creating nav group
[INFO] >>> Setting win nav group (parent)
[INFO] Opening nav group (Normal): secondWindow
[INFO] Opening second window
[ERROR] Adding an event listener to a proxy that isn't already in the context
[INFO] One moment, building ...
[INFO] Titanium SDK version: 1.7.5
[INFO] iPhone Device family: universal
[INFO] iPhone SDK version: 5.0
[INFO] iPhone simulated device: iphone
[INFO] Performing full rebuild. This will take a little bit. Hold tight...
[INFO] Skipping JS compile, running from simulator
[INFO] Performing clean build
[INFO] Launching application in Simulator
[INFO] Launched application in Simulator (85.65 seconds)
[INFO] Found 5.0 patch installed
[INFO] Application started
[INFO] i13582/1.0 (1.7.5.ab20af7)
[INFO] Creating nav group
[INFO] >>> Setting win nav group[object TiUIiPhoneNavigationGroup]
[INFO] Opening nav group (Create): firstWindow
[INFO] >>> Setting parent nav group
[INFO] Creating nav group
[INFO] >>> Setting win nav group (parent)
[INFO] Opening nav group (Normal): secondWindow
[INFO] Opening second window
[INFO] >>> Setting parent nav group
[INFO] Creating nav group
[INFO] >>> Setting win nav group (parent)
[INFO] Opening nav group (Normal): secondWindow
[INFO] Opening second window
[INFO] >>> Setting parent nav group
[INFO] Creating nav group
[INFO] >>> Setting win nav group (parent)
[INFO] Opening nav group (Normal): secondWindow
[INFO] Opening second window
[INFO] >>> Setting parent nav group
[INFO] Creating nav group
[INFO] >>> Setting win nav group (parent)
[INFO] Opening nav group (Normal): secondWindow
[INFO] Opening second window
[INFO] >>> Setting parent nav group
[INFO] Creating nav group
[INFO] >>> Setting win nav group (parent)
[INFO] Opening nav group (Normal): secondWindow
[INFO] Opening second window
[INFO] >>> Setting parent nav group
[INFO] Creating nav group
[INFO] >>> Setting win nav group (parent)
[INFO] Opening nav group (Normal): secondWindow
[INFO] Opening second window
[INFO] >>> Setting parent nav group
[INFO] Creating nav group
[INFO] >>> Setting win nav group (parent)
[INFO] Opening nav group (Normal): secondWindow
[INFO] Opening second window

Helpdesk

APP-554872

Attachments

FileDateSize
i13582.zip2012-01-05T08:46:15.000+00002321596

Comments

  1. Blain Hamon 2012-01-05

    This may have the common cause. Vishal tried the fix for 4946 on 6997, and it appeared to have fixed the issue.
  2. Vishal Duggal 2012-01-05

    Confirmed that the fix for TIMOB-4946 also fixes this issue.
  3. Michael Pettiford 2012-01-12

    Closing issue Tested with Ti Studio 1.9.0.v20120111233134 Ti Mob SDK 1.8.0.1 OSX Lion iPhone 4S, iPad 2 Expected behavior of no error message is shown
  4. Neeraj Gupta 2012-01-23

    Reopening and closing this issue to update label and Fix Version field.
  5. Wilson Luu 2012-02-02

    updated labels

JSON Source