Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25747] iOS: Modal error dialog not shown when using main-thread

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionDuplicate
Resolution Date2018-05-16T21:33:02.000+0000
Affected Version/sRelease 7.0.1
Fix Version/sRelease 7.3.0
ComponentsiOS
Labelsn/a
ReporterHans Knöchel
AssigneeHans Knöchel
Created2018-02-03T22:34:36.000+0000
Updated2018-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.

Comments

  1. Hans Knöchel 2018-02-03

    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();
       
    Expected behavior: The "red screen of death" should appear!
  2. Gary Mathews 2018-05-16

    Resolving as duplicate of: https://github.com/appcelerator/titanium_mobile/pull/9966 https://github.com/appcelerator/titanium_mobile/pull/10022

JSON Source