<p></p>
<p>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.</p>
<p>This is a <a href="https://bugzilla.libsdl.org/show_bug.cgi?id=5034" rel="nofollow">known bug in SDL 2.0.12</a> which <a href="https://hg.libsdl.org/SDL/rev/784ce9766fb9" rel="nofollow">has already been fixed in SDL hg</a> and will be in SDL 2.0.14, which should be <a href="https://libsdl.org/next.php" rel="nofollow">released soon</a>; there are just 3 out of 55 bugs left on their TODO list.</p>
<pre><code>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
</code></pre>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/ohrrpgce/ohrrpgce/issues/1175">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AMWGWZQFPBB5SA7D7O5JIRTSF3AJ7ANCNFSM4RMKYNIA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AMWGWZT2YVNTM7ZXYBKM7FTSF3AJ7A5CNFSM4RMKYNIKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4KOQT6JQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/ohrrpgce/ohrrpgce/issues/1175",
"url": "https://github.com/ohrrpgce/ohrrpgce/issues/1175",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>