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

Prevent Generation of Crashdumps When the Browser Is Closed #4667

Merged
merged 5 commits into from
Jun 4, 2023

Conversation

Nerixyz
Copy link
Contributor

@Nerixyz Nerixyz commented Jun 4, 2023

Description

This PR adds a _Exit(0) when the STDIN of the browser-extension process reaches EOF, which would previously generate a crashdump.

Fixes #4601.


While testing, I noticed an assertion (assertInGuiThread) in NativeMessagingServer::ReceiverThread::handleMessage, when running in debug mode with C_DEBUG_NM. This was because getApp was called in the receiver thread. Since app is only used in the postToThread, I moved it there.

@Nerixyz Nerixyz force-pushed the fix/browser-extension-crash branch from 53ab4ed to c5f5080 Compare June 4, 2023 10:45
@pajlada pajlada enabled auto-merge (squash) June 4, 2023 11:25
@pajlada pajlada merged commit f306e28 into Chatterino:master Jun 4, 2023
@Nerixyz Nerixyz deleted the fix/browser-extension-crash branch June 4, 2023 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Browser Extension Unnecessarily Terminating
2 participants