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
[Bug]: Mac M1 crashes on launch #35355
Comments
Full crash log attached: |
Would it be possible for you to make a standalone testcase with only the code necessary to reproduce the issue? For example, Electron Fiddle is a great tool for making small test cases and makes it easy to publish your test case to a gist that Electron maintainers can use. Stand-alone test cases make fixing issues go more smoothly: it ensure everyone's looking at the same issue, it removes all unnecessary variables from the equation, and it can also provide the basis for automated regression tests. I'm adding the blocked/need-repro label for this reason. After you make a test case, please link to it in a followup comment. Thanks in advance! |
I'm having the same issue but I dont have M1 chip to test - this is from my co-workers macbook on electron 20 - downgrading back to 19 fixes issue.
|
I believe users of my app have been hit with this too. |
@paninaro @vgrbr @sircharlo can y'all come up with a minimal repro as @VerteDinde suggested? I don't think there's much we can do without that. |
I unfortunately don't own an M1 Mac, therefore I can't really test this.. 🙁 |
+1, the same crash on M1 mac |
@RaisinTen Unfortunately I don't have an M1 to test with. |
I just tried to run the latest 20 (20.0.3) on Electron Fiddle, and then both in a packaged version of an app on M1 and from an installer DMG, using Electron Forge. I haven't been able to hit this crash on M1 yet 🤔 For those folks affected (@paninaro, @vgrbr, @sircharlo, @poisonReact), do you all use any native modules in your apps that we could look at, or does your app take any specific actions during startup? Those might be two paths we could investigate. |
I saw some changes to The first lines of my code are:
Perhaps something to do with |
Hi I've encountered a similar issues as well after upgrading from electron 19 to 20, M1 builds will crash In my case it seems to have been linked to the mac entitlements and removing the entitlement files seems to create a valid executable. I suspected it is an issue with the electron-builder but now it seems to be an electron issue after all. This is a link to a repro gist https://gist.github.com/idanwork/b5ce9b6af0b2ac944c387cc2e9f67673 |
@idanwork thank you for working on the repro gist but I'm not getting the crash on my M1 MBP. This seems to be a widespread issue judging by how many users this has affected already. So until someone finds a reliable minimal repro, I wonder if everyone of us in this thread can get on a call to find a reliable way to reproduce this issue on all our systems. Then we could brainstorm on possible root causes and ultimately come up with a potential fix. Wdyt? |
After further investigation, I've found that in my case the issue is not limited to M1 Macs, and is related to something else completely. Accordingly, I've reported a new bug here: #35403 |
@RaisinTen |
I ran into the same issue and found that adding the
This is in the Electron docs at https://www.electronjs.org/docs/latest/tutorial/code-signing#signing--notarizing-macos-builds but didn't seem to be necessary before Electron 20. |
Assuming that ^ was the correct fix (I didn't get time to verify locally yet), can we close this issue now since this info has been added to the electron-builder documentation already - electron-userland/electron-builder#7097? |
I'm closing this issue based on @RaisinTen's suggestion. If this is in error and this is an |
Preflight Checklist
Electron Version
20.0.2
What operating system are you using?
macOS
Operating System Version
12.4
What arch are you using?
arm64 (including Apple Silicon)
Last Known Working Electron version
19.0.10
Expected Behavior
Application launches without crashing
Actual Behavior
Seeing this crash when launching our app on M1 Macs. This started happening after updating to Electron 20.0.2 -- 19.0.10 was working fine.
Testcase Gist URL
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: