gnome-terminal output locks up on special character

Bug #1653420 reported by Guardfather
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnome-terminal (Ubuntu)
New
Undecided
Unassigned

Bug Description

I wrote a Python 3 script which scans directory trees, and outputs various filenames (with path) to the terminal, as the files are being hashed. When the following filename was to be printed, gnome-terminal stopped printing output with the cursor where the question mark would have been printed out:

._13 Trapezoid singâ?€.mp3

When I interrupted the program using keyboard interrupt, much more output was displayed, indicating the script had continued to run, despite the output stopping after "â".

I navigated to the directory and tried using ls, which was able to print the filename without issue.

I tried using: find `pwd` -name *Trapezoid*
This also displayed the filename, with full path, correctly.

I tried running the script with terminator, which had no problem printing the filename and continuing on with the rest of the output as expected.

Terminal output at freeze, and after keyboard interrupt shown in the cropped/pixelized screenshots here: http://imgur.com/a/D0XRK

Gnome Terminal version: 3.18.3
Ubuntu 64 Gnome Edition

Revision history for this message
Guardfather (guardfather) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/1653420/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
affects: ubuntu → gnome-terminal (Ubuntu)
tags: added: xenial
Revision history for this message
Egmont Koblinger (egmont-gmail) wrote :

Hi Guardfather,

(Mainstream gnome-terminal/vte developer/contributor speaking here. I myself sometimes felt that the output was stopped for longer than desired, although never could reliable reproduce to track it down.)

How reproducible is this behavior using the python script? (Being able to take a screenshots suggests that you could reproduce this.)

Could you record the session with script(1) using the -t flag to record timings as well, and then replay with scriptreplay(1) with timings? Does the bug occur when you replay it?

Is there any chance you could reproduce with a different tree structure or a modified script log that doesn't contain sensitive information (that you'd need to blur out on a screenshot) and you could attach publicly?

When it gets stuck (either with the original python script, or with scriptreplay), could you please do other irrelevant stuff with gnome-terminal (open a new tab or window, produce some output there, switch focus to a completely different app etc.) for about a minute or two? Does this seemingly stuck output continue at one point? Does it continue if you type a regular key into this particular terminal? Or does it freeze until you press ^C?

What's the character encoding of your terminal, and what are the exact bytes printed by your python script? If your encoding is UTF-8 then is it really an "a with circumflex" U+E2 (0xC3 0xA2) followed by a "question mark" U+3F (0x3F) and then the "euro sign" U+20AC (0xE2 0x82 0xAC)? What's the desired look of the filename? I suspect there is some charset problem, probably your terminal is set to some 8-bit encoding, and seeing "MACOSX" in the filename I suspect there might easily be a combining accent there as well.

Could you please try with another emulator that's also based on vte's gtk3 version? You can test it by the command «echo -ne '\e[>3c'» producing the same numbers as gnome-terminal (the middle one being the version of libvte-2.91) (they're inserted as if you typed them). In Ununtu Xenial, roxterm is such a choice, or you might e.g. get terminator-1.90 manually (not from the distro's repo, there's an older version there).

You do not have screen or tmux running, do you?

Also: Could we please move this discussion upstream where gnome-terminal/vte development is happening and where the main developer also sees it; that is, could you please file a new bugreport at https://bugzilla.gnome.org/, component vte? Thanks!

Revision history for this message
Guardfather (guardfather) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.