Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13508] CLI: Clean android builds sometimes report error but continue to device or emulator without issue

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-04-13T02:12:39.000+0000
Affected Version/sRelease 3.1.0
Fix Version/s2013 Sprint 08 Core, 2013 Sprint 08, Release 3.2.0
ComponentsCLI
Labelsqe-3.1.0, qe-closed-3.2.0
ReporterEric Merriman
AssigneeChris Barber
Created2013-04-09T22:58:17.000+0000
Updated2013-12-03T20:58:06.000+0000

Description

Description:

While testing the RC candidate, we noticed on linux that we got an error simular to the following. A look on Mac showed the same. It seems to only affect clean projects. May be a regression, I could not reproduce with CLI 3.1.0-beta. Will continue to investigate.
[DEBUG] No project level plugins to load
[DEBUG] Loaded plugin hooks:
[DEBUG] /Applications/Appcelerator_Studio/plugins/com.appcelerator.titanium.liveview.core_1.0.0.1364875694/node_modules/liveview/hook/lvhook.js
[DEBUG] /Users/emerriman/Library/Application Support/Titanium/mobilesdk/osx/3.1.0.v20130405170202/cli/hooks/plugins.js
[DEBUG] /Users/emerriman/Library/Application Support/Titanium/mobilesdk/osx/3.1.0.v20130405170202/android/cli/hooks/install.js
[DEBUG] /Users/emerriman/Library/Application Support/Titanium/mobilesdk/osx/3.1.0.v20130405170202/android/cli/hooks/run.js
[INFO] logfile = /Users/emerriman/Documents/workspace/ericRules/build.log
[DEBUG] /Users/emerriman/Library/Application Support/Titanium/mobilesdk/osx/3.1.0.v20130405170202/android/builder.py simulator ericRules /Users/emerriman/Android_SDK /Users/emerriman/Documents/workspace/ericRules com.eric.rules 7 HVGA
[ERROR] Project failed to build after 1s 712ms

[DEBUG] detected module analytics, path = /Users/emerriman/Library/Application Support/Titanium/mobilesdk/osx/3.1.0.v20130405170202/android/modules/titanium-analytics.jar
[DEBUG] detected module android, path = /Users/emerriman/Library/Application Support/Titanium/mobilesdk/osx/3.1.0.v20130405170202/android/modules/titanium-android.jar
[DEBUG] adding required library: jaxen-1.1.1.jar
[DEBUG] adding required library: ti-commons-codec-1.3.jar
[DEBUG] adding required library: kroll-common.jar
[DEBUG] adding required library: titanium.jar
[DEBUG] detected module app, path = /Users/emerriman/Library/Application Support/Titanium/mobilesdk/osx/3.1.0.v20130405170202/android/modules/titanium-app.jar
[DEBUG] detected module ui, path = /Users/emerriman/Library/Application Support/Titanium/mobilesdk/osx/3.1.0.v20130405170202/android/modules/titanium-ui.jar
[DEBUG] adding required library: android-support-v4.jar
[DEBUG] detected module filesystem, path = /Users/emerriman/Library/Application Support/Titanium/mobilesdk/osx/3.1.0.v20130405170202/android/modules/titanium-filesystem.jar
[DEBUG] detected module media, path = /Users/emerriman/Library/Application Support/Titanium/mobilesdk/osx/3.1.0.v20130405170202/android/modules/titanium-media.jar
[DEBUG] detected module locale, path = /Users/emerriman/Library/Application Support/Titanium/mobilesdk/osx/3.1.0.v20130405170202/android/modules/titanium-locale.jar
[DEBUG] Detecting modules in /Users/emerriman/Documents/workspace/ericRules/modules
[DEBUG] Detecting modules in /Users/emerriman/Library/Application Support/Titanium/modules
[DEBUG] Detected module for android: ti.map 2.0.0 @ /Users/emerriman/Library/Application Support/Titanium/modules/android/ti.map/2.0.0
[DEBUG] Detected module for android: ti.doubleclick 3.0.0 @ /Users/emerriman/Library/Application Support/Titanium/modules/android/ti.doubleclick/3.0.0
[DEBUG] Detected module for android: ti.cloudpush 2.1.0 @ /Users/emerriman/Library/Application Support/Titanium/modules/android/ti.cloudpush/2.1.0
[DEBUG] Detected module for android: ti.cloudpush 2.0.7 @ /Users/emerriman/Library/Application Support/Titanium/modules/android/ti.cloudpush/2.0.7
[DEBUG] Detected module for android: ti.bump 2.0.1 @ /Users/emerriman/Library/Application Support/Titanium/modules/android/ti.bump/2.0.1
[DEBUG] Detected module for android: ti.bump 1.0 @ /Users/emerriman/Library/Application Support/Titanium/modules/android/ti.bump/1.0
[DEBUG] Detected module for android: facebook 3.0.0 @ /Users/emerriman/Library/Application Support/Titanium/modules/android/facebook/3.0.0
[DEBUG] Detected module for android: com.zooz.ti 1.3.8 @ /Users/emerriman/Library/Application Support/Titanium/modules/android/com.zooz.ti/1.3.8
[DEBUG] Detected module for android: com.thinkorange.google.analytics 2.0 @ /Users/emerriman/Library/Application Support/Titanium/modules/android/com.thinkorange.google.analytics/2.0
[DEBUG] Detected module for android: com.foo.bar 1.0 @ /Users/emerriman/Library/Application Support/Titanium/modules/android/com.foo.bar/1.0
[DEBUG] Detected module for android: com.dustintest2 0.1 @ /Users/emerriman/Library/Application Support/Titanium/modules/android/com.dustintest2/0.1
[DEBUG] Detected module for android: com.crittermodule 0.1 @ /Users/emerriman/Library/Application Support/Titanium/modules/android/com.crittermodule/0.1
[DEBUG] Detected module for android: com.crittercism.ti 1.0.1 @ /Users/emerriman/Library/Application Support/Titanium/modules/android/com.crittercism.ti/1.0.1
[DEBUG] Detected module for android: com.appcel.blain 1.0 @ /Users/emerriman/Library/Application Support/Titanium/modules/android/com.appcel.blain/1.0
[DEBUG] Detected module for commonjs: ti.cloud 2.3.2 @ /Users/emerriman/Library/Application Support/Titanium/modules/commonjs/ti.cloud/2.3.2
[DEBUG] Detected module for commonjs: ti.cloud 2.3.1 @ /Users/emerriman/Library/Application Support/Titanium/modules/commonjs/ti.cloud/2.3.1
[DEBUG] Detected module for commonjs: ti.cloud 2.3.0 @ /Users/emerriman/Library/Application Support/Titanium/modules/commonjs/ti.cloud/2.3.0
[DEBUG] Detected module for iphone: ti.tvout 1.1 @ /Users/emerriman/Library/Application Support/Titanium/modules/iphone/ti.tvout/1.1
[DEBUG] Detected module for iphone: ti.jira 1.2.1 @ /Users/emerriman/Library/Application Support/Titanium/modules/iphone/ti.jira/1.2.1
[DEBUG] Detected module for iphone: ti.getglue 1.0 @ /Users/emerriman/Library/Application Support/Titanium/modules/iphone/ti.getglue/1.0
[DEBUG] Detected module for iphone: ti.doubleclick 3.0.1 @ /Users/emerriman/Library/Application Support/Titanium/modules/iphone/ti.doubleclick/3.0.1
[DEBUG] Detected module for iphone: ti.bump 1.2.1 @ /Users/emerriman/Library/Application Support/Titanium/modules/iphone/ti.bump/1.2.1
[DEBUG] Detected module for iphone: ti.airprint 1.2 @ /Users/emerriman/Library/Application Support/Titanium/modules/iphone/ti.airprint/1.2
[DEBUG] Detected module for iphone: facebook 3.1.1 @ /Users/emerriman/Library/Application Support/Titanium/modules/iphone/facebook/3.1.1
[DEBUG] Detected module for iphone: facebook 3.1.0 @ /Users/emerriman/Library/Application Support/Titanium/modules/iphone/facebook/3.1.0
[DEBUG] Detected module for iphone: com.zooz.ti 1.3.7 @ /Users/emerriman/Library/Application Support/Titanium/modules/iphone/com.zooz.ti/1.3.7
[DEBUG] Detected module for iphone: com.thinkorange.google.analytics 2.0 @ /Users/emerriman/Library/Application Support/Titanium/modules/iphone/com.thinkorange.google.analytics/2.0
[DEBUG] Detected module for iphone: com.crittercism.ti 1.0.1 @ /Users/emerriman/Library/Application Support/Titanium/modules/iphone/com.crittercism.ti/1.0.1
[DEBUG] Detected module for tizen: tizen 3.0.0 @ /Users/emerriman/Library/Application Support/Titanium/modules/tizen/tizen/3.0.0
[TRACE] Generating /Users/emerriman/Documents/workspace/ericRules/build/android/gen/com/eric/rules/EricrulesAppInfo.java
[TRACE] Generating /Users/emerriman/Documents/workspace/ericRules/build/android/AndroidManifest.xml
[TRACE] Generating /Users/emerriman/Documents/workspace/ericRules/build/android/gen/com/eric/rules/EricrulesApplication.java
[TRACE] Generating /Users/emerriman/Documents/workspace/ericRules/build/android/gen/com/eric/rules/EricrulesActivity.java
[TRACE] Generating /Users/emerriman/Documents/workspace/ericRules/build/android/.classpath
[TRACE] Generating /Users/emerriman/Documents/workspace/ericRules/build/android/.project
[TRACE] Generating /Users/emerriman/Documents/workspace/ericRules/build/android/default.properties
[TRACE] Generating app.json
[TRACE] Generating /Users/emerriman/Documents/workspace/ericRules/build/android/.gitignore
[INFO] Building ericRules for Android ... one moment
[INFO] Titanium SDK version: 3.1.0 (04/05/13 17:02 93d78f5)

Steps to reproduce:

1) Create a new project for android 2) Build project for emulator

Result:

Sometimes the error is presented, but no effect on the actual build

Expected Result:

No errors presented

Comments

  1. Olga Romero 2013-04-11

    Tested and confirmed issue with: Appcelerator Studio, build: 3.1.0.201304091724 Titanium SDK, build: 3.1.0.v20130410180128 Device: Nexus 7 Android version: 4.2 CLI version 3.1.0-cr CLI version 3.0.24 Building from Studio and the terminal for Emulator: In my case failing ratio was 10/10 An Emulator launches with no app Building for device works fine and launches the project perfectly from the clean state. Try to build app to device again w/o cleaning the project, it will start launching the app, but will freeze on the appcelerator splash screen.
  2. Ingo Muschenetz 2013-04-12

    This one has a lesser priority, so scheduling it for 3.1.1 as appropriate.
  3. Chris Barber 2013-04-12

    Master pull request: https://github.com/appcelerator/titanium_mobile/pull/4156 3.1.x pull request: https://github.com/appcelerator/titanium_mobile/pull/4157
  4. Paras Mishra 2013-04-13

  5. Samuel Dowse 2013-11-22

    Verified fixed on: Mac OSX 10.9 Mavericks Titanium Studio, build: 3.2.0.201311200322 Titanium SDK, build: 3.2.0.v20131121110843 CLI: 3.2.0-alpha Alloy: 1.3.0-alpha Android Simulators: 2.3.3, 4.0.3, 4.4 Android Device: Xperia Arc S (4.0.4), Nexus 4 (4.2) Built the default project to emulator and device a few times each. Each installed successfully. Closing.

JSON Source