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

Android: Endless "Window is closed normally" appear in the logcat.

    Details

      Description

      I just installed and switched my project from using 3.1.1GA to 3.1.2GA. And on Android device it appears everything works fine. However in the logcat window, I can see ENGLESSLY "Window is closed normally".

      I am sure I did not create a dead loop and create>open>close windows at the background.

      So may I ask where could possibility be the reason causing such weird logs?

      Back in the titanium mobile source code, it appear to be from the window file.

      var _open = Window.prototype.open;
      	Window.prototype.open = function(options) {
      		// Retain the window until it has closed.
      		var handle = new PersistentHandle(this);
       
      		var self = this;
      		this.on("close", function(e) {
      			if (e._closeFromActivityForcedToDestroy) {
      				if (kroll.DBG) {
      					kroll.log(TAG, "Window is closed because the activity is forced to destroy by Android OS.");
      				}
      				return;
      			}
       
      			// Dispose the URL context if the window's activity is destroyed.
      			if (self._urlContext) {
      				Script.disposeContext(self._urlContext);
      				self._urlContext = null;
      			}
      			handle.dispose();
       
      			if (kroll.DBG) {
      				kroll.log(TAG, "Window is closed normally.");
      			}
      		});
       
      		_open.call(this, options);
      	}
      

        Attachments

          Activity

            People

            • Assignee:
              pwang Ping Wang
              Reporter:
              pantherqin pantherqin
              Reviewer:
              Hieu Pham
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Integration