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

Headless label placement tests aren't deterministic #1540

Merged
merged 4 commits into from
May 19, 2015

Conversation

kkaefer
Copy link
Member

@kkaefer kkaefer commented May 19, 2015

Here are few different renders of text-color/default:

test

/cc @ansis any idea how to debug this?

@tmpsantos
Copy link
Contributor

Should be fixed by #1532, no?

@kkaefer
Copy link
Member Author

kkaefer commented May 13, 2015

Nope, these images are with #1532 applied.

@kkaefer
Copy link
Member Author

kkaefer commented May 13, 2015

For reference, this is where the tile boundaries are, it looks like the rendering errors are independent of the tile boundaries.

7

@kkaefer
Copy link
Member Author

kkaefer commented May 19, 2015

Narrowing down this test failure: It never happens when only one tile is being displayed, and it also doesn't happen when reducing the worker count to 1, so the error seems to be somewhere in concurrent tile parsing.

kkaefer referenced this pull request May 19, 2015
For now, the buckets depending on Glyphs that are not yet available
are simply not created (or created and discarded). In the future
we could refactor the code to not create the bucket at all or put
the bucket in a suspended state until the glyph range is available.
@kkaefer kkaefer added in progress and removed ready labels May 19, 2015
@kkaefer
Copy link
Member Author

kkaefer commented May 19, 2015

What happened was that the Glyph PBF was marked as parsed before all of the glyphs were inserted into the FontStack. That means some labels (always at the beginning) were missing some letters because they couldn't be found when calculating the shaping.

@kkaefer kkaefer force-pushed the 1540-disappearing-text branch from 6e15e30 to bcf66b7 Compare May 19, 2015 14:13
kkaefer added a commit to mapbox/mapbox-gl-test-suite that referenced this pull request May 19, 2015
kkaefer added a commit to mapbox/mapbox-gl-test-suite that referenced this pull request May 19, 2015
@kkaefer kkaefer force-pushed the 1540-disappearing-text branch from a6c8546 to d7bd429 Compare May 19, 2015 15:56
@jfirebaugh jfirebaugh merged commit d7bd429 into master May 19, 2015
@jfirebaugh jfirebaugh deleted the 1540-disappearing-text branch May 19, 2015 16:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants