Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13732] Liveview: Crittercism injected code in project causes liveview launch to fail with parse error and black screen

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2013-05-02T23:11:10.000+0000
Affected Version/sRelease 3.1.1
Fix Version/sRelease 3.1.2
ComponentsLiveView
Labelsliveview, qe-3.1.1, qe-testadded
ReporterEric Merriman
AssigneeChristian Sullivan
Created2013-05-01T17:49:24.000+0000
Updated2013-09-23T09:31:35.000+0000

Description

Description:

When launching a "appcelerator services enabled" project in the simulator, the launch will fail with a black screen on device and a error in the console:
-- Start simulator log -------------------------------------------------------
[DEBUG] :  Reading stylesheet from: /Users/emerriman/Library/Application Support/iPhone Simulator/6.1/Applications/C5D9EA98-F3A4-489C-AA3A-05DE351CA0EA/basicWithCritter.app/stylesheet.plist
[DEBUG] :  Analytics is enabled = YES
[DEBUG] :  Loading: /Users/emerriman/Library/Application Support/iPhone Simulator/6.1/Applications/C5D9EA98-F3A4-489C-AA3A-05DE351CA0EA/basicWithCritter.app/app.js, Resource: app_js
[INFO] :   Application started
[INFO] :   basicWithCritter/1.0 (3.1.1.v20130430164508.1ea1219)
 [INFO]  client connected
[DEBUG] :  Assigning Exception Handling Delegate...
[DEBUG] :  Done
[INFO] :   [object ComCrittercismTiModule] loaded
[DEBUG] :  Loading: /Users/emerriman/Library/Application Support/iPhone Simulator/6.1/Applications/C5D9EA98-F3A4-489C-AA3A-05DE351CA0EA/basicWithCritter.app/com.crittercism.ti.js, Resource: com_crittercism_ti_js
[ERROR] :  [LiveView] {
[ERROR] :      error =     {
[ERROR] :          backtrace = "#0 () at file://localhost/Users/emerriman/Library/Application%20Support/iPhone%20Simulator/6.1/Applications/C5D9EA98-F3A4-489C-AA3A-05DE351CA0EA/basicWithCritter.app/app.js:5029\n#1 () at :1\n#2 () at file://localhost/Users/emerriman/Library/Application%20Support/iPhone%20Simulator/6.1/Applications/C5D9EA98-F3A4-489C-AA3A-05DE351CA0EA/basicWithCritter.app/app.js:5149\n#3 () at file://localhost/Users/emerriman/Library/Application%20Support/iPhone%20Simulator/6.1/Applications/C5D9EA98-F3A4-489C-AA3A-05DE351CA0EA/basicWithCritter.app/app.js:5029\n#4 () at file://localhost/Users/emerriman/Library/Application%20Support/iPhone%20Simulator/6.1/Applications/C5D9EA98-F3A4-489C-AA3A-05DE351CA0EA/basicWithCritter.app/app.js:5183";
[ERROR] :          line = 1;
[ERROR] :          message = "Parse error";
[ERROR] :          name = SyntaxError;
[ERROR] :          sourceId = 312912576;
[ERROR] :      };
[ERROR] :      module = "app.js";
[ERROR] :  }
[DEBUG] :  Application booted in 595.690966 ms
[INFO] :   [LiveView] Client connected
I was told this was caused by the crittercism injected code.

Steps to reproduce:

1) Create a new project in Appcelerator studio with services enabled 2) Attempt to launch a liveview simulator session

Result:

Failure with errors in the console and black screen on device

Expected Result:

Successful launch

Attachments

FileDateSize
Screenshot_5_1_13_10_48_AM.png2013-05-01T17:49:24.000+0000347116

Comments

  1. Christian Sullivan 2013-05-02

    FIXED in LiveView v0.1.11 https://github.com/appcelerator/liveview/commit/b114493784ad6a9a09d15048dfbf526b3c65e046
  2. Michael Xia 2013-08-14

    Verified fixed on Appcelerator Studio, build: 3.1.2.201308091728, OSX 10.8.3. Running an app with all services enabled with LiveView produced no error.

JSON Source