unity-jsb icon indicating copy to clipboard operation
unity-jsb copied to clipboard

DllNotFoundException

Open aleverdes opened this issue 2 years ago • 4 comments

Error when opening and running a project from the master branch of the repository.

macOS 12.3.1 (21E258) Unity 2021.3.1f1

DllNotFoundException: quickjs assembly:<unknown assembly> type:<unknown type> member:(null)
QuickJS.Native.JSApi..cctor () (at Packages/cc.starlessnight.unity-jsb/Source/Native/JSApi.cs:711)
Rethrow as TypeInitializationException: The type initializer for 'QuickJS.Native.JSApi' threw an exception.
QuickJS.ScriptEngine.CreateRuntime (System.Boolean isEditorRuntime) (at Packages/cc.starlessnight.unity-jsb/Source/ScriptEngine.cs:223)
QuickJS.Unity.EditorRuntime.OnEditorInit () (at Packages/cc.starlessnight.unity-jsb/Source/Unity/Editor/EditorRuntime.cs:188)
UnityEditor.EditorApplication.Internal_CallDelayFunctions () (at /Users/bokken/buildslave/unity/build/Editor/Mono/EditorApplication.cs:371)

aleverdes avatar May 06 '22 09:05 aleverdes

The same for 2019.4.38f1 and with the project taken from release 1.7.2

aleverdes avatar May 06 '22 09:05 aleverdes

OK, I'll check it.

ialex32x avatar May 07 '22 02:05 ialex32x

Hi @aleverdes , I've tried but couldn't reproduce this issue on Unity 2021.3 (INTEL) + macos 12.3.1 with M1 chip. Could you give more details about your environment?

And check the output of the macos quickjs library with this command: file YourLocalPath/Packages/cc.starlessnight.unity-jsb/Plugins/quickjs.bundle/Contents/MacOS/quickjs It should output:

quickjs: Mach-O universal binary with 2 architectures: [x86_64:Mach-O 64-bit bundle x86_64
- Mach-O 64-bit bundle x86_64] [arm64]

ialex32x avatar May 07 '22 13:05 ialex32x

@ialex32x Hello. Okay, I'll provide all the information I can gather later.

aleverdes avatar May 11 '22 12:05 aleverdes