-
Notifications
You must be signed in to change notification settings - Fork 15k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Apple Silicon 11.x web assembly fails to load #27497
Comments
I can confirm this, it’s currently preventing my team from releasing a darwin-arm64 build of an electron app to customers. |
+1. This is currently an issue as described above on the Apple DTK, FWIW. |
There were two issues with loading wasm in Electron on mac arm64
So depending on your use case, you might have to pick the version. |
@deepak1556 I have tried v11.3.0, but still crash, this issue is not exists in the Electron 12 betas. |
I can confirm that this is not fixed in |
Please solved and recovery my account
…On Tue, 23 Feb 2021, 10:58 pm Jupp Mueller, ***@***.***> wrote:
I can confirm that this is not fixed in v11.3.0 but is fixed in
v12.0.0-beta.26.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#27497 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AS53RZRU7U6NF6JMBKA3WZLTAPNEFANCNFSM4WT77FEQ>
.
|
@Serena-zlh @jupp0r can you provide the crash report generated with const { crashReporter, app } = require('electron')
crashReporter.start({
submitURL: "https://example.com",
uploadToServer: false,
})
console.log(`Crash dumps directory: ${app.getPath('crashDumps')}`) |
Identifier: Electron Helper (Renderer) Date/Time: 2021-02-24 17:27:23.876 +0800 Sleep/Wake UUID: FF05B57F-78D9-48EB-969D-0B1429F53138 Time Awake Since Boot: 140000 seconds System Integrity Protection: enabled Crashed Thread: 0 CrRendererMain Dispatch queue: com.apple.main-thread Exception Type: EXC_CRASH (SIGABRT) Application Specific Information: Thread 0 Crashed:: CrRendererMain Dispatch queue: com.apple.main-thread |
Thanks that would be https://bugs.chromium.org/p/chromium/issues/detail?id=1150060 , is the renderer helper codesigned with |
@deepak1556 I ran |
You need to sign the renderer with the above mentioned entitlement otherwise |
@deepak1556 App crashed during local development, just run |
Yes on the M1 device you need to sign the helper even in development for electron 11.x to avoid the crash. This is a workaround for when |
A colleague tried both |
@KishanBagaria what is the output of |
@deepak1556 On my x64 Mac: $ codesign -d --entitlements :- "node_modules/electron/dist/Electron.app/Contents/Frameworks/Electron Helper (Renderer).app"
Executable=$PROJECT_DIR/node_modules/electron/dist/Electron.app/Contents/Frameworks/Electron Helper (Renderer).app/Contents/MacOS/Electron Helper (Renderer) Will get back with the arm64 Mac output. |
Seems to work fine on arm64 Mac after running |
This issue seems to have been fixed at some point. Was not able to reproduce this crash on macOS 12.3.1 (M1 Max, so arm64), with Electron 19.0.0-alpha.1 (likely was fixed before this, I just happened to have this version selected in fiddle). Further, the code worked as expected. Updated test gist: https://gist.github.com/clavin/92bd14a3078274ac731048402fd580ac I'll close this now since it seems to have resolved itself. 🙂 |
Preflight Checklist
Issue Details
Expected Behavior
Web Assembly should work or at the very least throw a relevant error message
Actual Behavior
Creating a new WebAssembly.Module instance causes a complete loading failure of electron and does not provide any sort of relevant error message.
To Reproduce
Electron Fiddle with gist https://gist.github.com/34ba76d876169d5a101362f47451fba3
Additional Information
This only fails on 11.x on the m1 chip.
This is likely a node issue according to dcodeIO/long.js#95
The text was updated successfully, but these errors were encountered: