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

iOS 12: App crashes in certain Ti.Database / Promises operations

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: High
    • Resolution: Not Our Bug
    • Affects Version/s: Release 7.4.0, Release 7.5.0
    • Fix Version/s: None
    • Component/s: iOS
    • Environment:

      iOS 12
      SDK 7.4.0 / 7.5.0

    • Story Points:
      0
    • Sprint:
      2018 Sprint 19 SDK

      Description

      (Via Slack community)

      The developer is trying to run app on iOS 12.0 Beta and it crashes with the following error logs:

      App_Test 0x00000001007c5468 -[KrollEval jsInvokeInContext:exception:] (KrollContext.m:643)
      App_Test 0x00000001007c23fc -[KrollBridge loadCommonJSModule:withSourceURL:] (KrollBridge.m:734)
      App_Test 0x00000001007c2ec4 -[KrollBridge loadJavascriptText:fromFile:withContext:] (KrollBridge.m:922)
      App_Test 0x00000001007c3124 -[KrollBridge loadAsFile:withContext:] (KrollBridge.m:986)
      App_Test 0x00000001007c3338 -[KrollBridge loadAsFileOrDirectory:withContext:] (KrollBridge.m:1055)
      App_Test 0x00000001007c38d4 -[KrollBridge require:path:] (KrollBridge.m:1167)
      App_Test 0x00000001007c68b4 CommonJSRequireCallback (KrollContext.m:249)
      App_Test 0x00000001e6e3a1d8 0x00000001e6daf000 + 569816
      

      • A reproducible test-app can be found here
      • The full discussion can be found here

      Looking at the provided error log, it seems like evaluating a javascript-file fails in loadCommonJSModule after requiring a common-js file. I am not sure so far if this happens with Alloy (and the model-binding with Backbone) only or classic Titanium apps as well. The app works fine on iOS < 12, e.g. iOS 11.4.1

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              hknoechel Hans Knöchel
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Integration