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

Android: Animation: App freezes when continously clicked on view while animation

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: Release 3.3.0
    • Fix Version/s: Release 3.3.0, Release 3.4.0
    • Component/s: Android
    • Environment:

      OSX: 10.9.3
      Xcode: 5.1.1
      Appcelerator Studio: 3.3.0.201405271647
      SDK -3.3.0.v20140605150555
      acs-1.0.14
      alloy-1.4.0-beta
      npm-1.3.2
      titanium-3.3.0-beta2
      titanium-code-processor-1.1.1
      Device: Nexus 7 (4.3)

    • Sprint:
      2014 Sprint 12 SDK

      Description

      Clicking on view continuously while animation, freezes the app. This is not regression as it occurred in SDK: 3.2.3.GA

      Steps To Replicate
      1. Launch app using below code in app.js
      2. Click on Red view to start animation
      3. When Red view size increases during animation, click n number of times. Observe app freezes and Red view size remains larger and does not decrease on further click.
      4. Now click blue view to generate animation and click n times when the view is rotated to a degree

      Actual: Observe the view freezes in that particular state only. Size does not decrease for red view and blue does not comes at its original position.[Screenshot attached]
      Expected: Animation should complete while clicking and app should not freeze.

      var win = Ti.UI.createWindow({
          backgroundColor:'green'
      });
        
      var box = Ti.UI.createView({
                      backgroundColor : 'red',
                      height : '150dp',
                      width : '100dp',
                      top: '50dp'
                  });
                    
                  box.addEventListener('click', function() {
                      var matrix = Ti.UI.create2DMatrix().scale(1.5, 1.5);
                      var a = Ti.UI.createAnimation({
                          transform : matrix,
                          duration : 500,
                          autoreverse : true,
                          repeat : 2
                      });
                      box.animate(a);
                  });
                  win.add(box);
                    
                  var box2 = Ti.UI.createView({
                      backgroundColor: "blue",
                      top: "285dp",
                      height: "100dp",
                      width: "100dp"
                  });
                    
                  box2.addEventListener("click", function() {
                      var matrix = Ti.UI.create2DMatrix().rotate(97);
                      box2.animate({transform: matrix, duration: 500, autoreverse: true, repeat: 2});
                  });
              win.add(box2);
      win.open();
      

      Note: Works fine on iOS. Verified using iPod touch2 (v7.1)

        Attachments

          Activity

            People

            • Assignee:
              hpham Hieu Pham
              Reporter:
              prastogi Pragya Rastogi
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Integration