! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Running a "cat log" with attached log file closes all xfce4-terminal windows
Status:
RESOLVED: WORKSFORME
Product:
Xfce4-terminal
Component:
General

Comments

Description dominique.pelle 2017-04-02 22:13:23 CEST
Created attachment 7067 
Doing "cat log" on the attached file closes all xfce4-terminal windows

Running this command in a xfce4-terminal not only closes the
terminal but also closes all other xfce4-terminal windows.

$ vim -u NONE -c 'set columns=5000'

I don't see a reason for it.  I assume it's a bug.
Be careful, as it's rather dangerous: it closes terminals
where you may have unsaved work! 

Now if I create a log file like this:

$ vim -u NONE -c 'set columns=5000' -cq > log

... then run the cat command:

$ cat log

It also closes all terminal windows.
I attached the "log" file.

I see this bug using xfce4-terminal 0.6.3 in xubuntu-14.04.
I can try later with a more recent version (xubuntu-16.04).

Running the same commands in xterm do now have the bug.
Comment 1 dominique.pelle 2017-04-02 22:41:47 CEST
Just adding that the bug also happens in xubuntu-16.04.2 which also uses xfce4-terminal-0.6.3.
Comment 2 Igor editbugs 2017-04-03 03:24:20 CEST
For me, the current xfce4-terminal version (which is 0.8.3) doesn't close all its windows but kind of tries to resize the current window; other windows remain fine. I can see similar behavior with gnome-terminal.
Your log contains some escaped commands that break terminal window look.

Egmont, can you comment on this?
Comment 3 Egmont Koblinger 2017-04-03 09:29:17 CEST
No crash here either. The window manager might easily be relevant, I'm on Unity7 (Ubuntu Yakkety 16.10).

The escape sequence \e[8;24;5000t resizes the window to 24x5000 and some window managers might not tolerate it.

There was a known bug at one point where this escape sequence could cause a crash, but that was long before Ubuntu 16.04, and needed a vertical resize. I'm not aware of such a bug right now.

If it indeed crashes, it would be nice to see a stack trace.

(IMO it sucks that such an escape sequence exists at all. VTE doesn't resize itself, it emits a resize-window signal and the container app decides to obey or refuse.)
Comment 4 Egmont Koblinger 2017-04-03 09:32:41 CEST
Sorry, I just realized the bugreport is against xfce-terminal 0.6, and in turn vte-0.28. It's damn obsolete.
Comment 5 Igor editbugs 2017-04-05 18:08:52 CEST
Dominique, can you try a 0.8.x version?
Comment 6 dominique.pelle 2017-04-05 18:16:21 CEST
Igor wrote:

> Dominique, can you try a 0.8.x version?

I'll try. Any hints on how to build xfce4-terminal on xubuntu-16.04 or xubuntu-14.04?  Are are there binary packages available?  (default packages from xubuntu-16.04 being too old).
Comment 8 Igor editbugs 2017-04-05 18:34:18 CEST
I wasn't able to find a ppa offering xfce4-terminal 0.8.x for 16.04.

But, it's definitely possible to build it on 16.04 - you'd need to download the sources, run `./autogen.sh`, install dependencies as needed, and then finally run `make`.
Comment 9 dominique.pelle 2017-04-06 20:52:28 CEST
Igor wrote:

> But, it's definitely possible to build it on 16.04 - you'd
> need to download the sources, run `./autogen.sh`, install
> dependencies as needed, and then finally run `make`.

It's most certainly possible, but just the configure
script of libvte has many dependencies that are not
met with my standard packages. There is a dependency
hell to build it. Snippet from output of running
configure of libvte:


=== BEGIN QUOTE ===
configure: error: Package requirements (glib-2.0 >= 2.40.0 gobject-2.0 pango >= 1.22.0 gtk+-3.0 >= 3.8.0 gobject-2.0 gio-2.0 gio-unix-2.0 zlib libpcre2-8 >= 10.21 gnutls >= 3.2.7) were not met:

No package 'libpcre2-8' found
Requested 'gnutls >= 3.2.7' but version of GnuTLS is 2.12.23
=== END QUOTE ===

I must admit that I don't feel like trying to build all this.
The bug this this ticket seems to be fixed anyway if you can't
reproduce it with newer xfce4-terminal. That's good enough for me.
Thanks!
Comment 10 Igor editbugs 2017-04-06 20:56:16 CEST
You don't have to build libvte; installing libvte-2.91-dev should be enough.
But there's some dependency resolution work for sure.
Comment 11 Egmont Koblinger 2017-04-06 21:43:22 CEST
For Trusty 14.04, according to my memories you can easily compile VTE version 0.38, the first version new enough for xfce4-terminal. Newer VTE versions have trickier dependencies.

For Xenial 16.04, compiling the most recent VTE version should be easy, all the dependencies should be there (maybe under a different package name than what you'd first think, e.g. libpcre2-dev, libgnutls-dev).
Comment 12 Igor editbugs 2017-04-11 17:22:05 CEST
Fixed in gtk3 versions.

Bug #13473

Reported by:
dominique.pelle
Reported on: 2017-04-02
Last modified on: 2017-04-11

People

CC List:
2 users

Version

Attachments

Doing "cat log" on the attached file closes all xfce4-terminal windows (123 bytes, application/octet-stream)
2017-04-02 22:13 CEST , dominique.pelle
no flags

Additional information