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.
Glyph bitmap overflow, disappearing labels on rotation #1681
changed the title [-][new labeling] CJK labels disappear instead of flipping on rotation[/-][+][new labeling] Labels disappear instead of flipping on rotation[/+]on Jun 3, 2015
I was also seeing the issue on Vietnamese labels (Latin with diacritics). But after restarting the app, I’m no longer seeing either the glyph corruption (completely misdrawn and flashing on every redraw) or the labels disappearing – the labels flip as expected. So it probably is related to the glyph corruption.
changed the title [-][new labeling] Labels disappear instead of flipping on rotation[/-][+][new labeling] Glyph corruption causes labels to disappear instead of flipping on rotation[/+]on Jun 3, 2015
changed the title [-][new labeling] Glyph corruption causes labels to disappear instead of flipping on rotation[/-][+][new labeling] Glyph bitmap overflow, disappearing labels on rotation[/+]on Jun 3, 2015
We've seen this with Chinese labels before (can't find the issue though), but we're essentially overstuffing the glyph atlas, because so many unique glyphs are needed and the glyphs are spread across so many "glyph tiles" (blocks of 256 codepoints). I think we're attempting to add all the bitmaps for a requested glyph tile to the atlas, even if only one or two glyphs in that block are actually needed for rendering at the moment (not happening this way anymore).
We have several issues about sprite atlas overflow, but maybe not one about glyph atlas overflow specifically. However there is #1444, which is likely compounding the issue.
changed the title [-][new labeling] Glyph bitmap overflow, disappearing labels on rotation[/-][+]Glyph bitmap overflow, disappearing labels on rotation[/+]on Jun 4, 2015
In case it wasn’t clear from the screenshots I took in #1681 (comment), this is what glyph overflow currently looks like:
It’s easy to reproduce this issue by panning around a city such as Tapei, in which many street names and POIs have Chinese names but not English names.
What’s the state of this issue now that #5908 has landed? I’m unable to reproduce the issue anymore, though I haven’t tried very thoroughly. Do we still need this ticket around?
Activity
1ec5 commentedon Jun 3, 2015
Although I wouldn’t discount the possibility that it has something to do with the corrupted glyph in that POI label in the center of the map.
[-][new labeling] CJK labels disappear instead of flipping on rotation[/-][+][new labeling] Labels disappear instead of flipping on rotation[/+]1ec5 commentedon Jun 3, 2015
I was also seeing the issue on Vietnamese labels (Latin with diacritics). But after restarting the app, I’m no longer seeing either the glyph corruption (completely misdrawn and flashing on every redraw) or the labels disappearing – the labels flip as expected. So it probably is related to the glyph corruption.
[-][new labeling] Labels disappear instead of flipping on rotation[/-][+][new labeling] Glyph corruption causes labels to disappear instead of flipping on rotation[/+]1ec5 commentedon Jun 3, 2015
When I do return to the problematic POI, I get lots of this in the console:
[-][new labeling] Glyph corruption causes labels to disappear instead of flipping on rotation[/-][+][new labeling] Glyph bitmap overflow, disappearing labels on rotation[/+]mikemorris commentedon Jun 3, 2015
We've seen this with Chinese labels before (can't find the issue though), but we're essentially overstuffing the glyph atlas, because so many unique glyphs are needed
and the glyphs are spread across so many "glyph tiles" (blocks of 256 codepoints). I think we're attempting to add all the bitmaps for a requested glyph tile to the atlas, even if only one or two glyphs in that block are actually needed for rendering at the moment(not happening this way anymore).The sparse placement and long tail of less common glyphs across the Unicode range makes this a pretty difficult problem. Another possible compounding issue is that we're storing glyphs in the atlas by fontstack and codepoint, so there may be multiple copies of a glyph stored if multiple fontstacks share a common fallback.
I believe
bin.allocatereturns a zero-widthRectif it fails to allocate space in the atlas.Refs mapbox/mapbox-gl-js#141
jfirebaugh commentedon Jun 3, 2015
We have several issues about sprite atlas overflow, but maybe not one about glyph atlas overflow specifically. However there is #1444, which is likely compounding the issue.
[-][new labeling] Glyph bitmap overflow, disappearing labels on rotation[/-][+]Glyph bitmap overflow, disappearing labels on rotation[/+]1ec5 commentedon Jul 13, 2016
In case it wasn’t clear from the screenshots I took in #1681 (comment), this is what glyph overflow currently looks like:
It’s easy to reproduce this issue by panning around a city such as Tapei, in which many street names and POIs have Chinese names but not English names.
mapbox/mapbox-gl-js#141 is the equivalent bug in Mapbox GL JS.
1ec5 commentedon Aug 17, 2016
What’s the state of this issue now that #5908 has landed? I’m unable to reproduce the issue anymore, though I haven’t tried very thoroughly. Do we still need this ticket around?
/cc @amyleew @xrwang
amyleew commentedon Aug 22, 2016
Haven't noticed it again @1ec5. Let's close for now, we can reopen if this becomes an issue in the future