inkscape crashes using certain input methods: _gdk_input_grab_pointer: assertion failed: (input_window != NULL)

Bug #406036 reported by Anders Kaseorg
272
This bug affects 41 people
Affects Status Importance Assigned to Milestone
GTK+
Fix Released
High
Unassigned
Ubuntu Translations
Fix Released
Undecided
Shimizu Shizuo
gtk+2.0 (Ubuntu)
Fix Released
Undecided
Unassigned
inkscape (Debian)
Fix Released
Unknown
inkscape (Fedora)
Fix Released
Medium
inkscape (Mandriva)
Fix Released
Medium
inkscape (Suse)
Fix Released
Medium
inkscape (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: inkscape

Every time I start inkscape (0.47~pre1-0ubuntu1 on karmic amd64), click on the text tool, and click anywhere in the blank document, inkscape crashes with this dialog:

Inkscape encountered an internal error and will close now.

and the following message on the terminal:

**
Gdk:ERROR:/build/buildd/gtk+2.0-2.17.6/gdk/x11/gdkinput-xfree.c:334:_gdk_input_grab_pointer: assertion failed: (input_window != NULL)

Emergency save activated!
Emergency save completed. Inkscape will close now.
If you can reproduce this crash, please file a bug at www.inkscape.org
with a detailed description of the steps leading to the crash, so we can fix it.

This happens for me with GTK_IM_MODULE=xim, and for others with other input methods. Unsetting GTK_IM_MODULE is a workaround (but makes input less functional).

Revision history for this message
Alex Valavanis (valavanisalex) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. Please try to obtain a backtrace following the instructions at http://wiki.ubuntu.com/DebuggingProgramCrash and upload the backtrace (as an attachment) to the bug report. This will greatly help us in tracking down your problem.

Unfortunately, I wasn't able to reproduce this bug, using the same version & architecture.

Changed in inkscape (Ubuntu):
status: New → Incomplete
tags: added: crash
Revision history for this message
Stephane Epardaud (stef-inforealm) wrote :

Same crash here, what information do you need to fix it?

Revision history for this message
Alex Valavanis (valavanisalex) wrote :

Hi Stephane,

Please could you follow the instructions at http://wiki.ubuntu.com/DebuggingProgramCrash and generate a backtrace, then upload? That should give the developers the information they need. Let me know if you need any help.

Thanks a lot

Revision history for this message
Stephane Epardaud (stef-inforealm) wrote :

I'd love to but there doesn't seem to be any dbgsym packages for Inkscape after I added the repos…

Revision history for this message
sadao (sadao.br) wrote :

    It seems that incompatibility with scim. If scim is loaded, the access to text tools crash the inkscape as described above.
   When the scim are not loaded, it works normally.

Ubuntu Karmic Koala amd64, last update on October, 15, 2009.
inkscape 0.47 pre4

Revision history for this message
Anders Kaseorg (andersk) wrote :

sadao: Good find! I don’t have scim, but I do set GTK_IM_MODULE=xim, and the crash goes away if I unset that.

Changed in inkscape:
status: New → Incomplete
Revision history for this message
Alex Valavanis (valavanisalex) wrote : apport-collect data

Architecture: i386
DistroRelease: Ubuntu 9.10
Package: inkscape 0.47~pre4-0ubuntu1
PackageArchitecture: i386
ProcEnviron:
 SHELL=/bin/bash
 LANG=en_GB.UTF-8
ProcVersionSignature: Ubuntu 2.6.31-14.48-generic
Uname: Linux 2.6.31-14-generic i686
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

Revision history for this message
Alex Valavanis (valavanisalex) wrote : Dependencies.txt
Revision history for this message
Alex Valavanis (valavanisalex) wrote : XsessionErrors.txt
Changed in inkscape:
status: Incomplete → New
Changed in inkscape (Ubuntu):
status: Incomplete → New
tags: added: apport-collected
Revision history for this message
Alex Valavanis (valavanisalex) wrote : Re: inkscape crashes with _gdk_input_grab_pointer: assertion failed: (input_window != NULL)
Revision history for this message
Anders Kaseorg (andersk) wrote :

Stack trace with debugging symbols (inkscape-dbgsym, libc6-dbg, libglib2.0-0-dbg, libgtk2.0-0-dbg).

Anders Kaseorg (andersk)
Changed in inkscape:
status: New → Confirmed
Changed in inkscape (Ubuntu):
status: New → Confirmed
Revision history for this message
Alex Valavanis (valavanisalex) wrote :

Oops, thanks for fixing the backtrace!

Revision history for this message
Alex Valavanis (valavanisalex) wrote :

Added a backtrace with extra info per https://wiki.ubuntu.com/Backtrace

Revision history for this message
Olivier Guéry (nemolivier) wrote :

Same problem here.
I’m using « default-xim » from im-switch (I need compose).
Last svn (22544) don’t change the problem.

Revision history for this message
Olivier Guéry (nemolivier) wrote :

I tried an :
export GTK_IM_MODULE=xim && inkscape
But still the same crach.

Do you, people have a workaround to use inkscape ?

Revision history for this message
Anders Kaseorg (andersk) wrote :

> export GTK_IM_MODULE=xim && inkscape

No no no, GTK_IM_MODULE=xim is not a workaround, in fact quite the opposite: it _triggers_ the crash.

If you want a workaround, try unsetting the variable:
  unset GTK_IM_MODULE
  inkscape

Revision history for this message
mas (mas-mylug) wrote :

Anders is right. Unsetting GTK_IM_MODULE did not make inkscape crash. But, I lost the way to input text in my language. So, I tried setting GTK_IM_MODULE=scim and was surprised to see that it did not trigger the crash. I also could input text in Kannada which is important for me.

Revision history for this message
Olivier Guéry (nemolivier) wrote :

Thank’s. It works.
Don’t realy solve the bug indead. I need xim in order to have compose to work !

Revision history for this message
lilydjwg (lilydjwg) wrote :

Same problem here and the workaround doesn't work for me.

su_v (suv-lp)
Changed in inkscape:
importance: Undecided → High
Revision history for this message
Olivier Guéry (nemolivier) wrote :

@missyou11 did you try this in a terminal :
unset GTK_IM_MODULE && inkscape

Revision history for this message
tubaxenor (tubaxenor) wrote :

I have the same problem and unset GTK_IM_MODULE && inkscape doesn't work for me either.

Revision history for this message
Olivier Guéry (nemolivier) wrote :

Hum… maybe it’s not this who work’s. I’ve also do :
im-switch -c
in a terminal, and choose « none ».

Revision history for this message
tubaxenor (tubaxenor) wrote :

@Olivier Guéry Still not working with the same error message...

Revision history for this message
lilydjwg (lilydjwg) wrote :

@Olivier Guéry I tried again and nothing has changed.
But I notice that my error output is a little different:
  Gdk:ERROR:/build/buildd/gtk+2.0-2.18.3/gdk/x11/gdkinput-xfree.c:336:_gdk_input_grab_pointer: assertion failed: (input_window != NULL)
and the Inkscape's version is pre4 instead of pre1.

Revision history for this message
In , Patrick Nagel (mail-patrick-nagel) wrote :

User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-GB; rv:1.9.1.4) Gecko/20091016 SUSE/3.5.4-1.1.2 Firefox/3.5.4

Upon selecting the Text object tool and clicking into the page in order to insert text into the page, a dialog window appears, saying "Inkscape encountered an internal error and will close now." - Clicking the 'Close' button closes Inkscape.

When started from a console, the following is being printed (from starting Inkscape until the crash):

>inkscape

(inkscape:5319): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated

(inkscape:5319): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated

[the warning above appears many times]
**
Gdk:ERROR:gdkinput-xfree.c:337:_gdk_input_grab_pointer: assertion failed: (input_window != NULL)

Emergency save activated!
Emergency save completed. Inkscape will close now.
If you can reproduce this crash, please file a bug at www.inkscape.org
with a detailed description of the steps leading to the crash, so we can fix it.
Aborted

Reproducible: Always

Steps to Reproduce:
1. Open Inkscape
2. Press F8 or click the Text object tool button on the left (the one with the big A)
3. Click into the page
Actual Results:
Inkscape crashes

Expected Results:
Being able to use the text object tool without a crash

Revision history for this message
In , Patrick Nagel (mail-patrick-nagel) wrote :

It seems this is related to using an input method. I am using scim for entering Chinese text.

When trying to get scim to work, I found various tips saying the following environment variables should be set:

export XMODIFIERS=@im=SCIM
export GTK_IM_MODULE=xim
export QT_IM_MODULE=xim

With these set, scim works in all applications I tried. But the GTK_IM_MODULE=xim seems to cause a conflict with Inkscape.

On https://bugs.launchpad.net/inkscape/+bug/406036 I read that unsetting that variable would help, but it doesn't - the crash still happens (although only on attempting to leave the text area, by clicking somewhere else - it's actually possible to type something before the crash).

But when setting

GTK_IM_MODULE=scim

Inkscape doesn't crash.

So, since GTK_IM_MODULE=xim was my own doing, this is probably not a bug that many others will experience.

Revision history for this message
Patrick Nagel (mail-patrick-nagel) wrote : Re: inkscape crashes with _gdk_input_grab_pointer: assertion failed: (input_window != NULL)

I have the same problem with inkscape on openSUSE 11.2. Mas says in comment #17, that inkscape doesn't crash when setting GTK_IM_MODULE=scim (instead of =xim). This is also true for my system.

I reported this bug on the openSUSE bugtracker: https://bugzilla.novell.com/show_bug.cgi?id=556834

Revision history for this message
Olivier Guéry (nemolivier) wrote :

Nooo… inkscape 0.47 is out this morning… I just build it from source, but the bug still remain :(

Revision history for this message
lilydjwg (lilydjwg) wrote :

I am using Ubuntu 9.10, and I've just found that, if I (and a friend of mine with the same Ubuntu 9.10) install ibus, and set GTK_IM_MODULE=ibus, inkscape won't crash, no matter whether I am using ibus. Tried =fcitx when I am using it but inkscape still crashed.

Anders Kaseorg (andersk)
summary: - inkscape crashes with _gdk_input_grab_pointer: assertion failed:
- (input_window != NULL)
+ inkscape crashes using certain input methods: _gdk_input_grab_pointer:
+ assertion failed: (input_window != NULL)
description: updated
Revision history for this message
Daniel Knittl-Frank (knittl) wrote :

i can also reproduce the bug and can confirm the workaround (unsetting GTK_IM_MODULE) as well

i need XIM input method so i can use the compose functionality of my keyboard layout (Neo-Layout)

Revision history for this message
L_F_B (lars-behrens) wrote :

Confirmed for OpenSUSE 11.2, Inkscape 0,46

Error lines:
----------------------------------------------------------------------------------------------------------------------------------------------------
** (inkscape:24506): WARNING **: Family name Bitstream Vera Sans does not have an entry in the font lister.
**
Gdk:ERROR:gdkinput-xfree.c:337:_gdk_input_grab_pointer: assertion failed: (input_window != NULL)
----------------------------------------------------------------------------------------------------------------------------------------------------

None of the workarounds helps here.

Revision history for this message
In , L_F_B (lars-behrens) wrote :

Confirmed here on 11.2, 64bit.

But changing the variables doesn't help, so Inkscape is unusable.

Revision history for this message
Olivier Guéry (nemolivier) wrote :

@L_F_B under ubuntu jaunty, there were no bug with the 0.46 version. Strange that you find it.

Revision history for this message
Diederik van Lierop (mail-diedenrezi) wrote :

Confirmed on Fedora 12 too, using today's revision of Inkscape

However, this does not work for me:

unset GTK_IM_MODULE && inkscape

This did the trick though:

GTK_IM_MODULE=gtk-im-context-simple inkscape

Revision history for this message
L_F_B (lars-behrens) wrote :

Can confirm that
 GTK_IM_MODULE=gtk-im-context-simple
works here too, on SUSE 11.2

Revision history for this message
In , L_F_B (lars-behrens) wrote :

However, setting
 GTK_IM_MODULE=gtk-im-context-simple
makes Inkscape work (see https://bugs.launchpad.net/ubuntu/+source/inkscape/+bug/406036/comments/34)

Revision history for this message
martin (chilivodka) wrote :

I uninstalled XIM and it worked

Revision history for this message
Jomit Jose (123jomit) wrote :

Confirmed in fedora 12 i686

** (inkscape:24506): WARNING **: Family name Bitstream Vera Sans does not have an entry in the font lister.
**
Gdk:ERROR:gdkinput-xfree.c:336:_gdk_input_grab_pointer: assertion failed: (input_window != NULL)

I have workaround the problem by first select the text tool, then before clicking on drawing area, I change default font Bitstream Vera Sans from some another font. And It works!!!!!

Revision history for this message
Jomit Jose (123jomit) wrote :

I am sorry, I am running inkscape by $ export GTK_IM_MODULE=ibus && inkscape

Revision history for this message
nico (romano-nicola) wrote :

Same problem here in Fedora 12.

** (inkscape:8821): WARNING **: Family name Bitstream Vera Sans does not have an entry in the font lister.
**
Gdk:ERROR:gdkinput-xfree.c:336:_gdk_input_grab_pointer: assertion failed: (input_window != NULL)
Emergency save activated!
Emergency save completed. Inkscape will close now.

==

GTK_IM_MODULE=gtk-im-context-simple inkscape
does the trick for me

Revision history for this message
remusjlupin (remusjlupin) wrote :

Although in my duplicate bug report I said one of the workarounds fixed the problem, it seems that it didn't, at least not anymore. Ubuntu 9.10 with Inkscape 0.47 here.

Revision history for this message
In , Glen (glen-redhat-bugs) wrote :

abrt 1.0.0 detected a crash.

How to reproduce
-----
1. Create a rectangle
2. Click with the text tool on top of the rectangle you've created.

Comment: Clicking with text tool on a rectangle causes crash.
Attached file: backtrace
cmdline: inkscape
component: inkscape
executable: /usr/bin/inkscape
kernel: 2.6.31.6-162.fc12.x86_64
package: inkscape-0.47-0.17.pre4.20091101svn.fc12
rating: 3
reason: Process was terminated by signal 6

Revision history for this message
In , Glen (glen-redhat-bugs) wrote :

Created attachment 377421
File: backtrace

Revision history for this message
In , Máirín (mirn-redhat-bugs) wrote :

Hi Glen!

Thank you very much for your bug report.

This bug looks like a bug we've seen a lot of users experience lately. I believe it is caused by a bug in the gtk2 package, not Inkscape.

We have a fix for the text-tool issue in Inkscape addressed by an update to gtk2 which I believe will resolve your problem (we've had several testers confirm it resolved text tool crashes in Inkscape for them)

To get the fix, run the following command as root:

yum update gtk2 --enablerepo=updates-testing

Let me know how it goes! And thanks again for the bug report.

Revision history for this message
In , Glen (glen-redhat-bugs) wrote :

Yep, fixed me right up. Thanks!

Revision history for this message
Renate (yollywau) wrote :

i have the same problem with Fedora - 12 2.6.31.6-166.fc12.i686. The same error message of nico #40.

And when I type: 'GTK_IM_MODULE=gtk-im-context-simple inkscape', it works fine...
It would be nice, if you can fix the bug.

Revision history for this message
marinalan (marinalan) wrote :

I have that with Fedora 12
Gdk:ERROR:gdkinput-xfree.c:336:_gdk_input_grab_pointer: assertion failed: (input_window != NULL)

Emergency save activated!
Emergency save completed. Inkscape will close now.

uname -a
Linux marina-home.localdomain 2.6.31.6-166.fc12.i686.PAE #1 SMP Wed Dec 9 11:00:30 EST 2009 i686 i686 i386 GNU/Linux

GTK_IM_MODULE=gtk-im-context-simple inkscape
helped me too

Revision history for this message
scaldov (scaldov) wrote :

>And when I type: 'GTK_IM_MODULE=gtk-im-context-simple inkscape', it works fine...
>It would be nice, if you can fix the bug.

that means that it does'nt work.
Simple
GTK_IM_MODULE= inkscape
has the same effect of so called "it works fine", but you can not input arbitrary unicode symbols with these input methods you selected.

The X-system level input method is the only usable to enter Unicode character and it causes crash.

Revision history for this message
In , Karel (karel-redhat-bugs) wrote :

*** Bug 543380 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Joel (joel-redhat-bugs) wrote :

The gtk2 update fixed the problem for me, too.

Revision history for this message
In , Lubomir (lubomir-redhat-bugs) wrote :

*** Bug 545759 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Lubomir (lubomir-redhat-bugs) wrote :

*** Bug 544822 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Lubomir (lubomir-redhat-bugs) wrote :

*** Bug 546588 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Lubomir (lubomir-redhat-bugs) wrote :

*** Bug 548598 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Lubomir (lubomir-redhat-bugs) wrote :

*** Bug 548661 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Lubomir (lubomir-redhat-bugs) wrote :

GTK2 was fixed. Big thanks to everyone involved in reporting/triaging.

Revision history for this message
In , Lubomir (lubomir-redhat-bugs) wrote :

*** Bug 544341 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Lubomir (lubomir-redhat-bugs) wrote :

*** Bug 542411 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Mxwu (mxwu) wrote :

Hmm,
Can't reproduce this on my 32 bit 11.2 box.

Which version are you using?

Revision history for this message
Sam Vilain (sam-vilain) wrote :

GTK_IM_MODULE=gtk-im-context-simple XMODIFIERS=@im=xim inkscape makes things slightly better, but then I get a segmentation fault.

Using this command, I get much more stable behaviour:

unset GTK_IM_MODULE XMODIFIERS; inkscape

Changed in inkscape (Mandriva):
status: Unknown → Confirmed
Changed in inkscape (Debian):
status: Unknown → New
Revision history for this message
Pascal Terjan (pterjan42) wrote :

According to Fedora bug report, this was fixed in Gtk

Revision history for this message
Diederik van Lierop (mail-diedenrezi) wrote :

Confirmed fixed on Fedora 12, using gtk2-2.18.6-1.fc12.x86_64

This GTK2 version was already installed on my PC as part of a regular update on Jan. 17th, but I hadn't noticed this fix yet because I was still running Inkscape using the workaround.

Revision history for this message
mas (mas-mylug) wrote :

Just installed libgtk2 from unstable. Inkscape does not crash. The version info :

libgtk2.0-0 : 2.18.6-1
inkscape : 0.47.0-1

Revision history for this message
mas (mas-mylug) wrote :

Oops, the previous comment was for the debian. Sorry for the missing info.

Changed in inkscape (Mandriva):
status: Confirmed → Fix Released
Revision history for this message
In , Máirín (mirn-redhat-bugs) wrote :

*** Bug 562332 has been marked as a duplicate of this bug. ***

Revision history for this message
Juan Sebastián Marulanda (juanchito2006) wrote :

Ubuntu ought to update GTK+ to the latest stable version, that is, 2.18.7

Inkscape is unusable for text input.

Revision history for this message
Krzysztof Kosinski (tweenk) wrote :

The available information suggests this is a GTK bug, rather than an Inkscape bug.

Changed in inkscape:
status: Confirmed → Invalid
Changed in inkscape (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
Alex Valavanis (valavanisalex) wrote :

Fixed in Ubuntu in gtk+2.0 version 2.19.2-1

Changed in ubuntu-translations:
status: New → Fix Released
Changed in gtk+2.0 (Ubuntu):
status: New → Fix Released
Revision history for this message
WolphFang (mjoyner-vbservices) wrote :

How does one get this "fix" installed? My 9.10 system is fully up-to-date, and I need to use XIM for Cherokee/ᏣᎳᎩ composed input.

Revision history for this message
Alex Valavanis (valavanisalex) wrote :

@WolphFang,

Ubuntu 9.10 still uses the version of gtk+ that causes the crash but it is fixed in Ubuntu 10.04. You can either:

* upgrade your system to the beta version of Ubuntu 10.04 [press ALT+F2 and type "update-manager -d" in the dialog that pops up]

* wait until the final release of Ubuntu 10.04 next month, and upgrade your system then.

* manually get hold of the latest Ubuntu package for gtk+2.0 from https://launchpad.net/ubuntu/lucid/+source/gtk+2.0/2.19.7-0ubuntu1 and install it. I don't recommend this, as it could break a lot of other things for you!!

Thanks,

Alex

Revision history for this message
ZombieRamen (zombieramen-deactivatedaccount) wrote :

I have a similar problem. It seems to be a general problem with text for me. I can use the type tool, but as soon as I go into select and click on the text, the background, or try to resize it, I get this output:

**
Gdk:ERROR:/build/buildd/gtk+2.0-2.18.3/gdk/x11/gdkinput-xfree.c:336:_gdk_input_grab_pointer: assertion failed: (input_window != NULL)

Emergency save activated!

Emergency save document locations:
  /tmp/inkscape-
Emergency save completed. Inkscape will close now.
If you can reproduce this crash, please file a bug at www.inkscape.org
with a detailed description of the steps leading to the crash, so we can fix it.

Changed in inkscape:
status: Invalid → Confirmed
status: Confirmed → Invalid
Changed in inkscape (Debian):
status: New → Fix Released
Revision history for this message
Ben M. (bmhm) wrote :

@WolphFang
You might want to try this if you are on amd64:
$ wget -ci gtk2_urls.txt
$ sudo dpkg -i *.deb

This is the way Alex told you not to use, but since I didn't want to upgrade yet I preferred this method and did a manual search on dependencies myself. Inkscape works again for me, including xim.

Hope this helps. But remember that there might be side effects I didn't encountered yet. If you don't know what these commands do, better don't execute them (as always).

Regards,
Ben

Changed in inkscape (Mandriva):
importance: Unknown → Medium
Changed in ubuntu-translations:
assignee: nobody → Shimizu Shizuo (sizu-315)
Changed in inkscape (Suse):
importance: Unknown → Medium
status: Unknown → Confirmed
affects: inkscape → gtk
Changed in gtk:
status: Invalid → Fix Released
Revision history for this message
In , Dominique Leuenberger aka DimStar (dimstar) wrote :

Sorry, this bug did not get the attention it deserved.

Not likely, you have already upgraded to newer versions of openSUSE, which had
a lot more bug fixes.

We believe that this specific bug has been fixed during one of the release cycles; as such, I close the bug as 'FIXED'.

Should you be able to reproduce this issue on a newer openSUSE version, please
feel to report it again.

Changed in inkscape (Suse):
status: Confirmed → Fix Released
Revision history for this message
Vorik (launchpad-gerapeldoorn) wrote :

Still an issue on Ubuntu 14.10, workaround

'unset GTK_IM_MODULE && inkscape'

works well, but is an inconvenience.

Revision history for this message
Joel Östblom (joel-ostblom) wrote :

I am also having this issue on Ubuntu 14.10 with unity. Inkscape often crashers when modifying text boxes.

Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

@Joel: Then please file a new bug report. This report was closed long ago.

Revision history for this message
Joel Östblom (joel-ostblom) wrote :

@Gunnar I was originally pointed here from a forum thread, but after looking around some more it seems like https://bugs.launchpad.net/ubuntu/+source/inkscape/+bug/1385009 is more similar to what I am experiencing. It also suggests some fixes I am trying out now.

Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

Ok, good.

Changed in inkscape (Fedora):
importance: Unknown → Medium
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.