Thank you very much for the crash report !
There is indeed something fishy happening between snapshot taking and the file selector, due to the fact the latter gets redrawn during the snapshot it triggers when you choose a file: even under Linux, when using the RETURN key instead of the OK button (or a double-click on a file), I get a black snapshot image... But under macOS, due to how the draw loop is handled under this OS, it causes an infinite loop instead (and a crash after the return stack has filled up to the brim) !
I changed the way the RETURN key callback is dealt with, and how the file selector gets closed to avoid any other such issues in the future (the file selector is now hidden on any selection method type, and is actually closed at the next idle loop only, which cannot happen during UI redrawing).
Here is a patch you could test on your side to let me know if it also fixes things for you (and macOS):