[AC-2261] Android: Animation cause crash whith view with borderRadius
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Needs more info |
Resolution Date | 2013-03-06T00:05:44.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | android, animation |
Reporter | Wade Zhao |
Assignee | Mauro Parra-Miranda |
Created | 2012-10-13T07:18:55.000+0000 |
Updated | 2016-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);
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
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();
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.
Additionally, it doesn't appear to matter which Android SDK version you use. It crashes in all of them.
Tested with 3.1.3, working fine.
I'm still crashing in 3.1.3. If I remove the border-radius, border-width, and border-color it works again.
SCREENSHOT: http://webtys.com/tmp/Screen_Shot_2013-12-20_at_4.04.16_PM.png