https://bugs.winehq.org/show_bug.cgi?id=39023
--- Comment #23 from Ken Thomases ken@codeweavers.com --- Created attachment 52364 --> https://bugs.winehq.org/attachment.cgi?id=52364 Check IOHIDDeviceGetValue() result before using returned value object
Can you please build with this patch and see if it fixes the crash. Also, check whether the controller works properly.
Whether it does or doesn't, please collect a +tid,+seh,+dinput log. I've added some logging for the case where it had been crashing and I'm curious to know what error IOKit is returning when it fails to return a value object.
Basically, the code calls IOHIDDeviceGetValue() for a particular element of the device to get a value object. It then calls IOHIDValueGetIntegerValue() to get the numeric value from that object. It seems the first call was failing and the code didn't check for that. So, when it did the next call, that blew up. But really, I don't know of a good reason why the first call would fail.
Thanks!