[TIMOB-25747] iOS: Modal error dialog not shown when using main-thread
| GitHub Issue | n/a | 
|---|---|
| Type | Bug | 
| Priority | High | 
| Status | Closed | 
| Resolution | Duplicate | 
| Resolution Date | 2018-05-16T21:33:02.000+0000 | 
| Affected Version/s | Release 7.0.1 | 
| Fix Version/s | Release 7.3.0 | 
| Components | iOS | 
| Labels | n/a | 
| Reporter | Hans Knöchel | 
| Assignee | Hans Knöchel | 
| Created | 2018-02-03T22:34:36.000+0000 | 
| Updated | 2018-05-19T14:40:16.000+0000 | 
Description
	When running on main-thread (new default since 7.0.0), the "red screen of death" is not shown. This is due to [this commit](https://github.com/appcelerator/titanium_mobile/commit/32dd2c512b18e7cfa6655fb4b57987f45613249a) from the good old 1.x SDK days where we didn't have the ability to run UI on the main-thread.
This ticket should also be used to refactor the error dialog a bit - to include the error reason and make a bit less ugly.
PR (master): https://github.com/appcelerator/titanium_mobile/pull/9797 PR (7_1_X): https://github.com/appcelerator/titanium_mobile/pull/9846 Test-Case:
var win = Ti.UI.createWindow(); var picker = Titanium.UI.createPicker(); var rows = [ Titanium.UI.createPickerRow({ title: 'Bananas' }), Titanium.UI.createPickerRow({ title: 'Strawberries' }), Titanium.UI.createPickerRow({ title: 'Mangos' }), Titanium.UI.createPickerRow({ title: 'Grapes' }) ]; picker.add(rows); picker.addEventListener('change', function(evt) { var column = picker.getColumns()[0]; column.removeRow(column.rowAt(0)); }); win.add(picker); win.open();Resolving as duplicate of: https://github.com/appcelerator/titanium_mobile/pull/9966 https://github.com/appcelerator/titanium_mobile/pull/10022