powervr-graphics / Native_SDK

C++ cross-platform 3D graphics SDK. Includes demos & helper code (resource loading etc.) to speed up development of Vulkan, OpenGL ES 2.0 & 3.x applications
https://docs.imgtec.com/sdk-documentation/html/introduction.html
MIT License
710 stars 202 forks source link

eglGetDisplay function crashes on OSX #21

Closed ghost closed 5 years ago

ghost commented 6 years ago

When I run the demo, it crash: image

This function works well on OSX 10.12.6, but crashes on OSX 10.13.1.

senthuran-ukr commented 6 years ago

Hi thank you for reporting the issue. It seems like the function pointer is null. Can you provide us the full log please, which you can copy from the xcode output window. Also have you tried other examples from the sdk? do they have the same problem for OSX 10.13.1.

wang-bin commented 6 years ago

Same crash here. 4.3 sdk and other EGL implementations on macOS works fine

#0 0x7fff6ca82ded in strstr (libsystem_c.dylib:x86_64+0x5aded)
#1 0x10fe4ba8f in wrap_strstr (libclang_rt.asan_osx_dynamic.dylib:x86_64h+0x17a8f)
#2 0x11bbf3aa5 in host::CapabilityChecker::supports_extension(char const*) const (libEGL.dylib:x86_64+0xadaa5)
#3 0x11bbd8a39 in egl::State::send_system_report() (libEGL.dylib:x86_64+0x92a39)
#4 0x11bbd865e in egl::State::initialize() (libEGL.dylib:x86_64+0x9265e)
#5 0x11bbd843d in egl::initialize_global_state() (libEGL.dylib:x86_64+0x9243d)
#6 0x11bbd42d2 in eglGetDisplay (libEGL.dylib:x86_64+0x8e2d2)
bin-zhao commented 5 years ago

Is this issue fixed? I encounter the same problem, and my system version is 10.13.3 (17D47).

senthuran-ukr commented 5 years ago

we are looking in to this issue.

senthuran-ukr commented 5 years ago

Hi thankyou for reporting the issue. It seems like it is to do with our emulation library bug and it is fixed now. Please get the latest changes. I'll close this issue.