FS#56254 - [terminator] 1.91-5 crashes when launched from Tint2, Synapse

Attached to Project: Community Packages
Opened by Vincent (fylou) - Monday, 06 November 2017, 11:51 GMT
Last edited by Giancarlo Razzolini (grazzolini) - Thursday, 20 September 2018, 23:17 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Giancarlo Razzolini (grazzolini)
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Hello,

With terminator 1.91-5, no windows opens when launched from taskbar (Tint2) or Synapse, if there is no other already opened terminator windows. A window can be opened succesfully from Geany terminal.

Error message is the following :

[quote]Traceback (most recent call last):
File "/bin/terminator", line 86, in <module>
dbus_service = ipc.DBusService()
File "/usr/lib/python2.7/site-packages/terminatorlib/ipc.py", line 40, in __init__
self.prepare_attributes()
File "/usr/lib/python2.7/site-packages/terminatorlib/ipc.py", line 60, in prepare_attributes
self.terminator = Terminator()
File "/usr/lib/python2.7/site-packages/terminatorlib/terminator.py", line 72, in __init__
self.prepare_attributes()
File "/usr/lib/python2.7/site-packages/terminatorlib/terminator.py", line 97, in prepare_attributes
self.pid_cwd = get_pid_cwd()
File "/usr/lib/python2.7/site-packages/terminatorlib/cwd.py", line 42, in get_pid_cwd
system = platform.system()
File "/usr/lib/python2.7/platform.py", line 1265, in system
return uname()[0]
File "/usr/lib/python2.7/platform.py", line 1232, in uname
processor = _syscmd_uname('-p','')
File "/usr/lib/python2.7/platform.py", line 967, in _syscmd_uname
rc = f.close()
IOError: [Errno 10] Aucun processus enfant
[/quote]

/usr/share/applications/terminator.desktop
[quote][Desktop Entry]
Name=Terminator
TryExec=terminator
Exec=terminator
Icon=terminator
Type=Application
Categories=GNOME;GTK;Utility;TerminalEmulator;System;
StartupNotify=true
X-Ubuntu-Gettext-Domain=terminator
X-Ayatana-Desktop-Shortcuts=NewWindow;
Keywords=terminal;shell;prompt;command;commandline;
[NewWindow Shortcut Group]
Name=Open a New Window
Exec=terminator
TargetEnvironment=Unity[/quote]

~/.config/terminator/config

[quote][global_config]
suppress_multiple_term_dialog = True
title_transmit_bg_color = "#00c8c6"
window_state = maximise
[keybindings]
[layouts]
[[default]]
[[[child1]]]
parent = window0
type = Terminal
[[[window0]]]
parent = ""
type = Window
[plugins]
[profiles]
[[default]]
background_darkness = 0.4
background_image = None
cursor_color = "#aaaaaa"
cursor_shape = ibeam
scrollback_infinite = True
scrollback_lines = 510[/quote]

When we open a Terminator window, the message is


[quote](terminator:19219): Gtk-WARNING **: Allocating size to GtkVScrollbar 0x560cbb5bc300 without calling gtk_widget_get_preferred_width/height(). How does the code know the size to allocate?
[/quote]

After closing it:

[quote]<window.Window object at 0x7f82ad874d70 (terminatorlib+window+Window at 0x560cbb42e2a0)> is not in registered window list[/quote]
[/quote]

With Synapse, the message is

[quote]
(synapse:2162): Gtk-WARNING **: Allocating size to SynapseGuiSchemaContainer 0x2452a40 without calling gtk_widget_get_preferred_width/height(). How does the code know the size to allocate?

(synapse:2162): Gtk-WARNING **: Allocating size to SynapseGuiSchemaContainer 0x2452a40 without calling gtk_widget_get_preferred_width/height(). How does the code know the size to allocate?

(synapse:2162): Gtk-WARNING **: Allocating size to SynapseGuiSchemaContainer 0x2452a40 without calling gtk_widget_get_preferred_width/height(). How does the code know the size to allocate?
[/quote]

All these errors happen, when python redirects to
[quote]
[16:04 ~ lyly] # python2 -V
Python 2.7.14
[/quote]

or to

[quote]
[16:04 ~ lyly] # python3 -V
Python 3.6.2
[/quote]
This task depends upon

Closed by  Giancarlo Razzolini (grazzolini)
Thursday, 20 September 2018, 23:17 GMT
Reason for closing:  Works for me
Additional comments about closing:  Also, no response from reporter for some time now.
Comment by Giancarlo Razzolini (grazzolini) - Wednesday, 08 November 2017, 15:08 GMT
Hi,

Well, the fact that terminator opens if you have at least one opened, tells me this is a DBus issue. There are some things you can try. The first would obviously be disable DBus support for terminator, you can do that from Preferences.

Secondly, I would try running terminator with no config file, and see if it works. Python 3 version is not relevant for terminator, since it's python2 only.

Those gtk_widget_preferred_width messages are harmless, you can ignore them. Also, the messages are using your local language, can you run terminator with LANG=C so we can have the messages in English?
Comment by Vincent (fylou) - Friday, 10 November 2017, 11:44 GMT
Disable DBus support for terminator or remove config file does not solve the problem.

From now on, I use LANG=C.

1) When I launch terminator from a an existing terminator windows, I obtain:

** (terminator:4528): WARNING **: Binding '<Control><Alt>a' failed!
Unable to bind hide_window key, another instance/window has it.
(terminator:4528): Gtk-WARNING **: Allocating size to GtkVScrollbar 0x5575a2fc4270 without calling gtk_widget_get_preferred_width/height(). How does the code know the size to allocate?

2) When no terminator window is open. I obtain the following error message.

Traceback (most recent call last):
File "/bin/terminator", line 114, in <module>
TERMINATOR = Terminator()
File "/usr/lib/python2.7/site-packages/terminatorlib/terminator.py", line 72, in __init__
self.prepare_attributes()
File "/usr/lib/python2.7/site-packages/terminatorlib/terminator.py", line 97, in prepare_attributes
self.pid_cwd = get_pid_cwd()
File "/usr/lib/python2.7/site-packages/terminatorlib/cwd.py", line 42, in get_pid_cwd
system = platform.system()
File "/usr/lib/python2.7/platform.py", line 1265, in system
return uname()[0]
File "/usr/lib/python2.7/platform.py", line 1232, in uname
processor = _syscmd_uname('-p','')
File "/usr/lib/python2.7/platform.py", line 967, in _syscmd_uname
rc = f.close()
IOError: [Errno 10] No child process

Note, I translated the last sentence in english. LANG=C did not do it.
Comment by Giancarlo Razzolini (grazzolini) - Friday, 10 November 2017, 12:53 GMT
I tried running terminator from tint2 and it works. I haven't tried running from synapse. Have you tried with a clean configuration too? I'm beginning to think this is an issue with some configuration, rather than something to do with the launcher.
Comment by Vincent (fylou) - Friday, 10 November 2017, 13:30 GMT
Have you some indications to clean configuration?
Comment by Giancarlo Razzolini (grazzolini) - Friday, 10 November 2017, 14:09 GMT
Sure, just remove (or rename) ~/.config/terminator
Comment by Vincent (fylou) - Friday, 10 November 2017, 14:27 GMT
It has already be done as indicated in my first answer. It does not solve the problem.
Comment by Giancarlo Razzolini (grazzolini) - Friday, 10 November 2017, 15:39 GMT
Ok. I was re-reading all your report and two things seems strange to me. The first one is your application .desktop file. Did you remove all the translation lines, or it looks like that one, exactly? Secondly, the error message is saying /bin/terminator. Are you messing with your PATH? Even though /bin is a symlink to /usr/bin, terminator does some things to get it's CWD and that might have something to do with it.

Other than that, we can fill a bug request upstream.
Comment by Vincent (fylou) - Sunday, 12 November 2017, 09:50 GMT
I have the same problem on a second computer.

I removed the translation line from .desktop file. If I use the original .desktop file, the problem is still there. In addtion, terminator binary is both in /bin and /usr/bin dir, no symlink. It has been installed using yaourt. /bin/terminator is used with the command terminator

Can you tell more about bug request upstream?

Comment by Giancarlo Razzolini (grazzolini) - Monday, 13 November 2017, 09:43 GMT
Hi Vincent,

/bin is a symlink to /usr/bin. Also, you should use the stock package when reporting issues. Even though I don't think just removing the translation lines from the .desktop file would cause this issue, I can't really know for sure.

Also, have you installed the package terminator from [community] or one of the versions from the AUR? I still think this is something due to your configuration, rather than an issue with terminator. I had some time over the weekend and I was also able to launch terminator from synapse, with or without an instance running already.
Comment by Vincent (fylou) - Monday, 13 November 2017, 10:23 GMT
I dont know the stock package. Can you tell me more about it?

I use terminator from [community] repo.
Comment by Giancarlo Razzolini (grazzolini) - Monday, 13 November 2017, 12:20 GMT
That's what I mean by "stock". Even though you have installed it using yaourt, it hopefully wouldn't do anything strange to it. Can you try to reproduce this issue in a clean environment/installation? Don't change any PATH, nor any configuration from it's defaults and try to reproduce this. If you can't, then it's certainly an issue with your environment. I would start checking your PATH variable.

Loading...