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

get_platform_display is NULL #20

Open
kvark opened this issue May 5, 2021 · 1 comment
Open

get_platform_display is NULL #20

kvark opened this issue May 5, 2021 · 1 comment

Comments

@kvark
Copy link

kvark commented May 5, 2021

I'm looking at https://github.com/gfx-rs/wgpu-rs/issues/898#issuecomment-832960682 right now. None of the arguments are NULL, and there is 0x0000000000000000 as the top of the call stack, so it must be jumping the function pointer being NULL. At the same time, we are dealing with egl.upcast::<egl::EGL1_5>() result - should it not guarantee that get_platform_display is valid?

See our code at https://github.com/gfx-rs/gfx/blob/f43b7df0b6d596f51994d412ad862467ccba0e6b/src/backend/gl/src/window/egl.rs#L295

@timothee-haudebourg
Copy link
Owner

There is definitely something wrong here... egl.upcast::<egl::EGL1_5>() checks that the loaded version is at least EGL1_5, which is detected during the load_required call by checking that every EGL 1.5 symbols are provided by the library. I also check that the function pointer returned by libloading is not null to be extra sure.

I haven't been able to reproduce the issue, the upcast function seems to be working fine on my side.

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

2 participants