GNU bug report logs -
#53900
29.0.50; pgtk: Gtk-CRITICAL warning with customized default face
Previous Next
Reported by: Stephen Berman <stephen.berman <at> gmx.net>
Date: Wed, 9 Feb 2022 16:53:01 UTC
Severity: normal
Tags: moreinfo
Found in version 29.0.50
Done: Stephen Berman <stephen.berman <at> gmx.net>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 53900 in the body.
You can then email your comments to 53900 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#53900
; Package
emacs
.
(Wed, 09 Feb 2022 16:53:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Stephen Berman <stephen.berman <at> gmx.net>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Wed, 09 Feb 2022 16:53:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
0. emacs -Q
1. Sanity check: evaluating the following sexp displays a non-GTK
tooltip and the shell emits no warning:
(let (use-system-tooltips)
(tooltip-show "Test"))
2. Evaluate this sexp:
(custom-set-faces '(default ((t (:background "lightblue")))))
3. Evaluate the sexp in step 1 again:
=> A non-GTK tooltip is displayed and the shell emit a warning:
emacs-pgtk:12321): Gtk-CRITICAL **: 17:05:36.422: gtk_css_provider_load_from_data: assertion 'GTK_IS_CSS_PROVIDER (css_provider)' failed
In my tests this happens only when customizing the `default' face
(though admittedly I haven't tested all faces nor all face attributes).
It also happens when step 2 is replaced by loading any built-in theme
(all of which customize the `default' face). (As a test I created a
theme that does not customize the `default' face and with that theme did
not get the warning.)
My first pgtk-build that shows this warning is from commit
dc5930ba973c9d921e9124b7afa1a65bba568b45. My previous pgtk-build at
commit 988d3d79bac0343dd2b1b89d1b15470edbb5e6ac does not show the
warning with the above recipe. Unfortunately, I don't have time now to
do a git bisect to pinpoint the commit that causes the warning to be
emitted.
There is no warning if use-system-tooltips is non-nil. And there is no
warning with the above recipe in a non-PGTK GTK3 build.
In GNU Emacs 29.0.50 (build 10, x86_64-pc-linux-gnu, GTK+ Version 3.24.31, cairo version 1.17.4)
of 2022-02-09 built on strobelfs2
Repository revision: 2386aa8a5d1b8b3f38361ee2d5228f739dfe2c3a
Repository branch: master
System Description: Linux From Scratch r11.0-115
Configured using:
'configure --with-pgtk --with-xwidgets 'CFLAGS=-Og -g3'
PKG_CONFIG_PATH=/opt/qt5/lib/pkgconfig'
Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG
JSON LCMS2 LIBSYSTEMD LIBXML2 MODULES NOTIFY INOTIFY PDUMPER PGTK PNG
RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS WEBP XIM
XWIDGETS GTK3 ZLIB
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#53900
; Package
emacs
.
(Thu, 10 Feb 2022 02:13:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 53900 <at> debbugs.gnu.org (full text, mbox):
Stephen Berman <stephen.berman <at> gmx.net> writes:
> 0. emacs -Q
> 1. Sanity check: evaluating the following sexp displays a non-GTK
> tooltip and the shell emits no warning:
> (let (use-system-tooltips)
> (tooltip-show "Test"))
> 2. Evaluate this sexp:
> (custom-set-faces '(default ((t (:background "lightblue")))))
> 3. Evaluate the sexp in step 1 again:
> => A non-GTK tooltip is displayed and the shell emit a warning:
>
> emacs-pgtk:12321): Gtk-CRITICAL **: 17:05:36.422: gtk_css_provider_load_from_data: assertion 'GTK_IS_CSS_PROVIDER (css_provider)' failed
>
> In my tests this happens only when customizing the `default' face
> (though admittedly I haven't tested all faces nor all face attributes).
> It also happens when step 2 is replaced by loading any built-in theme
> (all of which customize the `default' face). (As a test I created a
> theme that does not customize the `default' face and with that theme did
> not get the warning.)
>
> My first pgtk-build that shows this warning is from commit
> dc5930ba973c9d921e9124b7afa1a65bba568b45. My previous pgtk-build at
> commit 988d3d79bac0343dd2b1b89d1b15470edbb5e6ac does not show the
> warning with the above recipe. Unfortunately, I don't have time now to
> do a git bisect to pinpoint the commit that causes the warning to be
> emitted.
>
> There is no warning if use-system-tooltips is non-nil. And there is no
> warning with the above recipe in a non-PGTK GTK3 build.
Should be fixed now on master. Thanks.
Added tag(s) moreinfo.
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Thu, 10 Feb 2022 07:10:01 GMT)
Full text and
rfc822 format available.
Reply sent
to
Stephen Berman <stephen.berman <at> gmx.net>
:
You have taken responsibility.
(Thu, 10 Feb 2022 08:54:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
Stephen Berman <stephen.berman <at> gmx.net>
:
bug acknowledged by developer.
(Thu, 10 Feb 2022 08:54:02 GMT)
Full text and
rfc822 format available.
Message #15 received at 53900-done <at> debbugs.gnu.org (full text, mbox):
On Thu, 10 Feb 2022 10:12:08 +0800 Po Lu <luangruo <at> yahoo.com> wrote:
> Stephen Berman <stephen.berman <at> gmx.net> writes:
>
>> 0. emacs -Q
>> 1. Sanity check: evaluating the following sexp displays a non-GTK
>> tooltip and the shell emits no warning:
>> (let (use-system-tooltips)
>> (tooltip-show "Test"))
>> 2. Evaluate this sexp:
>> (custom-set-faces '(default ((t (:background "lightblue")))))
>> 3. Evaluate the sexp in step 1 again:
>> => A non-GTK tooltip is displayed and the shell emit a warning:
>>
>> emacs-pgtk:12321): Gtk-CRITICAL **: 17:05:36.422: gtk_css_provider_load_from_data: assertion 'GTK_IS_CSS_PROVIDER (css_provider)' failed
>>
>> In my tests this happens only when customizing the `default' face
>> (though admittedly I haven't tested all faces nor all face attributes).
>> It also happens when step 2 is replaced by loading any built-in theme
>> (all of which customize the `default' face). (As a test I created a
>> theme that does not customize the `default' face and with that theme did
>> not get the warning.)
>>
>> My first pgtk-build that shows this warning is from commit
>> dc5930ba973c9d921e9124b7afa1a65bba568b45. My previous pgtk-build at
>> commit 988d3d79bac0343dd2b1b89d1b15470edbb5e6ac does not show the
>> warning with the above recipe. Unfortunately, I don't have time now to
>> do a git bisect to pinpoint the commit that causes the warning to be
>> emitted.
>>
>> There is no warning if use-system-tooltips is non-nil. And there is no
>> warning with the above recipe in a non-PGTK GTK3 build.
>
> Should be fixed now on master. Thanks.
Confirmed, so I'm closing the bug. Thanks.
Steve Berman
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#53900
; Package
emacs
.
(Thu, 10 Feb 2022 10:03:01 GMT)
Full text and
rfc822 format available.
Message #18 received at 53900-done <at> debbugs.gnu.org (full text, mbox):
Stephen Berman <stephen.berman <at> gmx.net> writes:
> On Thu, 10 Feb 2022 10:12:08 +0800 Po Lu <luangruo <at> yahoo.com> wrote:
>
>> Stephen Berman <stephen.berman <at> gmx.net> writes:
>>
>>> 0. emacs -Q
>>> 1. Sanity check: evaluating the following sexp displays a non-GTK
>>> tooltip and the shell emits no warning:
>>> (let (use-system-tooltips)
>>> (tooltip-show "Test"))
>>> 2. Evaluate this sexp:
>>> (custom-set-faces '(default ((t (:background "lightblue")))))
>>> 3. Evaluate the sexp in step 1 again:
>>> => A non-GTK tooltip is displayed and the shell emit a warning:
>>>
>>> emacs-pgtk:12321): Gtk-CRITICAL **: 17:05:36.422: gtk_css_provider_load_from_data: assertion 'GTK_IS_CSS_PROVIDER (css_provider)' failed
>>>
>>> In my tests this happens only when customizing the `default' face
>>> (though admittedly I haven't tested all faces nor all face attributes).
>>> It also happens when step 2 is replaced by loading any built-in theme
>>> (all of which customize the `default' face). (As a test I created a
>>> theme that does not customize the `default' face and with that theme did
>>> not get the warning.)
>>>
>>> My first pgtk-build that shows this warning is from commit
>>> dc5930ba973c9d921e9124b7afa1a65bba568b45. My previous pgtk-build at
>>> commit 988d3d79bac0343dd2b1b89d1b15470edbb5e6ac does not show the
>>> warning with the above recipe. Unfortunately, I don't have time now to
>>> do a git bisect to pinpoint the commit that causes the warning to be
>>> emitted.
>>>
>>> There is no warning if use-system-tooltips is non-nil. And there is no
>>> warning with the above recipe in a non-PGTK GTK3 build.
>>
>> Should be fixed now on master. Thanks.
>
> Confirmed, so I'm closing the bug. Thanks.
Thanks for testing.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 10 Mar 2022 12:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 3 years and 153 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.