LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 06-06-2008, 10:26 AM   #1
harryhaller
Member
 
Registered: Sep 2004
Location: Brussels, Belgium
Distribution: Slackware
Posts: 313

Rep: Reputation: Disabled
SCIM 1.4.7 crashes Firefox 2.0.0.14


Slackware 12.1
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14
Smart Common Input Method 1.4.7

/home/test/firefox/run-mozilla.sh: line 131: 24829 Segmentation fault "$prog" ${1+"$@"}

line 131 of run-mozilla.sh:

Code:
moz_run_program()
{
	prog=$MOZ_PROGRAM
	##
	## Make sure the program is executable
	##
	if [ ! -x "$prog" ]
	then
		moz_bail "Cannot execute $prog."
	fi
	##
	## Use md5sum to crc a core file.  If md5sum is not found on the system,
	## then dont debug core files.
	##
	moz_test_binary /bin/type
	if [ $? -eq 1 ]
	then
		crc_prog=`type md5sum 2>/dev/null | awk '{print $3;}' 2>/dev/null | sed -e 's/\.$//'`
	else
		crc_prog=`which md5sum 2>/dev/null`
	fi
	if [ -x "$crc_prog" ]
	then
		DEBUG_CORE_FILES=1
	fi
	if [ "$DEBUG_CORE_FILES" ]
	then
		crc_old=
		if [ -f core ]
		then
			crc_old=`$crc_prog core | awk '{print $1;}' `
		fi
	fi
	##
	## Run the program
	##
	"$prog" ${1+"$@"}
	exitcode=$?
	if [ "$DEBUG_CORE_FILES" ]
	then
		if [ -f core ]
		then
			crc_new=`$crc_prog core | awk '{print $1;}' `
		fi
	fi
	if [ "$crc_old" != "$crc_new" ]
	then
		printf "\n\nOh no!  %s just dumped a core file.\n\n" $prog
		printf "Do you want to debug this ? "
		printf "You need a lot of memory for this, so watch out ? [y/n] "
		read ans
		if [ "$ans" = "y" ]
		then
			debugger=`moz_get_debugger`
			if [ -x "$debugger" ]
			then
				echo "$debugger $prog core"

				# See http://www.mozilla.org/unix/debugging-faq.html
				# For why LD_BIND_NOW is needed
				LD_BIND_NOW=1; export LD_BIND_NOW

				$debugger "$prog" core
			else
				echo "Could not find a debugger on your system."
			fi
		fi
	fi
}

Firefox was launched in SAFE MODE
 
Old 06-06-2008, 11:24 AM   #2
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-13.37
Posts: 1,955

Rep: Reputation: 326Reputation: 326Reputation: 326Reputation: 326
Well, I don't know if the two problems are related or not, but according to this thread you may just have to issue
Code:
# chmod +x /etc/profile.d/scim.*
to fix the problem. However, not knowing anything at all about SCIM myself, and not having tested the suggestion (and not experiencing the problem in the first place since I don't use SCIM), I don't know how much that will help, if at all.
 
Old 06-06-2008, 12:22 PM   #3
harryhaller
Member
 
Registered: Sep 2004
Location: Brussels, Belgium
Distribution: Slackware
Posts: 313

Original Poster
Rep: Reputation: Disabled
Quote:
Well, I don't know if the two problems are related or not, but according to this thread you may just have to issue
Code:

# chmod +x /etc/profile.d/scim.*
That is set up correctly.

Please note this post is corrected - I thought I had got around the problem - I hadn't.

What I am pretty sure is connected to the problem is GTK and maybe the environment variables

Last edited by harryhaller; 06-06-2008 at 01:38 PM. Reason: Correction of important information - mis-read results.
 
Old 06-06-2008, 02:05 PM   #4
harryhaller
Member
 
Registered: Sep 2004
Location: Brussels, Belgium
Distribution: Slackware
Posts: 313

Original Poster
Rep: Reputation: Disabled
Smile Problem solved

Well, I seem to have fixed it.

Code:
export XMODIFIERS="@im=SCIM"
export XIM_PROGRAM="scim -d"
export GTK_IM_MODULE=""
export QT_IM_MODULE="scim"
I don't kmow why that works - but it does.

Anyone know why?
 
Old 06-07-2008, 12:46 AM   #5
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 2,185

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
It works because Firefox uses GTK, and you have disabled the use of scim for GTK apps. i.e. You have dodged the problem, not fixed it. You will probably find other problems occur due to not having scim properly implemented.

The default setting is GTK_IM_MODULE=scim-bridge ( see /etc/profile.d/scim.sh ).

This suggests that your problem lies with scim. I suggest that from a terminal window you type:
'scim --help' - To see the scim options
'scim --list' - To see the IMEngine modules available.
then try loading the IMEngine modules individually using 'scim --engines <modulename>'.
Hopefully you will get some information on your problem.
 
Old 06-07-2008, 11:02 AM   #6
harryhaller
Member
 
Registered: Sep 2004
Location: Brussels, Belgium
Distribution: Slackware
Posts: 313

Original Poster
Rep: Reputation: Disabled
Translations urgently needed.

Many thanks Allend.

Quote:
You have dodged the problem, not fixed it.
I suspected as much

The problem of problems with SCIM and fcitx is that the documentation is in chinese, yet after simple chinese(38%), european(15%), in particular English (11%), is the mother language of SCIM users according to their survey.

As with fcitx, I have difficulty reading the suggestions under the input box - this is even more important to a person such as me who is learning chinese.

Hence I really want to find out how to enlage the box and the chinese characters which are prompted underneath for choosing (zh-tonepy-gb).

Quote:
You will probably find other problems occur due to not having scim properly implemented.
Quite right - it doesn't work for inputting into a firefox textarea.

Well, at least no one can accuse me of not RTFM - it's in chinese.

Nor of not trying to learn chinese!
 
Old 06-21-2008, 06:53 AM   #7
harryhaller
Member
 
Registered: Sep 2004
Location: Brussels, Belgium
Distribution: Slackware
Posts: 313

Original Poster
Rep: Reputation: Disabled
I configured scim only with the engines I really needed, now it works fine.

However:

I do not set the environment variables

Nor do I start scim in startx, but manually from within X.

Thanks again allend.

Last edited by harryhaller; 06-22-2008 at 04:09 AM. Reason: original post incomplete
 
  


Reply

Tags
cjk, firefox, scim


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 font - got SCIM working, now all flash has japanese font.....help! sandaili Linux - Software 6 03-24-2009 07:27 AM
scim crashes firefox mimithebrain Ubuntu 11 12-25-2006 04:36 PM
OpenOffice.org crashes when used along with SCIM/Skim when I press Shift+Z adityavpratap Ubuntu 0 09-15-2006 12:33 AM
Firefox 1.5 and SCIM? Erik_the_Red Linux - Software 1 01-19-2006 06:42 PM
Skim/Scim not working in Firefox 1.0.6? koyi Slackware 1 09-23-2005 07:55 AM


All times are GMT -5. The time now is 06:45 PM.

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