Select All (Shift+Ctrl+A) followed by Copy (Shift+Ctrl+C) copies only visible part of terminal output

Bug #1922276 reported by Norbert
28
This bug affects 6 people
Affects Status Importance Assigned to Milestone
Gnome Virtual Terminal Emulator
Fix Released
Unknown
MATE Desktop
Unknown
Unknown
mate-terminal (Ubuntu)
Invalid
Undecided
Unassigned
vte2.91 (Debian)
New
Unknown
vte2.91 (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

Steps to reproduce:
1. Have Ubuntu MATE 21.04 installed (or use Live session)
2. Launch MATE Terminal
3. Enable infinite history (Edit - Profile Preferences - Scrolling, Scrollback - Unlimited)
4. Execute command with long output such as `journalctl | cat`
5. Select Edit - Select All (or press <Shift>+<Ctrl>+<A>), then Edit - Copy (or press <Shift>+<Ctrl>+<C>)
6. Open Pluma text editor and paste just copied terminal output

Expected results:
* whole terminal output is copied - staring by `user@host:~$ journalctl | cat` and ending by `user@host:~$`

Actual results:
* only last 15 lines were copied (depends on terminal size)

ProblemType: Bug
DistroRelease: Ubuntu 21.04
Package: mate-terminal 1.24.1-1
ProcVersionSignature: Ubuntu 5.11.0-13.14-generic 5.11.7
Uname: Linux 5.11.0-13-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
ApportVersion: 2.20.11-0ubuntu61
Architecture: amd64
CasperMD5CheckResult: pass
CasperVersion: 1.461
Date: Thu Apr 1 17:35:47 2021
LiveMediaBuild: Ubuntu-MATE 21.04 "Hirsute Hippo" - Beta amd64 (20210331.1)
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=C.UTF-8
SourcePackage: mate-terminal
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Norbert (nrbrtx) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in mate-terminal (Ubuntu):
status: New → Confirmed
Changed in mate-desktop:
status: Unknown → New
Revision history for this message
Norbert (nrbrtx) wrote :

Reverting VTE on Ubuntu 21.04 to version 0.62.0-1ubuntu1 from Ubuntu 20.10 helps.

I suppose that other VTE-based applications are broken in the same way.

So someone with permissions should revert VTE to the above version in the hirsute archive. Without this all VTE-based terminals will transform to useless toys.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in vte2.91 (Ubuntu):
status: New → Confirmed
Revision history for this message
PJSingh5000 (pjsingh5000) wrote :

The "Select All" shortcut, when enabled, only selects text from the end of the buffer that fits precisely within the height of the terminal.

For example

1. Type `ls -l /lib/*` and press Enter.
2. Scroll the terminal to the beginning.
3. Select all using your configured shortcut (Ctrl-Shift-A in my case).
4. Notice that no text is selected.
5. Then scroll the terminal to the bottom.
6. Notice all of the text that fits within the terminal window size is selected.
7. You can expand the terminal vertically to see that text above this area is not selected.

Revision history for this message
PJSingh5000 (pjsingh5000) wrote :

Is this behavior a consequence of Bug #1926256 "Pasted text in the terminal is always highlighted and selected" ?

Norbert (nrbrtx)
tags: added: impish
Revision history for this message
Norbert (nrbrtx) wrote :

Ubuntu MATE 21.10 impish will be affected by this bug if no additional measures will be taken. Please do something :cry: .

Norbert (nrbrtx)
tags: added: jammy
Revision history for this message
Norbert (nrbrtx) wrote :

Still not fixed. It is unacceptable.

Norbert (nrbrtx)
tags: added: rls-jj-incoming
Revision history for this message
Sebastien Bacher (seb128) wrote :

While the issue is annoying there are workarounds, selecting manually being one for example, it's also something upstream milestoned for 0.68 pending libglib overflow handling changes, we are tagging as rls-ff-notfixing because we don't believe it requires special Ubuntu handling

tags: added: rls-jj-notfixing
removed: rls-jj-incoming
Revision history for this message
Ubuntu QA Website (ubuntuqa) wrote :

This bug has been reported on the Ubuntu ISO testing tracker.

A list of all reports related to this bug can be found here:
http://iso.qa.ubuntu.com/qatracker/reports/bugs/1922276

tags: added: iso-testing
Revision history for this message
Norbert (nrbrtx) wrote :

Still happens on Jammy. Should be fixed before final release.

Revision history for this message
Norbert (nrbrtx) wrote :

Still a problem for Ubuntu MATE 22.04 LTS. Please fix it on distro level.

Revision history for this message
Martin Wimpress  (flexiondotorg) wrote :

As seb128 explained, this is an issue with libvte-2.91-0 and is scheduled to be addressed in 0.68 and work arounds do exist.

Changed in mate-terminal (Ubuntu):
status: Confirmed → Invalid
no longer affects: mate-desktop
Revision history for this message
Tommi Nieminen (oraniyan) wrote :

I have run Ubuntu Mate 22.04 in Virtual Box for the specific reason of testing this. I updated VTE to 0.68, but this problem still existed. Should it be fixed in 0.68? As for the workarounds, selecting text manually stops being an option when you repeatedly have to scroll up several minutes while pressing the mouse button...and one slip of the finger in the end forces you do it all over again.

Revision history for this message
Norbert (nrbrtx) wrote :

Please fix this before final 22.04 LTS release!!!!!111111

Changed in vte:
status: Unknown → New
Revision history for this message
Norbert (nrbrtx) wrote :

Temporary fix for Ubuntu MATE 22.04 LTS is reverting VTE to previous non-buggy version:

> To fix the 1922276 bug one can use 20.04 LTS's VTE library from [my PPA](https://launchpad.net/~nrbrtx/+archive/ubuntu/vte?field.series_filter=jammy) as follows:
> ```
> sudo add-apt-repository ppa:nrbrtx/vte
> sudo apt-get update
> sudo apt-get dist-upgrade
>````

(The method shown above was originally posted at https://ubuntu-mate.community/t/howto-fixing-some-ubuntu-mate-22-04-lts-issues/25345 ) .

Norbert (nrbrtx)
affects: vte (Debian) → vte2.91 (Debian)
Jeremy Bícha (jbicha)
Changed in vte2.91 (Ubuntu):
importance: Undecided → Medium
status: Confirmed → Triaged
Changed in vte2.91 (Debian):
status: Unknown → New
Changed in vte:
status: New → Fix Released
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.