Community
Participate
Working Groups
I can't run eclipse in redhat linux 7.2. After startup the eclipse,whenever I click the main region in the eclipse.the eclipse will throw a exception and exit.
What build number are you using? Motif or GTK? What is the exception? Is there any information in the .log file in the .metadata area? What is "the main regio in the eclipse"? Please annotate bug with as much information as possible.
The version I used is eclipse-SDK-20020227-linux-motif.zip. Sorry the "main region" I means when I click the edit area,eclipse will quit. the exception information in .log file as below: An unexpected exception has been detected in native code outside the VM. Unexpected Signal : 11 occurred at PC=0x49f70a47 Function name=XSetICValues Library=/usr/X11R6/lib/libX11.so.6 Current Java thread: at org.eclipse.swt.internal.motif.OS.XmImVaSetFocusValues(Native Method) at org.eclipse.swt.widgets.Control.processIMEFocusIn(Control.java:1221) at org.eclipse.swt.widgets.Control.processFocusIn(Control.java:1197) at org.eclipse.swt.widgets.Canvas.processFocusIn(Canvas.java:98) at org.eclipse.swt.widgets.Control.processSetFocus(Control.java:1407) at org.eclipse.swt.widgets.Widget.processEvent(Widget.java:518) at org.eclipse.swt.widgets.Display.windowProc(Display.java:1947) at org.eclipse.swt.internal.motif.OS.XtDispatchEvent(Native Method) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1429) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:788) at org.eclipse.ui.internal.Workbench.run(Workbench.java:771) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:777) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:319) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:151) at org.eclipse.core.launcher.Main.run(Main.java:502) at org.eclipse.core.launcher.Main.main(Main.java:362)
The exception is happening in an SWT native, moving to SWT for comment.
Note IME call.
Very interesting. Are you running English Linux? Can you confirm that you are running Eclipse 2.0?
I run eclipse on Mandrake Linux 8.1. The linux core version is 2.4.8 and I don't think the bug's reson is the language version of linux because my friend run the eclipse on Redhat Linux 7.2 also has the same problme. In my system the libX11.so.6 is a link to libX11.so.6.2
I saw the same error when I ran the eclipse-SDK-20020312-motif ( ./eclipse -ws motif ) on RH7.1 with GNOME-sawfish, especially when "LANG" is "ja_JP.eucJP". "LANG=C" doesn't cause this error. I use a commercial X server called "ASTEC-X" on Win2K pro. (http://www.astec.co.jp/products/ENGLISH/ASTECX/Welcome.html)
eclipse-SDK-20020321-linux-motif, not 0312. Sorry.
Maybe be related to Bug#9307. I believe this happens because the default font is not a FontSet. Need to try changing .Xdefaults as follow: ++++++++++++++++++ .Xdefaults +++++++++++++++++++++++++++ *fontList:\ -adobe-helvetica-medium-r-*--14-*-*-*-*-*-*-*;\ -misc-fixed-medium-r-*--14-*-*-*-*-*-*-*: *XmTextField.fontList:\ -adobe-helvetica-medium-r-*--14-*-*-*-*-*-*-*;\ -misc-fixed-medium-r-*--14-*-*-*-*-*-*-*: *XmText.fontList:\ -adobe-helvetica-medium-r-*--14-*-*-*-*-*-*-*;\ -misc-fixed-medium-r-*--14-*-*-*-*-*-*-*: *XmList*fontList:\ -adobe-helvetica-medium-r-*--14-*-*-*-*-*-*-*;\ -misc-fixed-medium-r-*--14-*-*-*-*-*-*-*: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Felipe, could check this?
Yes, we need to have a fontset in order to get it working properly. It can be set via .Xdefaults, usualy put this file in your home directory is enough, though if you have problems loading this file you can use xrdb to force X to reload it, ex.: xrdb -override .Xdefaults Anyway, the GP can be avoid changing the method Control#processIMEFocusIn replacing: OS.XmImVaSetFocusValues (handle, OS.XmNforeground, getForegroundPixel(), OS.XmNbackground, getBackgroundPixel(), OS.XmNspotLocation, ptr, OS.XmNfontList, font.handle, 0); By: int[] argList = { OS.XmNforeground, getForegroundPixel(), OS.XmNbackground, getBackgroundPixel(), OS.XmNspotLocation, ptr, OS.XmNfontList, font.handle, }; OS.XmImSetValues(handle, argList, argList.length / 2); OS.XmImSetFocusValues (handle, null, 0); (with this eclipse will show up, but if you wanna to have japanese support working you need to set the .Xdefaults)
*** Bug 9307 has been marked as a duplicate of this bug. ***
Fixed > 20020927. The GPF is fixed and the default font is properly set using the fallback resources mechanism. The user can still overwrite the fallback value by changing its .Xdefaults file.
*** Bug 24523 has been marked as a duplicate of this bug. ***