mapbox / mapbox/mapbox-maps-ios

Loading Mapbox maps on iOS without navigation, simply loading MapboxMaps.MapView onto VC, consumes over 200% of the CPU, causing the app to lag and crash. The SDK version used is

Open
#2,381 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

auto-triaged needs info
Dominant language
Swift
Stars
601
Forks
196
PR merge metrics
No merged PRs in 30d

Description

### Mapbox Navigation SDK version

pod 'MapboxMaps', '10.19.0' pod 'MapboxNavigation', '2.18.4' pod 'MapboxGeocoder.swift', '0.15.0'

### Steps to reproduce

Loading Mapbox maps on iOS without navigation, simply loading MapboxMaps.MapView onto VC, consumes over 200% of the CPU, causing the app to lag and crash. The SDK version used is

### Expected behavior

在没有导航的情况下在iOS上加载Mapbox地图,只需将MapboxMaps.MapView加载到VC上,消耗了200%以上的CPU,导致应用程序滞后和崩溃。使用的SDK版本是

### Actual behavior

Loading Mapbox maps on iOS without navigation, simply loading MapboxMaps.MapView onto VC, consumes over 200% of the CPU, causing the app to lag and crash. The SDK version used is

### Is this a one-time issue or a repeatable issue?

repeatable

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

Reproduce the issue by loading MapboxMaps.MapView onto an iOS view controller without navigation, using MapboxMaps 10.19.0, MapboxNavigation 2.18.4, and MapboxGeocoder.swift 0.15.0. Start by measuring CPU usage during this setup and compare behavior with and without the additional SDKs. Done means the repeatable setup no longer causes excessive CPU usage, lag, or crashes.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.