Problem description
Cannot build/run an app using latest TiSDK 3.0.2.v20130121114704 on iOS simulator
Steps to reproduce and Error Log
Create a new project and build/run on iOS simulator
Result: Simulator crashes
[INFO] : Build type: development
[INFO] : Building for target: simulator
[INFO] : Building using iOS SDK: 6.0
[INFO] : Building for iOS iPhone Simulator: 6.0
[INFO] : Building for device family: iphone
[INFO] : Building for iOS 6.0; using 4.3 as minimum iOS version
[INFO] : Debugging disabled
[INFO] : Cleaning old build directory
[INFO] : No Titanium Modules required, continuing
[INFO] : Performing full rebuild
[INFO] : Copying Xcode iOS files
[INFO] : Creating Xcode project directory: /Users/fcasali/development/Titanium Studio Workspace/FedeSink2/build/iphone/FedeSink2.xcodeproj
[INFO] : Writing Xcode project data file: Titanium.xcodeproj/project.pbxproj
[INFO] : Writing Xcode project configuration: project.xcconfig
[INFO] : Writing Xcode module configuration: module.xcconfig
[INFO] : Creating symlinks for simulator build
[INFO] : Writing properties to ApplicationDefaults.m
[INFO] : No module resources to copy
[INFO] : No CommonJS modules to copy
[INFO] : Finished building the application in 35s 331ms
[INFO] : Running application in iOS Simulator
[INFO] : Launching application in iOS Simulator
[INFO] : iPhone Simulator log:
timers.js:103
if (!process.listeners('uncaughtException').length) throw e;
^
Error: start must be <= end
at new fs.ReadStream (fs.js:1256:13)
at Object.fs.createReadStream [as createReadStream] (fs.js:1215:10)
at pump (/Users/fcasali/Library/Application Support/Titanium/mobilesdk/osx/3.0.2.v20130121114704/iphone/cli/hooks/run.js:149:26)
at Object.findLogFile (/Users/fcasali/Library/Application Support/Titanium/mobilesdk/osx/3.0.2.v20130121114704/iphone/cli/hooks/run.js:188:8)
at Timer.list.ontimeout [as ontimeout] (timers.js:101:19)
---------------------------------------------
at Object.findLogFile (/Users/fcasali/Library/Application Support/Titanium/mobilesdk/osx/3.0.2.v20130121114704/iphone/cli/hooks/run.js:203:21)
at Timer.list.ontimeout [as ontimeout] (timers.js:101:19)
---------------------------------------------
at Object.findLogFile (/Users/fcasali/Library/Application Support/Titanium/mobilesdk/osx/3.0.2.v20130121114704/iphone/cli/hooks/run.js:203:21)
at Timer.list.ontimeout [as ontimeout] (timers.js:101:19)
---------------------------------------------
at Object.findLogFile (/Users/fcasali/Library/Application Support/Titanium/mobilesdk/osx/3.0.2.v20130121114704/iphone/cli/hooks/run.js:203:21)
at Timer.list.ontimeout [as ontimeout] (timers.js:101:19)
---------------------------------------------
at Object.findLogFile (/Users/fcasali/Library/Application Support/Titanium/mobilesdk/osx/3.0.2.v20130121114704/iphone/cli/hooks/run.js:203:21)
at Timer.list.ontimeout [as ontimeout] (timers.js:101:19)
---------------------------------------------
at Object.findLogFile (/Users/fcasali/Library/Application Support/Titanium/mobilesdk/osx/3.0.2.v20130121114704/iphone/cli/hooks/run.js:203:21)
at Timer.list.ontimeout [as ontimeout] (timers.js:101:19)
---------------------------------------------
at Object.findLogFile (/Users/fcasali/Library/Application Support/Titanium/mobilesdk/osx/3.0.2.v20130121114704/iphone/cli/hooks/run.js:203:21)
at Timer.list.ontimeout [as ontimeout] (timers.js:101:19)
---------------------------------------------
at Object.findLogFile (/Users/fcasali/Library/Application Support/Titanium/mobilesdk/osx/3.0.2.v20130121114704/iphone/cli/hooks/run.js:203:21)
at Timer.list.ontimeout [as ontimeout] (timers.js:101:19)
---------------------------------------------
at Object.findLogFile (/Users/fcasali/Library/Application Support/Titanium/mobilesdk/osx/3.0.2.v20130121114704/iphone/cli/hooks/run.js:203:21)
at Timer.list.ontimeout [as ontimeout] (timers.js:101:19)
---------------------------------------------
at Object.findLogFile (/Users/fcasali/Library/Application Support/Titanium/mobilesdk/osx/3.0.2.v20130121114704/iphone/cli/hooks/run.js:203:21)
at Timer.list.ontimeout [as ontimeout] (timers.js:101:19)
---------------------------------------------
at Object.findLogFile (/Users/fcasali/Library/Application Support/Titanium/mobilesdk/osx/3.0.2.v20130121114704/iphone/cli/hooks/run.js:203:21)
at Timer.list.ontimeout [as ontimeout] (timers.js:101:19)
Issue is related to TIMOB-12280
PR: https://github.com/appcelerator/titanium_mobile/pull/3753
This test app can be used to punish logging. Set the size variable to determine how much data is dumped to the console. I've pushed it to 1MB and it still worked fine. The app is structured to output a continually incrementing number to the console. If you paste this data in a text editor with line numbers, they should line up after you remove the extraneous output. If they don't, then that means something was either output twice or missed
3_0_X PR: https://github.com/appcelerator/titanium_mobile/pull/3754
Fix works, verified with TiSDK 3.0.2.v20130122151702 Closing.
Issues still occur, just much more rarely and without crashes
PR: https://github.com/appcelerator/titanium_mobile/pull/3759 3_0_X PR: https://github.com/appcelerator/titanium_mobile/pull/3760
Build successful , app executed on iOS simulator 6 Verified on: SDK version: 3.1.0.v20130111163212,3.0.2.v20130122172624 CLI version : 3.0.23 OS : MAC OSX 10.7.5 XCode : 4.5.1