You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Blank page on location change / reload if a filesystem asynchronous call was pending #33164
17-x-ybug 🪲has-repro-gistIssue can be reproduced with code at https://gist.github.com/platform/allstatus/confirmedA maintainer reproduced the bug or agreed with the feature
@codebytere to further narrow down the trigger, most of the changes in that PR are guarded behind window opener checks, I think the explicit call to run microtasks
@deepak1556 yep sorry should have updated this - that's also what I found and have been working to fix! Also not sure if we want to run microtasks, or rather force flush the pending tasks. If we don't run them however it DCHECKs:
#
# Fatal error in ../../v8/src/api/api-inl.h, line 185
# Debug check failed: microtask_queue->GetMicrotasksScopeDepth() || !microtask_queue->DebugMicrotasksScopeDepthIsZero().
#
#
#
#FailureMessage Object: 0x7ff7bbf64fe0
0 Electron Framework 0x000000012a4645b9 base::debug::CollectStackTrace(void**, unsigned long) + 9
1 Electron Framework 0x000000012a387313 base::debug::StackTrace::StackTrace() + 19
2 Electron Framework 0x000000012c2eafbd gin::(anonymous namespace)::PrintStackTrace() + 45
3 Electron Framework 0x000000012bd38296 V8_Fatal(char const*, int, char const*, ...) + 326
4 Electron Framework 0x000000012bd37d35 v8::base::(anonymous namespace)::DefaultDcheckHandler(char const*, int, char const*) + 21
5 Electron Framework 0x00000001275acf90 v8::CallDepthScope<true>::~CallDepthScope() + 1040
6 Electron Framework 0x000000012757ed26 v8::Promise::Resolver::Resolve(v8::Local<v8::Context>, v8::Local<v8::Value>) + 566
7 Electron Framework 0x000000012f4c0a3c node::fs::FSReqPromise<node::AliasedBufferBase<double, v8::Float64Array, void> >::Resolve(v8::Local<v8::Value>) + 220
8 Electron Framework 0x000000012f4cc84b node::fs::AfterInteger(uv_fs_s*) + 187
reverting to that would fix the crash, but i'd prefer a more proper fix 🤔
17-x-ybug 🪲has-repro-gistIssue can be reproduced with code at https://gist.github.com/platform/allstatus/confirmedA maintainer reproduced the bug or agreed with the feature
Activity
DanielMcAssey commentedon Mar 9, 2022
Getting this too
codebytere commentedon Mar 9, 2022
Gist version: https://gist.github.com/60969896fee8b6e74450e33309e7974b
Related CLs:
We're aware of this, been trying to repro it for a while so thanks! cc @deepak1556
DanielMcAssey commentedon Mar 9, 2022
Just to add I cant replicate this on 16.1.0
codebytere commentedon Mar 9, 2022
@DanielMcAssey correct, it's from a version of V8 introduced in 17.
deepak1556 commentedon Mar 14, 2022
@jkleinsc the crash looks unrelated to cppgc and #33252 does not fix this one, reopening for further investigation.
codebytere commentedon Mar 14, 2022
@deepak1556 sounds good, i'll dig into it.
codebytere commentedon Mar 14, 2022
@DanielMcAssey I can repro it starting with 16.0.5 using my above gist.
Looks like it was caused by 73ba0cb cc @zcbenz
remss commentedon Mar 15, 2022
Using my repro case, here the result with different versions of Electron:
deepak1556 commentedon Mar 15, 2022
@codebytere to further narrow down the trigger, most of the changes in that PR are guarded behind window opener checks, I think the explicit call to run microtasks
electron/shell/renderer/electron_renderer_client.cc
Line 160 in 4bdb50e
deepak1556 commentedon Mar 15, 2022
node::FreeEnvironmentdisabled JS execution https://github.com/nodejs/node/blob/0367b5c35ea0f98b323175a4aaa8e651af7a91e7/src/api/environment.cc#L368-L369 , so not sure if we want to run the microtasks at this point.codebytere commentedon Mar 15, 2022
@deepak1556 yep sorry should have updated this - that's also what I found and have been working to fix! Also not sure if we want to run microtasks, or rather force flush the pending tasks. If we don't run them however it DCHECKs:
reverting to that would fix the crash, but i'd prefer a more proper fix 🤔
deepak1556 commentedon Mar 15, 2022
During the deletion of script context, we make sure to stop running node callbacks
electron/shell/common/node_bindings.cc
Lines 606 to 610 in 4bdb50e
electron/shell/renderer/electron_renderer_client.cc
Lines 150 to 152 in 4bdb50e
RunCleanupwhich basically will delete all open handles and api wrappers from node.remss commentedon Mar 18, 2022
@codebytere The bug persists using [email protected]
I updated my repro case https://github.com/remss/electron-issue-reload/tree/electron-reload-issue
deepak1556 commentedon Mar 18, 2022
@remss the fix for this issue has not been merged into the
18-x-ybranch yet, you can track it at #33302remss commentedon Mar 18, 2022
Ho sorry, I was confused by the release note of https://github.com/electron/electron/releases/tag/v18.0.0-beta.4 and random crash in renderer.
liangwenzhong commentedon Apr 1, 2022
any solution ?
DanielMcAssey commentedon Apr 1, 2022
This was fixed a minor version or 2 ago