Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-13732

Liveview: Crittercism injected code in project causes liveview launch to fail with parse error and black screen

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: Release 3.1.1
    • Fix Version/s: Release 3.1.2
    • Component/s: LiveView
    • Environment:

      Mac OS 10.8.3
      Xcode 4.6
      CLI: 3.1.0
      Alloy: 1.1.1
      Appcelerator Studio, build: 3.1.1.201304302240
      Titanium SDK version 3.1.1.v20130430164508

      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

          Activity

            People

            • Assignee:
              csullivan Christian Sullivan
              Reporter:
              emerriman Eric Merriman
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-16384
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration