[Ohrrpgce] [ohrrpgce/ohrrpgce] Mac/gfx_sdl2: crash when unplugging and replugging a controller (#1175)

Ralph Versteegen notifications at github.com
Mon Sep 14 18:36:31 PDT 2020


When using a gfx_sdl2 build on macOS 10.14 and earlier, unplugging and replugging in a game controller causes a crash "reliably", and a different rarer crash on later macOS. Reported by Ravancloak.

This is a [known bug in SDL 2.0.12](https://bugzilla.libsdl.org/show_bug.cgi?id=5034) which [has already been fixed in SDL hg](https://hg.libsdl.org/SDL/rev/784ce9766fb9) and will be in SDL 2.0.14, which should be [released soon](https://libsdl.org/next.php); there are just 3 out of 55 bugs left on their TODO list.

```
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   com.apple.CoreFoundation      	0x00007fff3633f94f CFEqual + 607
1   com.apple.framework.IOKit     	0x00007fff38bbc820 IOHIDDeviceUnscheduleFromRunLoop + 22
2   org.libsdl.SDL2               	0x000000010035dfc1 0x1002ab000 + 733121
3   org.libsdl.SDL2               	0x000000010035deb6 0x1002ab000 + 732854
4   com.apple.framework.IOKit     	0x00007fff38bbf4b8 __IOHIDManagerDeviceApplier + 158
5   com.apple.framework.IOKit     	0x00007fff38bc05d1 __IOHIDManagerDeviceAdded + 341
6   com.apple.framework.IOKit     	0x00007fff38b90a25 IODispatchCalloutFromCFMessage + 182
7   com.apple.CoreFoundation      	0x00007fff363aeb7b __CFMachPortPerform + 347
8   com.apple.CoreFoundation      	0x00007fff363aea09 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 41
9   com.apple.CoreFoundation      	0x00007fff363ae955 __CFRunLoopDoSource1 + 533
10  com.apple.CoreFoundation      	0x00007fff363a66e0 __CFRunLoopRun + 2848
11  com.apple.CoreFoundation      	0x00007fff363a5927 CFRunLoopRunSpecific + 487
12  org.libsdl.SDL2               	0x000000010035d2d0 0x1002ab000 + 729808
13  org.libsdl.SDL2               	0x0000000100363597 0x1002ab000 + 755095
14  org.libsdl.SDL2               	0x0000000100346114 0x1002ab000 + 635156
15  ohrrpgce-custom               	0x000000010017b769 update_state + 9
16  ohrrpgce-custom               	0x000000010017b89c present_internal2 + 252
17  ohrrpgce-custom               	0x000000010017baa7 present_internal + 183
18  ohrrpgce-custom               	0x000000010017bdcd gfx_sdl2_present + 61
19  ohrrpgce-custom               	0x0000000100180edd PRESENT_INTERNAL_FRAME + 77
20  ohrrpgce-custom               	0x00000001001a16c5 SETVISPAGE + 1253
21  ohrrpgce-custom               	0x00000001000b2977 MAIN_EDITOR_MENU + 2295
22  ohrrpgce-custom               	0x00000001002038cd main + 8029
23  ohrrpgce-custom               	0x0000000100001c94 start + 52
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/ohrrpgce/ohrrpgce/issues/1175
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.motherhamster.org/pipermail/ohrrpgce-motherhamster.org/attachments/20200914/9b296ba9/attachment.html>


More information about the Ohrrpgce mailing list