SCIM causing frequent firefox, gtk app crashes on 13
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
SCIM causing frequent firefox, gtk app crashes on 13
Hi,
I'm experiencing this problem on my Slack 13 box, where SCIM causes frequent firefox and gtk-based application crashes. Is there a way to stop it from executing when X starts? Please advise.
I have also noticed that scim sometimes seems to cause problems. In Slackware 12.2, I edited the file /etc/rc.d/rc.M and commented out the 4 lines beginning with
if [ -x /usr/bin/gtk-query-immodules-2.0 ]; then
This should safely prevent scim from starting up, but leave the rest of your system intact. If you only need to enter Chinese characters occasionally, you could try the slackbuild from: http://www.qt-apps.org/content/show....?content=95926
Yeah, hey, that's what I just did, everything seems fine (for now). I mucked around in profile.d for scim settings, but didn't find anything that could've been useful. Hopefully, firefox won't crash anymore on account of the IO exceptions that scim encountered.
Hi,
I'm experiencing this problem on my Slack 13 box, where SCIM causes frequent firefox and gtk-based application crashes. Is there a way to stop it from executing when X starts? Please advise.
I'm using SCIM to enter Korean characters and I haven't encounter any issue so far in gtk-based or QT-based applications in Slackware 13.0 (32-bit edition).
You decided to remove SCIM packages and it's OK.
However, if you want to use SCIM, do not forget to follow the steps in CHANGES_AND_HINTS.TXT:
Quote:
Input methods for complex characters (CJK, which is shorthand for Chinese,
Japanese, Korean) and other non-latin character sets have been added. These
input methods use the SCIM (Smart Common Input Method) platform.
The environment variables for SCIM support are set in /etc/profile.d/scim.sh
The requirements for getting SCIM input methods to work in your X session
are as follows:
(1) Use a UTF-8 locale. Look in /etc/profile.d/lang.sh for setting your
language to (for instance) en_US.UTF-8. As a word of warning: maybe you
should leave root with a non-UTF-8 locale because you don't want root's
commands to be misinterpreted. You can add the following line to your
~/.profile file to enable UTF-8 just for yourself:
export LANG=en_US.UTF-8
(2) Make the scim profile scripts executable. These will setup your
environment correctly for the use of scim with X applications. Run:
chmod +x /etc/profile.d/scim.*
(3) Start the scim daemon as soon as your X session starts. The scim daemon
must be active before any of your X applications. In KDE, you can add a
shell script to the ~/.kde/Autostart folder that runs the command
"scim -d". In XFCE you can add "scim -d" to the Autostarted Applications.
If you boot your computer in runlevel 4 (the graphical XDM/KDM login)
you can simply add the line "scim -d" to your ~/.xprofile file.
This gives you a Desktop Environment independent way of starting scim.
When scim is running, you will see a small keyboard icon in your system tray.
Right-click it to enter SCIM Setup. In 'Global Setup' select your keyboard
layout, and you are ready to start entering just about any language
characters you wish! Press the magical key combo <Control><Space>
in order to activate or deactivate SCIM input. The SCIM taskbar in the
desktop's corner allows you to select a language. As you type, SCIM will show
an overview of applicable character glyphs (if you are inputting complex
characters like Japanese).
Thanks so much for the reply. I decided to install scim again (a cure for the itch, if you will, not coz I need it). I don't have qt installed, and I am running the 32-bit version. These are the error messages I got:
Code:
Nov 5 21:41:47 arrakis scim-bridge: No such IMContext
Nov 5 21:41:47 arrakis last message repeated 11 times
Nov 5 21:41:47 arrakis last message repeated 17 times
Nov 5 21:41:47 arrakis scim-bridge: An invalid char is given at scim_bridge_string_to_uint (): -
Nov 5 21:41:47 arrakis scim-bridge: Invalid message: Close the connection.
I thought maybe a bug in some gtk-based app might be causing this. So I closed any such app, and surprisingly, have had no crashes since. Earlier, I had been using thunar, rhythmbox, gimp, gThumb and various others. I had a crash each time I tried renaming a file in Thunar. Also using the scroll-wheel to adjust volume on rhythmbox caused crashes. Some random event, too, triggered the crash. Is this a problem with SCIM or gtk? Whatever it is I have decided to remove scim anyway. Maybe I need to upgrade to a newer GTK or pango version?
EDIT:
Also, when SCIM was running, Firefox disabled the horizontal scrollbar (when required) at the bottom of a page. Upon uninstalling, this behaviour has has reverted to normal. Wierd.
Last edited by corbis_demon; 11-06-2009 at 05:02 AM.
Reason: Bad grammar.
I've tried using SCIM on Slackware64 13.0, with KDE4, following the instructions on CHANGES_AND_HINTS.TXT.
I previously had followed the same procedure on Slackware 12.1 with KDE3 without any issue, but this time two problems arose:
1) SCIM was automatically started when launching KDE4, even without the launching script in ~/.kde/Autostart
2) when Firefox tried to display dialog windows (e.g. "Are you sure you want to remove spam from Gmail?") it freezed and KDE4 was heavily slowed down (forcing me to CTRL+ALT+BACKSPACE)
After some trial and error, I managed to get SCIM to work correctly by:
1) removing the script I had put in ~/.kde/Autostart
2) changing
Code:
export GTK_IM_MODULE="scim-bridge"
to
Code:
export GTK_IM_MODULE="xim"
in /etc/profile.d/scim.sh
Now SCIM starts automagically with KDE (but why?!?) and I can enter Japanese characters both in Qt4/KDE4 and GTK applications.
Does anyone know if what I did makes any sense? :)
1) removing the script I had put in ~/.kde/Autostart
I've seen the same behaviour (i.e. SCIM starts with KDE without any script in Autostart) but it was not a problem for me. I could always disable SCIM by switching execution permission of script /etc/profile.d/scim.(c)sh
Maybe KDE4 is parsing /etc/profile.d for executable scripts that will be started automatically with KDE.
Quote:
Originally Posted by ege010
2) changing
Code:
export GTK_IM_MODULE="scim-bridge"
to
Code:
export GTK_IM_MODULE="xim"
in /etc/profile.d/scim.sh
The upgrade to Firefox 3.6 was the origin of my trouble with SCIM (I'm running -current but SCIM worked fine until the upgrade to FF 3.6).
So for now I've just disabled SCIM but I may need it later (I'm using it to enter Korean characters). So I will try your change as error messages when using FF 3.6 with SCIM are related to scim-bridge.
When I am using Firefox, I notice pages are extremely slow to load or they never load.
If I right-click the tray icon and select "Exit," it allows web pages to finish loading. (Sometimes I need to do it more than once.) However, when I Exit it comes right back!
There are dbus errors relating to Scim. I won't detail because they are on the SourceForge bugs system.
I disabled the startup scripts in my profiles for now, while I look for a new input method.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.