-
Notifications
You must be signed in to change notification settings - Fork 15.7k
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]: DevTools performance profile lead to crash (or Renderer crash) on Apple M1 MacOS BigSur 11.3.1 #29627
Comments
Does this problem happen on later versions >= 12? |
Please attach a crash dump. You can collect them by adding the following snippet to your main process code, before app.whenReady: const { app, crashReporter } = require('electron')
console.log(app.getPath('crashDumps'))
crashReporter.start({ submitURL: '', uploadToServer: false }) Then reproduce the crash, zip up the crash dumps directory and attach it here. |
checked on Electron 12.0.9
from electron logs (--enable-logging v1):
|
SetupHeap is a mislabeling of the address. Please attach a crash dump, using the instructions in #29627 (comment) |
hi - tryed with 11.4.1 - unfortunately - no luck with crashpad - chrome_crashpad_handler didnt capture any crash dump. i see that chrome_crashpad_handler launched right after App started and closed after crash, but no dumps 🤷♂️ |
Hm, that's worrisome! Can you try out this super simple repo just to make sure we're testing the same thing? https://gist.github.com/nornagon/d3d4f440a83eca642b076f28a12d8d10 Instructions:
It should list a |
@nornagon - followed your instruction - no luck: |
nothing in |
yep. all folders are empty. Probably there is separate issue with Crashpad on M1 - but it outside of my topic issue from topic is really important - it blocks me from investigating performance issues. Even more - i tryed to capture trace via CDP(ChromeDevToolsProtocol) client - same issue - |
@blaadje / @nbashkankov can you confirm that you're using the arm64 version of Electron on the M1 and not the x64 version under emulation? |
Nope - i use only x64 version under emulation |
Do you have the same issue when using the arm64 version? It's useful to know that this is specific to the emulated version! |
i checked Tracing capture with Chrome Version 91.0.4472.106 (Official Build) (arm64) - works ok - without crashing. @nornagon can you please guide what the shortest way for getting arm build of Electron? |
@nbashkankov all Electron releases since 11.x have arm64 versions. |
Hello @nornagon
Looks like its not true:
index.js:
second: it crashed (if not you can try to scroll for a while and it will!!
so again issue with invalid msg-header Same for Electron 12.0.12: and its not ARM again!!!
|
Hm, weird. @MarshallOfSound do you have any thoughts as to why |
If you're using an x64 version of node it will download an x64 version of Electron. Run You can force the arm64 download with |
@MarshallOfSound - yep you right - i am using Node 12.22.1 - its x64 (afaik official arm build is v16). with npm_config_arch=arm64 npm install - i got ARM version of Electron (11.4.2) - Tried my snippet with tracing - and all works without any crash and trace events are successfully collected after 30 seconds. But, when i did recording manually with just webContents.openDevTools() (and do scroll for about 10-30 second) - Renderer just frozen - when i press "Stop" DevTools just hangs out on - i double checked - its ARM version @nornagon repeated it twice in a row - looks like there something more than just issue with emulation. |
@nornagon @MarshallOfSound - any news here about why Tracing capture leads to crash? |
Any progress? |
Is there a crash happening, or is the renderer frozen? If the latter, please collect a sample of the frozen process and attach the complete output here. |
Any progress? :) |
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment! |
This issue has been closed due to inactivity, and will not be monitored. If this is a bug and you can reproduce this issue on a supported version of Electron please open a new issue and include instructions for reproducing the issue. |
Preflight Checklist
Electron Version
7.2.1, 11.4.2
What operating system are you using?
macOS
Operating System Version
11.3.1
What arch are you using?
x64
Last Known Working Electron version
N/a
Expected Behavior
Open DevTools-> Performance tab -> press "Capture"
Tracing starts capturing without crasing Renderer or Full Application.
Actual Behavior
There are different behavior on various electron version:
Electron 7.2.1 - Only Renderer process gone with WSOD - issue is floating - sometimes renderer crash/sometimes not (cant find pattern)
[ERROR:platform_shared_memory_region_mac.cc(230)] mach_vm_map: (ipc/send) invalid msg-header (0x10000010)
after that error Renderer on which Capture was started are crashed, rest of Application (Main and other processes works ok)
Electron 11.4.2 - Right after Capture press - whole App freezing - and later App crash with MacOS report:
sometimes i see this error:
sometimes this:
both cases for Electrons 11 has in common issue after SetupIsolateDelegate::SetupHeap(v8::internal::Heap*)
Testcase Gist URL
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: