[ALOY-948] Alloy: LiveView: runtime tests not working if LiveView is enabled
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2014-08-01T00:28:07.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | qe-3.2.1 |
Reporter | Federico Casali |
Assignee | Unknown |
Created | 2014-02-05T00:39:59.000+0000 |
Updated | 2018-03-07T22:28:28.000+0000 |
Description
Problem description
If enabling LiveView, the Alloy runtime tests implemented for most of the samples available (https://github.com/appcelerator/alloy/tree/master/test/apps) are not being triggered correctly and in most cases nothing is displayed when the app is started. In the case of Alloy advanced themes sample https://github.com/appcelerator/alloy/tree/master/test/apps/advanced/themes an Application Error is also displayed when the runtime specs are required if the user click on a button. See screenshot and error log.iOS log
[WARN] : New layout set while view [object progressFront] animating: Will relayout after animation.
[ERROR] : Script Error {
[WARN] : New layout set while view [object progressFront] animating: Will relayout after animation.
[WARN] : New layout set while view [object progressFront] animating: Will relayout after animation.
[ERROR] : backtrace = "#0 () at file:///Users/fcasali/Library/Application%20Support/iPhone%20Simulator/7.0.3/Applications/AB68B2B3-7394-42E3-9D8B-BED50A2C721B/Harness.app/app.js:638\n#1 () at file:///Users/fcasali/Library/Application%20Support/iPhone%20Simulator/7.0.3/Applications/AB68B2B3-7394-42E3-9D8B-BED50A2C721B/Harness.app/app.js:502\n#2 () at :93\n#3 testPatience() at :6";
[ERROR] : line = 608;
[ERROR] : message = "'undefined' is not a function (evaluating '_src.replace(/\\/\\/(.*)$/gm, '')')";
[ERROR] : name = TypeError;
[ERROR] : sourceId = 309385824;
[ERROR] : sourceURL = "file:///Users/fcasali/Library/Application%20Support/iPhone%20Simulator/7.0.3/Applications/AB68B2B3-7394-42E3-9D8B-BED50A2C721B/Harness.app/app.js";
[ERROR] : }
[WARN] : New layout set while view [object progressFront] animating: Will relayout after animation.
Android log
[ERROR] : TiExceptionHandler: (main) [3430,3430] ----- Titanium Javascript Runtime Error -----
[ERROR] : TiExceptionHandler: (main) [0,3430] - In app.js:608,16
[ERROR] : TiExceptionHandler: (main) [2,3432] - Message: Uncaught TypeError: Object false has no method 'replace'
[ERROR] : TiExceptionHandler: (main) [0,3432] - Source: _src.replace(/\/\/(.*)$/gm, '').replace(/\n/g, '') +
[WARN] : IdleConnectionHandler: Removing a connection that never existed!
[ERROR] : TiHttpClient: (TiHttpClient-12) [2,3434] HTTP Error (org.apache.http.client.HttpResponseException): Not Found
[ERROR] : TiHttpClient: org.apache.http.client.HttpResponseException: Not Found
[ERROR] : TiHttpClient: at ti.modules.titanium.network.TiHTTPClient$LocalResponseHandler.handleResponse(TiHTTPClient.java:258)
[ERROR] : TiHttpClient: at ti.modules.titanium.network.TiHTTPClient$LocalResponseHandler.handleResponse(TiHTTPClient.java:217)
[ERROR] : TiHttpClient: at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:657)
[ERROR] : TiHttpClient: at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:637)
[ERROR] : TiHttpClient: at ti.modules.titanium.network.TiHTTPClient$ClientRunnable.run(TiHTTPClient.java:1287)
[ERROR] : TiHttpClient: at java.lang.Thread.run(Thread.java:841)
[ERROR] : V8Exception: Exception occurred at app.js:608: Uncaught TypeError: Object false has no method 'replace'
Attachments
File | Date | Size |
---|---|---|
device-2014-02-04-162647.png | 2014-02-05T00:39:59.000+0000 | 63157 |
Screen Shot 2014-02-04 at 4.23.09 PM.png | 2014-02-05T00:39:59.000+0000 | 46594 |