Skip to content

[Bug]: App crashes when location sharing is enabled iPadOS 14.6 #1729

@gauravkakad1

Description

@gauravkakad1

Please check the following before submitting a new issue.

Please select affected platform(s)

  • Android
  • iOS
  • Linux
  • macOS
  • Web
  • Windows

Steps to reproduce

  1. Install and open the app on an iPad (6th generation) running iPadOS 14.6.
  2. Grant location permission when prompted.
  3. Observe crash immediately or during startup.
  4. Denying location permission results in a successful app launch.

Expected results

The app should start normally and handle location permission gracefully without crashing, regardless of whether location sharing is enabled or denied.

Actual results

  • The app crashes when location permission is granted.
  • The app works fine when location permission is denied.

+[LocationMapper toDictionary:]
NSInvalidArgumentException - -[CLLocation sourceInformation]: unrecognized selector sent to instance

     Fatal Exception: NSInvalidArgumentException
      0  CoreFoundation                 0x11b298 __exceptionPreprocess
      1  libobjc.A.dylib                0x26480 objc_exception_throw
      2  CoreFoundation                 0x2a2a8 -[NSOrderedSet initWithSet:copyItems:]
      3  CoreFoundation                 0x11d8f4 ___forwarding___
      4  CoreFoundation                 0x11f89c _CF_forwarding_prep_0
      5  geolocator_apple               0x5df8 +[LocationMapper toDictionary:] + 68 (LocationMapper.m:68)
      6  geolocator_apple               0x54e4 __61-[GeolocatorPlugin onGetCurrentPositionWithArguments:result:]_block_invoke + 162 (GeolocatorPlugin.m:162)
      7  geolocator_apple               0x4554 -[GeolocationHandler locationManager:didUpdateLocations:] + 154 (GeolocationHandler.m:154)
      8  CoreLocation                   0x1daf8 CLClientStopVehicleHeadingUpdates
      9  CoreLocation                   0x1cebc CLClientStopVehicleHeadingUpdates
      10 CoreLocation                   0x36d4 CLClientCreateWithBundleIdentifierAndPathOnSilo
      11 CoreFoundation                 0x9a650 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__
      12 CoreFoundation                 0x998e4 __CFRunLoopDoBlocks
      13 CoreFoundation                 0x94424 __CFRunLoopRun
      14 CoreFoundation                 0x93818 CFRunLoopRunSpecific
      15 GraphicsServices               0x3570 GSEventRunModal
      16 UIKitCore                      0xb300e8 -[UIApplication _run]
      17 UIKitCore                      0xb35664 UIApplicationMain
      18 AssetCues                      0x4850 main + 20 (AppDelegate.swift:20)
      19 libdyld.dylib                  0x1140 start

Version

14.0.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions