<p>A couple weeks ago kylekrack reported:</p>
<p>kylekrack: So I'm encountering a weird bug on mac with Nightly 20190306 where using options like Test Game and Compile Scripts causes custom to freeze until I click the X to close out the program.<br>
kylekrack: Restarting Custom stops the problem<br>
kylekrack: It appears to have something to do with changing the scale/window size<br>
kylekrack: I can't replicate it consistently, though</p>
<p><a href="https://cdn.discordapp.com/attachments/429686966507012108/603329849913769985/ohrfreezebug.mov" rel="nofollow">https://cdn.discordapp.com/attachments/429686966507012108/603329849913769985/ohrfreezebug.mov</a></p>
<p>I think the blame is most likely with SDL 1.2, which has always had problems with spawning programs on Windows and Linux too, despite a lot of attempted workarounds.<br>
Modifying the window (resizing/changing zoom, fullscreening and toggling resizability) also cause possible key input problems in SDL 1.2, all call gfx_sdl_set_screen_mode which calls SDL_SetVideoMode which recreates the window, apparently possibly causing SDL's internal keyboard/mouse state to become inconsistent. The SDL 2 API is different, it has functions to do those things without recreating the window. Since kylekrack mentioned changing the window size, I'm very hopeful that gfx_sdl2 is the solution to this problem. In the last few days I've been working on getting gfx_sdl2 running on Mac, and hope that's the solution. (Not for Fulfuns, obviously.)<br>
I don't know whether the other spawning problems are fixed/better in SDL 2.</p>
<p>Aside, another possible source of problems is the way we spawn Game on Unix (popen/pclose : see bug <a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="477649318" data-permission-text="Issue title is private" data-url="https://github.com/ohrrpgce/ohrrpgce/issues/22" data-hovercard-type="issue" data-hovercard-url="/ohrrpgce/ohrrpgce/issues/22/hovercard" href="https://github.com/ohrrpgce/ohrrpgce/issues/22">#22</a>), but that's not used for HSpeak so can't be the problem here.</p>
<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/23?email_source=notifications&email_token=AMWGWZUOPBLGBQ6AJAGZB3TQDILZ3A5CNFSM4IJ3K642YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HDYNUXA">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AMWGWZUN3P4QB4C2BKMEVB3QDILZ3ANCNFSM4IJ3K64Q">mute the thread</a>.<img src="https://github.com/notifications/beacon/AMWGWZTTOHVWELRGVORE25LQDILZ3A5CNFSM4IJ3K642YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HDYNUXA.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/23?email_source=notifications\u0026email_token=AMWGWZUOPBLGBQ6AJAGZB3TQDILZ3A5CNFSM4IJ3K642YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HDYNUXA",
"url": "https://github.com/ohrrpgce/ohrrpgce/issues/23?email_source=notifications\u0026email_token=AMWGWZUOPBLGBQ6AJAGZB3TQDILZ3A5CNFSM4IJ3K642YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HDYNUXA",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>