You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
I had filed a bug for this issue earlier (Issue #1198#1198). At that time I did not have consistent steps to reproduce the issue. I've finally isolated the problem to a very trivial style file and a vector source that consistently reproduces the problem.
This crash is consistently reproducible with the following configuration:
iPhone 5 running iOS 8.1.3 (It reproduces only on iPhone 5 and this OS version).
It does not reproduce on other device/OS configurations. I've tested on iPhone 4s(7.x) , iPhone 6(8.3), iPad(8.1.3) and iPad Air (8.3)
Steps to reproduce:
In you git repo with sample test app copy over the style file at this link to an existing existing style (say emerald-v7.json)
Even on devices where it does not crash, the fill-color is inaccurate. The expected behavior is that all grid squares would be rendered with yellow translucent color. But only half of the grid squares are rendered with this color.
If I change the opacity to 1, then all the grid squares are rendered with yellow color. It looks like there is an issue with rendering fill areas with translucency (opacity < 1).
I was able to get hold of a different iPhone 5 with a slightly different OS version (iOS 8.1.2) and it crashes on that device as well. Is it possible for someone to do some analysis on this? I have hit a dead end on this one.
I'm inclined to blame this on a bug in the GPU driver for the PowerVR SGX543 series (with RC2 seeming to mean "Release Candidate 2"?). The actual name of the iPhone 5 GPU is SGX543MP3.
But this crash doesn't reproduce on the iPad mini (SGX543MP2), iOS 8.3, which is a very similar GPU but with two cores (versus three for SGX543MP3). SGX543MP2 was also used in iPhone 4S and iPad 2, so I'd expect those not to crash, either.
Also does not reproduce on iPhone 4 (SGX535), iOS 7.1.2.
However on the same hardware where the crash reproduces, the following causes it go away:
If I reduce the number of fill bucket /styles to a small number. The current style I have provided renders a grid of 64 squares (8x8 grid) at zoomlevel four. If I reduce this number to 4, the crash goes away.
This particular style also uses a translucent opacity (0.5 in all the cases). If I increase it to 1, the crash goes away (when there is only one vector Source). The reason I mention one vector source here is because that is what I've provided in the test case.
The crash happens almost instantaneously only during panning / changing device orientation (that forces re-render).
This leads me to believe there is some issue with alpha rendering for fill buckets.
PS: I upgraded one of the iPhone 5 devices to 8.3. The crash still reproduces on that device.
Is this the same bug? Also iPhone 5 but on iOS 9.3. I have a few thousand polygons and a few thousand point annotations in the form of a building so the zoom is ~18 when crashing. I don't get this on iPhone 6 or 6s.
@Hinken, what version of the Mapbox iOS SDK are you using? Also, does this crash occur when the application is in the foreground or when it's in the background or background mode? The crash trace looks a bit different than the one @mb12 posted in #1198.
Im using a bit modified version where I use the stylesheet for styling instead of the delegate callbacks. But the rest is merged with your master branch with the latest release. It happens in the foreground. I realise I should have mentioned that, but maybe you have some use of this anyway :). Thanks for your great work here
Im using iOS sdk version 3.3.1,and this issue is still exist,It happened too many times in foreground.The stack trace is same to @ohlsont .Our app just draw a ployline based on real time location then update user heading with method -[MGLMapView setCamera] and update mapview's center coordinate use method -[MGLMapView setCenterCoordinate:animated:].I post a stack trace catched in fabric below ,please review this ,thank you. stack track image
This may have been fixed by #6972 -- my hunch is it was, or it has been fixed by other changes in master. Please comment here if you see it in recent builds.
Activity
1ec5 commentedon May 11, 2015
ref #1460
mb12 commentedon May 11, 2015
#1460 is a different issue. #1460 is related to open gl calls not being disabled when app moves to background.
This issue consistently causes a crash when rendering a trivial grid of squares on iPhone 5.
mb12 commentedon May 11, 2015
Even on devices where it does not crash, the fill-color is inaccurate. The expected behavior is that all grid squares would be rendered with yellow translucent color. But only half of the grid squares are rendered with this color.
If I change the opacity to 1, then all the grid squares are rendered with yellow color. It looks like there is an issue with rendering fill areas with translucency (opacity < 1).
mb12 commentedon May 14, 2015
I was able to get hold of a different iPhone 5 with a slightly different OS version (iOS 8.1.2) and it crashes on that device as well. Is it possible for someone to do some analysis on this? I have hit a dead end on this one.
friedbunny commentedon May 14, 2015
I'm inclined to blame this on a bug in the GPU driver for the PowerVR SGX543 series (with
RC2seeming to mean "Release Candidate 2"?). The actual name of the iPhone 5 GPU is SGX543MP3.But this crash doesn't reproduce on the iPad mini (SGX543MP2), iOS 8.3, which is a very similar GPU but with two cores (versus three for SGX543MP3). SGX543MP2 was also used in iPhone 4S and iPad 2, so I'd expect those not to crash, either.
Also does not reproduce on iPhone 4 (SGX535), iOS 7.1.2.
mb12 commentedon May 14, 2015
@friedbunny Thanks for the comment.
However on the same hardware where the crash reproduces, the following causes it go away:
This leads me to believe there is some issue with alpha rendering for fill buckets.
PS: I upgraded one of the iPhone 5 devices to 8.3. The crash still reproduces on that device.
friedbunny commentedon May 14, 2015
Here's one story of debugging
gpus_ReturnGuiltyForHardwareRestart.mb12 commentedon May 21, 2015
@incanus Is it possible to add this to list of issues for analysis in ios beta 2? This is a consistently reproducible crash in gl-core.
jfirebaugh commentedon Oct 2, 2015
Does this still happen?
mb12 commentedon Oct 2, 2015
Yes. It crashed the last time I tried it (a couple of weeks back).
ohlsont commentedon Apr 1, 2016
Is this the same bug? Also iPhone 5 but on iOS 9.3. I have a few thousand polygons and a few thousand point annotations in the form of a building so the zoom is ~18 when crashing. I don't get this on iPhone 6 or 6s.
1ec5 commentedon Apr 1, 2016
@Hinken, what version of the Mapbox iOS SDK are you using? Also, does this crash occur when the application is in the foreground or when it's in the background or background mode? The crash trace looks a bit different than the one @mb12 posted in #1198.
ohlsont commentedon Apr 3, 2016
Im using a bit modified version where I use the stylesheet for styling instead of the delegate callbacks. But the rest is merged with your master branch with the latest release. It happens in the foreground. I realise I should have mentioned that, but maybe you have some use of this anyway :). Thanks for your great work here
Ta-Boy commentedon Sep 3, 2016
Im using iOS sdk version 3.3.1,and this issue is still exist,It happened too many times in foreground.The stack trace is same to @ohlsont .Our app just draw a ployline based on real time location then update user heading with method -[MGLMapView setCamera] and update mapview's center coordinate use method -[MGLMapView setCenterCoordinate:animated:].I post a stack trace catched in fabric below ,please review this ,thank you.
stack track image
friedbunny commentedon Sep 21, 2016
Here’s another stack trace, from an iPhone 5 running iOS 9.3.5, with Mapbox iOS SDK v3.3.4:
This crash appears to be exacerbated by large numbers of polylines. So far, it remains isolated to the iPhone 5.
friedbunny commentedon Sep 22, 2016
#6275 was on an iPhone 4S and crashed with
IMGSGX543GLDriver.jfirebaugh commentedon Nov 9, 2016
This may have been fixed by #6972 -- my hunch is it was, or it has been fixed by other changes in
master. Please comment here if you see it in recent builds.RomainQuidet commentedon Nov 14, 2018
Hi, this issue is poping up again: #13372