Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-12104] Android: view with borderRadius inside a ScrollableView crashes the App

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-02-27T22:57:42.000+0000
Affected Version/sRelease 2.1.4, Release 3.0.0, Release 3.1.0
Fix Version/sRelease 3.1.0, 2013 Sprint 05 API, 2013 Sprint 05
ComponentsAndroid
Labelscommunity, exalture, qe-testadded
ReporterFederico Casali
AssigneeSunila
Created2012-12-14T11:48:45.000+0000
Updated2014-06-19T12:42:40.000+0000

Description

Problem description

When including a view that contains the property "borderRadius" in a ScrollableView, the app crashes.

Steps to reproduce

Create a scrollableView with a view containing the borderRadius property. App crashes when opening and scrolling through views.
var win = Titanium.UI.createWindow();
	win.backgroundColor = '#ccc';
	
	
	var view1 = Ti.UI.createView({
		backgroundColor:'red'
	});
	var l1 = Ti.UI.createLabel({
		text:'View 1',
		color:'#fff',
		width:'auto',
		height:'auto'
	});
	view1.add(l1);
	
	var view2 = Ti.UI.createView({
		backgroundColor:'blue'
	});
	var l2 = Ti.UI.createLabel({
		text:'Click Me (View 2 - see log)',
		color:'#fff',
		width:'auto',
		height:'auto'
	});
	view2.add(l2);
	
	var view3 = Ti.UI.createView({
		backgroundColor:'green',
		borderRadius:00
	});
	var l3 = Ti.UI.createLabel({
		text:'View 3',
		color:'#fff',
		width:'auto',
		height:'auto'
	});
	view3.add(l3);
	
	var view4 = Ti.UI.createView({
		backgroundColor:'black'
	});
	var l4 = Ti.UI.createLabel({
		text:'View 4',
		color:'#fff',
		width:'auto',
		height:'auto'
	});
	view4.add(l4);
	
	
	var scrollView = Titanium.UI.createScrollableView({
		views:[view1,view2,view3,view4],
		showPagingControl:true,
		pagingControlHeight:30,
		maxZoomScale:2.0,
		currentPage:1
	});
	
	win.add(scrollView);

win.open();
Using TiSDK 2.1.4 GA the crash is immediate when launching the app. Using TiSDK latest 3.1 CI, the app starts but it crashes with the same exception message after scrolling through views a few times.

Attachments

FileDateSize
app.js2012-12-14T11:48:45.000+0000563
crashLog_scrollableview_Android.txt2012-12-15T00:11:53.000+00005940

Comments

  1. Sunila 2013-02-24

    pull request https://github.com/appcelerator/titanium_mobile/pull/3902
  2. Paras Mishra 2013-03-12

    App remains stable and doesn't crash while scrolling. Verified on: Device : Google Nexus, Android Version: 4.1 SDK version: 3.1.0.v20130311192922 CLI version : 3.0.24 OS : MAC OSX 10.7.5 XCode : 4.5.1

JSON Source