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

[examples] core_input_gamepad crashes with EXC_BAD_ACCESS (SIGSEGV) #2122

Closed
lukekras opened this issue Nov 9, 2021 · 1 comment
Closed

Comments

@lukekras
Copy link
Contributor

lukekras commented Nov 9, 2021

Issue description

Running example/core/core_input_gamepad example program crashes with a EXC_BAD_ACCESS (SIGSEGV) when one disconnects the USB cable. This is mostly due to minimal error checking in the core_input_gamepad example code. Disconnecting the gamepad is a reasonable thing to do, and there is an opportunity in raylib to avoid this scenario (see PR #2121 that I've put a fix in).

Environment

Macbook Pro, macOS Big Sur Version 11.6 Intel, OpenGL ES 3.0 Renderer: Intel(R) Iris(TM) Plus Graphics 650

Issue Screenshot

sigsegv.pdf

Code Example

I've raised a PR #2121 with a fix.

@raysan5
Copy link
Owner

raysan5 commented Nov 9, 2021

@lukekras Merged and reviewed!

@raysan5 raysan5 closed this as completed Nov 9, 2021
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