Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 667672 - app-editors/emacs-26.1-r3 prints Gtk-CRITICAL warnings
Summary: app-editors/emacs-26.1-r3 prints Gtk-CRITICAL warnings
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: GNU Emacs project
URL:
Whiteboard:
Keywords: PATCH, UPSTREAM
Depends on:
Blocks:
 
Reported: 2018-10-03 18:44 UTC by Joakim Tjernlund
Modified: 2018-10-13 15:26 UTC (History)
1 user (show)

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


Attachments
Don't call GTK functions on non-GTK scrollbars (Bug#32975) (GTK_Warnings.patch,5.27 KB, patch)
2018-10-11 19:46 UTC, Joakim Tjernlund
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Joakim Tjernlund 2018-10-03 18:44:19 UTC
Starting with emacs 26 I get thses GTK warnings when I start emacs:
# > emacs-26 

(emacs-26:10892): Gtk-CRITICAL **: gtk_widget_get_parent: assertion 'GTK_IS_WIDGET (widget)' failed

(emacs-26:10892): Gtk-CRITICAL **: gtk_widget_override_background_color: assertion 'GTK_IS_WIDGET (widget)' failed

(emacs-26:10892): Gtk-CRITICAL **: gtk_widget_get_parent: assertion 'GTK_IS_WIDGET (widget)' failed

(emacs-26:10892): Gtk-CRITICAL **: gtk_widget_override_background_color: assertion 'GTK_IS_WIDGET (widget)' failed

(emacs-26:10892): Gtk-CRITICAL **: gtk_widget_get_parent: assertion 'GTK_IS_WIDGET (widget)' failed

(emacs-26:10892): Gtk-CRITICAL **: gtk_widget_override_background_color: assertion 'GTK_IS_WIDGET (widget)' failed

(emacs-26:10892): Gtk-CRITICAL **: gtk_widget_get_parent: assertion 'GTK_IS_WIDGET (widget)' failed

(emacs-26:10892): Gtk-CRITICAL **: gtk_widget_override_background_color: assertion 'GTK_IS_WIDGET (widget)' failed
Comment 1 Joakim Tjernlund 2018-10-03 18:50:28 UTC
Just noted that is is these lines in my .emacs files that causes the warnings:

;; Color settings.
(setq default-frame-alist '((background-color . "#333333") (foreground-color . "White") (cursor-color . "White")))
(setq initial-frame-alist default-frame-alist)

In particular it is the (background-color . "#333333") item that is
causing the warnings
Comment 2 Ulrich Müller gentoo-dev 2018-10-06 09:39:39 UTC
Can you please report this upstream, too?
Comment 3 Joakim Tjernlund 2018-10-08 20:30:39 UTC
(In reply to Ulrich Müller from comment #2)
> Can you please report this upstream, too?

Here:
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=32975

I will report back if I hear back from upstream.
Comment 4 Joakim Tjernlund 2018-10-10 20:33:13 UTC
Seems like app-emacs/ecb-2.41_pre20140215-r1 is causing this. Look at the upstrem
bug.

The current ecb points to https://github.com/alexott/ecb.git and that is old.
New how seems to be https://github.com/ecb-home/ecb/commits/master.
A new snapshot from there seems in order.
Comment 5 Joakim Tjernlund 2018-10-10 21:10:45 UTC
BTW, ECB seems dormant and I suspect emacs-ycmd(https://github.com/abingham/emacs-ycmd) would be better.
Comment 6 Ulrich Müller gentoo-dev 2018-10-11 06:40:12 UTC
(In reply to Joakim Tjernlund from comment #4)
> Seems like app-emacs/ecb-2.41_pre20140215-r1 is causing this. Look at the
> upstrem bug.

Still, lisp code shouldn't be able to cause any GTK+ warnings?

> The current ecb points to https://github.com/alexott/ecb.git and that is old.
> New how seems to be https://github.com/ecb-home/ecb/commits/master.
> A new snapshot from there seems in order.

Ah, looks like I've missed that. I am going to make a new snapshot from there then. (And how much nicer it would be if they did actual releases...)


(In reply to Joakim Tjernlund from comment #5)
> BTW, ECB seems dormant and I suspect
> emacs-ycmd(https://github.com/abingham/emacs-ycmd) would be better.

Looks like that would need ycmd (https://github.com/Valloric/ycmd) as a dependency, which is not in the tree?
Comment 7 Joakim Tjernlund 2018-10-11 06:54:50 UTC
(In reply to Ulrich Müller from comment #6)
> (In reply to Joakim Tjernlund from comment #4)
> > Seems like app-emacs/ecb-2.41_pre20140215-r1 is causing this. Look at the
> > upstrem bug.
> 
> Still, lisp code shouldn't be able to cause any GTK+ warnings?

I guess so.

> 
> > The current ecb points to https://github.com/alexott/ecb.git and that is old.
> > New how seems to be https://github.com/ecb-home/ecb/commits/master.
> > A new snapshot from there seems in order.
> 
> Ah, looks like I've missed that. I am going to make a new snapshot from
> there then. (And how much nicer it would be if they did actual releases...)

Don't think there is much new in there though.

> 
> 
> (In reply to Joakim Tjernlund from comment #5)
> > BTW, ECB seems dormant and I suspect
> > emacs-ycmd(https://github.com/abingham/emacs-ycmd) would be better.
> 
> Looks like that would need ycmd (https://github.com/Valloric/ycmd) as a
> dependency, which is not in the tree?

Correct, there  seem to be a build.py script to build it all and I don't speak
python :(

emacs-ymcd is in melpa though, one can get the ebuilds needed via
app-portage/gs-elpa
Comment 8 Joakim Tjernlund 2018-10-11 19:46:00 UTC
Created attachment 550602 [details, diff]
Don't call GTK functions on non-GTK scrollbars (Bug#32975)

This patch, from upstream, fixes the problem.
Comment 9 Ulrich Müller gentoo-dev 2018-10-11 20:04:05 UTC
Thank you. It looks like emacs-26.2 isn't very far away:
https://lists.gnu.org/archive/html/emacs-devel/2018-10/msg00060.html

So I wonder if this merits a revision bump of 26.1 (IIUC, it is only a warning but doesn't affect functionality) or if we should wait for the release of 26.2?
Comment 10 Joakim Tjernlund 2018-10-11 20:36:40 UTC
(In reply to Ulrich Müller from comment #9)
> Thank you. It looks like emacs-26.2 isn't very far away:
> https://lists.gnu.org/archive/html/emacs-devel/2018-10/msg00060.html
> 
> So I wonder if this merits a revision bump of 26.1 (IIUC, it is only a
> warning but doesn't affect functionality) or if we should wait for the
> release of 26.2?

I can wait, I got it here anyway. Thanks. I rather like if
you had a look at packaging ycmd server :)
Comment 11 Joakim Tjernlund 2018-10-11 21:07:14 UTC
BTW, upstream was a bit surprised over the use of
  --without-toolkit-scroll-bars
Something to look into?
Comment 12 Ulrich Müller gentoo-dev 2018-10-13 14:42:53 UTC
Closing as RESOLVED UPSTREAM.


(In reply to Joakim Tjernlund from comment #11)
> BTW, upstream was a bit surprised over the use of
>   --without-toolkit-scroll-bars
> Something to look into?

It can be controlled with the toolkit-scroll-bars USE flag. I don't see a compelling reason to flip the default of that flag, when all other toolkit related flags are off by default.