Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Worker.redoplacement throws AssertionError on Satellite Raster when pitched #3614

Closed
swratten opened this issue Nov 14, 2016 · 4 comments
Closed

Comments

@swratten
Copy link

mapbox-satellite-assert

mapbox-gl-js version 0.27.0:

Steps to Trigger Behavior

  1. Go to Mapbox Satellite Example
  2. Pitch map
  3. Check console

Expected Behavior

Normal map experience without console full of error messages

Actual Behavior

Console full of assertion errors

@lucaswoj
Copy link
Contributor

@lbud reports being able to reproduce this bug. It may be related to some other raster image regressions in the latest release.

@mourner
Copy link
Member

mourner commented Nov 14, 2016

I'm surprised it gets to the worker stage — raster tiles shouldn't be related to that code in any way.

@lbud
Copy link
Contributor

lbud commented Nov 15, 2016

@lbud reports being able to reproduce this bug. It may be related to some other raster image regressions in the latest release.

Right — video and image sources also hit this bug. For the sake of pulling together a quick proof of concept for #3580 I threw in the return statement if source type was undefined here. It looks like on both pitch and rotate the style's internal _redoPlacement is called, which attempts to redo placement on all source caches.

I don't know enough about the history of the source/source cache refactor to speak to what this looked like before/where we should break out of this codepath if a source is not vector or geojson. @mourner do you recall?

@mourner
Copy link
Member

mourner commented Nov 15, 2016

@lbud I don't recall touching the source cache code, but will take a look today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants