[TIMOB-19038] Windows: Crashes when opening windows from a tableview with the QE testing app
GitHub Issue | n/a |
Type | Bug |
Priority | None |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2015-06-25T23:11:47.000+0000 |
Affected Version/s | Release 4.1.0 |
Fix Version/s | Release 4.1.0 |
Components | Windows |
Labels | qe-4.1.0 |
Reporter | Ewan Harris |
Assignee | Gary Mathews |
Created | 2015-06-17T22:01:13.000+0000 |
Updated | 2015-06-30T18:47:52.000+0000 |
Description
Description
When using the QE testing apps, if I open one test case then the next test case I open will crash the application. I have attached an example app as APIModule.zip
Steps To Reproduce
1. Download the attached project and build it for device or emulator
2. Open test case TIMOB7187
3. Close the window
4. Open test case TIMOB9214
5. Reverse steps 2-4
Actual Result
When attempting open the second test case window the app will crash
Expected Result
The app should not crash
Attachments
Bit more information due to TIMOB-19034 when this happens the following is printed in the console
[ERROR] Application Error: "Runtime Error during click event: unknown exception"
Here's code to reproduce the problem. It seem's we cant add a single UI element to +multiple+ windows.
[~eharris] To fix the problem replace
createTableView
in _ui.js_ with :This creates a new instance of
done
for every window.??Here's code to reproduce the problem. It seem's we cant add a single UI element to multiple windows.?? Confirmed that it doesn't work because Windows Xaml components doesn't accept this. I can say it is a limitation of
Xaml.UI.Controls
, not because of TitaniumLayoutEngine
.We should add a more descriptive error message.
PR: https://github.com/appcelerator/titanium_mobile_windows/pull/325
Verified the fix. We now get error with a more descriptive message :
Closing. Environment: Appc Studio: 4.1.0.201506261427 Ti SDK: 4.1.0.v20150630092706 Ti CLI: 4.0.1 Alloy: 1.6.2 Windows: 8.1 Enterprise 64-bit APPC NPM: 4.1.0-1 APPC CLI: 4.1.0-4 Device: Nokia Lumia 928 - Windows Phone 8.1 Windows emulator : 8.1