Skip to content
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]: addChildView会崩溃 #41934

Closed
3 tasks done
code-small-white opened this issue Apr 23, 2024 · 5 comments
Closed
3 tasks done

[Bug]: addChildView会崩溃 #41934

code-small-white opened this issue Apr 23, 2024 · 5 comments
Labels
30-x-y bug 🪲 component/WebContentsView crash 💥 has-repro-gist Issue can be reproduced with code at https://gist.github.com/

Comments

@code-small-white
Copy link

Preflight Checklist

Electron Version

30.0.1

What operating system are you using?

macOS

Operating System Version

macOS Sonoma 14.4.1 (23E224)

What arch are you using?

arm64 (including Apple Silicon)

Last Known Working Electron version

No response

Expected Behavior

可以正常工作

Actual Behavior

直接退出

Testcase Gist URL

https://gist.github.com/24a6cac9a6a3cd762c8f8299d9f5c02d

Additional Information

反注释44行,可以正常运行

@electron-issue-triage electron-issue-triage bot added the has-repro-gist Issue can be reproduced with code at https://gist.github.com/ label Apr 23, 2024
@AliasT
Copy link

AliasT commented Apr 24, 2024

https://source.chromium.org/chromium/chromium/src/+/main:ui/views/view.cc;l=3094;bpv=1;bpt=1?q=AddChildViewAt
chromium will reorder same view while electron creates new, then check failed.

@code-small-white
Copy link
Author

https://source.chromium.org/chromium/chromium/src/+/main:ui/views/view.cc;l=3094;bpv=1;bpt=1?q=AddChildViewAt chromium will reorder same view while electron creates new, then check failed.

那为什么不用settimeout的时候就正常

@AliasT
Copy link

AliasT commented Apr 24, 2024

跟setTimeout没关系。

@code-small-white
Copy link
Author

跟setTimeout没关系。

那我那个例子,在settimeout外面添加两次view,再或者添加6次,都不会报错,都是正常执行,但是在settimeout里面添加就崩溃了,这不证明多多少少和settimeout有点关系?

@codebytere
Copy link
Member

Combining with #41974

@codebytere codebytere closed this as not planned Won't fix, can't repro, duplicate, stale May 7, 2024
@codebytere codebytere assigned codebytere and unassigned codebytere May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
30-x-y bug 🪲 component/WebContentsView crash 💥 has-repro-gist Issue can be reproduced with code at https://gist.github.com/
Projects
None yet
Development

No branches or pull requests

4 participants