Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#24025 - uim causes gtk3 applications to crash with memory corruption errors

Attached to Project: Arch Linux
Opened by Lucas Westermann (lswest) - Sunday, 01 May 2011, 14:50 GMT
Last edited by Gaetan Bisson (vesath) - Monday, 02 May 2011, 16:47 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Gaetan Bisson (vesath)
Architecture x86_64
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:

While uim is running, gtk3 applications (such as evince) crash with the attached error messages. This error, however, does not occur on my laptop with the same version and setup of uim.


Additional info:
UIM version: 1.6.1-2
evince version: 3.0.0

Output of evince command is attached as error.log


Steps to reproduce:
Install UIM, run evince, watch crash. Not sure about how easily it can be reproduced, since the error is present on only 1 of my 2 computers.
This task depends upon

Closed by  Gaetan Bisson (vesath)
Monday, 02 May 2011, 16:47 GMT
Reason for closing:  Works for me
Comment by Jan de Groot (JGC) - Sunday, 01 May 2011, 15:58 GMT
Your trace indicates a gtk2 immodule loaded by gtk3, causing crashes as gtk2 symbols will conflict with gtk3 symbols. How did you enable uim on your system?
Comment by Lucas Westermann (lswest) - Sunday, 01 May 2011, 16:02 GMT
I enable it by running uim-toolbar-gtk-systray on both systems. Besides that, I followed the instructions as outlined by the uim wiki entry.
Comment by Gaetan Bisson (vesath) - Sunday, 01 May 2011, 17:23 GMT
Hum, first of all, I cannot reproduce this issue, so something is probably misconfigured on your computer.

Running uim-toolbar-gtk-systray does not enable uim; I assume you actually enabled it by setting the GTK_IM_MODULE, QT_IM_MODULE, and XMODIFIERS variables in your .xinitrc before running uim-xim, just as explained here: https://wiki.archlinux.org/index.php/Input_Japanese_using_UIM#Environment_variables . Can you confirm this and check that the lines are exactly as in your .xinitrc?

Also, could you:
- restart X and see if it solves your problem; and, if not,
- remove just the GTK_IM_MODULE line from your .xinitrc, restart X, and see if it solves your problem.
Comment by Lucas Westermann (lswest) - Sunday, 01 May 2011, 17:30 GMT
Sorry, I misunderstood the question originally being asked. I start wmfs using the console display manager and a script (not .xinitrc), and the lines read:
export GTK_IM_MODULE="uim"
export QT_IM_MODULE="uim"
uim-toolbar-gtk-systray &
uim-xim &
export XMODIFIERS=@im=uim

I also remember having to manually force the creation of a immodule file on my PC before the update. Removing the GTK_IM_MODULE line results in no change whatsoever.
Comment by Gaetan Bisson (vesath) - Sunday, 01 May 2011, 18:19 GMT
Could you be more specific about that creation of immodule file?
Could you also tell us what your architecture is, and put the output of `ls -l /usr/lib/gtk-*/*/immodules/` in a pastebin and post the link here?
Comment by Lucas Westermann (lswest) - Sunday, 01 May 2011, 18:35 GMT
I'm not entirely sure what I did anymore because it was a while back, but I believe I was forced to add a line manually to gtk.immodules in order to get uim working (followed instructions in a bug report I believe), but this should have been done automatically by the package, since it's present on my laptop too.

Architecture: x86_64
Pastebin link: http://pastebin.com/xrXAj5px
Comment by Gaetan Bisson (vesath) - Sunday, 01 May 2011, 21:02 GMT
Well, your two computers behave differently, so one must be configured differently from the other.
And since we cannot reproduce your issue, you have to find what you manually did.
Comment by Lucas Westermann (lswest) - Sunday, 01 May 2011, 21:04 GMT
I've been looking around and the only possible change I made was copying the line about uim from my laptop over to my PC from the /etc/gtkrc-2.0/gtk.immodules file, since it wasn't added when uim was installed. Regardless, I will see if I can migrate my settings over from my laptop again tomorrow (it's 11pm here).
Comment by Lucas Westermann (lswest) - Monday, 02 May 2011, 15:07 GMT
After setting GTK_IM_MODULE to "xim" instead of "uim" it's working on my PC as well. However, the configuration for my laptop was exactly the same (laptop was setting the variable to "uim"). Either way, it's working and I have run out of things to check, so I'd say this can be closed.
Comment by Gaetan Bisson (vesath) - Monday, 02 May 2011, 16:47 GMT
Very well.

Loading...