mapbox / mapbox/mapbox-maps-ios

onStyleLoaded not always triggered

Open
#2,267 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

auto-triaged bug :beetle:
Dominant language
Swift
Stars
601
Forks
196
PR merge metrics
No merged PRs in 30d

Description

Environment

  • Xcode version: 16.0
  • iOS version: 18.1
  • Devices affected: Simulator / iPhone 13 Pro Max
  • Maps SDK Version: 11.8.0

Observed behavior and steps to reproduce

Rarely but consistently after a number of attempts, onStyleLoaded is not being triggered. The style does seem to be loading.

Expected behavior

onStyleLoaded should be triggered every time the map loads the style

Notes / preliminary analysis

Not seeing any errors from
onMapLoadingError
onMapLoaded does get called even when onStyleLoaded does not

Additional links and references

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the intermittent behavior with Maps SDK 11.8.0 in the listed Xcode 16.0 and iOS 18.1 environments, using the onStyleLoaded, onMapLoaded, and onMapLoadingError callbacks. Compare callback behavior across repeated style loads and determine why onMapLoaded can occur without onStyleLoaded. Done means onStyleLoaded is reliably triggered for every successful style load and the behavior is covered by a regression check.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, swift
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.