gfx-rs / gfx

[maintenance mode] A low-overhead Vulkan-like GPU API for Rust.
http://gfx-rs.github.io/
Apache License 2.0
5.35k stars 549 forks source link

Crash in eglCreatePlatformWindowSurface #3588

Closed kvark closed 3 years ago

kvark commented 3 years ago

Getting a crash in eglCreatePlatformWindowSurface when running the quad example. This isn't a huge blocker, since the platform supports Vulkan, but a good thing to fix nevertheless.

Short info header:

#0  0x00007fffea4d4e41 in ?? () from /usr/lib/libEGL_nvidia.so.0
#1  0x00007fffea4677e4 in ?? () from /usr/lib/libEGL_nvidia.so.0
#2  0x000055555571739f in <khronos_egl::Dynamic<L> as khronos_egl::Api>::eglCreatePlatformWindowSurface (self=0x555556705340, display=0x55555675cd80, config=0xcaf350, native_window=0x5200003, 
    attrib_list=0x5555567d0760) at /home/kvark/.cargo/git/checkouts/khronos-egl-96ea0eb5fe3f44af/9568b2e/src/lib.rs:1601
#3  khronos_egl::Instance<T>::create_platform_window_surface (self=0x555556705340, display=..., config=..., native_window=0x5200003, attrib_list=...)
    at /home/kvark/.cargo/git/checkouts/khronos-egl-96ea0eb5fe3f44af/9568b2e/src/lib.rs:1427
#4  0x00005555556bd095 in <gfx_backend_gl::window::egl::Instance as gfx_hal::Instance<gfx_backend_gl::Backend>>::create_surface (self=0x7fffffffd2b0, has_handle=0x7fffffffcfa0)
    at /mnt/code/gfx/src/backend/gl/src/window/egl.rs:382
#5  0x00005555556f7515 in quad::main () at examples/quad/main.rs:120