FS#49949 - [gtk2] Crashes after opening any gimp dialog for text and pressing caps lock

Attached to Project: Arch Linux
Opened by JF (jfcandidofilho) - Tuesday, 05 July 2016, 03:08 GMT
Last edited by Jan de Groot (JGC) - Tuesday, 19 July 2016, 14:29 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Jan de Groot (JGC)
Jan Alexander Steffens (heftig)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
------------

Whenever you use gimp and open a text dialog of any sort for layers' name, it will crash if caps lock is pressed to [de]activate itself. But it should be wise for devs to check other instances too.

It's been like this since March 2016 if I'm not mistaken (that I noted). Also, in Ubuntu's bugs.launchpad ('UBL') there are people complaining too.

As I have noted from UBL, seems like it's a problem with GTK+ (see link below). And appears to be fixed. Not sure why it came back or if it was only fixed for the Text Tool (meaning code can be improoved to be shared, I guess?) and not for layers' name.

Additional info:
----------------

Not sure about what packages should be here.. So I got all of which I think might be interesting to have (anything with GTK in its name plus GIMP plus 'dependencies').

Using KDE 5/Plasma.

* Package version(s): gimp 2.8.16; gtk2-perl 1.2498-2; kde-gtk-config 5.6.5-1; wxgtk 3.0.2-5; gtkmm 2.24.4-2; gtkglext 1.2.0-10; gtk3 3.20.6-1; gtk2 2.24.30-2; gtk-sharp-2 2.12.29-1; glib2 2.48.1-1; clutter-gtk 1.8.0-1

* No error generated on screen. Just crashes. Invokng with terminal, generates error (see below).
* Ubuntu's bugs.launchpad: https://bugs.launchpad.net/ubuntu/+source/gtk+2.0/+bug/1576424
* GNOME's Bugzilla: https://bugzilla.gnome.org/show_bug.cgi?id=648419
* Terminal output:

++++ [jose@imperia ~]$ gimp &
++++ [jose@imperia ~]$
++++ ** (gimp:6386): WARNING **: Invalid borders specified for theme pixmap:
++++ /usr/share/themes/Breeze/gtk-2.0/../assets/line-h.png,
++++ borders don't fit within the image
++++
++++ (gimp:6386): GLib-GObject-CRITICAL **: g_type_instance_get_private: assertion 'instance != NULL && instance->g_class != ++++ NULL' failed
++++
++++ (gimp:6386): GLib-GObject-CRITICAL **: g_type_instance_get_private: assertion 'instance != NULL && instance->g_class != ++++ NULL' failed
++++
++++ (script-fu:6391): LibGimpBase-WARNING **: script-fu: gimp_wire_read(): error
++++
++++ [1]+ Falha de segmentação (imagem do núcleo gravada) gimp

The last line means in a rough translation: "[1]+ Segmentation fault (core image recorded/saved) gimp"


Steps to reproduce:
-------------------

1 - Open gimp and open a file or create a new one.
2 - Open the dialog to rename the default (or any other layer) with caps lock already activated (before opening it).
3 - Hit caps lock to deactivate it.
4 - BINGO! Crashes. If not, click outside the layer to lose focus. Re-do from step #2. BINGO! Crashes. If not, try editing one time the layer's name and release focus. Re-do from step #2. If not, repeat from step #2 until the d*mned bug shows itself.

Notes:
- Works if you try to activate caps lock too (sometimes).
- Works if a new dialog appears or if the layer is directly edited into the 'label'.
- The image attached tries to illustrate my [kinda not] poor English.
This task depends upon

Closed by  Jan de Groot (JGC)
Tuesday, 19 July 2016, 14:29 GMT
Reason for closing:  Fixed
Comment by Askhat Bakarov (sirocco) - Tuesday, 05 July 2016, 03:30 GMT
Confirm.

1 - Open gimp and open a file or create a new one.
2 - Open the dialog to rename the default (or any other layer) with caps lock already activated (before opening it).
3 - Hit caps lock to deactivate it.

On step #2 rename must be using F2 (not properties).
Comment by Jan de Groot (JGC) - Thursday, 14 July 2016, 11:13 GMT
Please try gtk2-2.24.30+95+g876b5f7-1 from testing.

Loading...