Uploaded image for project: 'Appcelerator Studio'
  1. Appcelerator Studio
  2. TISTUD-6903

iOS: Console logs are not in an order as we instructed in app.js file for iOS Simulators

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Low
    • Resolution: Done
    • Affects Version/s: Release 3.4.0
    • Fix Version/s: Backlog
    • Component/s: None
    • Environment:
    • Story Points:
      8

      Description

      Console log are not in the same order as the code is in app.js file when app is launched iOS simulators.

      It's a regression since console log are in expected order in titanium 3.3.0 GA release

      Steps to Reproduce

      1. Create a project using following code in app.js file.

      Titanium.UI.setBackgroundColor('#000');
      var win1 = Titanium.UI.createWindow({  
          title:'Tab 1',
          backgroundColor:'#fff'
      });
       
      alert('SESSION ID: ' + Ti.App.sessionId); 
      Ti.API.error('SESSION ID: ' + Ti.App.sessionId);
      Ti.API.error('ERROR => Ti.API.error');
      Ti.API.log('ERROR', 'ERROR => Ti.API.log');
      Ti.API.warn('WARN => Ti.API.warn');
      Ti.API.log('WARN', 'WARN => Ti.API.log');
      Ti.API.info('INFO => Ti.API.info');
      Ti.API.log('INFO', 'INFO => Ti.API.log'); 
      Ti.API.debug('DEBUG => Ti.API.debug');
      Ti.API.log('DEBUG', 'DEBUG => Ti.API.log');
      Ti.API.trace('TRACE => Ti.API.trace'); 
      Ti.API.log('TRACE', 'TRACE => Ti.API.log'); 
      Ti.API.log('FREEFORM', 'FREEFORM => Ti.API.log');
       
      win1.open();
      

      2. Run the project on iOS simulator
      3. Observe the console log.

      Actual Result

      Console Logs are in not in the same order

      [ERROR] :  SESSION ID: AA0178AD-CE15-46BC-8561-F1B76FD7B6E9
      [ERROR] :  ERROR => Ti.API.error
      [WARN] :   WARN => Ti.API.warn
      [ERROR] :  ERROR => Ti.API.log
      [DEBUG] :  DEBUG => Ti.API.debug
      [DEBUG] :  DEBUG => Ti.API.log
      [WARN] :   WARN => Ti.API.log
      [INFO] :   INFO => Ti.API.info
      [INFO] :   INFO => Ti.API.log
      [TRACE] :  TRACE => Ti.API.trace
      [TRACE] :  TRACE => Ti.API.log
      [TRACE] :  [FREEFORM] FREEFORM => Ti.API.log
      

      Expected Result

      Console Log should be in the same order as we write in app.js file

      Note: For Galaxy S5 (4.4.2), Android Emulator (4.3) and iPhone 5S (iOS 8.0 beta5), Console logs are in the same order.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kkolipaka Kondal Kolipaka (Inactive)
                Reporter:
                kvelummaylum Kajenthiran Velummaylum
              • Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: