Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 549304 - [gnome-overlay] x11-terminals/gnome-terminal-3.16.2 fails starting up
Summary: [gnome-overlay] x11-terminals/gnome-terminal-3.16.2 fails starting up
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gnome-3.16
  Show dependency tree
 
Reported: 2015-05-12 22:17 UTC by Harris Landgarten
Modified: 2015-05-19 13:56 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
gnome-terminal-3.16.2.ebuild patch (gnome-terminal-no-doc.patch,654 bytes, patch)
2015-05-13 04:54 UTC, bingquick
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Harris Landgarten 2015-05-12 22:17:02 UTC
This is what I got from the journalctl:

May 12 17:27:35 harrisl-desktop org.gnome.Terminal[1757]: (gnome-terminal-server:2312): GLib-GIO-CRITICAL **: g_converter_convert: assertion 'outbuf_size > 0' failed
May 12 17:27:35 harrisl-desktop org.gnome.Terminal[1757]: **
May 12 17:27:35 harrisl-desktop org.gnome.Terminal[1757]: ERROR:terminal-app.c:340:terminal_app_startup: assertion failed (error == NULL): The resource at '/org/gnome/terminal/ui/terminal-appmenu.ui' failed to d
May 12 17:27:35 harrisl-desktop gnome-terminal.desktop[2308]: Error creating terminal: Message did not receive a reply (timeout by message bus)

xterm ran and I downgraded to gnome-terminal-3.16.1 and that runs fine as well
Comment 1 Gilles Dartiguelongue (RETIRED) gentoo-dev 2015-05-12 22:52:26 UTC
strange, it runs fine here also passed its testsuite.
Comment 2 bingquick 2015-05-13 04:54:13 UTC
Created attachment 403176 [details, diff]
gnome-terminal-3.16.2.ebuild patch
Comment 3 bingquick 2015-05-13 04:55:57 UTC
I had the similar issue, when I disabled intl' doc build it works again.
Comment 4 Gilles Dartiguelongue (RETIRED) gentoo-dev 2015-05-13 06:47:48 UTC
That's unexpected, docs building should have no relation to the application working properly or not. This patch you applied is something we use for build time failures related to docs. If you had such issue, please file a new bug report with build.log and other relevant information.
Comment 5 mkloesges 2015-05-13 09:10:45 UTC
for me building of docs failes. See #549358
Comment 6 Mike Auty (RETIRED) gentoo-dev 2015-05-13 18:36:41 UTC
Ok, so that's very strange:

1. Rebuild with no changes: no fix.
2. Rebuild with just XMLLINT line commented: fixed.
3. Rebuild with just ITSTOOL line commented: fixed.
4. Rebuild with no line commented (ie original): still fixed.
5. Log out in disbelief and log back in again: still fixed.

So I've not got a clue what could be the root cause of this issue, but I imagine it will be difficult to recreate/disagnose?
Comment 7 Harris Landgarten 2015-05-14 02:25:57 UTC
I commented out the 2 lines and rebuilt gnome-terminal-3.16.2 and it now works without issue.

BTW: I am US based so have nothing special in locale. I also am running 4 monitors with xinerama and nvidia-drivers. I did not have any problem building gnome-terminal with or without the patch. Without the patch it will not run and fails with the log entries I posted. With the patch it runs.
Comment 8 Alexandre Rostovtsev (RETIRED) gentoo-dev 2015-05-19 07:12:38 UTC
This scenario sounds like wrong dependencies in gnome-terminal ebuild (and in upstream's configure).

My hypothesis is something like this: gnome-terminal-3.16.2 will seem to successfully build using the versions of gtk+, glib, gdbus-codegen and dconf from gnome-3.14 (or 3.16.0?), but in reality it will be broken and will fail at runtime. Later, if you recompile gnome-terminal-3.16.2 after your full gnome-3.16.2 install is finished, everything works. And the patch from comment #2 is a red herring (recompiling without the patch would have been enough).

We ought to trace this down to ensure a smooth 3.14 -> 3.16.2 upgrade.
Comment 9 Roland 2015-05-19 07:47:36 UTC
Hello,

I have also the Problem:

gnome-terminal 
Error creating terminal: Message did not receive a reply (timeout by message bus)


I found this:

http://unix.stackexchange.com/questions/145167/gnome-programs-eog-gnome-terminal-have-a-slow-start-and-produce-a-dbus-error-n
Comment 10 Alexandre Rostovtsev (RETIRED) gentoo-dev 2015-05-19 08:23:10 UTC
> This is what I got from the journalctl:
> 
> May 12 17:27:35 harrisl-desktop org.gnome.Terminal[1757]:
> (gnome-terminal-server:2312): GLib-GIO-CRITICAL **: g_converter_convert:
> assertion 'outbuf_size > 0' failed
> May 12 17:27:35 harrisl-desktop org.gnome.Terminal[1757]: **
> May 12 17:27:35 harrisl-desktop org.gnome.Terminal[1757]:
> ERROR:terminal-app.c:340:terminal_app_startup: assertion failed (error ==
> NULL): The resource at '/org/gnome/terminal/ui/terminal-appmenu.ui' failed
> to d

Those are interesting messages. It's rather unlikely, but this *might* be a bug in glib that is being triggered by a specific layout of the resource file due to the XMLLINT override in our ebuild. In which case we would need to fix glib.

If you can still reproduce this issue and know how to use gdb, would you mind building gnome-terminal-3.16.2 (without the patch) and glib with -ggdb in CFLAGS, run gnome-terminal under gdb, put a breakpoint at gresource.c:465, and if the breakpoint is hit, tell me the values of s, size, s_size, d, d_size, bytes_read, and bytes_written?
Comment 11 mkloesges 2015-05-19 08:37:38 UTC
(In reply to Alexandre Rostovtsev from comment #8)
> Later, if you recompile gnome-terminal-3.16.2 after your full
> gnome-3.16.2 install is finished, everything works. And the patch from
> comment #2 is a red herring (recompiling without the patch would have been
> enough).
> 
For me that doesn't work. I've just built gnome-terminal-3.16.2 for the first time (building failed because of #549358) and it failes starting up. Rebuilding doesn't change anything here and I think that I have a 'full 3-16. install' now.


commenting XMLLINT=... in the ebuild gives fixed build. Building the one from gnome-overlay after that results in a broken build again.
For me commenting XMLLINT is needed to get a working build.
Comment 12 mkloesges 2015-05-19 09:23:22 UTC
(In reply to Alexandre Rostovtsev from comment #10)
> If you can still reproduce this issue and know how to use gdb, would you
> mind building gnome-terminal-3.16.2 (without the patch) and glib with -ggdb
> in CFLAGS, run gnome-terminal under gdb, put a breakpoint at
> gresource.c:465, and if the breakpoint is hit, tell me the values of s,
> size, s_size, d, d_size, bytes_read, and bytes_written?

I can reproduce this but can't get gdm to break there.

I've rebuilded both with
USE=debug CFLAGS=-g -ggdb emerge -av1 gnome-terminal::gnome glib


and gdm gives me 

gdb gnome-terminal
GNU gdb (Gentoo 7.7.1 p1) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type show copying
and show warranty for details.
This GDB was configured as x86_64-pc-linux-gnu.
Type show configuration for configuration details.
For bug reporting instructions, please see:
<http://bugs.gentoo.org/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type help.
Type apropos word to search for commands related to word...
Reading symbols from gnome-terminal...Reading symbols from /usr/lib64/debug//usr/bin/gnome-terminal.debug...done.
done.
(gdb) run
Starting program: /usr/bin/gnome-terminal 
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need set solib-search-path or set sysroot?
[Thread debugging using libthread_db enabled]
Using host libthread_db library /lib64/libthread_db.so.1.
[New Thread 0x7fffeb90d700 (LWP 30861)]
Error creating terminal: Message did not receive a reply (timeout by message bus)
[Thread 0x7ffff7f99900 (LWP 30847) exited]
[Inferior 1 (process 30847) exited normally]
(gdb) break gresource.c:465
Breakpoint 1 at 0x7ffff6d1757e: file /var/tmp/portage/dev-libs/glib-2.44.1/work/glib-2.44.1/gio/gresource.c, line 465.
(gdb) run
Starting program: /usr/bin/gnome-terminal 
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need set solib-search-path or set sysroot?
[Thread debugging using libthread_db enabled]
Using host libthread_db library /lib64/libthread_db.so.1.
[New Thread 0x7fffeb90d700 (LWP 30876)]
Error creating terminal: Message did not receive a reply (timeout by message bus)
[Thread 0x7ffff7f99900 (LWP 30875) exited]
[Inferior 1 (process 30875) exited normally]
(gdb) quit


I'm no experienced gdm-user, am I doing something wrong? Before first 'run' I can't set the breakpoint it is asking if I want do depend it on future shared-library load. Answering "y" there doesn't give a break at gresource.c:465 either.
Comment 13 Alexandre Rostovtsev (RETIRED) gentoo-dev 2015-05-19 13:29:40 UTC
(In reply to mkloesges from comment #12)

Thanks, then the problem is somewhere else.
Comment 14 Alexandre Rostovtsev (RETIRED) gentoo-dev 2015-05-19 13:56:24 UTC
After reading glib's source, I see that this bug really is caused by the ebuild's XMLLINT override. I thought it was only a small mistake, but I now see that it seriously broke things.

Sorry for taking so long to figure this out.


From 22589c72543186954d630965fec901685a921222 Mon Sep 17 00:00:00 2001
From: Alexandre Rostovtsev <tetromino@gentoo.org>
Date: Tue, 19 May 2015 09:55:35 -0400
Subject: [PATCH] x11-terms/gnome-terminal: XMLLINT override broke
 glib-compile-resources (bug #549304)

Thanks to Harris Landgarten, bingquick, Mike Auty, mkloesges.

Package-Manager: portage-2.2.20
Manifest-Sign-Key: 0x18E5B6F2D8D5EC8D
---
 ...{gnome-terminal-3.16.2.ebuild => gnome-terminal-3.16.2-r1.ebuild} | 5 +++--
 x11-terms/gnome-terminal/gnome-terminal-9999.ebuild                  | 3 ++-
 2 files changed, 5 insertions(+), 3 deletions(-)