Bug 1217622

Summary: GIMP export image to png: Lot of messages (39000) when typing name file
Product: [openSUSE] openSUSE Tumbleweed Reporter: Philippe Condé <conde.philippe>
Component: OtherAssignee: E-mail List <screening-team-bugs>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: gnome-bugs, pstivanin
Version: Current   
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE Tumbleweed   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Philippe Condé 2023-11-29 08:21:02 UTC
Hello,
I use GIMP to export images to .png format. Gimp ask for the file name and I can enter the name and  export it to png successfully.
But when typing the file name I receive a lot of messages (journalctl -f is runnign in a window)

Nov 29 08:37:24 hpprol2 gimp-2.10[24067]: file ../gio/gfileinfo.c: line 1655 (g_file_info_get_is_backup): should not be reached
Nov 29 08:37:24 hpprol2 gimp-2.10[24067]: GFileInfo created without standard::is-hidden
Nov 29 08:37:24 hpprol2 gimp-2.10[24067]: file ../gio/gfileinfo.c: line 1633 (g_file_info_get_is_hidden): should not be reached
Nov 29 08:37:24 hpprol2 gimp-2.10[24067]: GFileInfo created without standard::is-backup
Nov 29 08:37:24 hpprol2 gimp-2.10[24067]: file ../gio/gfileinfo.c: line 1655 (g_file_info_get_is_backup): should not be reached
Nov 29 08:37:24 hpprol2 gimp-2.10[24067]: GFileInfo created without standard::is-hidden
Nov 29 08:37:24 hpprol2 gimp-2.10[24067]: file ../gio/gfileinfo.c: line 1633 (g_file_info_get_is_hidden): should not be reached
Nov 29 08:37:24 hpprol2 gimp-2.10[24067]: GFileInfo created without standard::is-backup
Nov 29 08:37:24 hpprol2 gimp-2.10[24067]: file ../gio/gfileinfo.c: line 1655 (g_file_info_get_is_backup): should not be reached
Nov 29 08:37:24 hpprol2 gimp-2.10[24067]: GFileInfo created without standard::is-hidden
Nov 29 08:37:24 hpprol2 gimp-2.10[24067]: file ../gio/gfileinfo.c: line 1633 (g_file_info_get_is_hidden): should not be reached
Nov 29 08:37:24 hpprol2 gimp-2.10[24067]: GFileInfo created without standard::is-backup
Nov 29 08:37:24 hpprol2 gimp-2.10[24067]: file ../gio/gfileinfo.c: line 1655 (g_file_info_get_is_backup): should not be reached
Nov 29 08:37:24 hpprol2 gimp-2.10[24067]: GFileInfo created without standard::is-hidden

typing the file name took 53 seconds and I received 39000 lines of messages and only the first were different referencing pango_layout

Nov 29 08:36:16 hpprol2 gimp-2.10[24067]: pango_layout_get_cursor_pos: assertion 'index >= 0 && index <= layout->length' failed
Nov 29 08:36:16 hpprol2 gimp-2.10[24067]: pango_layout_get_cursor_pos: assertion 'index >= 0 && index <= layout->length' failed
Nov 29 08:36:31 hpprol2 gimp-2.10[24067]: GFileInfo created without standard::is-hidden
Nov 29 08:36:31 hpprol2 gimp-2.10[24067]: file ../gio/gfileinfo.c: line 1633 (g_file_info_get_is_hidden): should not be reached
Nov 29 08:36:31 hpprol2 gimp-2.10[24067]: GFileInfo created without standard::is-backup
Nov 29 08:36:31 hpprol2 gimp-2.10[24067]: file ../gio/gfileinfo.c: line 1655 (g_file_info_get_is_backup): should not be reached

I use KDE plasma with X11 and GIMP is from the standard tumbleweed repository.

These messages seems warning or information but fill my journal with unneeded messages
Comment 1 Paolo Stivanin 2023-11-29 12:02:17 UTC
Hello,
this is a known issue (https://gitlab.gnome.org/GNOME/gimp/-/issues/9994) and it's caused by GTK2 and Glib >=2.76.

I'll backport the patches to GTK2. Fix is already in GTK3, but GIMP is not using GTK3 until 3.0 is out.
Comment 2 Paolo Stivanin 2023-11-29 13:08:15 UTC
Can confirm that the patch fixed the issue. 

https://build.opensuse.org/request/show/1129813