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

iOS: App crashes when error happens in fetching location

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: Release 8.1.0
    • Fix Version/s: Release 8.3.0
    • Component/s: None
    • Labels:
    • Sprint:
      2019 Sprint 21

      Description

      After upgrading to 8.2.0.GA.

      • App crashes as soon as I switch to Airplane mode
      • App crashes on app launch with same error

      Terminating app due to uncaught exception 'NSInvalidArgumentException'

      I have attached a sample app using geolocation. Code snipped is same as mentioned in documentation.

      This is iOS app. This is always reproducible.
      Xcode - 10.3
      node - v10.16.3

      Same code
      works fine if built with 8.0.1.GA
      Crashes if built with 8.2.0.GA

      Attached-
      1. Screen recording of crash
      2. Sample app project
      3. Sample app ipa

      Crash log:

       
      default	15:18:01.721620 -0500	GeolocationCrash	{"msg":"delivering locations to client's delegate", "self":"0x2824b8680", "delegate":"0x155d072b0"}
      default	15:18:01.797652 -0500	GeolocationCrash	-[GeolocationModule fireEvent:withObject:errorCode:message:]: unrecognized selector sent to instance 0x155d072b0
      default	15:18:01.797787 -0500	GeolocationCrash	[ERROR] Application received error: -[GeolocationModule fireEvent:withObject:errorCode:message:]: unrecognized selector sent to instance 0x155d072b0
          0   CoreFoundation                      0x00000001c2e649a0 8D0042D6-AED4-39A5-9EE6-10D9A4CCD8E3 + 1227168
          1   libobjc.A.dylib                     0x00000001c2b8d0a4 objc_exception_throw + 56
          2   CoreFoundation                      0x00000001c2d6843c 8D0042D6-AED4-39A5-9EE6-10D9A4CCD8E3 + 193596
          3   CoreFoundation                      0x00000001c2e68e08 8D0042D6-AED4-39A5-9EE6-10D9A4CCD8E3 + 1244680
          4   CoreFoundation                      0x00000001c2e6abec _CF_forwarding_prep_0 + 92
          5   GeolocationCrash                    0x0000000104f9888c GeolocationCrash + 346252
          6   CoreLocation                        0x00000001c5f8de0c CLClientStopVehicleHeadingUpdates + 72136
          7   CoreLocation                        0x00000001c5f774a4 CLClientInvalidate + 1400
          8   CoreFoundation                      0x00000001c2de2614 8D0042D6-AED<…>
      default	15:18:01.797995 -0500	GeolocationCrash	*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[GeolocationModule fireEvent:withObject:errorCode:message:]: unrecognized selector sent to instance 0x155d072b0'
      *** First throw call stack:
      (0x1c2e6498c 0x1c2b8d0a4 0x1c2d6843c 0x1c2e68e08 0x1c2e6abec 0x104f9888c 0x1c5f8de0c 0x1c5f774a4 0x1c2de2614 0x1c2de1db4 0x1c2ddd4ec 0x1c2ddc8bc 0x1ccc41328 0x1c6e716d4 0x104f48bd8 0x1c2c67460)
      default	15:18:01.823594 -0500	backboardd	Connection removed: IOHIDEventSystemConnection uuid:FB3D98B9-260A-414D-81A4-762AFAC211FD pid:1891 process:GeolocationCrash type:Passive entitlements:0x0 caller:BackBoardServices: <redacted> + 380 attributes:{
          HighFrequency = 0;
          bundleID = "com.svm.TMXFieldServTest";
          pid = 1891;
      } inactive:0 events:0 mask:0x0
      default	15:18:01.838460 -0500	ReportCrash	cr_update: Parsing corpse data for process GeolocationCrash [pid 1891]
      
      

        Attachments

          Activity

            People

            • Assignee:
              vijaysingh Vijay Singh
              Reporter:
              suhas.kumbhar suhas.kumbhar
              Reviewer:
              Jan Vennemann
              Tester:
              Sohail Saddique
            • Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Source Code