GitHub Issue | n/a |
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-02-10T00:00:45.000+0000 |
Affected Version/s | Release 1.8.0.1, Release 2.0.0 |
Fix Version/s | Sprint 2012-01, Release 2.0.0, Release 1.8.1 |
Components | iOS |
Labels | module_window, qe-testadded, regression |
Reporter | Francisco Antonio Duran Ramirez |
Assignee | Vishal Duggal |
Created | 2012-01-05T08:46:15.000+0000 |
Updated | 2012-02-10T00:00:45.000+0000 |
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
This may have the common cause. Vishal tried the fix for 4946 on 6997, and it appeared to have fixed the issue.
Confirmed that the fix for TIMOB-4946 also fixes this issue.
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
Reopening and closing this issue to update label and Fix Version field.
updated labels