-
Notifications
You must be signed in to change notification settings - Fork 15.1k
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
Electron crashes during OSX sleep / wakeup #24135
Comments
I've also observed this in other versions of Electron. |
The last PR to touch this code was #19016 by @MarshallOfSound, though that was to fix an issue on Windows. I'm not really sure which bit is segfaulting though. |
@nornagon that invokes
which then calls |
The stack trace is in OnDisplayAdded, not in Screen::Emit. I don’t think
`this` is dereferenced in OnDisplayAdded.
…On Tue, Jun 16, 2020 at 08:00 Shelley Vohr ***@***.***> wrote:
@nornagon <https://github.com/nornagon> that invokes
void Screen::OnDisplayAdded(const display::Display& new_display) {
base::ThreadTaskRunnerHandle::Get()->PostNonNestableTask(
FROM_HERE, base::Bind(&DelayEmit, base::Unretained(this), "display-added",
new_display));
}
which then calls screen->Emit(name, display) so my guess is probably that
|this| is gone?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#24135 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABKGAFMVU4PQCRDNSBBW7LRW6CKPANCNFSM4N6MIJPQ>
.
|
Also to note, there is no usage of Screen events API (https://www.electronjs.org/docs/api/screen) in the app. |
We're potentially seeing the same issue in our app, on Electron 7.3.1. I just tried upgrading to Electron 8.4.1 to see if that fixes it. Multiple engineers on our team have seen it while their laptop is sleeping while connected to an external display. It's happened multiple times overnight to me when I left my Macbook Pro hooked up to a 4k monitor via USB-C/Thunderbolt 3. I'm going to test more tomorrow with an extra laptop and external display. This has been difficult to track down because our app uses @sentry/electron for crash/minidump reporting. Crashes are usually reported to Sentry (i.e. Thanks for the work you put into Electron. It's enabled us to build things we never could have built before. 🙏 |
@sentry/electron has a custom crash uploading system. They bypass crashpad's uploader, so they'll only upload crashes later. |
@aguynamedben did upgrading to 8.4.1 address the issue? |
Looks like this issue is still present with E9, just got a report in vscode for the same trace microsoft/vscode#108860 |
I'm readily able to reproduce this with both VisualStudioCode and Microsoft teams but I'm not a developer on either App so I can't readily debug this issue. Is anyone looking into this? |
FWIW from looking at Slack's internal crash metrics, the highest Electron version we've observed this crash on is 9.0.5. We've been shipping Electron 10 in prod for a long time, so I'm confident that this has been fixed in some version newer than v9.0.5. |
Preflight Checklist
Issue Details
To Reproduce
Sometimes electron crashes somewhere between sleep and wakeup on OSX. Possibly related to having multiple displays.
Additional Information
Original crash dump:
electron.crash.zip
Decoded native stack trace:
The text was updated successfully, but these errors were encountered: