Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2261] Android: Animation cause crash whith view with borderRadius

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionNeeds more info
Resolution Date2013-03-06T00:05:44.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsandroid, animation
ReporterWade Zhao
AssigneeMauro Parra-Miranda
Created2012-10-13T07:18:55.000+0000
Updated2016-03-08T07:41:16.000+0000

Description

if a view has borderRadius, then following code has running correctly in SDK 2.1.2 but will cause crash on both emulator and actual device in SDK 2.1.3GA/2.1.4 beta/3.0 beta var view = Ti.UI.createView({ with:100,top:100,left:100,width:100,borderRadius : 10}) var a_temp = Ti.UI.createAnimation({ left:200, duration:300 }); view.animate(a_temp);

Comments

  1. Jamie Buckley 2013-03-06

    Hi Wade, Can you provide some further information on this: Screenshot of the crash Small reproducible test case such as an app.js Thanks for your assistance with this, Jamie
  2. Wade Zhao 2013-03-06

    I don't know how to attache a screenshot file, but the error screen is simple, just a alert window, with message "The Application TEST(process com.test.com) has stopped unexpectedly. Please try again." You can regenerate this problem by following code with V8 or Rhino and 2.1.3/2.1.4/3.0/3.0.2 SDK on Android 2.2/2.3 Emulator and 2.3/4.0.4 real device. On 4.0.4 real device (Galaxy Note in my case), the App will not display a error message, just no respond, and after a while, will show a dialog with message 'TEST has already stopped'. app.js: /--------------------------------------------------/ var win =Ti.UI.createWindow({backgroundColor:'#fff',navBarHidden:true}); var view = Ti.UI.createView({width:100,top:100,left:100,height:100,borderRadius:10,backgroundColor:'blue'}) var button = Ti.UI.createButton({top:220,title:'Test'}); button.addEventListener('click',function(){ var a_temp = Ti.UI.createAnimation({ left:200, duration:300 }); view.animate(a_temp); }) win.add(button);win.add(view); win.open();
  3. Bryant Tyson 2013-10-23

    This isn't resolved. I'm having the same crash issues with the latest build and the latest SDK. As soon as the view with the border radius tries to animate the entire app crashes.
  4. Bryant Tyson 2013-10-23

    Additionally, it doesn't appear to matter which Android SDK version you use. It crashes in all of them.
  5. Mauro Parra-Miranda 2013-11-21

    Tested with 3.1.3, working fine.
  6. Bryant Tyson 2013-12-20

    I'm still crashing in 3.1.3. If I remove the border-radius, border-width, and border-color it works again.
  7. Bryant Tyson 2013-12-20

    SCREENSHOT: http://webtys.com/tmp/Screen_Shot_2013-12-20_at_4.04.16_PM.png

JSON Source