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

Apparent race condition in initialization of GL stack #59

Closed
joneschrisg opened this issue Nov 15, 2011 · 7 comments
Closed

Apparent race condition in initialization of GL stack #59

joneschrisg opened this issue Nov 15, 2011 · 7 comments

Comments

@joneschrisg
Copy link
Collaborator

CC @mwu, @jlebar, @shianyow

@mwu and @jlebar have noticed a problem in the gonk widget backend in which gecko can't draw to the screen after startup, leaving a black screen. I've noticed a problem with the android widget backend in which gecko sometimes fails to create a GL layer manager, and has to fall back on CPU compositing (which destroys performance of the home screen).

They sound like they might both be caused by the same underlying problem: failure to create a GL context around the time of startup, possibly due to a race condition. I don't know what might cause this. It'd be interesting to look at the android GL implementation and see what it does. It might have a solution to this problem already.

@michaelwu
Copy link
Collaborator

I worked around this problem by disabling the addons manager. Apparently the addons manager does something which causes a black screen, but only if the addons code hasn't been startup cached.

@joneschrisg
Copy link
Collaborator Author

Um ... wow. So maybe this affects firefox/android too?

@jlebar
Copy link
Contributor

jlebar commented Nov 15, 2011

The fix has worked perfectly for me so far, fwiw.

@michaelwu
Copy link
Collaborator

Fennec on android with the xul frontend.. maybe. Not sure what's going on really.

@michaelwu
Copy link
Collaborator

I fixed some window visibility/invalidation/drawing issues in gonk. Now I don't have any issues with black screens. Can someone confirm? The addons manager must've triggered some sort of race that the code couldn't handle before.

@jlebar
Copy link
Contributor

jlebar commented Nov 15, 2011

I'll let you know how it goes next time I rebuild and push, but it'll
be in a day or two.

On Tue, Nov 15, 2011 at 1:59 PM, Michael Wu
reply@reply.github.com
wrote:

I fixed some window visibility/invalidation/drawing issues in gonk. Now I don't have any issues with black screens. Can someone confirm? The addons manager must've triggered some sort of race that the code couldn't handle before.


Reply to this email directly or view it on GitHub:
#59 (comment)

@joneschrisg
Copy link
Collaborator Author

Since this only affects the b2g-android backend, it's low priority atm.

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

No branches or pull requests

3 participants