Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-25906

iOS: Native exceptions not thrown when using run-on-main-thread

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Release 7.3.0
    • Component/s: iOS
    • Environment:

      SDK 7.1.0.GA
      Mac OS High Sierra, 64bit
      Node 8.9.1
      iOS

      Description

      According to the documentation I should get an exception when I try to parse invalid XML with Ti.XML.parseString, but instead the "catch" handler is not called. So either this is a bug or the docs are wrong.

      try {
          var doc = Ti.XML.parseString("some invalid XML");
      } catch (ex) {
          // On iOS we never get here
          console.log("Exception");
      }
      

      EDIT by Hans Knöchel: Updating ticket to focus on exceptions on the main thread. The underlaying issue is that we currently do not throw native exceptions (using @throw) when running on main-thread. While this does not crash the app, it still limits the functionality of developers, so it should be fixed.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vijaysingh Vijay Singh
                Reporter:
                michielve Michiel van Eerd
                Reviewer:
                Hans Knöchel
                Tester:
                Samir Mohammed
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-6264
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Source Code