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

chore: avoid crash while notification removal #43040

Conversation

cucbin
Copy link
Contributor

@cucbin cucbin commented Jul 25, 2024

Description of Change

Closes #43055

Recently, it was discovered that a crash occurs when erasing a notification point object in the electron::NotificationPresenter::RemoveNotification.

Here, it should be checked and additional protection should be added to avoid it.

Checklist

Release Notes

Notes: Fixes a potential crash when removing notifications on Windows

@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Jul 25, 2024
@cucbin cucbin marked this pull request as ready for review July 25, 2024 05:40
@cucbin cucbin changed the title avoid crash of operation on an invalid entry while erase set iterator. chore: avoid crash of operation on an invalid entry while erase set iterator. Jul 25, 2024
Copy link
Member

@codebytere codebytere left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cucbin could you please open a bug report for this, with a reproducible sample, and link it to this PR?

@cucbin cucbin changed the title chore: avoid crash of operation on an invalid entry while erase set iterator. chore: avoid crash while notification removal Jul 26, 2024
@cucbin
Copy link
Contributor Author

cucbin commented Jul 26, 2024

I opened a bug here: #43055

@codebytere codebytere added target/30-x-y PR should also be added to the "30-x-y" branch. target/31-x-y PR should also be added to the "31-x-y" branch. target/32-x-y PR should also be added to the "32-x-y" branch. labels Jul 26, 2024
@codebytere codebytere added the semver/patch backwards-compatible bug fixes label Jul 26, 2024
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label Jul 26, 2024
@codebytere codebytere merged commit 77ba40b into electron:main Jul 26, 2024
65 checks passed
Copy link

release-clerk bot commented Jul 26, 2024

Release Notes Persisted

Fixes a potential crash when removing notifications on Windows

@trop
Copy link
Contributor

trop bot commented Jul 26, 2024

I have automatically backported this PR to "30-x-y", please check out #43059

@trop trop bot added in-flight/30-x-y and removed target/30-x-y PR should also be added to the "30-x-y" branch. labels Jul 26, 2024
@trop
Copy link
Contributor

trop bot commented Jul 26, 2024

I have automatically backported this PR to "32-x-y", please check out #43060

@trop
Copy link
Contributor

trop bot commented Jul 26, 2024

I have automatically backported this PR to "31-x-y", please check out #43061

@trop trop bot added in-flight/32-x-y in-flight/31-x-y merged/31-x-y PR was merged to the "31-x-y" branch. and removed target/32-x-y PR should also be added to the "32-x-y" branch. target/31-x-y PR should also be added to the "31-x-y" branch. in-flight/31-x-y labels Jul 26, 2024
@trop trop bot added merged/32-x-y PR was merged to the "32-x-y" branch. merged/30-x-y PR was merged to the "30-x-y" branch. and removed in-flight/32-x-y in-flight/30-x-y labels Jul 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged/30-x-y PR was merged to the "30-x-y" branch. merged/31-x-y PR was merged to the "31-x-y" branch. merged/32-x-y PR was merged to the "32-x-y" branch. semver/patch backwards-compatible bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Main app crash when show notification while minimized windows
2 participants