Open teddyos opened 9 months ago
@teddyfullstack Hi, I downloaded the (M1) IDE from https://mini.zalo.me/devtools, but I can not reproduce the error you showed on the issue.
Is this an issue on a specific computer model? It looks like some native environment is not completed.
Is this an issue on a specific computer model?
Yes, it is!
It looks like some native environment is not completed.
Can you elaborate more on this? What could be the causes and how to fix them? Thanks!
You can double check where the Node.js native addon was used and check if it has been called multiple times.
There was no native module usage in our codebase. I believe the @opensumi framework uses them under the hood. The only occurrence of these native module addons is in https://github.com/opensumi/ide-electron/blob/dcec2d74f87283cfe4e60e6f987c4a1c1ab42472/scripts/rebuild-native.js#L7C1-L13C3!
this happened on opensumi: https://github.com/opensumi/core/actions/runs/8632026472/job/23661691843?pr=3521
libc++abi: terminating with uncaught exception of type std::__1::system_error: mutex lock failed: Invalid argument 69 Error: Process completed with exit code 1.
ref:
描述你的问题(Describe the bug)
Our IDE is built on top of the OpenSumi framework, the electron-ide template. On Mac M1, the IDE could not start because of this error:
[node]libc++abi.dylib: terminating with uncaught exception of type std::__1::system_error: mutex lock failed: Invalid argument
复现路径(To Reproduce)
Steps to reproduce the behavior:
/Applications/Zalo\ Mini\ App\ Studio.app/Contents/MacOS/Zalo\ Mini\ App\ Studio
预期表现(Expected behavior)
The IDE launches successfully without mutex errors:
环境信息(Environment)
Thank you!