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.
rendering tests: Error: timed out after 20 seconds #2808
Weirdly, Travis reported the entire test run as passing despite individual failing builds. I tried to reproduce this locally, but couldn't. The node tests never stalled for me.
Since still rendering hangs seem to be a recurring problem, we should probably introduce some diagnostic tools. I would probably start with a companion method to Map::isFullyLoaded that logs the status of the resource tree. I.e. a resource identifier and whether or not the resource is loaded, for each of the following:
Got debug output. Tiles are getting stuck in the partial state.
INFO (General): --------------------------------------------------------------------------------
INFO (General): MapContext::styleURL:
INFO (General): Source::id: mapbox
INFO (General): Source::loaded: 1
INFO (General): TileData::id: 0/0/0
INFO (General): TileData::state: parsed
INFO (General): TileData::error:
INFO (General): Source::id: com.mapbox.annotations
INFO (General): Source::loaded: 1
INFO (General): TileData::id: 0/0/0
INFO (General): TileData::state: partial
INFO (General): TileData::error:
INFO (General): Sprite::loaded: 1
INFO (General): --------------------------------------------------------------------------------
As of c0c554e, annotation ("Live") tiles have a hard time getting out of the partial state, because LiveTileData::parsePending calls worker.parseLiveTile, and never worker.parsePendingVectorTileLayers.
In the headless tests, the most common reason for an annotation tile to be pending is that the sprite hasn't been loaded. Once that condition is hit, there's no way for the annotation tile to get out of the pending state. The only way would be if invalidateTiles() was called, and that only happens if there are annotation changes.
Activity
mikemorris commentedon Oct 26, 2015
Pretty sure I've seen this prior, but dismissed it as a random hiccup.
kkaefer commentedon Oct 27, 2015
Weirdly, Travis reported the entire test run as passing despite individual failing builds. I tried to reproduce this locally, but couldn't. The node tests never stalled for me.
jfirebaugh commentedon Oct 27, 2015
Something changed here recently. I don't recall ever seeing this, or if it happened it was uncommon. Now it happens very frequently.
jfirebaugh commentedon Oct 28, 2015
@kkaefer Can you please take another look at this tomorrow?
jfirebaugh commentedon Oct 28, 2015
Since still rendering hangs seem to be a recurring problem, we should probably introduce some diagnostic tools. I would probably start with a companion method to
Map::isFullyLoadedthat logs the status of the resource tree. I.e. a resource identifier and whether or not the resource is loaded, for each of the following:kkaefer commentedon Oct 28, 2015
I tried VMWare Fusion and VirtualBox and was unable to reproduce this issue anywhere.
jfirebaugh commentedon Oct 28, 2015
https://travis-ci.org/mapbox/mapbox-gl-native/builds/87963907
Got debug output. Tiles are getting stuck in the
partialstate.jfirebaugh commentedon Oct 28, 2015
As of c0c554e, annotation ("Live") tiles have a hard time getting out of the
partialstate, becauseLiveTileData::parsePendingcallsworker.parseLiveTile, and neverworker.parsePendingVectorTileLayers.In the headless tests, the most common reason for an annotation tile to be pending is that the sprite hasn't been loaded. Once that condition is hit, there's no way for the annotation tile to get out of the pending state. The only way would be if
invalidateTiles()was called, and that only happens if there are annotation changes.#2792 is probably the best way of fixing this.
jfirebaugh commentedon Oct 28, 2015
@tmpsantos I'm going to need to have you look at this. I thought 5df0928 would fix it, but it didn't.
Ensure partial LiveTiles can be finished (fixes #2808)
[core] Workaround for mapbox#2808