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.
Rendered text is garbled when switching styles. #832
I've attached two images with this issue. One image illustrates the garbled text and other image illustrates the expected text.
This reproduces reasonably consistently for me almost everyday. I've seen the garbling happen under two scenarios:
Switching styles (Use sample iosapp and tap to switch styles). This is what I did to take the screenshots.
I've also seen similar garbling when multiple Vector Sources are specified in the same style.json file.
@mb12 Can you give a sample style and coordinate to reproduce this reliably? Haven't seen it. Also, would be handy if you could see if it affects other platforms such as OS X (I would imagine so; this isn't iOS-specific code but could maybe be a GL issue).
This may be similar to the original garbled issue I reported (It was happening with single Source. I don't have exact steps to reproduce the garbling in the screenshot I included earlier. ).
With multiple Vector Sources present rendered text looks illegible/garbled as well.
I've included the style.json as well as a screenshot below. The two conflicting layers are "id": "road_major_label" and "id": "road_label". If you remove one or the other, the text is legible.
Just tested on iPhone 5s Simulator with the latest from master and couldn't reproduce this. Based on gist code above it looks like the original errors where with V6 of the styles while the current code uses V7. I'll test on an actual device to make sure.
Just ran the same tests on my iPhone 5s using iOS 8.1.3 and the results are consistent with what the simulator showed. I'm going to close this issue for now as it looks resolved to me. If you feel it's not @mb12 please feel free to re-open. Thanks!
1.) I do see the original garbling issue (first screenshot that I added with this bug) inconsistently when switching styles (I've an older git repo). There are toooooo many issues with Map::start/stop logic that will be addressed by the following. I can verify this once this is merged into master.
Activity
incanus commentedon Feb 10, 2015
@mb12 Can you give a sample style and coordinate to reproduce this reliably? Haven't seen it. Also, would be handy if you could see if it affects other platforms such as OS X (I would imagine so; this isn't iOS-specific code but could maybe be a GL issue).
mb12 commentedon Feb 11, 2015
This may be similar to the original garbled issue I reported (It was happening with single Source. I don't have exact steps to reproduce the garbling in the screenshot I included earlier. ).
With multiple Vector Sources present rendered text looks illegible/garbled as well.
I've included the style.json as well as a screenshot below. The two conflicting layers are "id": "road_major_label" and "id": "road_label". If you remove one or the other, the text is legible.
https://gist.github.com/mb12/7bdcf92c7342e50b66fc
incanus commentedon Feb 11, 2015
/cc @ansis
mb12 commentedon Feb 11, 2015
For the same style.json (the one with multiple sources), I also get random crashes with the following stack trace. (This is for iOS).
mb12 commentedon Feb 11, 2015
Can you please also comment on the following regarding GlyphAtlas in presence of multiple Sources?
GlyphAtlas is maintained per Map, not per Source.
However the following two methods take a tileid only.
GlyphAtlas::addGlyphs
GlyphAtlas::removeGlyphs
Should the tileid passed to these methods be a function of both Tile::ID and SourceInfo?
bleege commentedon Mar 6, 2015
Determined that the screenshots were from Sunnyvale, CA with coordinates of 37.38533, -122.01727.
bleege commentedon Mar 6, 2015
Just tested on iPhone 5s Simulator with the latest from
masterand couldn't reproduce this. Based on gist code above it looks like the original errors where with V6 of the styles while the current code uses V7. I'll test on an actual device to make sure.bleege commentedon Mar 6, 2015
Just ran the same tests on my iPhone 5s using iOS 8.1.3 and the results are consistent with what the simulator showed. I'm going to close this issue for now as it looks resolved to me. If you feel it's not @mb12 please feel free to re-open. Thanks!
mb12 commentedon Mar 6, 2015
Thanks for looking into it.
1.) I do see the original garbling issue (first screenshot that I added with this bug) inconsistently when switching styles (I've an older git repo). There are toooooo many issues with Map::start/stop logic that will be addressed by the following. I can verify this once this is merged into master.
#879
2.) Can you please also comment on the correctness of the following?
GlyphAtlas is maintained per Map, not per Source.
However the following two methods take a tileid only.
GlyphAtlas::addGlyphs
GlyphAtlas::removeGlyphs
Should the tileid passed to these methods be a function of both Tile::ID and SourceInfo?
kkaefer commentedon Mar 6, 2015
@mb12 2) is correct. I opened a ticket for it: #957