Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-12280] Log messages lost when logging commands are placed in a loop

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-01-28T12:24:37.000+0000
Affected Version/sRelease 3.0.0
Fix Version/sRelease 3.0.2, Release 3.1.0, 2013 Sprint 02 JS, 2013 Sprint 02
ComponentsCLI
Labelsmodule_titanium, qe-3.0.2, qe-review, qe-testadded, regression
ReporterClayton Headley
AssigneeChris Barber
Created2013-01-14T17:28:13.000+0000
Updated2014-04-10T00:00:15.000+0000

Description

While testing TISTUD-3120 I ran into the issue where log output in a for loop did not appear (see screenshot). I can only reproduce this issue in 3.0.2 not 3.1.0 or 3.0.1 using the attached app.js file in a standard titanium project. This is a regression. Steps to reproduce: 1. Open the Titanium project. 2. Run in Simulator. Expected results: All console output should be shown filtered based on settings. Actual results: Console output missing lines from the looped log calls.

Attachments

FileDateSize
app.js2013-01-16T01:47:16.000+0000450
app.js2013-01-14T17:28:14.000+00002497
Screen Shot 2013-01-08 at 8.15.46 AM.png2013-01-14T17:28:14.000+000049050

Comments

  1. Chris Barber 2013-01-16

    Master pull request: https://github.com/appcelerator/titanium_mobile/pull/3715 3.0.x pull request: https://github.com/appcelerator/titanium_mobile/pull/3716
  2. Federico Casali 2013-01-22

    TiSDK 3.0.2.v20130121114704 Building for iOS Console output: [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 47s 238ms [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)
  3. Chris Barber 2013-01-22

    The related bug will be fixed in TIMOB-12364.
  4. Olga Romero 2013-01-22

    Closing as fixed. There is no more lost log messages. Tested and verified with: Mac OSX 10.8.2 Mountain Lion Titanium Studio, build: 3.0.1.201212181159 Titanium SDK, build: 3.1.0.v20130114171802 Titanium SDK, build: 3.0.2.v20130121140213 CLI version: 3.0.23 iPhone Simulator 6.0
  5. Shyam Bhadauria 2013-01-28

    Re-opening to edit label

JSON Source