-
Notifications
You must be signed in to change notification settings - Fork 301
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
Random crashes when repeatedly moving terminals #143
Comments
Are you building from source or using the binaries I am providing? Can you try running terminix using the following command:
Once GDB launches, just type I might need you to test this with a few builds to narrow down the issue but let's see what the first backtrace looks like. |
Backtrace is the same with either
|
Is the Sidebar showing when the crash happens, kind of weird how it is reporting it there. If the back trace is accurate should be easily fixed with some null checking but I wonder if the mouse grab the sidebar is doing isn't getting released as expected. If you start Terminix and never open the sidebar is it still reproduceable withe same stack trace? |
Never touched the sidebar or the button or had multiple sessions. Just started terminix, split a few times and move terminals around until the crash. Not sure it is related to moving the terminals though, as the instant of the crash seemed random. |
The sidebar does a non-blocking grab of the mouse and keyboard when it is opened so that if you click outside it or press escape it closes up. When closed it releases the grab. It's possible I've screwed something up and it's grabbing focus from the get go so all window input is being sent through it. You've given me enough to start investigating so thanks very much, I'll work on it tomorrow night. |
Just found a simple reproducer here: launch terminix, maximize, split once, click the extreme left of the window/screen. Interestingly it only crashes if split at least once (even if I close the second terminal before clicking). |
I can reproduce the issue without even splitting the screen. Just open terminix and try to select text from the left. As soon as you click, it crashes. Here's gdb output, though it's exactly the same as @dsboger posted:
Fedora 23, terminix-0.53.0-4.1.x86_64 (installed using provided RPM). |
I'm able to reproduce using @dsboger excellent instructions and have checked in a fix. On my system it looks like the sidebar gets the onbuttonpress when you click the very left edge even though it's technically not visible, I guess the GtkRevealer widget must maintain a 1 pixel grab area or something similar. Anyway, adding a null check seems to have fixed the issue. Can someone build from source and test this to confirm it is fixed please. |
I've tried everything I did before and no crash. Looks good to me. |
Thanks, really appreciate your help with identifying and testing this issue. |
Not sure if this is a proper fix - while it doesn't crash any longer, I cannot select the first two characters of the output from the left. Should I open another issue for this? |
Please disregard my comment above. It got fixed along with #142 |
I have been able to crash terminix consistently by splitting a few times and then moving terminals around a bit.
The text was updated successfully, but these errors were encountered: