Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11867] CLI: Alloy: Mobile Packaging Failed

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-11-28T22:44:34.000+0000
Affected Version/sn/a
Fix Version/sRelease 3.1.0, 2012 Sprint 24, 2012 Sprint 24 JS
ComponentsCLI
Labelsalloy, cli, qe-mw100112, qe-port, qe-testadded
ReporterPragya Rastogi
AssigneeChris Barber
Created2012-11-27T13:58:04.000+0000
Updated2013-07-26T10:32:57.000+0000

Description

Steps To Reproduce: 1. Create Alloy project 2. Package to Mobile Web Project Actual: Failed to package appears Expected: Mobile Package must occur without error

Attachments

FileDateSize
Alloy.png2012-11-27T13:58:04.000+0000164735

Comments

  1. Chris Barber 2012-11-27

    Could you re-run the build and attach the trace-level log to this ticket?
  2. Michael Xia 2012-11-27

    Here is the command Studio runs and the output we see when running from command line:
       qa@ubuntu:~/studio_source/studio3-ruby$ "/usr/bin/titanium" "--no-banner" "--no-colors" "--no-prompt" "build" "--platform" "mobileweb" "--sdk" "3.0.0.v20121121161553" "--deploy-type" "production" "--log-level" "trace" "--project-dir" "/home/qa/runtime-titanium.product/testAlloyPackaging"
       [DEBUG] Detecting plugins in /home/qa/runtime-titanium.product/testAlloyPackaging/plugins
       [DEBUG] Detected plugin: ti.alloy @ /home/qa/runtime-titanium.product/testAlloyPackaging/plugins/ti.alloy
       [DEBUG] Looking for Titanium plugin id: ti.alloy version: 1.0
       [DEBUG] Loaded plugin hooks:
       [DEBUG] /home/qa/.titanium/mobilesdk/linux/3.0.0.v20121121161553/cli/hooks/plugins.js
       [DEBUG] /home/qa/runtime-titanium.product/testAlloyPackaging/plugins/ti.alloy/hooks/alloy.js
       [INFO] Compiling "production" build
       [INFO] Reading Titanium Mobile Web package.json file
       [INFO] Validating theme
       [DEBUG] Using default theme
       [DEBUG] Would be firing "compile" legacy plugin hook if it was supported
       [INFO] Found Alloy app in /home/qa/runtime-titanium.product/testAlloyPackaging/app
       [INFO] Executing Alloy compile: /usr/bin/node /usr/bin/alloy compile /home/qa/runtime-titanium.product/testAlloyPackaging/app --config platform=mobileweb,version=0,simtype=none,devicefamily=none,deploytype=production
       [DEBUG]        .__  .__                
       [DEBUG] _____  |  | |  |   ____ ___.__.
       [DEBUG] \__  \ |  | |  |  /  _ <   |  |
       [DEBUG]  / __ \|  |_|  |_(  <_> )___  |
       [DEBUG] (____  /____/____/\____// ____|
       [DEBUG]      \/                 \/
       [DEBUG] Alloy by Appcelerator. The MVC app framework for Titanium.
       [DEBUG]   
       [DEBUG] Cleaning "Resources" folder...
       [DEBUG]   
       [DEBUG] ----- BASE RUNTIME FILES -----
       [DEBUG] Plugin and hook already installed
       [INFO] Copying lib from: /usr/lib/node_modules/alloy/Alloy/lib
       [DEBUG] Copying /usr/lib/node_modules/alloy/Alloy/lib/alloy.js to /home/qa/runtime-titanium.product/testAlloyPackaging/Resources
       [DEBUG] Copying /usr/lib/node_modules/alloy/Alloy/lib/alloy to /home/qa/runtime-titanium.product/testAlloyPackaging/Resources
       [INFO] Copying assets from: /home/qa/runtime-titanium.product/testAlloyPackaging/app/assets
       [DEBUG] Copying /home/qa/runtime-titanium.product/testAlloyPackaging/app/assets/mobileweb to /home/qa/runtime-titanium.product/testAlloyPackaging/Resources
       [DEBUG] Copying /home/qa/runtime-titanium.product/testAlloyPackaging/app/assets/android to /home/qa/runtime-titanium.product/testAlloyPackaging/Resources
       [DEBUG] Copying /home/qa/runtime-titanium.product/testAlloyPackaging/app/assets/iphone to /home/qa/runtime-titanium.product/testAlloyPackaging/Resources
       [DEBUG]   
       [DEBUG] ----- CONFIGURATION -----
       [DEBUG] platform = mobileweb
       [DEBUG] version = 0
       [DEBUG] simtype = none
       [DEBUG] devicefamily = none
       [DEBUG] deploytype = production
       [DEBUG] beautify = false
       [DEBUG] project path = /home/qa/runtime-titanium.product/testAlloyPackaging
       [DEBUG] app path = /home/qa/runtime-titanium.product/testAlloyPackaging/app
       [DEBUG] platform = mobileweb
       [DEBUG] theme = undefined
       [DEBUG]   
       [DEBUG] ----- MVC GENERATION -----
       [DEBUG] [index.xml] view processing...
       [DEBUG]   style:      "index.tss"
       [DEBUG]   view:       "index.xml"
       [DEBUG]   controller: "index.js"
       [DEBUG]   
       [DEBUG] compile:trigger-> compile:app.js
       [INFO] compiling alloy to /home/qa/runtime-titanium.product/testAlloyPackaging/Resources/app.js
       [DEBUG] Parsing AST for "app.js"...
       [DEBUG] - Processing "builtins" module...
       [DEBUG] - Processing "mangle" module...
       [DEBUG] - Processing "squeeze" module...
       [DEBUG] Parsing AST for "alloy.js"...
       [DEBUG] - Processing "builtins" module...
       [DEBUG] - Processing "mangle" module...
       [DEBUG] - Processing "squeeze" module...
       [DEBUG] Parsing AST for "alloy/underscore.js"...
       [DEBUG] - Processing "builtins" module...
       [DEBUG] - Processing "mangle" module...
       [DEBUG] - Processing "squeeze" module...
       [DEBUG] Parsing AST for "alloy/CFG.js"...
       [DEBUG] - Processing "builtins" module...
       [DEBUG] - Processing "mangle" module...
       [DEBUG] - Processing "squeeze" module...
       [DEBUG] Parsing AST for "alloy/backbone.js"...
       [DEBUG] - Processing "builtins" module...
       [DEBUG] - Processing "mangle" module...
       [DEBUG] - Processing "squeeze" module...
       [DEBUG] Parsing AST for "alloy/controllers/index.js"...
       [DEBUG] - Processing "builtins" module...
       [DEBUG] - Processing "mangle" module...
       [DEBUG] - Processing "squeeze" module...
       [DEBUG] Parsing AST for "alloy/controllers/BaseController.js"...
       [DEBUG] - Processing "builtins" module...
       [DEBUG] - Processing "mangle" module...
       [DEBUG] - Processing "squeeze" module...
       [DEBUG] Parsing AST for "alloy/sync/properties.js"...
       [DEBUG] - Processing "builtins" module...
       [DEBUG] - Processing "mangle" module...
       [DEBUG] - Processing "squeeze" module...
       [DEBUG] Parsing AST for "alloy/sync/localStorage.js"...
       [DEBUG] - Processing "builtins" module...
       [DEBUG] - Processing "mangle" module...
       [DEBUG] - Processing "squeeze" module...
       [DEBUG] Parsing AST for "alloy/sync/sql.js"...
       [DEBUG] - Processing "builtins" module...
       [DEBUG] - Processing "mangle" module...
       [DEBUG] - Processing "squeeze" module...
       [INFO] Alloy compiler completed successfully
       [INFO] Copying project files
       [DEBUG] Deleting existing build directory
       [DEBUG] Copying /home/qa/.titanium/mobilesdk/linux/3.0.0.v20121121161553/mobileweb/themes => /home/qa/runtime-titanium.product/testAlloyPackaging/build/mobileweb/themes
       [DEBUG] Copying /home/qa/.titanium/mobilesdk/linux/3.0.0.v20121121161553/mobileweb/themes/default => /home/qa/runtime-titanium.product/testAlloyPackaging/build/mobileweb/themes/default
       [DEBUG] Copying /home/qa/.titanium/mobilesdk/linux/3.0.0.v20121121161553/mobileweb/themes/default/UI => /home/qa/runtime-titanium.product/testAlloyPackaging/build/mobileweb/themes/default/UI
       [DEBUG] Copying /home/qa/.titanium/mobilesdk/linux/3.0.0.v20121121161553/mobileweb/themes/default/UI/TableViewRow => /home/qa/runtime-titanium.product/testAlloyPackaging/build/mobileweb/themes/default/UI/TableViewRow
       [DEBUG] Copying /home/qa/.titanium/mobilesdk/linux/3.0.0.v20121121161553/mobileweb/themes/default/Map => /home/qa/runtime-titanium.product/testAlloyPackaging/build/mobileweb/themes/default/Map
       [DEBUG] Copying /home/qa/.titanium/mobilesdk/linux/3.0.0.v20121121161553/mobileweb/themes/default/Facebook => /home/qa/runtime-titanium.product/testAlloyPackaging/build/mobileweb/themes/default/Facebook
       [DEBUG] Copying /home/qa/.titanium/mobilesdk/linux/3.0.0.v20121121161553/mobileweb/titanium => /home/qa/runtime-titanium.product/testAlloyPackaging/build/mobileweb/titanium
       [DEBUG] Copying /home/qa/.titanium/mobilesdk/linux/3.0.0.v20121121161553/mobileweb/titanium/Ti => /home/qa/runtime-titanium.product/testAlloyPackaging/build/mobileweb/titanium/Ti
       [DEBUG] Copying /home/qa/.titanium/mobilesdk/linux/3.0.0.v20121121161553/mobileweb/titanium/Ti/App => /home/qa/runtime-titanium.product/testAlloyPackaging/build/mobileweb/titanium/Ti/App
       [DEBUG] Copying /home/qa/.titanium/mobilesdk/linux/3.0.0.v20121121161553/mobileweb/titanium/Ti/Media => /home/qa/runtime-titanium.product/testAlloyPackaging/build/mobileweb/titanium/Ti/Media
       [DEBUG] Copying /home/qa/.titanium/mobilesdk/linux/3.0.0.v20121121161553/mobileweb/titanium/Ti/UI => /home/qa/runtime-titanium.product/testAlloyPackaging/build/mobileweb/titanium/Ti/UI
       [DEBUG] Copying /home/qa/.titanium/mobilesdk/linux/3.0.0.v20121121161553/mobileweb/titanium/Ti/UI/MobileWeb => /home/qa/runtime-titanium.product/testAlloyPackaging/build/mobileweb/titanium/Ti/UI/MobileWeb
       [DEBUG] Copying /home/qa/.titanium/mobilesdk/linux/3.0.0.v20121121161553/mobileweb/titanium/Ti/Map => /home/qa/runtime-titanium.product/testAlloyPackaging/build/mobileweb/titanium/Ti/Map
       [DEBUG] Copying /home/qa/.titanium/mobilesdk/linux/3.0.0.v20121121161553/mobileweb/titanium/Ti/Facebook => /home/qa/runtime-titanium.product/testAlloyPackaging/build/mobileweb/titanium/Ti/Facebook
       [DEBUG] Copying /home/qa/.titanium/mobilesdk/linux/3.0.0.v20121121161553/mobileweb/titanium/Ti/_ => /home/qa/runtime-titanium.product/testAlloyPackaging/build/mobileweb/titanium/Ti/_
       [DEBUG] Copying /home/qa/.titanium/mobilesdk/linux/3.0.0.v20121121161553/mobileweb/titanium/Ti/_/UI => /home/qa/runtime-titanium.product/testAlloyPackaging/build/mobileweb/titanium/Ti/_/UI
       [DEBUG] Copying /home/qa/.titanium/mobilesdk/linux/3.0.0.v20121121161553/mobileweb/titanium/Ti/_/Map => /home/qa/runtime-titanium.product/testAlloyPackaging/build/mobileweb/titanium/Ti/_/Map
       [DEBUG] Copying /home/qa/.titanium/mobilesdk/linux/3.0.0.v20121121161553/mobileweb/titanium/Ti/_/Layouts => /home/qa/runtime-titanium.product/testAlloyPackaging/build/mobileweb/titanium/Ti/_/Layouts
       [DEBUG] Copying /home/qa/.titanium/mobilesdk/linux/3.0.0.v20121121161553/mobileweb/titanium/Ti/_/Gestures => /home/qa/runtime-titanium.product/testAlloyPackaging/build/mobileweb/titanium/Ti/_/Gestures
       [DEBUG] Copying /home/qa/.titanium/mobilesdk/linux/3.0.0.v20121121161553/mobileweb/titanium/Ti/_/Filesystem => /home/qa/runtime-titanium.product/testAlloyPackaging/build/mobileweb/titanium/Ti/_/Filesystem
       [DEBUG] Copying /home/qa/.titanium/mobilesdk/linux/3.0.0.v20121121161553/mobileweb/titanium/Ti/Network => /home/qa/runtime-titanium.product/testAlloyPackaging/build/mobileweb/titanium/Ti/Network
       [DEBUG] Copying /home/qa/.titanium/mobilesdk/linux/3.0.0.v20121121161553/mobileweb/titanium/Ti/Platform => /home/qa/runtime-titanium.product/testAlloyPackaging/build/mobileweb/titanium/Ti/Platform
       [DEBUG] Copying /home/qa/.titanium/mobilesdk/linux/3.0.0.v20121121161553/mobileweb/titanium/Ti/Filesystem => /home/qa/runtime-titanium.product/testAlloyPackaging/build/mobileweb/titanium/Ti/Filesystem
       [DEBUG] Copying /home/qa/runtime-titanium.product/testAlloyPackaging/Resources => /home/qa/runtime-titanium.product/testAlloyPackaging/build/mobileweb
       [DEBUG] Copying /home/qa/runtime-titanium.product/testAlloyPackaging/Resources/mobileweb => /home/qa/runtime-titanium.product/testAlloyPackaging/build/mobileweb/mobileweb
       [DEBUG] Copying /home/qa/runtime-titanium.product/testAlloyPackaging/Resources/mobileweb/splash => /home/qa/runtime-titanium.product/testAlloyPackaging/build/mobileweb/mobileweb/splash
       [DEBUG] Copying /home/qa/runtime-titanium.product/testAlloyPackaging/Resources/mobileweb/apple_startup_images => /home/qa/runtime-titanium.product/testAlloyPackaging/build/mobileweb/mobileweb/apple_startup_images
       [DEBUG] Copying /home/qa/runtime-titanium.product/testAlloyPackaging/Resources/iphone => /home/qa/runtime-titanium.product/testAlloyPackaging/build/mobileweb/iphone
       [DEBUG] Copying /home/qa/runtime-titanium.product/testAlloyPackaging/Resources/alloy => /home/qa/runtime-titanium.product/testAlloyPackaging/build/mobileweb/alloy
       [DEBUG] Copying /home/qa/runtime-titanium.product/testAlloyPackaging/Resources/alloy/controllers => /home/qa/runtime-titanium.product/testAlloyPackaging/build/mobileweb/alloy/controllers
       [DEBUG] Copying /home/qa/runtime-titanium.product/testAlloyPackaging/Resources/alloy/widgets => /home/qa/runtime-titanium.product/testAlloyPackaging/build/mobileweb/alloy/widgets
       [DEBUG] Copying /home/qa/runtime-titanium.product/testAlloyPackaging/Resources/alloy/sync => /home/qa/runtime-titanium.product/testAlloyPackaging/build/mobileweb/alloy/sync
       [DEBUG] Copying /home/qa/runtime-titanium.product/testAlloyPackaging/Resources/mobileweb => /home/qa/runtime-titanium.product/testAlloyPackaging/build/mobileweb/mobileweb
       [DEBUG] Copying /home/qa/runtime-titanium.product/testAlloyPackaging/Resources/mobileweb/apple_startup_images/Default.jpg => /home/qa/runtime-titanium.product/testAlloyPackaging/build/mobileweb/Default.jpg
       [DEBUG] Copying /home/qa/runtime-titanium.product/testAlloyPackaging/Resources/mobileweb/apple_startup_images/Default.jpg => /home/qa/runtime-titanium.product/testAlloyPackaging/build/mobileweb/mobileweb/apple_startup_images/Default.jpg
       [DEBUG] Copying /home/qa/runtime-titanium.product/testAlloyPackaging/Resources/mobileweb/apple_startup_images/Default-Portrait.jpg => /home/qa/runtime-titanium.product/testAlloyPackaging/build/mobileweb/Default-Portrait.jpg
       [DEBUG] Copying /home/qa/runtime-titanium.product/testAlloyPackaging/Resources/mobileweb/apple_startup_images/Default-Portrait.jpg => /home/qa/runtime-titanium.product/testAlloyPackaging/build/mobileweb/mobileweb/apple_startup_images/Default-Portrait.jpg
       [DEBUG] Copying /home/qa/runtime-titanium.product/testAlloyPackaging/Resources/mobileweb/apple_startup_images/Default-Landscape.jpg => /home/qa/runtime-titanium.product/testAlloyPackaging/build/mobileweb/Default-Landscape.jpg
       [DEBUG] Copying /home/qa/runtime-titanium.product/testAlloyPackaging/Resources/mobileweb/apple_startup_images/Default-Landscape.jpg => /home/qa/runtime-titanium.product/testAlloyPackaging/build/mobileweb/mobileweb/apple_startup_images/Default-Landscape.jpg
       [INFO] Finding all Titanium API dependencies
       [INFO] Creating favicon and Apple touch icons
       [DEBUG] Copying /home/qa/runtime-titanium.product/testAlloyPackaging/Resources/mobileweb/appicon.png => /home/qa/runtime-titanium.product/testAlloyPackaging/build/mobileweb/appicon.png
       [INFO] Finding all required modules to be cached
       [INFO] Finding all precached modules
       [INFO] Finding all precached images
       [INFO] Searching for 2 Titanium Modules
       [DEBUG] Detecting modules in /home/qa/.titanium/modules
       [DEBUG] Detected module: ti.cloud 2.0.1 @ /home/qa/.titanium/modules/commonjs/ti.cloud/2.0.1
       [DEBUG] Detected module: ti.cloud 2.3.0 @ /home/qa/.titanium/modules/commonjs/ti.cloud/2.3.0
       [DEBUG] Detected module: ti.cloud 2.2.0 @ /home/qa/.titanium/modules/commonjs/ti.cloud/2.2.0
       [DEBUG] Detected module: ti.cloudpush 2.0.1 @ /home/qa/.titanium/modules/android/ti.cloudpush/2.0.1
       [DEBUG] Detected module: ti.cloudpush 2.0.7 @ /home/qa/.titanium/modules/android/ti.cloudpush/2.0.7
       [DEBUG] Detected module: ti.cloudpush 2.0.5 @ /home/qa/.titanium/modules/android/ti.cloudpush/2.0.5
       [DEBUG] Looking for Titanium module id: ti.cloud version: latest platform: undefined
       [INFO] Bundling Titanium Mobile Module ti.cloud
       [INFO] Finding all distinct cached modules
       [INFO] Found 113 dependencies, 2 packages, 115 modules
       [INFO] Assembling titanium.js
       [INFO] Processing splash screen
       [INFO] Assembling titanium.css
       [INFO] Minifying JavaScript
       [DEBUG] Minifying include /home/qa/runtime-titanium.product/testAlloyPackaging/build/mobileweb/alloy/CFG.js
       
       /usr/lib/node_modules/titanium/node_modules/longjohn/index.js:111
             throw e;
                   ^
       TypeError: Cannot call method 'parse' of undefined
           at build.minifyJavaScript (/home/qa/.titanium/mobilesdk/linux/3.0.0.v20121121161553/mobileweb/cli/commands/_build.js:592:88)
           at Array.forEach (native)
           at walk (/home/qa/.titanium/mobilesdk/linux/3.0.0.v20121121161553/mobileweb/cli/commands/_build.js:583:32)
           at build.minifyJavaScript (/home/qa/.titanium/mobilesdk/linux/3.0.0.v20121121161553/mobileweb/cli/commands/_build.js:586:7)
           at Array.forEach (native)
           at walk (/home/qa/.titanium/mobilesdk/linux/3.0.0.v20121121161553/mobileweb/cli/commands/_build.js:583:32)
           at Object.build.minifyJavaScript [as minifyJavaScript] (/home/qa/.titanium/mobilesdk/linux/3.0.0.v20121121161553/mobileweb/cli/commands/_build.js:595:5)
           at Object.<anonymous> (/home/qa/.titanium/mobilesdk/linux/3.0.0.v20121121161553/mobileweb/cli/commands/_build.js:206:10)
           at exports.parallel (/home/qa/.titanium/mobilesdk/linux/3.0.0.v20121121161553/node_modules/node-appc/lib/async.js:14:6)
           at _asyncMap (/home/qa/.titanium/mobilesdk/linux/3.0.0.v20121121161553/node_modules/async/lib/async.js:190:13)
       ---------------------------------------------
           at Object.exports.execFile [as execFile] (child_process.js:594:9)
           at Object.exports.exec [as exec] (child_process.js:481:18)
           at Object.exports.resize [as resize] (/home/qa/.titanium/mobilesdk/linux/3.0.0.v20121121161553/node_modules/node-appc/lib/image.js:42:28)
           at Object.build.createIcons [as createIcons] (/home/qa/.titanium/mobilesdk/linux/3.0.0.v20121121161553/mobileweb/cli/commands/_build.js:690:15)
           at exports.hitch (/home/qa/.titanium/mobilesdk/linux/3.0.0.v20121121161553/node_modules/node-appc/lib/util.js:55:25)
           at async.parallel.results (/home/qa/.titanium/mobilesdk/linux/3.0.0.v20121121161553/node_modules/async/lib/async.js:454:21)
           at _asyncMap (/home/qa/.titanium/mobilesdk/linux/3.0.0.v20121121161553/node_modules/async/lib/async.js:185:13)
           at async.forEach (/home/qa/.titanium/mobilesdk/linux/3.0.0.v20121121161553/node_modules/async/lib/async.js:86:13)
       ---------------------------------------------
           at exports.init (/home/qa/runtime-titanium.product/testAlloyPackaging/plugins/ti.alloy/hooks/alloy.js:124:11)
           at exports.parallel (/usr/lib/node_modules/titanium/node_modules/node-appc/lib/async.js:14:6)
           at _asyncMap (/usr/lib/node_modules/titanium/node_modules/async/lib/async.js:190:13)
           at async.forEach (/usr/lib/node_modules/titanium/node_modules/async/lib/async.js:94:25)
           at _asyncMap (/usr/lib/node_modules/titanium/node_modules/async/lib/async.js:187:17)
           at async.parallel.results (/usr/lib/node_modules/titanium/node_modules/async/lib/async.js:459:34)
           at exports.init.cli.addHook.cmd (/home/qa/runtime-titanium.product/testAlloyPackaging/plugins/ti.alloy/hooks/alloy.js:79:9)
           at ChildProcess.exithandler (child_process.js:538:7)
       ---------------------------------------------
           at Object.exports.execFile [as execFile] (child_process.js:594:9)
           at exports.exec (child_process.js:481:18)
           at exports.init.cli.addHook.cmd (/home/qa/runtime-titanium.product/testAlloyPackaging/plugins/ti.alloy/hooks/alloy.js:76:7)
           at exports.hitch (/usr/lib/node_modules/titanium/node_modules/node-appc/lib/util.js:59:17)
           at async.parallel.results (/usr/lib/node_modules/titanium/node_modules/async/lib/async.js:454:21)
           at _asyncMap (/usr/lib/node_modules/titanium/node_modules/async/lib/async.js:185:13)
           at async.forEach (/usr/lib/node_modules/titanium/node_modules/async/lib/async.js:86:13)
           at Array.forEach (native)
       
    This only happens on Linux.
  3. Chris Barber 2012-11-28

    Master pull request: https://github.com/appcelerator/titanium_mobile/pull/3483 3.0.x pull request: https://github.com/appcelerator/titanium_mobile/pull/3484
  4. Olga Romero 2013-02-28

    Verified fix with: Titanium Studio, build: 3.0.2.201302191606 Titanium SDK, build: 3.0.2.GA Titanium SDK, build: 3.1.0.v20130227145654 CLI 3.0.24

JSON Source