Apache Cordova
  1. Apache Cordova
  2. CB-1520

ibc++abi.dylib Exception when EnableLocation is Yes on Cordova.plist

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.0
    • Fix Version/s: 2.2.0
    • Component/s: iOS
    • Labels:
      None
    • Environment:

      XCode 4.5 with Cordova 2.1.0

      Description

      It is creating an exception even on sample project when EnableLocation is set to Yes.

      Exception Detail:
      Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSArrayM insertObject:atIndex:]: object cannot be nil'

          • First throw call stack:
            (0x379952a3 0x35ca597f 0x378df8d9 0x129c5 0x46fa7 0x441b 0x38c85595 0x38cc5d79 0x38cc1aed 0x38d031d1 0x3f11 0x38cc6ad9 0x38cc6663 0x38cbe84b 0x38c66c41 0x38c666d5 0x38c66123 0x37e195a3 0x37e191d3 0x3796a173 0x3796a117 0x37968f99 0x378dbebd 0x378dbd49 0x38cbd485 0x38cba301 0x3945 0x38d8)
            libc++abi.dylib: terminate called throwing an exception
            (lldb)

        Activity

        Hide
        Shazron Abdullah added a comment -

        Aha that was the trick, EnableLocation = YES. Fixing...

        Show
        Shazron Abdullah added a comment - Aha that was the trick, EnableLocation = YES. Fixing...
        Show
        Shazron Abdullah added a comment - callbackId is null here, causing the exception: https://github.com/apache/incubator-cordova-ios/blob/d8575d7eece28ec2c90de4b448af729accaf2567/CordovaLib/Classes/CDVLocation.m#L269
        Show
        Shazron Abdullah added a comment - Fix commit - http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/commit/31797a70
        Hide
        Gorkem Ogut added a comment -

        It is great! That made my day after hours to find the reason.

        Show
        Gorkem Ogut added a comment - It is great! That made my day after hours to find the reason.

          People

          • Assignee:
            Shazron Abdullah
            Reporter:
            Gorkem Ogut
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development