[TIMOB-11314] CLI: "ValueError: year is out of range" on Alloy for android build
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-10-14T20:41:46.000+0000 |
Affected Version/s | Release 3.0.0 |
Fix Version/s | Release 3.0.0, Release 3.1.0, 2012 Sprint 21 JS, 2012 Sprint 21 |
Components | Core |
Labels | cli, core, qe-port, triage |
Reporter | Tony Lukasavage |
Assignee | Chris Barber |
Created | 2012-10-09T15:49:55.000+0000 |
Updated | 2012-11-12T19:09:42.000+0000 |
Description
I am attempting to build a project for android with alloy. The alloy compile finishes, so I don't think the problem is there, but here is the relevant output
[INFO] Parsing AST for "alloy/string.js"...
[INFO] - Processing "builtins" module...
[INFO] - Processing "mangle" module...
[INFO] - Processing "squeeze" module...
[INFO] compile:trigger-> post:compile
[INFO] Titanium SDK version: 3.0.0 (10/09/12 08:57 33c586f)
[WARN] Fastdev enabled, but server isn't running, deploying normally
[INFO] Copying CommonJS modules...
[INFO] Copying project resources..
[ERROR] Application Installer abnormal process termination. Process exit value was 1
[ERROR] Exception occured while building Android project:
[ERROR] Traceback (most recent call last):
[ERROR] File "/Users/tlukasavage/Library/Application Support/Titanium/mobilesdk/osx/3.0.0/android/builder.py", line 2367, in <module>
[ERROR] builder.build_and_run(False, avd_id, debugger_host=debugger_host)
[ERROR] File "/Users/tlukasavage/Library/Application Support/Titanium/mobilesdk/osx/3.0.0/android/builder.py", line 2049, in build_and_run
[ERROR] self.copy_project_resources()
[ERROR] File "/Users/tlukasavage/Library/Application Support/Titanium/mobilesdk/osx/3.0.0/android/builder.py", line 791, in copy_project_resources
[ERROR] tiapp_delta = self.project_deltafy.scan_single_file(self.project_tiappxml)
[ERROR] File "/Users/tlukasavage/Library/Application Support/Titanium/mobilesdk/osx/3.0.0/android/deltafy.py", line 181, in scan_single_file
[ERROR] return self.check_delta(file, os.stat(file))
[ERROR] File "/Users/tlukasavage/Library/Application Support/Titanium/mobilesdk/osx/3.0.0/android/deltafy.py", line 148, in check_delta
[ERROR] modified_time = datetime.fromtimestamp(path_stat.st_mtime)
[ERROR] ValueError: year is out of range
Not exactly sure what is going on here, it appears to be choking on resolving file timestamps or something.
Things I've tried:
* clean
* restart tistudio
* adb kill-server && adb start-server
No luck.
Attachments
File | Date | Size |
---|---|---|
logForStudio.txt | 2012-10-13T00:20:46.000+0000 | 1337 |
I'm getting this on a fairly regular basis now running android apps through the new CLI. It's becoming a pretty big problem because I know of no workaround for this error.
Unable to install an app with ti.cloud on to an android device using studio. Please check the attached log, logForStudio.txt Environment: SDK: 3.0.0.v20121012131612, Titanium Studio(RC): 3.0.0.201210101947, ti.cloud: 2.3.0, ti.cloudpush: 2.0.7, Device: Xoom(4.0.3) Mac OS X: 10.8 Node.js: v0.8.8
Changing severity to blocker. Seeing a similar issue when using ti.cloud sample app with titanium app. See Smitha's comment.
The cause of the error is the year of the date modified of the tiapp.xml is set WAY into the future by several thousands of years. The exact cause of the date being set that far future is yet to be determined.
Master pull request: https://github.com/appcelerator/titanium_mobile/pull/3217 3.0.x pull request: https://github.com/appcelerator/titanium_mobile/pull/3218
Verified the fix and I am able to install the titanium cloud sample app on to android device. Verified in: SDK: 3.0.0.v20121016183111, Titanium Studio: 3.0.0.201210101947, ti.cloud: 2.3.0, ti.cloudpush: 2.0.7, Mac OS X: 10.8.2, Device: Droid 3(2.3.4)