After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 768037 - gnome-terminal terminal gets narrower when mouse is moved across the right border
gnome-terminal terminal gets narrower when mouse is moved across the right bo...
Status: RESOLVED OBSOLETE
Product: gnome-terminal
Classification: Core
Component: general
3.18.x
Other Linux
: Normal normal
: ---
Assigned To: GNOME Terminal Maintainers
GNOME Terminal Maintainers
Depends on:
Blocks:
 
 
Reported: 2016-06-25 17:33 UTC by Jens Breitbart
Modified: 2016-09-04 12:49 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Screencast of the problem (516.40 KB, video/x-matroska)
2016-06-25 17:33 UTC, Jens Breitbart
Details
Screenshot of gnome-terminal master branch (1.20 MB, image/png)
2016-08-07 17:21 UTC, Jens Breitbart
Details

Description Jens Breitbart 2016-06-25 17:33:27 UTC
Created attachment 330367 [details]
Screencast of the problem

I was asked to forward this bug from the launchpad bugtracker[0].

gnome-terminal behaves strange when run on elementary OS latest beta release (Loki 0.4). It is supposed to be a bug in gnome-terminal and they fixed it in pantheon-terminal[1].

I can verify that it appears with the open source NVIDIA drivers (as well as the closed source ones). It seems not to be an issue with GNOME Shell. I haven't been able to follow these[2] instructions, as gnome-terminal-server is not installed.


[0] https://bugs.launchpad.net/gala/+bug/1593979
[1] https://bugs.launchpad.net/pantheon-terminal/+bug/1585342
[2] https://wiki.gnome.org/Apps/Terminal/Debugging
Comment 1 Christian Persch 2016-06-25 17:54:58 UTC
> It seems not to be an issue with GNOME Shell.

This means it does not happen when using gnome-shell, right? If so, it's NOTGNOME, but you could try with gtk+ 3.20 plus using the latest patches to gnome-terminal from bug 760944.

g-t-server must be installed somewhere since g-t doesn't work without it; usually it's in /usr/libexec.
Comment 2 Jens Breitbart 2016-06-25 19:27:36 UTC
(In reply to Christian Persch from comment #1)
> > It seems not to be an issue with GNOME Shell.
> 
> This means it does not happen when using gnome-shell, right? If so, it's
> NOTGNOME,

Yes.

> but you could try with gtk+ 3.20 plus using the latest patches to
> gnome-terminal from bug 760944.

Are you aware of any documentation on how to build gtk+ and gnome-terminal from scratch on Ubuntu based system? I am continuously running into messages that require me quite some time of digging through documents (sorry, never build anything based on gtk+ myself...).

> g-t-server must be installed somewhere since g-t doesn't work without it;
> usually it's in /usr/libexec.

It's actually in /usr/lib/gnome-terminal/gnome-terminal-server on my setup. But thanks for the hint that it should be on my system somewhere. It did not really change anything with regard to the bug.

In case anyone else runs into this:
Just running gnome-terminal --app-id my.foo.Terminal results in the following error: Failed to register: Unable to acquire bus name 'my.foo.Terminal One needs to run gnome-terminal.real --app-id my.foo.Terminal on all(?) distros based on the Ubuntu 16.04 repositories.
Comment 3 Debarshi Ray 2016-06-27 05:47:37 UTC
(In reply to jbreitbart from comment #2)
> > but you could try with gtk+ 3.20 plus using the latest patches to
> > gnome-terminal from bug 760944.
> 
> Are you aware of any documentation on how to build gtk+ and gnome-terminal
> from scratch on Ubuntu based system?

You can try jhbuild:
https://wiki.gnome.org/Newcomers/BuildGnome
Comment 4 Christian Persch 2016-08-01 18:29:59 UTC
Did you try the patches (now comitted to gnome-terminal git master) ?
Comment 5 Jens Breitbart 2016-08-07 15:16:56 UTC
Sorry for the delay, but real life happened and I was away from the system with the elementary OS installation.

I think the issue is not fixed, but it could be that I did something wrong. Here is what I did (in an xterm):

* Run 'jhbuild build gnome-terminal' and it completed successfully.
* 'killall gnome-terminal-server'
* 'jhbuild run gnome-terminal'

I don't know how the make jhbuild start the gnome-terminal-server. When I try to run it manually, I get the following error:

$ libexec/gnome-terminal-server --app-id my.foo.Terminal

(gnome-terminal-server:17803): GLib-GIO-ERROR **: Settings schema 'org.gnome.Terminal.Legacy.Settings' does not contain a key named 'theme-variant'
Trace/breakpoint trap (core dumped)

The terminal started with 'jhbuild run gnome-terminal' still shows the strange behaviour.
Comment 6 Christian Persch 2016-08-07 16:02:12 UTC
You need to 'jhbuild shell' and run g-t-server from it:

$ ./gnome-terminal-server -app-id foo.Terminal & (sleep 5; ./gnome-terminal --app-id foo.Terminal)

(Also I'm not sure which branch of g-t jhbuild builds, check that it is indeed git master.)
Comment 7 Jens Breitbart 2016-08-07 17:20:25 UTC
Thanks, that helped. The bug is gone, but the scrollbar is gone as well. I'll attach a screenshot. The following warning pops up in the terminal I used to start gnome-terminal-server / gnome-terminal:

(gnome-terminal-server:4749): Gtk-WARNING **: GtkScrollbar 0xb501f0 is drawn without a current allocation. This should not happen.

jhbuild uses the master branch of gnome-terminal. The latest commit is:
commit 59522bb850eb20d569b4f7db366bd2302a5077e0
Author: Debarshi Ray <debarshir@gnome.org>
Date:   Fri Aug 5 10:36:01 2016 +0200

    appdata: Use *.metainfo.xml as extension for the nautilus add-on
    
    https://bugzilla.gnome.org/show_bug.cgi?id=769538
Comment 8 Jens Breitbart 2016-08-07 17:21:19 UTC
Created attachment 332891 [details]
Screenshot of gnome-terminal master branch
Comment 9 Christian Persch 2016-08-07 18:16:54 UTC
Did you jhbuild gtk+ as well? If so I guess the scrollbar thing is a new gtk bug...
Comment 10 Jens Breitbart 2016-08-07 19:31:21 UTC
Yes. From a jhbuild shell:

$ ldd gnome-terminal |grep gtk
	libgtk-3.so.0 => /home/jbreitbart/jhbuild/install/lib/libgtk-3.so.0 (0x00007ff0968fd000)

gtk+:
$ git log
commit cb3fc956c5cebdbeee1fe9dd1038b1f9ccc61852
Author: Yosef Or Boczko <yoseforb@src.gnome.org>
Date:   Sun Aug 7 16:05:42 2016 +0300
Comment 11 Christian Persch 2016-09-04 12:49:16 UTC
Ok so since the original problem is gone, and the new problem is a gtk+ problem already filed (bug 769566) manifesting in more than just g-t, let's mark this bug done.