mapbox-maps-ios icon indicating copy to clipboard operation
mapbox-maps-ios copied to clipboard

SDK Crash : DefaultLocationProvider.swift - Attempted to read an unowned reference but object was already deallocated

Open juansanzone opened this issue 1 year ago • 2 comments

Environment

  • Xcode version: Compiled with 15.0
  • iOS version: 17.4.1
  • Devices affected: iPhone 12
  • Maps SDK Version: Attached in the following screenshot 👇🏻 image

Observed behavior and steps to reproduce

  • Just play with the SDK using the SearchEngine feature. The crash has only occurred for 1 user so far. It hasn't happened frequently enough to be significant... (For now)

Expected behavior

No crash. Should use weak or handle the unowned references in a proper way.

Additional links and references

image image image image

juansanzone avatar Apr 27 '24 15:04 juansanzone

Hi @juansanzone --

Thanks for sharing this report. There have been a number of updates to these packages. Please try adopting the latest minor version updates (see below) and verify if you are still seeing this crash:

Navigation: v2.18.0 Maps: v10.17.0 Search: v1.0.0-rc.9 -Note that Search is still in release candidate phase.

In the long term for Navigation and Maps, I'd recommend updating to the latest major versions: Navigation v3.0.1 and Maps v11.3.0. As these are major version bumps there may be breaking changes to your code.

pjleonard37 avatar Apr 29 '24 22:04 pjleonard37

Hi @juansanzone --

Thanks for sharing this report. There have been a number of updates to these packages. Please try adopting the latest minor version updates (see below) and verify if you are still seeing this crash:

Navigation: v2.18.0

Maps: v10.17.0

Search: v1.0.0-rc.9

-Note that Search is still in release candidate phase.

In the long term for Navigation and Maps, I'd recommend updating to the latest major versions: Navigation v3.0.1 and Maps v11.3.0. As these are major version bumps there may be breaking changes to your code.

Thank u!! I will try to update and test. Also I will discuss with my dev team and back to you. Thanks !

juansanzone avatar Apr 29 '24 22:04 juansanzone