Closed poke1024 closed 6 years ago
Oh, sorry, too much changed for this one but we should have a look a closing behavior again soon.
I'll see if I can find time to look at the new code and if is has any of the effects.
For the record, there were two separate problems:
(1) the core audio thread under macOS wasn't stopped on quit, i.e. a call to Kore::Audio2::shutdown();
was missing, and the thread crashed when accessing stuff that the main thread had already destroyed
(2) various V8 refs, that were not reset before quit, caused crashes in their shared ptr destructors (I don't remember details).
Krom switched from V8 to Chakra? Cool.
Aye. And debugging is finally working...
Fixes the crashes described in https://github.com/Kode/Krom/issues/76, which are due to:
Global
destructor running in the application shutdown afterexit()
, which crashes on macOSEDIT Tested on d14d0d66 (currently packaged KodeStudio version), since master doesn't work at all on macOS currently due to Metal issues. Works fine now on d14d0d66 though.