You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe the problem is that src/cocoa_joystick.m line 280 is not checking for a possible NULL return value from IOHIDDeviceGetProperty. Then NULL is passed to CFStringGetCString which crashes. I've found reports of other applications crashing with this symptom when NULL is passed to that function. When I unplug the game pad, glfwInit() runs successfully.
I'd submit a pull request but I can't test this first since I can't get glfw3 to link on my machine.
I am experiencing a segmentation fault inside of GLFW version
3.1.2
. All that is required to trigger this for me is to:glfwInit()
I believe the problem is that
src/cocoa_joystick.m
line 280 is not checking for a possibleNULL
return value fromIOHIDDeviceGetProperty
. ThenNULL
is passed toCFStringGetCString
which crashes. I've found reports of other applications crashing with this symptom whenNULL
is passed to that function. When I unplug the game pad,glfwInit()
runs successfully.I'd submit a pull request but I can't test this first since I can't get glfw3 to link on my machine.
For completeness, here is the call stack:
The text was updated successfully, but these errors were encountered: