Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Map is unusably slow in ios 11 beta Xcode 9 simulator #9959

Closed
JesseCrocker opened this issue Sep 11, 2017 · 21 comments
Closed

Map is unusably slow in ios 11 beta Xcode 9 simulator #9959

JesseCrocker opened this issue Sep 11, 2017 · 21 comments
Labels
iOS Mapbox Maps SDK for iOS

Comments

@JesseCrocker
Copy link
Contributor

Platform: iOS
Mapbox SDK version: master@dfc5d51ae150b92ce2645d34383f04361d784bc3 Xcode Version 9.0 beta 6 (9M214v)

Steps to trigger behavior

  1. Launch sample app
  2. pan map

Expected behavior

Map pans smoothly

Actual behavior

Map is extremely slugish

@boundsj boundsj added the iOS Mapbox Maps SDK for iOS label Sep 11, 2017
@boundsj
Copy link
Contributor

boundsj commented Sep 11, 2017

Thanks for the report @JesseCrocker.

Noting that I've been working with Xcode 9 b6 a lot and have not noticed extreme slowness of the operation of the Mapbox map view in the simulator. We will watch for this issue though.

@friedbunny
Copy link
Contributor

This is evidently an endemic issue for the Xcode 9 simulator — Maps.app is, I daresay, even worse. 😬

@JesseCrocker
Copy link
Contributor Author

Im seeing this issue in the sample app, and in my own applications.
Possibly relevant info: Im using a retina iMac, but the simulator is running on a second screen that is not retina.

@boundsj
Copy link
Contributor

boundsj commented Sep 12, 2017

@JesseCrocker I do see this. I think I had tested in the simulator in an earlier beta and I've just been using a device recently and did not notice the regression.

As @friedbunny noted, this appears to be an issue with betas of Xcode 9 after beta 3. This thread has more details including a workaround that I've not tried (and may not actually help much according to the comments).

A radar has been filed and it would be helpful to file additional radars with Apple and duplicate the ones noted here: lionheart/openradar-mirror#18093.

Let's leave this issue open for tracking purposes and hope that this gets fixed before the GM release of Xcode!

cc @bsudekum

@mmase
Copy link

mmase commented Sep 16, 2017

Also noticing this, as well as macOS demo app as well. It's just very sluggish zooming and panning. Far from smooth. I'm using latest of Xcode 8. Maps.app is smooth as butter for comparison.

@perekstig
Copy link

I can confirm that SpriteKit also is very slow. Runs in 2.1 fps instead of about 40 fps. Totally useless. Then I downloaded a simulator running iOS 10.3.1. And to my big surprise it runs ok! So the problem is not Xcode 9, the problem is the iOS 11 simulators.

@boundsj
Copy link
Contributor

boundsj commented Sep 18, 2017

Noting that the Xcode 9 GM did not fix this issue.

@kuchmiyalex
Copy link

kuchmiyalex commented Sep 19, 2017

That's not Mapbox issue - even MapKit is soo laggy in iOS 11 simulator.

@mmase
Copy link

mmase commented Sep 19, 2017

Maybe, but separate issue. Even compiled and archived macOS have this performance problem whereas Maps.app does not.

@chefnobody
Copy link

FWIW the first public release of Xcode 9 did not resolve the issue. Here's the radar: https://openradar.appspot.com/radar?id=6138518606708736

@JasonGore
Copy link

Apple's own Maps app in iOS 11 simulator DOES exhibit this issue.

@lagst3r
Copy link

lagst3r commented Sep 25, 2017

I am having the same issue with the official XCode 9 + iOS 11 Simulator.

  • Gesture panning is very sluggish and not responsive.
  • Map panning animation is very sluggish when executed programmatically.

@friedbunny
Copy link
Contributor

This is officially confirmed to be an issue with Xcode 9.0 and its iOS 11 simulator — it affects any OpenGL-using application.

Various hacky workarounds exist, such as this one suggested by the same Xcode team member:

This is entirely unsupported but you can copy libCoreVMClient.dylib from beta 3 into the GM and it will restore performance.

@hongchaozhang
Copy link

hongchaozhang commented Sep 27, 2017

The workaround from Apple forum works for me.

Replace the following file with beta 3 or before version:
Xcode[-beta].app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/OpenGLES.framework/libCoreVMClient.dylib

@blackjack75
Copy link

I must say this isn't map related. My SpriteKit app went from relatively slow compared to real device to < 1 FPS.

@asetiyadi
Copy link

asetiyadi commented Sep 29, 2017

What a life saver this workaround is!!!

Replace the following file with beta 3 or before version:
Xcode[-beta].app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/OpenGLES.framework/libCoreVMClient.dylib

@hungnq89vn
Copy link

Could anyone please upload the file libCoreVMClient.dylib from Beta 3 here so I can download and fix the issue with my Xcode 9?

I couldn't seem to find anywhere to download Xcode 9 beta 3 to acquire the file.

@asetiyadi
Copy link

asetiyadi commented Sep 29, 2017

Not sure if this is beta 2 or 3, but works for me. Here is the attached file.

redacted

@hungnq89vn
Copy link

@asetiyadi Awesome. Thanks, mate! It worked for me.

@friedbunny
Copy link
Contributor

It’s definitely frustrating that this bug continues to exist, but please do not redistribute Apple software here.

This issue has run its course and the cause has been identified as beyond the scope of this project. Let’s cross our fingers and hope for an official fix in Xcode 9.1.

@mapbox mapbox locked and limited conversation to collaborators Sep 29, 2017
@1ec5
Copy link
Contributor

1ec5 commented Nov 4, 2017

From the Xcode 9.1 release notes:

  • Fixes an issue in Simulator that impacted the performance of OpenGL ES and maps

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
iOS Mapbox Maps SDK for iOS
Projects
None yet
Development

No branches or pull requests