Bug 2180854

Summary: Terminator window geometry bad, and error messages.
Product: [Fedora] Fedora Reporter: Stephen J Alexander <stevea12345>
Component: terminatorAssignee: Dominic Hopf <dmaphy>
Status: CLOSED COMPLETED QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 37CC: dmaphy, mattrose
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-08-07 08:30:53 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Stephen J Alexander 2023-03-22 12:20:30 UTC
Description of problem:
Immediately after installation of terminator-2.1.3-1.fc37.noarch
opening a terminator Window create a tiny 2x1(char) window size instead of the default.

When expanded the new terminat contains several "stuttered" prompts as in "[stevea@russula Desk[stevea@russula Desk[stevea@russula Desk[stevea@russula[stevea@[stevea@r[steve[[[[[[stevea@russula Desktop]$ 
"


Version-Release number of selected component (if applicable):

terminator-2.1.3-1.fc37.noarch

How reproducible:
100%

Steps to Reproduce:
1. sudo dnf -y install terminator-2.1.3-1.fc37.noarch
2. logout/login
3. from ay X11 term, type 'terminator'

Actual results:
I tiny terminator window appears, with 'stuttered' prompt'

Expected results:
A normal size window should appear

Additional info:

If started from an alternative terminal (xterm) the following messages appear:
[stevea@russula Desktop]$ terminator
/usr/lib/python3.11/site-packages/terminatorlib/plugins/command_notify.py:26: Warning: invalid (NULL) pointer instance
  Vte.Terminal().connect('notification-received',lambda *args: None,None)
/usr/lib/python3.11/site-packages/terminatorlib/plugins/command_notify.py:26: Warning: g_signal_handlers_disconnect_matched: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
  Vte.Terminal().connect('notification-received',lambda *args: None,None)

--

Comment 1 Stephen J Alexander 2023-03-23 02:32:10 UTC
The problem was traced to an existing ~/.config/terminator/config configuration file.
The [layouts] section specifically.

The old config file had a [layouts] like ....
[layouts]
  [[default]]
    [[[child0]]]
      type = Window
      parent = ""
      order = 0
      position = 767:164
      maximised = False
      fullscreen = False
      size = 2910, 1495
      last_active_window = True
    [[[terminal1]]]
      type = Terminal
      parent = child0
      order = 0
      profile = default
      command = ""

Where the line "size = 2910, 1495" is the offending line that causes the "bad" window size.

---

A newly created config file contains the [layouts] ....
[layouts]
  [[default]]
    [[[window0]]]
      type = Window
      parent = ""
      position = 767:164
    [[[child1]]]
      type = Terminal
      parent = window0
      profile = default
      size = 2910, 1495
[plugins]

and works as expected.


===

I'll suggest a description "terminator 2.1.3" does not accept config's from older versions".
I believe priority should be dropped to "low"

Comment 2 Stephen J Alexander 2023-03-25 08:28:52 UTC
There is a real bug in the current terminator-2.1.3-1.fc37.noarch
To reproduce

1) delete the ~/.config/terminator/config file if present.
2) start terminator
3) Resize the window until the titlebar show "128x31"  (other values likely cause the error.
3) Right-click and open "Preferences", in preferences:
    a) under "Global" select "Window Geometry hints"
    b) under Profiles tab, for the default profile, DEselect "Use the system fixed width font" and choose "Source Code Pro Regular" 12 of "Liberation Mono" 12 for examples.
    c) under Layouts, select "default, and then "save"
    d) "Close" the Terminator Preferences" window.
4) Close the terminator window.

Any attempt to open "terminator" with the resulting ~/.config/terminator/config file creates a defective tiny window.
100% reproduce-able.

Comment 3 Stephen J Alexander 2023-08-06 13:16:57 UTC
Disabling "Window geometry gints" preferences option is a workaround.
Please close.

Comment 4 Stephen J Alexander 2023-08-06 13:17:33 UTC
Disabling "Window geometry gints" preferences option is a workaround.
Please close.