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

Android: The number of log messages from closing a window increases every time a window is closed

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 3.5.0, Release 3.5.1, Release 4.0.0
    • Fix Version/s: Release 4.0.0
    • Component/s: Android
    • Labels:
    • Environment:

      Mac OSX 10.10.2
      Appcelerator Studio, build: 3.4.2.201502181619
      Titanium SDK build: 3.5.0.GA, 3.5.1.v20150223154830
      Titanium CLI, build: 3.4.2-alpha
      Alloy: 1.5.1
      Android build tools 21.1.2
      Nexus 6 (5.0.1)

    • Story Points:
      8
    • Sprint:
      2015 Sprint 04 SDK

      Description

      Description

      When building an application to device and then opening and closing a window the message 'Window: Window is closed normally'. If the window is opened and closed multiple times then the messaged is printed out equal to the number of times it has been opened and closed.

      This is not a regression as it occurs in 3.5.0.GA SDK

      The logging appears to be coming from line 72 in android/modules/ui/src/js/window.js

      If the app is packaged and installed onto device then the code at that line is not executed as the if statement does not trigger

      For example, see the below log output where I have opened and closed the window 3 times

      [DEBUG] :  Window: Checkpoint: postWindowCreated()
      [DEBUG] :  Window: Window is closed normally.
      [DEBUG] :  Window: Checkpoint: postWindowCreated()
      [DEBUG] :  Window: Window is closed normally.
      [DEBUG] :  Window: Window is closed normally.
      [DEBUG] :  Window: Checkpoint: postWindowCreated()
      [DEBUG] :  Window: Window is closed normally.
      [DEBUG] :  Window: Window is closed normally.
      [DEBUG] :  Window: Window is closed normally.
      

      Steps To Reproduce

      1. Add the attached app.js to an existing project
      2. Build the app to an Android device
      3. Tap the button to open a window
      4. Use the Android back button or the 'Close window button' on screen
      5. Repeat steps 3 and 4

      Actual Result

      4. The window will close '[DEBUG] : Window: Window is closed normally.' will be printed in the console. As expected
      5. For each time you repeat the above steps the number of log message will increase

      Expected Result

      5. There should only be one of the above log messages shown when a window is closed

        Attachments

          Activity

            People

            • Assignee:
              hpham Hieu Pham
              Reporter:
              eharris Ewan Harris
              Reviewer:
              Pedro Enrique (Inactive)
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code