-
Notifications
You must be signed in to change notification settings - Fork 15k
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]: FramelessView::NonClientHitTest sporadically crashes application when calling view_draggable_region->contains(cursor.x(), cursor.y()) #31406
Comments
Thanks for reporting this and helping to make Electron better! Would it be possible for you to make a standalone test case with only the code necessary to reproduce the issue? Electron Fiddle is a great tool for making small test cases and publishing them as gists that Electron maintainers can use. I understand that the crash happens sporadically, but it helps us to have a minimal repro that you know causes the issue so we can start seeing if we can reproduce it on the same exact setup too. I'm adding the Thanks in advance! Your help is appreciated. |
We haven't gotten a response to our questions in our comment above. With only the information that is currently in the issue, we don't have enough information to take action. In this event, i'm going to go ahead and close this but can reopen should you follow up with more info! |
I have spent some time trying to get an electron fiddle setup to recreate the issue, but have not been able to get it to crash. I do have several crash dump files that I can share if that will be helpful. |
Here's an example callstack
|
Preflight Checklist
Electron Version
15.1.0
What operating system are you using?
Windows
Operating System Version
Windows 10 version 21H1
What arch are you using?
x64
Last Known Working Electron version
No response
Expected Behavior
Should return true or false when checking if the cursor is in a draggable region of a browserview.
Actual Behavior
It appears that sporadically that the view_draggable_region may not be valid, thus when checking if the cursor is contained within the SkRegion by calling SkRegion::contains, an uncaught exception happens on line 359 of SkRegion.cpp that results in electron crashing.
Testcase Gist URL
No response
Additional Information
I don't have any code to share as this happens sporadically from it will only take one click to several clicks in the widow for it to crash. What I can say is that I am using a frameless window with a browserview acting as the title bar that has a draggable region, then 1+ other browserviews serving the main content that do not have draggable regions. Crashes can happen ether when clicking within the title bar or main content browserviews.
I have tried several versions of electron from 11.x.x, 12.x.x, 13.x.x, and 15.x.x and they all exhibit this behavior.
The text was updated successfully, but these errors were encountered: