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 729582 - Terminal window becomes small when start or minimize window
Terminal window becomes small when start or minimize window
Status: RESOLVED FIXED
Product: mutter
Classification: Core
Component: general
3.13.x
Other Linux
: Normal normal
: ---
Assigned To: mutter-maint
mutter-maint
: 729734 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2014-05-05 16:12 UTC by Igor Gnatenko
Modified: 2014-05-07 18:12 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
video with bug (1.03 MB, video/ogg)
2014-05-05 16:15 UTC, Igor Gnatenko
Details
video of another bug (438.48 KB, video/webm)
2014-05-05 20:45 UTC, Mantas Mikulėnas (grawity)
Details

Description Igor Gnatenko 2014-05-05 16:12:36 UTC
Steps to reproduce:
1. open gnome-terminal

Actual results:
Terminal window size becomes small (as possible)

Expected results:
Terminal window size becomes normal

Additional info:
I've compiled gnome-terminal with debug.
exported GNOME_TERMINAL_DEBUG=geometry
started gdb --args /usr/libexec/gnome-terminal-server --app-id my.foo.Terminal
(gdb)run
in split window started gnome-terminal --app-id my.foo.Terminal

(gdb)run
Starting program: /usr/libexec/gnome-terminal-server --app-id my.foo.Terminal
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[New Thread 0x7fffe5dff700 (LWP 15467)]
[New Thread 0x7fffdf51c700 (LWP 15468)]

(gnome-terminal-server:15463): GLib-GObject-WARNING **: gsignal.c:2462: signal 'size-request' is invalid for instance '0x8e2340' of type 'TerminalWindow'

(gnome-terminal-server:15463): GLib-GObject-WARNING **: gsignal.c:2462: signal 'size-request' is invalid for instance '0x991f90' of type 'TerminalScreen'
[window 0x8e2340] setting size after flipping notebook pages
[window 0x8e2340] hints: base 2x2 min 38x20 inc 9 18
[window 0x8e2340] show, size 1 : 1 at (-1, -1)
[window 0x8e2340] hints: increment unchanged, not setting
[screen 0x991f90] size-alloc   722 : 434 at (0, 27)
[window 0x8e2340] size-alloc result 735 : 461 at (0, 0)
[window 0x8e2340] realize, size 735 : 461 at (0, 0)
[screen 0x991f90] size-alloc   722 : 434 at (0, 27)
[window 0x8e2340] size-alloc result 735 : 461 at (0, 0)
Detaching after fork from child process 15471.
Detaching after fork from child process 15472.
[New Thread 0x7fffdce4e700 (LWP 15473)]
[window 0x8e2340] hints: increment unchanged, not setting
[screen 0x991f90] size-alloc   720 : 430 at (0, 27)
[window 0x8e2340] size-alloc result 733 : 457 at (0, 0)
[screen 0x991f90] size-alloc   720 : 430 at (0, 27)
[window 0x8e2340] size-alloc result 733 : 457 at (0, 0)
[window 0x8e2340] hints: increment unchanged, not setting
[screen 0x991f90] size-alloc   711 : 412 at (0, 27)
[window 0x8e2340] size-alloc result 724 : 439 at (0, 0)
[screen 0x991f90] size-alloc   702 : 394 at (0, 27)
[window 0x8e2340] size-alloc result 715 : 421 at (0, 0)
[screen 0x991f90] size-alloc   693 : 376 at (0, 27)
[window 0x8e2340] size-alloc result 706 : 403 at (0, 0)
[screen 0x991f90] size-alloc   684 : 358 at (0, 27)
[window 0x8e2340] size-alloc result 697 : 385 at (0, 0)
[screen 0x991f90] size-alloc   675 : 340 at (0, 27)
[window 0x8e2340] size-alloc result 688 : 367 at (0, 0)
[screen 0x991f90] size-alloc   666 : 322 at (0, 27)
[window 0x8e2340] size-alloc result 679 : 349 at (0, 0)
[screen 0x991f90] size-alloc   657 : 304 at (0, 27)
[window 0x8e2340] size-alloc result 670 : 331 at (0, 0)
[screen 0x991f90] size-alloc   648 : 286 at (0, 27)
[window 0x8e2340] size-alloc result 661 : 313 at (0, 0)
[screen 0x991f90] size-alloc   639 : 268 at (0, 27)
[window 0x8e2340] size-alloc result 652 : 295 at (0, 0)
[screen 0x991f90] size-alloc   630 : 250 at (0, 27)
[window 0x8e2340] size-alloc result 643 : 277 at (0, 0)
[screen 0x991f90] size-alloc   621 : 232 at (0, 27)
[window 0x8e2340] size-alloc result 634 : 259 at (0, 0)
[screen 0x991f90] size-alloc   612 : 214 at (0, 27)
[window 0x8e2340] size-alloc result 625 : 241 at (0, 0)
[screen 0x991f90] size-alloc   603 : 196 at (0, 27)
[window 0x8e2340] size-alloc result 616 : 223 at (0, 0)
[screen 0x991f90] size-alloc   594 : 178 at (0, 27)
[window 0x8e2340] size-alloc result 607 : 205 at (0, 0)
[screen 0x991f90] size-alloc   585 : 160 at (0, 27)
[window 0x8e2340] size-alloc result 598 : 187 at (0, 0)
[screen 0x991f90] size-alloc   576 : 142 at (0, 27)
[window 0x8e2340] size-alloc result 589 : 169 at (0, 0)
[screen 0x991f90] size-alloc   567 : 124 at (0, 27)
[window 0x8e2340] size-alloc result 580 : 151 at (0, 0)
[screen 0x991f90] size-alloc   558 : 106 at (0, 27)
[window 0x8e2340] size-alloc result 571 : 133 at (0, 0)
[screen 0x991f90] size-alloc   549 : 88 at (0, 27)
[window 0x8e2340] size-alloc result 562 : 115 at (0, 0)
[screen 0x991f90] size-alloc   540 : 70 at (0, 27)
[window 0x8e2340] size-alloc result 553 : 97 at (0, 0)
[screen 0x991f90] size-alloc   531 : 56 at (0, 27)
[window 0x8e2340] size-alloc result 544 : 83 at (0, 0)
[screen 0x991f90] size-alloc   522 : 56 at (0, 27)
[window 0x8e2340] size-alloc result 535 : 83 at (0, 0)
[screen 0x991f90] size-alloc   513 : 56 at (0, 27)
[window 0x8e2340] size-alloc result 526 : 83 at (0, 0)
[screen 0x991f90] size-alloc   504 : 56 at (0, 27)
[window 0x8e2340] size-alloc result 517 : 83 at (0, 0)
[screen 0x991f90] size-alloc   495 : 56 at (0, 27)
[window 0x8e2340] size-alloc result 508 : 83 at (0, 0)
[screen 0x991f90] size-alloc   486 : 56 at (0, 27)
[window 0x8e2340] size-alloc result 499 : 83 at (0, 0)
[screen 0x991f90] size-alloc   477 : 56 at (0, 27)
[window 0x8e2340] size-alloc result 490 : 83 at (0, 0)
[screen 0x991f90] size-alloc   468 : 56 at (0, 27)
[window 0x8e2340] size-alloc result 481 : 83 at (0, 0)
[screen 0x991f90] size-alloc   459 : 56 at (0, 27)
[window 0x8e2340] size-alloc result 472 : 83 at (0, 0)
[screen 0x991f90] size-alloc   450 : 56 at (0, 27)
[window 0x8e2340] size-alloc result 463 : 83 at (0, 0)
[screen 0x991f90] size-alloc   441 : 56 at (0, 27)
[window 0x8e2340] size-alloc result 454 : 83 at (0, 0)
[screen 0x991f90] size-alloc   432 : 56 at (0, 27)
[window 0x8e2340] size-alloc result 445 : 83 at (0, 0)
[screen 0x991f90] size-alloc   423 : 56 at (0, 27)
[window 0x8e2340] size-alloc result 436 : 83 at (0, 0)
[screen 0x991f90] size-alloc   414 : 56 at (0, 27)
[window 0x8e2340] size-alloc result 427 : 83 at (0, 0)
[screen 0x991f90] size-alloc   405 : 56 at (0, 27)
[window 0x8e2340] size-alloc result 418 : 83 at (0, 0)
[screen 0x991f90] size-alloc   396 : 56 at (0, 27)
[window 0x8e2340] size-alloc result 409 : 83 at (0, 0)
[screen 0x991f90] size-alloc   387 : 56 at (0, 27)
[window 0x8e2340] size-alloc result 400 : 83 at (0, 0)
[screen 0x991f90] size-alloc   378 : 56 at (0, 27)
[window 0x8e2340] size-alloc result 391 : 83 at (0, 0)
[screen 0x991f90] size-alloc   369 : 56 at (0, 27)
[window 0x8e2340] size-alloc result 382 : 83 at (0, 0)
[screen 0x991f90] size-alloc   360 : 56 at (0, 27)
[window 0x8e2340] size-alloc result 373 : 83 at (0, 0)
[screen 0x991f90] size-alloc   351 : 56 at (0, 27)
[window 0x8e2340] size-alloc result 364 : 83 at (0, 0)
[screen 0x991f90] size-alloc   342 : 56 at (0, 27)
[window 0x8e2340] size-alloc result 355 : 83 at (0, 0)
[screen 0x991f90] size-alloc   333 : 56 at (0, 27)
[window 0x8e2340] size-alloc result 346 : 83 at (0, 0)
[screen 0x991f90] size-alloc   324 : 56 at (0, 27)
[window 0x8e2340] size-alloc result 337 : 83 at (0, 0)
[screen 0x991f90] size-alloc   315 : 56 at (0, 27)
[window 0x8e2340] size-alloc result 328 : 83 at (0, 0)
[screen 0x991f90] size-alloc   306 : 56 at (0, 27)
[window 0x8e2340] size-alloc result 319 : 83 at (0, 0)
[screen 0x991f90] size-alloc   299 : 56 at (0, 27)
[window 0x8e2340] size-alloc result 312 : 83 at (0, 0)
[window 0x8e2340] hints: increment unchanged, not setting
[screen 0x991f90] size-alloc   299 : 56 at (0, 27)
[window 0x8e2340] size-alloc result 312 : 83 at (0, 0)


This bug present probably after latest mutter update (but I'm not sure. I've not tested old mutter). Also probably this bug not in gnome-terminal, because I see this bug in GVim. I don't know where bug.
Comment 1 Igor Gnatenko 2014-05-05 16:15:03 UTC
Created attachment 275898 [details]
video with bug
Comment 2 Christian Persch 2014-05-05 16:27:56 UTC
-> mutter
Comment 3 Mantas Mikulėnas (grawity) 2014-05-05 16:42:02 UTC
Sounds like the same bug from IRC last week, which I bisected to:

commit 2209eac2bf2a02a025f25b9e91414a2c9c2f3846
Author: Jasper St. Pierre <jstpierre@mecheye.net>
Date:   Mon Apr 28 14:31:17 2014 -0400

    constraints: Make meta_window_constrain take window geometry rects
    
    Remove extend_by_frame and unextend_by_frame. Use a dumb hack in
    window.c to translate into window geometry in back. We'll soon track
    all rectangles in MetaWindow in terms of the window geometry.
Comment 4 Jasper St. Pierre (not reading bugmail) 2014-05-05 16:54:10 UTC
I was expecting some fallout as a result of that one. I'll investigate today.
Comment 5 Jasper St. Pierre (not reading bugmail) 2014-05-05 17:10:46 UTC
Should be fixed by https://git.gnome.org/browse/mutter/commit/?id=f4ef4b7
Comment 6 Mantas Mikulėnas (grawity) 2014-05-05 20:45:04 UTC
Created attachment 275913 [details]
video of another bug

That fixed gnome-terminal's auto-shrinking. \o/

But there are some other oddities when resizing windows – e.g. if I try to make the window taller, it actually becomes more narrow from both sides (see attached video). And generally impossible to resize sanely.

[Side note: gnome-shell's built-in screencasts' quality is much more awesomer than recordmydesktop.]
Comment 7 Igor Gnatenko 2014-05-06 05:37:38 UTC
(In reply to comment #6)
> Created an attachment (id=275913) [details]
> video of another bug
>
> [Side note: gnome-shell's built-in screencasts' quality is much more awesomer
> than recordmydesktop.]
where I can find gnome-shell's built-in screencasts?
Comment 8 Mantas Mikulėnas (grawity) 2014-05-06 05:42:12 UTC
(In reply to comment #7)
> (In reply to comment #6)
> > Created an attachment (id=275913) [details] [details]
> > video of another bug
> >
> > [Side note: gnome-shell's built-in screencasts' quality is much more awesomer
> > than recordmydesktop.]
> where I can find gnome-shell's built-in screencasts?

Ctrl+Alt+Shift+R to start/stop, then look for ~/Videos/*.webm
Comment 9 Mantas Mikulėnas (grawity) 2014-05-06 05:51:55 UTC
It seems that commit bc8799d7d7f240 fixes both the resizing bug and some others.
Comment 10 Jasper St. Pierre (not reading bugmail) 2014-05-06 13:00:47 UTC
Yeah, this one should be fixed now. It seems I forgot to mark it as so.
Comment 11 Christian Persch 2014-05-07 18:12:16 UTC
*** Bug 729734 has been marked as a duplicate of this bug. ***