After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 575267 - gnumeric ignores keyboard input
gnumeric ignores keyboard input
Status: RESOLVED FIXED
Product: Gnumeric
Classification: Applications
Component: General
1.8.x
Other All
: Normal normal
: ---
Assigned To: Jody Goldberg
Jody Goldberg
: 573769 587198 589188 589566 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2009-03-13 16:52 UTC by Charlie Kravetz
Modified: 2009-10-26 18:11 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
file causing the initial report (2.19 KB, text/plain)
2009-03-13 20:25 UTC, Charlie Kravetz
  Details
backtrace for gnumeric (6.22 KB, text/plain)
2009-03-14 00:57 UTC, Charlie Kravetz
  Details
Looks like gtk has changed the semantics of the IM context, again. (8.46 KB, patch)
2009-03-14 01:03 UTC, Jody Goldberg
none Details | Review

Description Charlie Kravetz 2009-03-13 16:52:23 UTC
Please describe the problem:
This bug has been reported on Ubuntu Launchpad as:
https://bugs.launchpad.net/bugs/333139

It is intermittent but does occur quite frequently.

Sometimes after opening a spreadsheet gnumeric almost ignores my keyboard input. By that I mean I can see characters appearing in the input box above the spreadsheet, but they don't actually get written in to the cells, when I press enter or press buttons next to the input box. Once it's in this mode I can't seem to do anything to make it work again, but sometimes quitting gnumeric and restarting it will make it work.

I couldn't reproduce it in about 5 attempts at creating a new file, but it is occurring with several files that I already have, even very simple files. You can see in the screenshot that many of the toolbar icons and the corresponding menu items are disabled.

screenshot is located at: http://launchpadlibrarian.net/22993843/2009-02-23-160847_829x628_scrot.png

A SECOND REPORTER CONFIRMS THIS:


I see the same thing in gnumeric-1.8.4-3ubuntu1 OS: Jaunty alpha updated today

The problem occurs if I open gnumeric, then use the File->Open process to open a file.
From a terminal window upon opening gnumeric I see the following:

~/.config$ gnumeric

(gnumeric:24916): Gtk-WARNING **: Inserting action group 'FileHistory' into UI manager which already has a group with this name

When I open a file to edit, I get the following:

Reading file:///home/a/.config/2009.gnumeric

(gnumeric:24916): Gtk-WARNING **: Inserting action group 'WindowList' into UI manager which already has a group with this name

** (gnumeric:24916): CRITICAL **: scg_edit_start: assertion `IS_SHEET_CONTROL_GUI (scg)' failed

** (gnumeric:24916): CRITICAL **: wbcg_edit_finish: assertion `IS_SHEET (wbcg->editing_sheet)' failed

(gnumeric:24916): Gtk-WARNING **: Inserting action group 'FileHistory' into UI manager which already has a group with this name

(gnumeric:24916): Gtk-WARNING **: Inserting action group 'FileHistory' into UI manager which already has a group with this name

(gnumeric:24916): Gtk-WARNING **: Inserting action group 'WindowList' into UI manager which already has a group with this name

(gnumeric:24916): Gtk-WARNING **: Inserting action group 'FileHistory' into UI manager which already has a group with this name

Now, if I call gnumeric with the name ofthe file I want to open, I get the following:
~/.config$ gnumeric 2009.gnumeric
Reading file:///home/a/.config/2009.gnumeric

(gnumeric:25064): Gtk-WARNING **: Inserting action group 'FileHistory' into UI manager which already has a group with this name

(gnumeric:25064): Gtk-WARNING **: Inserting action group 'FileHistory' into UI manager which already has a group with this name

and I can enter data into any cell in the spreadsheet as expected.



Steps to reproduce:


Actual results:


Expected results:
Expected the items in the menus to be usable, and the data to be placed in cells.

Does this happen every time?
no.

Other information:
Comment 1 Andreas J. Guelzow 2009-03-13 20:11:17 UTC
Would it be possible to get one of these files that according to the launchpad discussion cause the problem?

It would also be nice to see the output of 
ldd `which gnumeric`

thanks
Comment 2 Morten Welinder 2009-03-13 20:11:46 UTC
Probably the same as bug 573769.

Chances are that gtk+ has changed behaviour.

A stack trace for 
** (gnumeric:24916): CRITICAL **: scg_edit_start: assertion
`IS_SHEET_CONTROL_GUI (scg)' failed

would probably be useful.

http://svn.gnome.org/viewvc/gnumeric?view=revision&revision=17115
migth be useful regarding the warnings.  gtk+ and/or intltools changed
underneath us.
Comment 3 Charlie Kravetz 2009-03-13 20:25:52 UTC
Created attachment 130606 [details]
file causing the initial report
Comment 4 Andreas J. Guelzow 2009-03-13 22:15:28 UTC
mimetype: text/plain ???
Comment 5 Charlie Kravetz 2009-03-13 23:12:12 UTC
I actually tried to attach it as a gnumeric file, but it refused to accept it. The file types accepted are:
plain text
HTML
XML
GIF
JPEG
PNG
tar
binary
none of these seem to fit the file available. It is, however, available as a .gnumeric file at http://launchpadlibrarian.net/22993838/warranties.gnumeric

I'm just trying to help out with this bug. I do appologize.
Comment 6 Morten Welinder 2009-03-13 23:15:41 UTC
"binary" comes closest, but Andreas is just a bit grumpy today -- he surely
survived the nonsense in his browser.

Anyway, the real problem is that so far we have been unable to reproduce.
A stack trace for one of the gtk-criticals might be useful.
Comment 7 Morten Welinder 2009-03-13 23:19:49 UTC
Also, precisely how do you open the file?  "File->Open",
file history, something else?
Comment 8 Morten Welinder 2009-03-13 23:22:43 UTC
Mouse or keyboard?
Comment 9 Charlie Kravetz 2009-03-14 00:22:26 UTC
I saved the warranties.gnumeric on my desktop. 

1. open Gnumeric
2. mouse or keyboard makes no difference, File -> Open
3. select the file to open
4. all items in file menu except "save", "save as", "print area", history, "close", "quit" are grey out and can not be selected. Most of the icons in the tool bar are also greyed out and can not be selected. Other menus are similar, in that most of them are greyed out.
5. type a number and hit enter. The number did not get entered into the spreadsheet. The cursor highlighting row/column did move.
Any attempt to enter anything into the spreadsheet is impossible.

6. Double-clicking the file to open it results in normal Gnumeric operation.

7. ldd `which gnumeric`

charlie@wecan:~/bin$ ldd `which gnumeric`
	linux-vdso.so.1 =>  (0x00007fff463fe000)
	libspreadsheet-1.8.4.so => /usr/lib/libspreadsheet-1.8.4.so (0x00007f1c3db7f000)
	libc.so.6 => /lib/libc.so.6 (0x00007f1c3d80d000)
	libgoffice-0.6.so.6 => /usr/lib/libgoffice-0.6.so.6 (0x00007f1c3d4f6000)
	libgnomeui-2.so.0 => /usr/lib/libgnomeui-2.so.0 (0x00007f1c3d25b000)
	libgtk-x11-2.0.so.0 => /usr/lib/libgtk-x11-2.0.so.0 (0x00007f1c3cc15000)
	libgdk-x11-2.0.so.0 => /usr/lib/libgdk-x11-2.0.so.0 (0x00007f1c3c967000)
	libgdk_pixbuf-2.0.so.0 => /usr/lib/libgdk_pixbuf-2.0.so.0 (0x00007f1c3c74b000)
	libpango-1.0.so.0 => /usr/lib/libpango-1.0.so.0 (0x00007f1c3c502000)
	libbonobo-2.so.0 => /usr/lib/libbonobo-2.so.0 (0x00007f1c3c28d000)
	libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0x00007f1c3c045000)
	libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0x00007f1c3bd7f000)
	libgnome-2.so.0 => /usr/lib/libgnome-2.so.0 (0x00007f1c3bb67000)
	libbonoboui-2.so.0 => /usr/lib/libbonoboui-2.so.0 (0x00007f1c3b8fa000)
	libglade-2.0.so.0 => /usr/lib/libglade-2.0.so.0 (0x00007f1c3b6e1000)
	libgnomevfs-2.so.0 => /usr/lib/libgnomevfs-2.so.0 (0x00007f1c3b476000)
	libgconf-2.so.4 => /usr/lib/libgconf-2.so.4 (0x00007f1c3b23a000)
	libatk-1.0.so.0 => /usr/lib/libatk-1.0.so.0 (0x00007f1c3b01a000)
	libpangoft2-1.0.so.0 => /usr/lib/libpangoft2-1.0.so.0 (0x00007f1c3aded000)
	libpangocairo-1.0.so.0 => /usr/lib/libpangocairo-1.0.so.0 (0x00007f1c3abe1000)
	libcairo.so.2 => /usr/lib/libcairo.so.2 (0x00007f1c3a95e000)
	libgsf-1.so.114 => /usr/lib/libgsf-1.so.114 (0x00007f1c3a71f000)
	libxml2.so.2 => /usr/lib/libxml2.so.2 (0x00007f1c3a3c2000)
	libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0x00007f1c3a1be000)
	libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0 (0x00007f1c39fb9000)
	libm.so.6 => /lib/libm.so.6 (0x00007f1c39d34000)
	libpthread.so.0 => /lib/libpthread.so.0 (0x00007f1c39b18000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f1c3e069000)
	libart_lgpl_2.so.2 => /usr/lib/libart_lgpl_2.so.2 (0x00007f1c398ff000)
	libgsf-gnome-1.so.114 => /usr/lib/libgsf-gnome-1.so.114 (0x00007f1c396fa000)
	libXrender.so.1 => /usr/lib/libXrender.so.1 (0x00007f1c394f0000)
	libgnomecanvas-2.so.0 => /usr/lib/libgnomecanvas-2.so.0 (0x00007f1c392ba000)
	libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x00007f1c39036000)
	libz.so.1 => /usr/lib/libz.so.1 (0x00007f1c38e1e000)
	libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x00007f1c38bec000)
	libbonobo-activation.so.4 => /usr/lib/libbonobo-activation.so.4 (0x00007f1c389d1000)
	libORBit-2.so.0 => /usr/lib/libORBit-2.so.0 (0x00007f1c38763000)
	libgio-2.0.so.0 => /usr/lib/libgio-2.0.so.0 (0x00007f1c384e1000)
	librt.so.1 => /lib/librt.so.1 (0x00007f1c382d9000)
	libgnome-keyring.so.0 => /usr/lib/libgnome-keyring.so.0 (0x00007f1c380c4000)
	libSM.so.6 => /usr/lib/libSM.so.6 (0x00007f1c37ebb000)
	libICE.so.6 => /usr/lib/libICE.so.6 (0x00007f1c37ca0000)
	libX11.so.6 => /usr/lib/libX11.so.6 (0x00007f1c37999000)
	libpopt.so.0 => /lib/libpopt.so.0 (0x00007f1c3778f000)
	libXext.so.6 => /usr/lib/libXext.so.6 (0x00007f1c3757d000)
	libXinerama.so.1 => /usr/lib/libXinerama.so.1 (0x00007f1c3737b000)
	libXi.so.6 => /usr/lib/libXi.so.6 (0x00007f1c37170000)
	libXrandr.so.2 => /usr/lib/libXrandr.so.2 (0x00007f1c36f67000)
	libXcursor.so.1 => /usr/lib/libXcursor.so.1 (0x00007f1c36d5d000)
	libXcomposite.so.1 => /usr/lib/libXcomposite.so.1 (0x00007f1c36b5a000)
	libXdamage.so.1 => /usr/lib/libXdamage.so.1 (0x00007f1c36958000)
	libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0x00007f1c36753000)
	libORBitCosNaming-2.so.0 => /usr/lib/libORBitCosNaming-2.so.0 (0x00007f1c3654c000)
	libpcre.so.3 => /lib/libpcre.so.3 (0x00007f1c3631c000)
	libesd.so.0 => /usr/lib/libesd.so.0 (0x00007f1c36111000)
	libaudiofile.so.0 => /usr/lib/libaudiofile.so.0 (0x00007f1c35ee9000)
	libdbus-glib-1.so.2 => /usr/lib/libdbus-glib-1.so.2 (0x00007f1c35cc7000)
	libdbus-1.so.3 => /lib/libdbus-1.so.3 (0x00007f1c35a8a000)
	libgnutls.so.26 => /usr/lib/libgnutls.so.26 (0x00007f1c357dd000)
	libavahi-glib.so.1 => /usr/lib/libavahi-glib.so.1 (0x00007f1c355d9000)
	libavahi-common.so.3 => /usr/lib/libavahi-common.so.3 (0x00007f1c353cc000)
	libavahi-client.so.3 => /usr/lib/libavahi-client.so.3 (0x00007f1c351bb000)
	libresolv.so.2 => /lib/libresolv.so.2 (0x00007f1c34fa3000)
	libutil.so.1 => /lib/libutil.so.1 (0x00007f1c34da0000)
	libpixman-1.so.0 => /usr/lib/libpixman-1.so.0 (0x00007f1c34b5b000)
	libdirectfb-1.0.so.0 => /usr/lib/libdirectfb-1.0.so.0 (0x00007f1c348e7000)
	libfusion-1.0.so.0 => /usr/lib/libfusion-1.0.so.0 (0x00007f1c346de000)
	libdirect-1.0.so.0 => /usr/lib/libdirect-1.0.so.0 (0x00007f1c344c8000)
	libpng12.so.0 => /usr/lib/libpng12.so.0 (0x00007f1c342a1000)
	libxcb-render-util.so.0 => /usr/lib/libxcb-render-util.so.0 (0x00007f1c3409d000)
	libxcb-render.so.0 => /usr/lib/libxcb-render.so.0 (0x00007f1c33e94000)
	libxcb.so.1 => /usr/lib/libxcb.so.1 (0x00007f1c33c78000)
	libbz2.so.1.0 => /lib/libbz2.so.1.0 (0x00007f1c33a67000)
	libdl.so.2 => /lib/libdl.so.2 (0x00007f1c33863000)
	libgailutil.so.18 => /usr/lib/libgailutil.so.18 (0x00007f1c3365a000)
	libexpat.so.1 => /usr/lib/libexpat.so.1 (0x00007f1c33430000)
	libselinux.so.1 => /lib/libselinux.so.1 (0x00007f1c33214000)
	libuuid.so.1 => /lib/libuuid.so.1 (0x00007f1c3300f000)
	libXau.so.6 => /usr/lib/libXau.so.6 (0x00007f1c32e0c000)
	libasound.so.2 => /usr/lib/libasound.so.2 (0x00007f1c32b2c000)
	libtasn1.so.3 => /usr/lib/libtasn1.so.3 (0x00007f1c3291b000)
	libgcrypt.so.11 => /lib/libgcrypt.so.11 (0x00007f1c326b4000)
	libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x00007f1c324af000)
	libgpg-error.so.0 => /lib/libgpg-error.so.0 (0x00007f1c322ac000)



Comment 10 Charlie Kravetz 2009-03-14 00:34:13 UTC
Stack trace is too big for attachments. I will keep trying to get what you need.

It is available at http://paste.ubuntu.com/130853/

Comment 11 Charlie Kravetz 2009-03-14 00:57:57 UTC
Created attachment 130620 [details]
backtrace for gnumeric
Comment 12 Jody Goldberg 2009-03-14 01:03:56 UTC
Created attachment 130621 [details] [review]
Looks like gtk has changed the semantics of the IM context, again.

Here's a backport to 1.8.x.
Give it a try it fixes the DummyUI warning, and the SCG warnings, and backports a patch that handled the hang.
Comment 13 Morten Welinder 2009-03-14 01:48:13 UTC
*** Bug 573769 has been marked as a duplicate of this bug. ***
Comment 14 John 2009-03-14 14:24:42 UTC
Applied the patch to 1.8.3, and it seems to solve the problem.

Thanks,
John
Comment 15 Morten Welinder 2009-03-14 22:24:43 UTC
Backport applied to 1.8.

Jody, it didn't apply without comment.  Do you have other stuff that needs
to go into that tree?  Notice the impressive offset in src/wbc-gtk.c


patching file src/application.c
Hunk #1 succeeded at 815 (offset -14 lines).
Hunk #2 succeeded at 834 (offset -14 lines).
patching file src/application.h
Hunk #1 succeeded at 79 (offset -1 lines).
Hunk #2 succeeded at 91 (offset -1 lines).
patching file src/gnm-plugin.c
Hunk #2 succeeded at 380 (offset -3 lines).
patching file src/wbc-gtk.c
Hunk #1 succeeded at 3010 with fuzz 1 (offset -230 lines).
patching file src/gnm-pane.c
patching file src/gnm-pane-impl.h


Comment 16 Jody Goldberg 2009-03-14 22:32:38 UTC
The DummyUI patch was generated from HEAD, rather than 1.8.
Comment 17 Andreas J. Guelzow 2009-06-30 02:50:46 UTC
*** Bug 587198 has been marked as a duplicate of this bug. ***
Comment 18 Andreas J. Guelzow 2009-07-22 17:08:59 UTC
*** Bug 589188 has been marked as a duplicate of this bug. ***
Comment 19 Andreas J. Guelzow 2009-07-24 06:48:44 UTC
*** Bug 589566 has been marked as a duplicate of this bug. ***
Comment 20 m.e 2009-07-25 11:20:48 UTC
The patch does not fix the problem for me.

I am getting messages, if it is any help:
** (gnumeric:19455): CRITICAL **: scg_edit_start: assertion `IS_SHEET_CONTROL_GUI (scg)' failed

** (gnumeric:19455): CRITICAL **: wbcg_edit_finish: assertion `IS_SHEET (wbcg->editing_sheet)' failed

** (gnumeric:19455): CRITICAL **: wbcg_edit_finish: assertion `IS_SHEET (wbcg->editing_sheet)' failed

This is with the patched version of 1.8.4. Note my file contains Unicode text (Chinese characters).
Comment 21 m.e 2009-07-25 11:36:52 UTC
Sorry, caught it. I needed to erase the old version as well. I had installed gnumeric via yum, and my new build must have been picking up some unpatched code in a library. Ignore #20 then.
Comment 22 Andreas J. Guelzow 2009-10-26 18:11:59 UTC
*** Bug 599672 has been marked as a duplicate of this bug. ***