Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-23711

iOS: Incrementing instances of "Window is not open Ignoring this close call" on win.close()

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Invalid
    • Affects Version/s: Release 5.4.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Environment:

      iPhone 6S (9.3.3) Device
      Mac OSX El Capitan 10.11.5
      Ti SDK: 5.4.0.v20160801022303
      Appc Studio: 4.7.0.201607111053
      Appc NPM: 4.2.7
      App CLI: 5.4.0-37
      Xcode 7.3
      Node v4.4.7

      Description

      This does not occur with 5.3.1.GA

      when opening and closing the window a couple of times, I receive the following DEBUG log:

      [DEBUG] :  Window is not open. Ignoring this close call
      

      The log count is incremented every time I cycle through Open / Close. For example after 5 cycles I receive the following:

      [DEBUG] :  Window is not open. Ignoring this close call
      [DEBUG] :  Window is not open. Ignoring this close call
      [DEBUG] :  Window is not open. Ignoring this close call
      [DEBUG] :  Window is not open. Ignoring this close call
      [DEBUG] :  Window is not open. Ignoring this close call
      [DEBUG] :  Window is not open. Ignoring this close call
      [DEBUG] :  Window is not open. Ignoring this close call
      [DEBUG] :  Window is not open. Ignoring this close call
      [DEBUG] :  Window is not open. Ignoring this close call
      [DEBUG] :  Window is not open. Ignoring this close call
      [DEBUG] :  Window is not open. Ignoring this close call
      [DEBUG] :  Window is not open. Ignoring this close call
      [DEBUG] :  Window is not open. Ignoring this close call
      [DEBUG] :  Window is not open. Ignoring this close call
      [DEBUG] :  Window is not open. Ignoring this close call
      

      ( 1 + 2 + 3 + 4 + 5 )

      TEST CODE

      Ti.UI.backgroundColor = "Black";
       
      var win = Ti.UI.createWindow({backgroundColor:'blue'});
       
      var open = Ti.UI.createButton({
      	title: 'Open Window'	
      });
       
      var close = Ti.UI.createButton({
      	title: 'Close Window'
      });
       
      open.addEventListener('click', function(){
      	var win2 = Ti.UI.createWindow({backgroundColor:'green'});
      	win2.add(close);
      	close.addEventListener('click', function(){
      		win2.close();
      	});
      	win2.open();
      });
       
      win.add(open);
      win.open();
      

      Steps to Reproduce

      1. Create a new Classic Mobile Project.
      2. Copy above test code into app.js file.
      4. Run App to device / sim.
      5. Click on "Open Window" button.
      6. Click on "Close Window" button.
      7. Repeat Steps 5-6 to receive the log message

      Actual Result

      Incrementing count of [DEBUG] : Window is not open. Ignoring this close call

      Expected Result

      [DEBUG] : Window is not open. Ignoring this close call only when relevant, and should not increment every cycle.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                hknoechel Hans Knöchel
                Reporter:
                htbryant Harry Bryant
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-9968
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Integration