Bug 10459 - I can't run eclipse
Summary: I can't run eclipse
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 2.0   Edit
Hardware: PC Linux-Motif
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Silenio Quarti CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 9307 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-02-27 23:17 EST by roger CLA
Modified: 2003-08-26 14:13 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description roger CLA 2002-02-27 23:17:40 EST
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.
Comment 1 DJ Houghton CLA 2002-02-28 07:35:20 EST
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.
Comment 2 roger CLA 2002-02-28 20:07:13 EST
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)
Comment 3 John Arthorne CLA 2002-03-11 09:44:21 EST
The exception is happening in an SWT native, moving to SWT for comment.
Comment 4 Mike Wilson CLA 2002-03-13 14:20:27 EST
Note IME call.
Comment 5 Steve Northover CLA 2002-03-13 18:57:27 EST
Very interesting.  Are you running English Linux?  Can you confirm that you are 
running Eclipse 2.0?
Comment 6 roger CLA 2002-03-13 20:10:53 EST
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
Comment 7 Shunsuke CLA 2002-03-25 19:01:09 EST
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)
Comment 8 Shunsuke CLA 2002-03-25 19:02:38 EST
eclipse-SDK-20020321-linux-motif, not 0312. Sorry.
Comment 9 Silenio Quarti CLA 2002-09-18 14:06:11 EDT
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?
Comment 10 Felipe Heidrich CLA 2002-09-20 15:53:39 EDT
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)


Comment 11 Silenio Quarti CLA 2002-09-27 12:40:30 EDT
*** Bug 9307 has been marked as a duplicate of this bug. ***
Comment 12 Silenio Quarti CLA 2002-09-27 17:15:23 EDT
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.
Comment 13 Felipe Heidrich CLA 2002-10-16 10:06:13 EDT
*** Bug 24523 has been marked as a duplicate of this bug. ***