gkngkc / UnityStandaloneFileBrowser

A native file browser for unity standalone platforms
MIT License
2.01k stars 317 forks source link

Exceptions thrown results of Async methods crash the Editor on Mac #18

Open XPav opened 6 years ago

XPav commented 6 years ago
StandaloneFileBrowser.OpenFilePanelAsync("Test", "", "", false, (string[] paths) =>
{
    throw new Exception("UNHANDLED");
});

This is using MonoBleedingEdge, but any exception thrown from there will kill the Editor or the Standalone player on Mac. Does not crash on PC.

gkngkc commented 6 years ago

Hi,

Probably it was an issue with dispatch_async(), looks like 636db994a57b51ccb48e699b21086bd700ea1faf fixes this