-
-
Notifications
You must be signed in to change notification settings - Fork 449
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
Crashes all throughout the application when destroying channel objects on macOS #4347
Comments
I'd guess the signal handlers aren't part of the stacktrace. I made a change that was necessary for me here, since I ran into this as well - but only with doing additional stuff afterwards. |
I think it's this handler that's responsible for the crash: chatterino2/src/providers/twitch/TwitchChannel.cpp Lines 124 to 132 in 6516116
I'd guess the strings are already free'd when this gets called, or are passed to a function that uses them after they're free'd. |
I think this makes sense. The If this is really the case, it should be solvable by placing the callback body inside the overridden destructor |
Yup looks like you are spot on, I just removed those 8 lines and the crashes are gone. |
Has this been fixed as of #4342? |
Can confirm, fixed by #4342 |
Checklist
Describe your issue
This has been introduced by #4147, cannot reproduce on 56f7c91
All throughout chatterino the program will SIGABRT in various places, seemingly connected to destroying channel objects.
Places where I can confirm those crashes:
Closing a usercard (Changing the 'Automatically close user popup when it loses focus' setting does not have any effect)
Backtrace
Closing a split
Backtrace
Closing a tab
Backtrace
Switching the channel of a split
Backtrace
Opening a reply thread, closing it, opening a reply thread and typing a message in there (no idea how that relates to the previous crashes) - the message is sent but the application crashes, opening a reply thread for the first time and replying works fine.
Backtrace
Stuff I thought about testing, but doesn't seem to cause a crash:
Screenshots
No response
OS and Chatterino Version
Chatterino 2.4.0 DEBUG (commit d313342 modified) built with Qt 5.15.8 Running on macOS 12.6, kernel: 21.6.0
The text was updated successfully, but these errors were encountered: