Kode/Kore

Trying to use `krafix_compile`in a thread crashes on mac os

Closed this issue · 1 comments

Describe the bug
I call krafix_compile from a thread, triggered by an event, which crashes the app when running it on mac os.

To Reproduce
I made a small repo to reproduce the crash here

Expected behavior
I tested the same on LInux and Windows where the same works with no crash.

Screenshots
Screenshot 2023-02-24 at 00 43 32

Execution Environment:

  • Host system (where you compile your code): macOS 13.2.1 (x64)
  • Target system (where you run your code): same
  • IDE and/or compiler used: Xcode Version 14.2 (14C18)
  • Kinc revision: 980011d
  • Kinc build output: See this
  • Application output (if it runs): N/A

Additional context
It works as expected when krink_compile is called on the main thread.

Fixed by 03d9968.