-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Canvas source errors when larger than some environment-specific size #4262
Comments
Here's a debug page I put together to help get to the bottom of this: https://www.mapbox.com/labs/canvas-heatmap/canvas-debug.html Here's what's expected (red box and green X are rendered to canvas and then placed on map): Here's what the bug looks like: On my 2015 Macbook Pro 13" running OSX El Capitan 10.11.6 with Intel Iris Graphics 6100 1536 MB, here's what I'm seeing by browser: Chrome v56.0.2924.87:Resolutions with >= 65,536 pixels (=2^16, equivalent to 256x256) fail Safari 9.1.2:Resolutions with >= 524,288 pixels (=2^19, equivalent to 1024x512) fail Firefox 51.0.1:Resolutions with >= 524,288 pixels (=2^19, equivalent to 1024x512) fail On Safari and Chrome on my iPhone with iOS 10.0.1 I do not see the bug at resolutions up to 4096x4096. @peterqliu checked this out for me on his 2015 Macbook Pro 15" running macOS Sierra 10.12.1 with Intel Iris Pro 1536 MB and was not seeing the bug in Chrome at resolutions up to 2048x2048. |
FYI: would have helped out to tell you if I see this in my setup, but the debug page 403s (in the console - failing to get the mapbox dev) |
Friendly ping - any update on this? |
I'm seeing this bug spill into Mapbox Draw tickets. I'm not sure what the status of this is here, but a Draw user provided another fiddle which I'm linking to here in case what is needed to see this move forward is more examples. |
I'm seeing a bug with the same symptoms but it is not dependent on canvas size. My test case is a 1x1 canvas. Problem occurs when I access the webgl context of the canvas. https://codepen.io/gpbmike/pen/qXNPOM I created an issue with more details. It appears to be dependent on hardware. Intel Iris Graphics 6100 1536 MB Chrome Version 60.0.3112.78 (Official Build) (64-bit) Hopefully this helps a bit? |
I'm seeing this behavior on renderers reported as the following
Using the following to get renderer: const dbgRenderInfo = gl.getExtension('WEBGL_debug_renderer_info');
const renderer = gl.getParameter(dbgRenderInfo.UNMASKED_RENDERER_WEBGL); Perhaps only affects the Broadwell line of Intel processors https://en.wikipedia.org/wiki/Intel_HD_and_Iris_Graphics#Broadwell |
Another friendly ping; can someone from Mapbox please let us know if this is something that is being actively looked at? It's obviously a deal breaker to go down the canvas route for some of our visualisations if this is not addressed |
I'm looking into this now. There's an old pre-release build of the canvas source feature where this problem doesn't manifest, so I suspect the answer is somewhere in the diff between 3e36acc and 5082fec — particularly in the possibility that affected GPUs aren't able to use |
Out of curiosity, @jliebrand @gpbmike or anyone else who's seeing this issue — are you using the |
@lbud iirc, this was happening both with |
2d in our case... |
@lbud in my case |
Thanks! Out of interest, is there any details as to when or what would trigger a new release? At the moment they seem to just come roughly once a month, but I can't really put my finger on a pattern. Is it "as and when" or is there more structure to it? (and if so, when is the next one? ;-)) |
per @kronick
We're going to create some minimal test cases and do some research into known limitations today.
The text was updated successfully, but these errors were encountered: