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

Android thread panic in gleam caused by "no more slots for eglGetProcAddress" #4831

Closed
mbrubeck opened this issue Feb 4, 2015 · 2 comments
Closed

Comments

@mbrubeck
Copy link
Contributor

@mbrubeck mbrubeck commented Feb 4, 2015

After various recent upgrades, Android was panicking on startup due to GL function pointers failing to load (#4824). We addressed this in #4830 by calling get_proc_address on Android like we do on desktop platforms, and this appears to work on some Android devices, but it fails on my Android 4.1 tablet with tegra graphics:

...
E/libEGL  ( 2001): no more slots for eglGetProcAddress("glWindowPos3sv")
E/libEGL  ( 2001): no more slots for eglGetProcAddress("glWindowPos3svARB")
E/libEGL  ( 2001): no more slots for eglGetProcAddress("glWindowPos3svMESA")
D/RustAndroidGlueStdouterr( 2001): thread '<unnamed>' panicked at '`ShaderSource` was not loaded', /home/mbrubeck/src/android-servo/components/servo/target/arm-linux-androideabi/build/gleam-d3837506b4549386/out/gl_bindings.rs:25330

Apparently this Android has a small fixed number of slots for eglGetProcAddress, so we can't use it to dynamically load every GL function. We need to investigate why static binding isn't working.

@mbrubeck
Copy link
Contributor Author

@mbrubeck mbrubeck commented Feb 9, 2015

Once we land servo/rust-layers#148 and servo/gleam#12 we can revert #4830, and this issue will be fixed.

@mbrubeck mbrubeck self-assigned this Feb 9, 2015
@mbrubeck
Copy link
Contributor Author

@mbrubeck mbrubeck commented Mar 4, 2015

Fixed during the latest rust upgrade.

@mbrubeck mbrubeck closed this Mar 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.