GNOME Bugzilla – Bug 768037
gnome-terminal terminal gets narrower when mouse is moved across the right border
Last modified: 2016-09-04 12:49:16 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
> 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.
(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.
(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
Did you try the patches (now comitted to gnome-terminal git master) ?
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.
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.)
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
Created attachment 332891 [details] Screenshot of gnome-terminal master branch
Did you jhbuild gtk+ as well? If so I guess the scrollbar thing is a new gtk bug...
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
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.