[scintilla:bugs] #2498 Scite: use of deprecated API of gdk-pixbuf leads to errro message at startup

0 views
Skip to first unread message

Juergen Daubert

unread,
Feb 6, 2026, 5:40:05 AMFeb 6
to scintill...@googlegroups.com

[bugs:#2498] Scite: use of deprecated API of gdk-pixbuf leads to errro message at startup

Status: open
Group: Bug
Labels: SciTE
Created: Fri Feb 06, 2026 10:39 AM UTC by Juergen Daubert
Last Updated: Fri Feb 06, 2026 10:39 AM UTC
Owner: nobody

GTK+ 3.24.51, CRUX 3.8, Scite 5.5.8, gdk-pixbuf 2.44.5

While building Scite I see several deprecated warnings like the following:

Widget.cxx:214:57: warning: 'GdkPixbuf* gdk_pixbuf_new_from_xpm_data(const char**)' is deprecated [-Wdeprecated-declarations]
  214 |         UniquePixbuf pbGrey(gdk_pixbuf_new_from_xpm_data(xpmImage));

even though Scite builds fine, but at startup I see lots of errors and warnings, which is new to gdk-pixbuf 2.44.5. With version 2.44.4 I don't see the messages:

(scite:29244): GdkPixbuf-WARNING **: 11:01:30.620: gdk-pixbuf XPM module lacks XPM data capability
(scite:29244): GdkPixbuf-CRITICAL **: 11:01:30.620: gdk_pixbuf_add_alpha: assertion 'GDK_IS_PIXBUF (pixbuf)' failed
(scite:29244): GdkPixbuf-CRITICAL **: 11:01:30.620: gdk_pixbuf_get_pixels_with_length: assertion 'GDK_IS_PIXBUF (pixbuf)' failed
(scite:29244): GdkPixbuf-CRITICAL **: 11:01:30.620: gdk_pixbuf_get_rowstride: assertion 'GDK_IS_PIXBUF (pixbuf)' failed
(scite:29244): GdkPixbuf-CRITICAL **: 11:01:30.620: gdk_pixbuf_get_width: assertion 'GDK_IS_PIXBUF (pixbuf)' failed
(scite:29244): GdkPixbuf-CRITICAL **: 11:01:30.620: gdk_pixbuf_get_height: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

Scite is running after that, but all icons from the toolbar are missing.
I saw a similar behavior with gvim and reported this as a bug to gdk-pixbuf, see here:
https://gitlab.gnome.org/GNOME/gdk-pixbuf/-/issues/299

Thanks!


Sent from sourceforge.net because scintill...@googlegroups.com is subscribed to https://sourceforge.net/p/scintilla/bugs/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/scintilla/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.

Neil Hodgson

unread,
Feb 6, 2026, 5:25:01 PMFeb 6
to scintill...@googlegroups.com

It is up to your distribution whether GdkPixbuf is built with XPM support.

I use Ubuntu (currently 25.10) which includes XPM support. These deprecation warnings do not appear for me on this system.

SciTE uses XPM for toolbar buttons and search/replace pane option buttons. The toolbar can be changed to use stock system images with the toolbar.usestockicons=1 setting although some of these aren't great and this won't avoid the warnings.

XPM makes it easy to include images inline in source code where it is certain that they can be found and avoids potential problems with loading images from files.

If anyone is interested in working on this, the XPM format is quite simple and a replacement for gdk_pixbuf_new_from_xpm_data could be implemented inside SciTE. Scintilla already includes some XPM reading code (in scintilla/src/XPM.cxx from XPM::Init(...linesForm) but that only handles 1-byte-per-pixel XPMs and there are a couple of 2-bytes-per-pixel XPMs (close_xpm and replace_xpm in scite/gtk/pixmapsGNOME.h. It would be OK to replace these two images with simpler 1-byte-per-pixel versions.

Please do not copy the LGPL implementation of gdk_pixbuf_new_from_xpm_data as its license is incompatible when copying source as opposed to linking dynamically.

It would really be much simpler and more secure for the GTK project to re-enable XPM support instead of breaking downstream projects.

Juergen Daubert

unread,
Feb 8, 2026, 9:03:34 AMFeb 8
to scintill...@googlegroups.com

gdk-pixbuf on my system is build with XPM support. As I wrote already, this behavior is new with version 2.44.5, all versions until 2.44.4 and older are working without the warnings and errors.


[bugs:#2498] Scite: use of deprecated API of gdk-pixbuf leads to errro message at startup

Status: open
Group: Bug
Labels: SciTE
Created: Fri Feb 06, 2026 10:39 AM UTC by Juergen Daubert

Last Updated: Fri Feb 06, 2026 10:24 PM UTC
Owner: nobody

Neil Hodgson

unread,
Feb 25, 2026, 6:10:03 PM (12 days ago) Feb 25
to scintill...@googlegroups.com

Commit [30101b] simplifies the XPM toolbar images to 1-byte-per-pixel to make it easier to implement a replacement for gdk_pixbuf_new_from_xpm_data.


[bugs:#2498] Scite: use of deprecated API of gdk-pixbuf leads to errro message at startup

Status: open
Group: Bug
Labels: SciTE
Created: Fri Feb 06, 2026 10:39 AM UTC by Juergen Daubert

Last Updated: Sun Feb 08, 2026 02:03 PM UTC
Owner: nobody

Neil Hodgson

unread,
Mar 8, 2026, 4:45:50 AM (2 days ago) Mar 8
to scintill...@googlegroups.com

Replaced gdk_pixbuf_new_from_xpm_data with new function PixBuffer.
Committed with [86e7da].


[bugs:#2498] Scite: use of deprecated API of gdk-pixbuf leads to errro message at startup

Status: open
Group: Bug
Labels: SciTE
Created: Fri Feb 06, 2026 10:39 AM UTC by Juergen Daubert

Last Updated: Wed Feb 25, 2026 11:09 PM UTC
Owner: nobody

Neil Hodgson

unread,
Mar 8, 2026, 4:46:05 AM (2 days ago) Mar 8
to scintill...@googlegroups.com
  • labels: SciTE --> SciTE, GTK
  • status: open --> open-fixed

[bugs:#2498] Scite: use of deprecated API of gdk-pixbuf leads to errro message at startup

Status: open-fixed
Group: Bug
Labels: SciTE GTK

Created: Fri Feb 06, 2026 10:39 AM UTC by Juergen Daubert

Last Updated: Sun Mar 08, 2026 08:45 AM UTC
Owner: nobody

Reply all
Reply to author
Forward
0 new messages