Summary: | Support for lesstif on Linux | ||
---|---|---|---|
Product: | [Eclipse Project] Platform | Reporter: | Greg Adams <greg_adams> |
Component: | SWT | Assignee: | Grant Gayed <grant_gayed> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P2 | CC: | dcengija, mlq.eclipse, RichiPlana, Tod_Creasey |
Version: | 2.0 | ||
Target Milestone: | 2.1 M1 | ||
Hardware: | All | ||
OS: | Linux-Motif | ||
Whiteboard: |
Description
Greg Adams
2001-10-11 14:22:01 EDT
PRODUCT VERSION: 0.9 Confirmed on RH7.2 with eclipse 1.0. Output message (with Sun JDK 1.3.x and 1.4.0 beta3): An unexpected exception has been detected in native code outside the VM. Unexpected Signal : 11 occurred at PC=0x400C245B Function=strlen+0xF Library=/lib/libc.so.6 Current Java thread: at org.eclipse.swt.internal.motif.OS.XmCreateScrolledList(Native Method) at org.eclipse.swt.widgets.Display.initializeList(Display.java:1117) at org.eclipse.swt.widgets.Display.init(Display.java:1258) at org.eclipse.swt.graphics.Device.<init>(Device.java:496) at org.eclipse.swt.widgets.Display.<init>(Display.java:1322) at org.eclipse.swt.widgets.Display.<init>(Display.java:1887) at org.eclipse.ui.internal.Workbench.run(Workbench.java:664) at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:810) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:280) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:42) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:28) at java.lang.reflect.Method.invoke(Method.java:327) at org.eclipse.core.launcher.Main.basicRun(Main.java:151) at org.eclipse.core.launcher.Main.run(Main.java:433) at org.eclipse.core.launcher.Main.main(Main.java:306) Could not duplicate for Eclipse 1.0 or 2.0 using: - RH7.2 Enigma OSR 2.4.7-10 - Java 2 Runtime Environment, Standard Edition (build 1.3.0) Classic VM (build 1.3.0, J2RE 1.3.0 IBM build cn130-20010502 (JIT enabled: jitc) - Open Motif for Linux 2.1.30 Release 4 (the one that ships with Eclipse) Without looking at the code (just the error messages), what would be your best guess as to the problem? Specifically the lines: Function=strlen+0xF Library=/lib/libc.so.6 - and - Current Java thread: at org.eclipse.swt.internal.motif.OS.XmCreateScrolledList(Native Method) at org.eclipse.swt.widgets.Display.initializeList(Display.java:1117) at org.eclipse.swt.widgets.Display.init(Display.java:1258) at org.eclipse.swt.graphics.Device.<init>(Device.java:496) at org.eclipse.swt.widgets.Display.<init>(Display.java:1322) at org.eclipse.swt.widgets.Display.<init>(Display.java:1887) After a hint from Grant, I was able to make it work. The trick was running the program from the eclipse directory. That way, the eclipse launcher would use the Motif library that came with the the package. It seems that the lesstiff library that came with RH7.2 would cause it to SIGSEGV. So switch to OpenMotif Thanks for the assistance in determining the problem. I've posted it to the newsgroup as a temporary workaround for others that may be stuck on the issue as well. A means of ensuring that this doesn't happen is required on our end, so this PR is remaining open. GG is looking at this. *** Bug 7332 has been marked as a duplicate of this bug. *** I don't know if this is related, but since it might be: I was experiencing the same problem on RH 7.2, and so I tried to fix it by removing lesstif and installing openmotif (2.2). Now, whenever I try to start eclipse, I get: ##################################################################### mqualizz@lightning [14] /opt/eclipse$ ./eclipse -data ~/.workspace An unexpected exception has been detected in native code outside the VM. Unexpected Signal : 11 occurred at PC=0x0 Function name=(N/A) Library=(N/A) NOTE: We are unable to locate the function name symbol for the error just occurred. Please refer to release documentation for possible reason and solutions. Current Java thread: at org.eclipse.swt.internal.motif.KDE.KMimeType_allMimeTypes(Native Method) at org.eclipse.swt.program.Program.kde_getMimeInfo(Program.java:564) at org.eclipse.swt.program.Program.findProgram(Program.java:123) at org.eclipse.swt.program.Program.findProgram(Program.java:108) at org.eclipse.ui.internal.registry.EditorRegistry.getSystemEditorImageDescriptor(EditorRegistry.java:401) at org.eclipse.ui.internal.registry.EditorRegistry.getImageDescriptor(EditorRegistry.java:299) at org.eclipse.ui.internal.registry.EditorRegistry.getImageDescriptor(EditorRegistry.java:309) at org.eclipse.ui.internal.model.WorkbenchFile.getBaseImage(WorkbenchFile.java:22) at org.eclipse.ui.internal.model.WorkbenchResource.getImageDescriptor(WorkbenchResource.java:29) at org.eclipse.ui.model.WorkbenchLabelProvider.getImage(WorkbenchLabelProvider.java:87) at org.eclipse.jface.viewers.DecoratingLabelProvider.getImage(DecoratingLabelProvider.java:65) at org.eclipse.jface.viewers.TreeViewer.doUpdateItem(TreeViewer.java:89) at org.eclipse.jface.viewers.AbstractTreeViewer.doUpdateItem(AbstractTreeViewer.java:352) at org.eclipse.jface.viewers.StructuredViewer.updateItem(StructuredViewer.java:979) at org.eclipse.jface.viewers.AbstractTreeViewer.createTreeItem(AbstractTreeViewer.java:256) at org.eclipse.jface.viewers.AbstractTreeViewer.createChildren(AbstractTreeViewer.java:241) at org.eclipse.jface.viewers.AbstractTreeViewer.internalExpand(AbstractTreeViewer.java:731) at org.eclipse.jface.viewers.AbstractTreeViewer.internalExpand(AbstractTreeViewer.java:728) at org.eclipse.jface.viewers.AbstractTreeViewer.setExpandedElements(AbstractTreeViewer.java:1098) at org.eclipse.ui.views.navigator.ResourceNavigator.restoreState(ResourceNavigator.java:571) at org.eclipse.ui.views.navigator.ResourceNavigator.createPartControl(ResourceNavigator.java:205) at org.eclipse.ui.internal.PartPane$2.run(PartPane.java:58) at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:817) at org.eclipse.core.runtime.Platform.run(Platform.java:395) at org.eclipse.ui.internal.PartPane.createChildControl(PartPane.java:56) at org.eclipse.ui.internal.PartPane.createControl(PartPane.java:98) at org.eclipse.ui.internal.ViewPane.createControl(ViewPane.java:174) at org.eclipse.ui.internal.PartTabFolder.createPartTab(PartTabFolder.java:237) at org.eclipse.ui.internal.PartTabFolder.createControl(PartTabFolder.java:209) at org.eclipse.ui.internal.PartSashContainer.createControl(PartSashContainer.java:174) at org.eclipse.ui.internal.PerspectivePresentation.activate(PerspectivePresentation.java:88) at org.eclipse.ui.internal.Perspective.onActivate(Perspective.java:551) at org.eclipse.ui.internal.WorkbenchPage.onActivate(WorkbenchPage.java:1069) at org.eclipse.ui.internal.WorkbenchWindow$5.run(WorkbenchWindow.java:919) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:56) at org.eclipse.ui.internal.WorkbenchWindow.setActivePage(WorkbenchWindow.java:907) at org.eclipse.ui.internal.WorkbenchWindow.restoreState(WorkbenchWindow.java:820) at org.eclipse.ui.internal.Workbench.restoreState(Workbench.java:746) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:504) at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:817) at org.eclipse.core.runtime.Platform.run(Platform.java:395) at org.eclipse.ui.internal.Workbench.openPreviousWorkbenchState(Workbench.java:489) at org.eclipse.ui.internal.Workbench.openWindows(Workbench.java:539) at org.eclipse.ui.internal.Workbench.init(Workbench.java:389) at org.eclipse.ui.internal.Workbench.run(Workbench.java:768) 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) ##################################################################### So, I tried with a new workspace, and Eclipse starts up no problem. Next, I created a new Java Project, and when it appeared I tried to import my old stuff (filesystem import). The moment I clicked on one of the white boxes to indicate "include this in the import", Eclipse crashed with ##################################################################### An unexpected exception has been detected in native code outside the VM. Unexpected Signal : 11 occurred at PC=0x0 Function name=(N/A) Library=(N/A) NOTE: We are unable to locate the function name symbol for the error just occurred. Please refer to release documentation for possible reason and solutions. Current Java thread: at org.eclipse.swt.internal.motif.KDE.KMimeType_allMimeTypes(Native Method) at org.eclipse.swt.program.Program.kde_getMimeInfo(Program.java:564) at org.eclipse.swt.program.Program.findProgram(Program.java:123) at org.eclipse.swt.program.Program.findProgram(Program.java:108) at org.eclipse.ui.internal.registry.EditorRegistry.getSystemEditorImageDescriptor(EditorRegistry.java:401) at org.eclipse.ui.internal.registry.EditorRegistry.getImageDescriptor(EditorRegistry.java:299) at org.eclipse.ui.dialogs.FileSystemElement$1.getImageDescriptor(FileSystemElement.java:78) at org.eclipse.ui.model.WorkbenchLabelProvider.getImage(WorkbenchLabelProvider.java:87) at org.eclipse.jface.viewers.TableViewer.doUpdateItem(TableViewer.java:186) at org.eclipse.jface.viewers.StructuredViewer.updateItem(StructuredViewer.java:979) at org.eclipse.jface.viewers.TableViewer.internalRefresh(TableViewer.java:474) at org.eclipse.jface.viewers.TableViewer.internalRefresh(TableViewer.java:416) at org.eclipse.jface.viewers.StructuredViewer$1.run(StructuredViewer.java:626) at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:572) at org.eclipse.jface.viewers.CheckboxTableViewer.preservingSelection(CheckboxTableViewer.java:264) at org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java:624) at org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java:592) at org.eclipse.jface.viewers.TableViewer.inputChanged(TableViewer.java:383) at org.eclipse.jface.viewers.ContentViewer.setInput(ContentViewer.java:234) at org.eclipse.jface.viewers.StructuredViewer.setInput(StructuredViewer.java:730) at org.eclipse.ui.internal.dialogs.ResourceTreeAndListGroup.populateListViewer(ResourceTreeAndListGroup.java:600) at org.eclipse.ui.internal.dialogs.ResourceTreeAndListGroup.selectionChanged(ResourceTreeAndListGroup.java:669) at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:147) at org.eclipse.jface.viewers.StructuredViewer.updateSelection(StructuredViewer.java:999) at org.eclipse.jface.viewers.StructuredViewer.handleSelect(StructuredViewer.java:466) at org.eclipse.jface.viewers.CheckboxTreeViewer.handleSelect(CheckboxTreeViewer.java:233) at org.eclipse.jface.viewers.AbstractTreeViewer$1.widgetSelected(AbstractTreeViewer.java:624) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:74) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:488) at org.eclipse.swt.widgets.SelectableItemWidget.selectNotify(SelectableItemWidget.java:1687) at org.eclipse.swt.widgets.SelectableItemWidget.selectNotify(SelectableItemWidget.java:1710) at org.eclipse.swt.widgets.Tree.mouseDown(Tree.java:1041) at org.eclipse.swt.widgets.Tree.handleEvents(Tree.java:808) at org.eclipse.swt.widgets.SelectableItemWidget$1.handleEvent(SelectableItemWidget.java:1190) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:74) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:488) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1577) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1431) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.internal.ImportResourcesAction.run(ImportResourcesAction.java:62) at org.eclipse.jface.action.Action.runWithEvent(Action.java:452) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent(ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0(ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent(ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:74) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:488) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1577) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1431) 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) ##################################################################### As a final note: 1. new workspace 2. set default bin/src directories in preferences 3. create new java project 4. switch to navigator view 5. click on the + next to your project name 6. watch Eclipse crash and burn. And the stack trace looks kinda familiar, except that, near the top, instead of TableViewer#doUpdateItem -> WorkbenchLabelProvider#getImage you get TreeViewer#doUpdateItem -> DecoratingLabelProvider#getImage -> WorkbenchLabelProvider#getImage I hope this adds more information than confusion, Marco. See bug 8526. Maybe helpful. Thank you, I'll try this too tonight and report on the results. In the meantime, my LD_LIBRARY_PATH isn't set. (ie/ for all of these crashes, I haven't had an LD_LIBRARY_PATH set) Tried with LD_LIBRARY_PATH set. Still didn't work. Then I realized something fairly significant: The 20020125 build works perfectly. Infact, I go back to it every time the new build proves to be a bust. The latest to fail is I-0212-motif. Same (at org.eclipse.swt.internal.motif.KDE.KMimeType_allMimeTypes(Native Method)) error. I've created bug 10581 http://bugs.eclipse.org/bugs/show_bug.cgi?id=10581 to track the allMimeTypes problem, since it seems that it might be a KDE problem. summary for post-2.0 bug review: incompatibility with lesstif implementation Renamed from "SWT fails to initialize on RedHat Roswell Beta (7.1.93) (1GIGE7S)" *** Bug 18461 has been marked as a duplicate of this bug. *** Fixed ScrolledList and ScrolledText so that Eclipse now starts up using Lesstif. *** Bug 25938 has been marked as a duplicate of this bug. *** |