Skip to content

Add destructors to some WebGL objects, remove duplicated glutin dependency and try to enable the webgl reftests - #8291

Merged
bors-servo merged 7 commits into
servo:masterfrom
emilio:webgl-drop
Nov 2, 2015
Merged

bors-servo merged 7 commits into
servo:masterfrom
emilio:webgl-drop

Conversation

@emilio

@emilio emilio commented Nov 1, 2015

Copy link
Copy Markdown
Member

The first commit allows to cleanup the gl resources of the webgl task earlier if they aren't being used.
Right now all resources were cleaned up when the context was destroyed, so I think this is
a slightly better approach.

The second commit bumps rust-offscreen-rendering-context to remove the duplicated glutin dependency.

The third one tries to reenable the webgl reftests.
Since the errored builds are deleted, It's the only way I can try to troubleshoot it.

Review on Reviewable

…buffer

This allows to cleanup resources earlier if they stop being used. Right
now all resources were cleaned up when the context was destroyed, this is
a slightly better approach.

We ignore the possible failure of the send() call, since we don't keep
track of these resources from the `WebGLRenderingContext` structure, so
a texture could be destroyed after the context and give us problems.
I can't reproduce locally the failure that produced them, and since the
builds that triggered them are deleted for some reason (like
http://build.servo.org/builders/linux-dev/builds/419), it could be a
good moment to troubleshoot it.

If merged closes servo#7931
@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Nov 1, 2015
@emilio

emilio commented Nov 1, 2015

Copy link
Copy Markdown
Member Author

r? @jdm

@emilio

emilio commented Nov 1, 2015

Copy link
Copy Markdown
Member Author

I don't know how the part of migrating tests to wpt/mozilla is going, probably should move them there instead of re-enabling them in test/ref?

@emilio

emilio commented Nov 1, 2015

Copy link
Copy Markdown
Member Author

@jdm I added two commits moving the reftests to mozilla/wpt. The 6 tests are passing for me, tell me if you want me to remove them though :)

@jdm jdm added S-awaiting-answer Someone asked a question that requires an answer. S-fails-tidy `./mach test-tidy` reported errors. and removed S-awaiting-review There is new code that needs to be reviewed. labels Nov 1, 2015
@jdm

jdm commented Nov 1, 2015

Copy link
Copy Markdown
Member

These changes basically look fine to me. We just need to fix the test-tidy errors and assuage my curiosity :)

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Nov 1, 2015
@emilio

emilio commented Nov 1, 2015

Copy link
Copy Markdown
Member Author

@jdm That just loads the gl symbols calling the corresponding API (glx/cgl/egl...). It does the same that the line you mentioned, but without creating a gl context itself. I did that just in order to not depend on a glutin context to load the symbols.

It's messy why we have a headless mode via feature and a headless mode via flag, and why they're handled differently, but...

@jdm jdm removed the S-awaiting-answer Someone asked a question that requires an answer. label Nov 1, 2015
@emilio

emilio commented Nov 1, 2015

Copy link
Copy Markdown
Member Author

I updated the PR so it should pass tidy now :)

@jdm jdm removed the S-fails-tidy `./mach test-tidy` reported errors. label Nov 1, 2015
@jdm

jdm commented Nov 1, 2015

Copy link
Copy Markdown
Member

@bors-servo: r+

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit 3a83f1b has been approved by jdm

@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels Nov 1, 2015
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 3a83f1b with merge ad29de7...

bors-servo pushed a commit that referenced this pull request Nov 1, 2015
Add destructors to some WebGL objects, remove duplicated glutin dependency and try to enable the webgl reftests

The first commit allows to cleanup the gl resources of the webgl task earlier if they aren't being used.
Right now all resources were cleaned up when the context was destroyed, so I think this is
a slightly better approach.

The second commit bumps rust-offscreen-rendering-context to remove the duplicated glutin dependency.

The third one tries to reenable the webgl reftests.
Since the errored builds are deleted, It's the only way I can try to troubleshoot it.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8291)
<!-- Reviewable:end -->
@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - android

@highfive highfive added S-tests-failed The changes caused existing tests to fail. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Nov 1, 2015
@jdm

jdm commented Nov 1, 2015

Copy link
Copy Markdown
Member
main.rs:57:9: 57:22 error: unresolved name `gl::load_with` [E0425]
main.rs:57         gl::load_with(|addr| GLContext::get_proc_address(addr) as *const _);
                   ^~~~~~~~~~~~~

@emilio

emilio commented Nov 1, 2015

Copy link
Copy Markdown
Member Author

Seems legit, for android servo omits it too (http://mxr.mozilla.org/servo/source/ports/glutin/window.rs#155)...

Maybe we're statically linking OpenGL there? In that case I'll omit it on android too

@emilio

emilio commented Nov 1, 2015

Copy link
Copy Markdown
Member Author

What's the linux buildbot environment like?

@jdm

jdm commented Nov 1, 2015

Copy link
Copy Markdown
Member

Did you see the stack trace from the other issue? We do have the ability to disable tests on particular platforms, too.

This new version shold prevent crashing on the linux buildbots.
@emilio

emilio commented Nov 1, 2015

Copy link
Copy Markdown
Member Author

Check this out, I think this might be the cause: servo/surfman@aae6e57

I find it really weird that it fails on XOpenDisplay with null as an argument (which opens the default display), but it's the only cause I could think of after seeing that stack trace.

May you do a try build? (the tests should still fail, but not segfaulting at least). I'm not sure why the X server reports that there's no display though.

@eefriedman

Copy link
Copy Markdown
Contributor

@bors-servo try

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Trying commit 641e54b with merge 68c767c...

bors-servo pushed a commit that referenced this pull request Nov 1, 2015
Add destructors to some WebGL objects, remove duplicated glutin dependency and try to enable the webgl reftests

The first commit allows to cleanup the gl resources of the webgl task earlier if they aren't being used.
Right now all resources were cleaned up when the context was destroyed, so I think this is
a slightly better approach.

The second commit bumps rust-offscreen-rendering-context to remove the duplicated glutin dependency.

The third one tries to reenable the webgl reftests.
Since the errored builds are deleted, It's the only way I can try to troubleshoot it.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8291)
<!-- Reviewable:end -->
@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - mac-rel-wpt

@highfive highfive added S-tests-failed The changes caused existing tests to fail. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Nov 1, 2015
@eefriedman

Copy link
Copy Markdown
Contributor

@emilio

emilio commented Nov 1, 2015

Copy link
Copy Markdown
Member Author

Still crashing on linux, now I have no damn idea about what's going on... The mac failure seems like an unrelated timeout, so I think we're fine disabling these tests on linux for now, if we can't do better debugging.

How would I disable a reftest for a given platform? I guess it should be something like if os != "linux" PASS, but I'm not totally sure.

@emilio

emilio commented Nov 1, 2015

Copy link
Copy Markdown
Member Author

BTW @eefriedman thanks for your help! :)

@highfive highfive removed the S-tests-failed The changes caused existing tests to fail. label Nov 2, 2015
@emilio

emilio commented Nov 2, 2015

Copy link
Copy Markdown
Member Author

@jdm Done :P

@jdm

jdm commented Nov 2, 2015

Copy link
Copy Markdown
Member

@bors-servo: r+

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit 8fff34e has been approved by jdm

@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels Nov 2, 2015
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 8fff34e with merge 3282174...

bors-servo pushed a commit that referenced this pull request Nov 2, 2015
Add destructors to some WebGL objects, remove duplicated glutin dependency and try to enable the webgl reftests

The first commit allows to cleanup the gl resources of the webgl task earlier if they aren't being used.
Right now all resources were cleaned up when the context was destroyed, so I think this is
a slightly better approach.

The second commit bumps rust-offscreen-rendering-context to remove the duplicated glutin dependency.

The third one tries to reenable the webgl reftests.
Since the errored builds are deleted, It's the only way I can try to troubleshoot it.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8291)
<!-- Reviewable:end -->
@bors-servo

Copy link
Copy Markdown
Contributor

☀️ Test successful - android, gonk, linux-dev, linux-rel, mac-dev-ref-unit, mac-rel-css, mac-rel-wpt

@bors-servo
bors-servo merged commit 8fff34e into servo:master Nov 2, 2015
@emilio
emilio deleted the webgl-drop branch November 2, 2015 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants