Kode / Krom

Other
97 stars 23 forks source link

Fixes crashes on quitting #77

Closed poke1024 closed 6 years ago

poke1024 commented 6 years ago

Fixes the crashes described in https://github.com/Kode/Krom/issues/76, which are due to:

EDIT 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.

RobDangerous commented 6 years ago

Oh, sorry, too much changed for this one but we should have a look a closing behavior again soon.

poke1024 commented 6 years ago

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.

RobDangerous commented 6 years ago

Aye. And debugging is finally working...