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

kitchensink-v2 broken on latest SDK build on master


    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 7.5.0
    • Component/s: Android, CLI, iOS, Windows
    • Labels:
    • Environment:
    • Story Points:
    • Sprint:
      2018 Sprint 22


      On the latest version of the SDK in master (7.5.0.v20180920040518) kitchensink-v2 is broken and displays the following error on iOS (Looks like it broke in SDK Version 7.5.0.v20180919143608):

      [ERROR] :  Script Error {
      [ERROR] :      column = 18;
      [ERROR] :      line = 6;
      [ERROR] :      message = "Can't find variable: _";
      [ERROR] :      sourceURL = "file:///Users/Samir/Library/Developer/CoreSimulator/Devices/2BA65AF9-7B80-486E-9A20-005A318A4424/data/Containers/Bundle/Application/5A64DDEB-EA50-4721-81B9-15B9BBC5D6DE/KitchenSink.app/logger.js";
      [ERROR] :      stack = "    at Logger(/logger.js:6:18)\n    at (/logger.js:33:41)\n    at global code(/logger.js:35:70)\n    at require@[native code]\n    at (/alloy/controllers/index.js:5:22)\n    at global code(/alloy/controllers/index.js:108:70)\n    at require@[native code]\n    at createController(/alloy.js:339:21)\n    at (/app.js:34:23)\n    at global code(/app.js:36:70)\n    at require@[native code]\n    at (/ti.main.js:27:10)\n    at loadAsync(/ti.internal/bootstrap.loader.js:106:11)\n    at global code(/ti.main.js:24:52)";
      [ERROR] :      toJSON = "<KrollCallback: 0x604000265e00>";
      [ERROR] :  }
      [ERROR] :  Script Error Module "logger.js" failed to leave a valid exports object
      [ERROR] :  Script Error Module "alloy/controllers/index.js" failed to leave a valid exports object
      [ERROR] :  Script Error Module "app.js" failed to leave a valid exports object

      Android Error

      [ERROR] :  TiExceptionHandler: (main) [213,213] /logger.js:6
      [ERROR] :  TiExceptionHandler: 		this.logger = _.extend({}, Backbone.Events);
      [ERROR] :  TiExceptionHandler:                 ^
      [ERROR] :  TiExceptionHandler: ReferenceError: _ is not defined
      [ERROR] :  TiExceptionHandler:     at new Logger (/logger.js:6:17)
      [ERROR] :  TiExceptionHandler:     at /logger.js:33:33
      [ERROR] :  TiExceptionHandler:     at Module._runScript (ti:/module.js:613:9)
      [ERROR] :  TiExceptionHandler:     at Module.load (ti:/module.js:105:7)
      [ERROR] :  TiExceptionHandler:     at Module.loadJavascriptText (ti:/module.js:457:9)
      [ERROR] :  TiExceptionHandler:     at Module.loadAsFile (ti:/module.js:512:15)
      [ERROR] :  TiExceptionHandler:     at Module.loadAsFileOrDirectory (ti:/module.js:429:20)
      [ERROR] :  TiExceptionHandler:     at Module.require (ti:/module.js:296:17)
      [ERROR] :  TiExceptionHandler:     at require (ti:/module.js:570:15)
      [ERROR] :  TiExceptionHandler:     at /alloy/controllers/index.js:5:15
      [ERROR] :  TiExceptionHandler:
      [ERROR] :  TiExceptionHandler:     org.appcelerator.kroll.runtime.v8.V8Runtime.nativeRunModule(Native Method)
      [ERROR] :  TiExceptionHandler:     org.appcelerator.kroll.runtime.v8.V8Runtime.doRunModule(V8Runtime.java:180)
      [ERROR] :  TiExceptionHandler:     org.appcelerator.kroll.KrollRuntime.runModule(KrollRuntime.java:247)
      [ERROR] :  TiExceptionHandler:     org.appcelerator.titanium.TiLaunchActivity.loadActivityScript(TiLaunchActivity.java:135)
      [ERROR] :  TiExceptionHandler:     org.appcelerator.titanium.TiLaunchActivity.windowCreated(TiLaunchActivity.java:190)
      [ERROR] :  TiExceptionHandler:     org.appcelerator.titanium.TiRootActivity.windowCreated(TiRootActivity.java:174)
      [ERROR] :  TiExceptionHandler:     org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:675)
      [ERROR] :  TiExceptionHandler:     org.appcelerator.titanium.TiLaunchActivity.onCreate(TiLaunchActivity.java:176)
      [ERROR] :  TiExceptionHandler:     org.appcelerator.titanium.TiRootActivity.onCreate(TiRootActivity.java:163)
      [ERROR] :  TiExceptionHandler:     android.app.Activity.performCreate(Activity.java:6237)
      [DEBUG] :  OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true
      [ERROR] :  GraphResponse: {HttpStatus: 400, errorCode: -1, subErrorCode: -1, errorType: null, errorMessage: null}
      [DEBUG] :  D/com.facebook.FacebookSdk: getGraphApiVersion: v3.0
      [ERROR] :  V8Exception: Exception occurred at /logger.js:6: Uncaught ReferenceError: _ is not defined

      Test Steps

      1. Download the latest SDK version from master appc ti sdk install -b master -d
      2. Download the kitchensink-v2 app from https://github.com/appcelerator/kitchensink-v2
      3. Run the kitchensink-v2 using the latest master build

      Expected result
      Application should run without any issues

      Actual result
      Above error is shown

      Note: kitchensink-v2 works as expected in SDK version 7.5.0.v20180919120117


          Issue Links



              • Assignee:
                cwilliams Christopher Williams
                smohammed Samir Mohammed
              • Watchers:
                7 Start watching this issue


                • Created:

                  Backbone Issue Sync

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

                    Git Integration