Skip to content

loadStylePack completion never called #2369

@ChrisStockbridgeVantaca

Description

Environment

  • Xcode version: 16.4
  • iOS version: 18.6
  • Devices affected: iOS
  • Maps SDK Version:

Observed behavior and steps to reproduce

When using OfflineManager.loadStylePack(), completion is never called if loadStylePack is called from within a swift concurrency Task {} block.

Expected behavior

The completion block should always be called.

Notes / preliminary analysis

The completion handler on this function seems to be very fragile. Even when not using a swift Task, I found I need to call from the worker thread in the TileStore.default.allTileRegions {} completion block. Is that expected behavior?
Watching the network traffic I can confirm that the download tasks complete as expected, it is just the completion handler that fails.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🪲Something is broken!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions