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
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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