[TIMOB-14633] Liveview: Runtime error when loading KS
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-07-24T05:16:00.000+0000 |
Affected Version/s | Release 3.1.1 |
Fix Version/s | 2013 Sprint 15 Tooling, 2013 Sprint 15, Release 3.1.2, Release 3.2.0 |
Components | LiveView |
Labels | qe-closed-3.2.0 |
Reporter | Allen Yeung |
Assignee | Christian Sullivan |
Created | 2013-07-23T18:16:22.000+0000 |
Updated | 2013-12-17T21:51:45.000+0000 |
Description
When running KS with liveview, I get a runtime error saying the backtrace field is undefined.
Steps to reproduce:
1. Run liveview with KS on Appcelerator studio
2. As soon as you launch the app, you will see a runtime error saying:
E/TiExceptionHandler( 2020): (main) [185,4532] ----- Titanium Javascript Runtime Error -----
E/TiExceptionHandler( 2020): (main) [0,4532] - In app.js:646,55
E/TiExceptionHandler( 2020): (main) [0,4532] - Message: Uncaught TypeError: Cannot call method 'replace' of undefined
E/TiExceptionHandler( 2020): (main) [0,4532] - Source: console.error('Backtrace:\n', err.error.backtrace.replace(/'\n'/g, '\n'));
Even if there is an uncaught exception, it shouldn't fail when logging it. I'm guessing 'backtrace' isn't a valid field.
Christian fixed it in https://github.com/appcelerator/liveview/commit/872683d1280a119fbe0dc287ed62572e5116bdbd.
Verified fixed on: Mac OSX 10.9 Mavericks Appcelerator Studio, build: 3.2.0.201312162210 Titanium SDK, build: 3.2.0.v20131216191854 CLI: 3.2.0-cr3 Alloy: 1.3.0-cr LiveView: 1.0.1 Android Device: Nexus 4 (4.2) With LiveView enabled, Kitchen Sink launched successfully. App can be modified and device will update as expected. Screen refreshed in a matter of seconds when change is made. No runtime error is displayed during this process. Closing.