LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 11-05-2009, 10:19 AM   #1
corbis_demon
Member
 
Registered: Jun 2004
Location: India
Distribution: Slack 13
Posts: 481

Rep: Reputation: 32
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.
 
Old 11-05-2009, 09:12 PM   #2
rrbert
LQ Newbie
 
Registered: Jul 2007
Posts: 7

Rep: Reputation: 1
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
 
Old 11-05-2009, 10:42 PM   #3
corbis_demon
Member
 
Registered: Jun 2004
Location: India
Distribution: Slack 13
Posts: 481

Original Poster
Rep: Reputation: 32
Darn, that didn't help. I still have:
Code:
arrakis      3369  0.1  0.1  42860  3084 ?        Ss   10:08   0:00 /usr/lib/scim-1.0/scim-launcher -d -c simple -e all -f socket --no-stay -d
arrakis      3373  0.0  0.0   4260   948 ?        Ss   10:08   0:00 /usr/lib/scim-1.0/scim-helper-manager
arrakis      3374  0.0  0.2  24228  5560 ?        Ssl  10:08   0:00 /usr/lib/scim-1.0/scim-panel-gtk --display :0.0 -c socket -d --no-stay
arrakis      3376  0.0  0.1  22868  2228 ?        Ss   10:08   0:00 /usr/lib/scim-1.0/scim-launcher -d -c socket -e socket -f x11 --no-stay -d
arrakis      3377  0.0  0.0  21288  1440 ?        S    10:08   0:00 scim-bridge
these processes running. What if I just do a removepkg on scim packages? I don't need alternative input methods. Is it advisable?
 
Old 11-05-2009, 11:13 PM   #4
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 1,362

Rep: Reputation: 358Reputation: 358Reputation: 358Reputation: 358
don't know if it's enough reassuring, but I have removed scim packages months ago and it looks like everything keeped working
 
Old 11-06-2009, 01:58 AM   #5
corbis_demon
Member
 
Registered: Jun 2004
Location: India
Distribution: Slack 13
Posts: 481

Original Poster
Rep: Reputation: 32
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.
 
Old 11-06-2009, 03:12 AM   #6
gegechris99
Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware 13.37
Posts: 654
Blog Entries: 1

Rep: Reputation: 59
Quote:
Originally Posted by corbis_demon View Post
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).
 
Old 11-06-2009, 04:22 AM   #7
corbis_demon
Member
 
Registered: Jun 2004
Location: India
Distribution: Slack 13
Posts: 481

Original Poster
Rep: Reputation: 32
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.
 
Old 02-02-2010, 04:05 AM   #8
ege010
LQ Newbie
 
Registered: Feb 2010
Location: Japan
Distribution: Slackware64
Posts: 2

Rep: Reputation: 0
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? :)

P.S. I'm using Firefox 3.6, SCIM 1.4.9, KDE 4.2.4
 
Old 02-02-2010, 06:16 AM   #9
gegechris99
Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware 13.37
Posts: 654
Blog Entries: 1

Rep: Reputation: 59
Quote:
Originally Posted by ege010 View Post
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 View Post
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.

To me, your actions make sense.
 
Old 11-16-2010, 08:30 PM   #10
ShellyCat
Member
 
Registered: Jul 2007
Distribution: Slackware 13
Posts: 178

Rep: Reputation: 28
Thumbs down I also have problems with Scim

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.
 
Old 11-18-2010, 10:07 AM   #11
now_time
LQ Newbie
 
Registered: May 2010
Posts: 1

Rep: Reputation: 0
enable the function:
SCIM input Method Setup -> Gloable Setup -> share the same input method among all applications

then it may be work well with firefox.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SCIM 1.4.7 crashes Firefox 2.0.0.14 harryhaller Slackware 6 06-21-2008 06:53 AM
Frequent Firefox Crashes arindom Suse/Novell 3 08-27-2007 10:17 AM
scim crashes firefox mimithebrain Ubuntu 11 12-25-2006 04:36 PM
frequent software crashes ungua Suse/Novell 15 10-18-2006 11:35 AM
Frequent crashes Mingthefirst Linux - Hardware 0 01-29-2005 05:40 PM


All times are GMT -5. The time now is 09:59 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration