-
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
use stackgl/headless-gl #1447
Comments
Yes, was going to switch but let's wait until node-pre-gyp binaries are there. stackgl/headless-gl#19 |
We don't have node-pre-gyp binaries currently, and this probably unblocks #1197, so I think we should do it ASAP. |
We don't have binaries but it's compiled much faster. ANGLE takes a while to compile, but if it's fine, let's switch. Not sure if it fixes the layer-by-layer stuff though, I thought someone said it's probably not? |
It looks like a lot of the other failing render tests could have the same cause as #1449 I extracted a test case and opened stackgl/headless-gl#21 |
Fixed that weird attribute bug, next step is getting prebuild modules up. |
Finally works for me! Pushed a branch with a working render suite to https://github.com/mapbox/mapbox-gl-js/tree/stacklgl-headless-gl-2.
Pretty good! Some noticeable outstanding issues: |
Ok, I ran these test cases locally and everything passes on the nan-v2 branch of headless-gl. Unfortunately, I can't publish this yet since I am currently blocked by the following issue in nodejs/nan: |
Current status: tests and test-suite pass locally (albeit with some missing fill antialiasing) but fail in CI trying to compile the shaders:
|
@jfirebaugh That is super weird, it might be an ANGLE bug. I'll ping some of the devs on IRC and see if they know what is going on. |
Also, can you try pushing an instrumented version of the test case to CI so that it logs the contents of the shader program? Having this information would help solve this problem. |
https://circleci.com/gh/mapbox/mapbox-gl-js/1022 It's failing on the first shader to be compiled, the debug fragment shader. The source being compiled is:
|
Status update: work here is happening in the
https://circleci.com/gh/mapbox/mapbox-gl-js/1230 Digging in here will likely require either reproducing the error in a VM and debugging into native code to obtain more information about the failure, or instrumentation / better error reporting to headless-gl and rerunning on CircleCI. |
I wasn't able to get this to reproduce in circleCI when I tried it. One thing to check is that if you are destroying contexts when you are done with them, since relying on the GC to pick them up could cause problems. |
The error occurs on the first attempt to create a context, so leaking contexts is probably not the issue. I tried not updating the mesa version and the build got a lot further: |
Merged in 9bbc316. Filed some followup issues:
Thanks for headless-gl @mikolalysenko! |
This is huge! 🎉 |
Amazing, finally!!! Was stackgl/headless-gl#26 resolved or is it just not reproducible without mesa version upgrade? |
I think the issue was related to the mesa version. I couldn't get it to reproduce on my CircleCI instance, so the downgrade must've fixed it. |
Switch to https://github.com/stackgl/headless-gl for render tests
The text was updated successfully, but these errors were encountered: