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

Fix crash when closing all tabs on macOS #3860

Merged
merged 3 commits into from Jul 23, 2022

Conversation

dnsge
Copy link
Contributor

@dnsge dnsge commented Jul 12, 2022

Pull request checklist:

  • CHANGELOG.md was updated, if applicable

Fixes a problem introduced in a commit after the most recent release, so a changelog entry shouldn't be needed.

Description

Fixes #3859

As @LosFarmosCTL pointed out in the issue, the crash was introduced in 6599009 due to some nuance in how Splits are focused. This PR changes the two signal connect calls to be managedConnect calls.

For some reason, changing how Splits were focused led to the Split instance being destructed before an invocation of ResizingTextEdit::focusLost occurs. The Signal's mutex would be destructed along with the Signal and Split and acquiring the lock later would fail with an abort (macOS-specific behavior?).

@pajlada pajlada merged commit 3b9ac74 into Chatterino:master Jul 23, 2022
@dnsge dnsge deleted the fix/close-tabs-crash branch November 5, 2022 04:52
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.

SIGABRT when closing every tab on macOS
2 participants