-
Notifications
You must be signed in to change notification settings - Fork 260
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
Crash after unzooming a single terminal inside a tab #835
Comments
Let me also look into this, this PR seems to be mine. I have figured out the reason for the the trigger, where zoomed terminal calls def tab_change(self, widget, num=None, ignore = None): to unzoom which in turn creates a newtab everytime in a loop. I wanted to reused tab-change event and not add another one. I have two solutions in mind let me get a patch for this.
Then on restore (unzoom) it goes into repeat spiral.
|
…ome-terminator#835 -removed previous code to start fresh -added event type for tab-change since other way of identifying zoomed widget was not simple and clear -emit tab-change is done at a single point now in notebook.py
…lear-search-between-commands gnome-terminator#846 - using widget.get_toplevel().get_focussed_terminal() to get current term - added event_type for tab-change emit as per gnome-terminator#835
…ome-terminator#835 - removing the tab-change event dependency and having a simpler solution with focus-in
…lear-search-between-commands gnome-terminator#846 - this includes the changes in gnome-terminator#835 since its required to decouple - made plugin dependent on focus-in and removed tab-change - plugin is now decoupled from main terminator code
Removed the tab-change emit code. New pull request has a decoupled plugin code using focus-in event. |
…e-terminal-inside-a-tab [bug 835] 835-crash-after-unzooming-a-single-terminal-inside-a-tab #835
I can gladly state that it's fixed now! |
@Vulcalien thanks for finding this bug on time, else It would have been difficult. In addition thanks to you I was able to implement the code in a simpler way. |
That's great, glad to be helpful! |
To Reproduce
Open Terminator. Open a tab. Zoom the single terminal in it (Ctrl+Shift+X), then unzoom it.
Desktop: (pretty sure it's not relevant)
Describe the bug
Terminator crashes when unzooming a single terminal inside a tab. When there are 2 or more terminals, the issue doesn't occur. I did a git bisect, and found that the commit introducing the bug is
11639159
, pushed for PR #810. The problems seems to be here:in
Notebook.newtab
. The problem disappears whenterm_widget.emit('tab-change', tabpos)
is removed.When it doesn't crash, I see an extremely large number of new tabs, all containing the same terminal. Maybe it gets confused by the fact there is only one terminal..?
The text was updated successfully, but these errors were encountered: