Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24981] Android: .remove() TableView object with ImageViews crashes the app.

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionDuplicate
Resolution Date2017-08-02T13:15:25.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAndroid
Labelsandroid
Reportergrazianogrespan
AssigneeGary Mathews
Created2017-07-18T12:48:24.000+0000
Updated2017-08-02T17:37:43.000+0000

Description

If I try to remove a TableView that has a TableViewRow with an ImageView the app will crash. This bug affects sdk 6.1.1GA, I have tried to run this snippet on 6.0.4GA and it works without errors.
var win = Ti.UI.createWindow();

var tblRow = Ti.UI.createTableViewRow({
	backgroundColor:"green"	,
	height:30
});

var tbl = Ti.UI.createTableView({
	height:100,
	top:10,
	left:10,
	right:10,
	data:[tblRow],
	backgroundColor:"red"
});

var imgView = Ti.UI.createImageView({
	image: "https://www.appcelerator.com/wp-content/themes/appc-rwd/assets/media/images/axway-logo.png",
	width:20,
	height:20
});

var removeButton = Ti.UI.createButton({
	title:"REMOVE TABLE",
	height:50,
	width:150
});

removeButton.addEventListener("click",function(){
	win.remove(tbl);
});

tblRow.add(imgView);
win.add(tbl);
win.add(removeButton);

win.open();

Attachments

FileDateSize
errors.txt2017-07-18T12:34:42.000+00003423

Comments

  1. Gary Mathews 2017-07-20

  2. Gary Mathews 2017-08-02

  3. Lee Morris 2017-08-02

    Closing ticket as duplicate.

JSON Source