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.
Fix race condition with GeometryTile::redoLayout #6263
GeometryTile::redoLayout assumes that the worker has tile data from a previous call to worker.parseGeometryTile(...), but it also cancels the pending work request, which might be the very request that provides the worker with the tile data.
The way I'd like to fix this is to change the worker API to:
void setGeometryTileData(worker, data); // invoked in "fire and forget" fashion, not cancellable
Request startLayout(worker, ..., callback); // replaces parseGeometryTile, cancellable
Request continueLayout(worker, ..., callback); // replaces parsePendingGeometryTileLayers, cancellable
However, this depends on serial processing order of worker messages, so that we can guarantee that setGeometryTileData has completed by the time startLayout begins. We don't have this right now: it's possible for setGeometryTileData to get dispatched to one thread and startLayout to get dispatched to another and start executing before setGeometryTileData.
So I'm going to work on fixing #1471, which if implemented in the way I have in mind, would solve this problem as well.
Activity
jfirebaugh commentedon Sep 13, 2016
This is currently causing Android test failures, in the form of crashes with the following stack: