ClearScript icon indicating copy to clipboard operation
ClearScript copied to clipboard

Create instance of V8ScriptEngine crashes on macOS x64 NET 7.0

Open dany28 opened this issue 3 years ago • 2 comments

Reopen #343

Packages

  <ItemGroup>
    <PackageReference Include="Microsoft.ClearScript.V8" Version="7.3.7" />
    <PackageReference Include="Microsoft.ClearScript.V8.Native.win-x64" Version="7.3.7" />
    <PackageReference Include="Microsoft.ClearScript.V8.Native.osx-x64" Version="7.3.7" />
  </ItemGroup>

System: macOS Ventura 3.2.1 Processor: x64

Code:

var engine = new Microsoft.ClearScript.V8.V8ScriptEngine();

Runtime error:

12 == (*__error()).

Fix: After installing net5.0 the problem disappears

dany28 avatar Feb 15 '23 23:02 dany28

Hi @dany28,

This looks like a duplicate of Issue #483. Please see here for an explanation and workarounds.

Good luck!

ClearScriptLib avatar Feb 16 '23 05:02 ClearScriptLib

Suggestion: https://github.com/microsoft/ClearScript/issues/483#issuecomment-1419248600

works for me

Thanks.

dany28 avatar Feb 16 '23 07:02 dany28