Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 38974 - Showing Swing windows in simple (helloworld) plugin crashes JVM
Summary: Showing Swing windows in simple (helloworld) plugin crashes JVM
Status: RESOLVED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 2.1   Edit
Hardware: Other Linux
: P3 major with 3 votes (vote)
Target Milestone: ---   Edit
Assignee: Steve Northover CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 37724
  Show dependency tree
 
Reported: 2003-06-16 15:32 EDT by Rhett Savage CLA
Modified: 2006-04-05 12:20 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rhett Savage CLA 2003-06-16 15:32:49 EDT
A simple plug-in which merely puts up a Swing dialog or creates a JFrame and
makes it visible immediately crashes Eclipse 2.1 using RedHat 8.0 and JDK 1.4.1.
- the same experiment succeeds in showing the Swing windows under Windows and,
apparently, Gentoo Linux. 

Parts of the error and stack-trace are pasted below:

An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : 11 occurred at PC=0x4D75E917
Function=_XtSortPerDisplayList+0x57
Library=/usr/X11R6/lib/libXt.so.6

Current Java thread:
	at sun.awt.motif.MWindowPeer.pCreate(Native Method)
	at sun.awt.motif.MWindowPeer.create(MWindowPeer.java:79)
	at sun.awt.motif.MComponentPeer.init(MComponentPeer.java:219)
	at sun.awt.motif.MWindowPeer.init(MWindowPeer.java:93)
	at sun.awt.motif.MFramePeer.<init>(MFramePeer.java:58)
	at sun.awt.motif.MToolkit.createFrame(MToolkit.java:197)
	at java.awt.Frame.addNotify(Frame.java:469)
	- locked <0x44ca5ee0> (a java.awt.Component$AWTTreeLock)
	at java.awt.Window.show(Window.java:448)
	at net.javaverse.testplugin.actions.SampleAction.run(SampleAction.java:48)
	at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)
	at org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:207)
Comment 1 Wassim Melhem CLA 2003-06-16 16:21:13 EDT
Moving to SWT...
Comment 2 Steve Northover CLA 2006-04-05 12:20:58 EDT
The code base has changed significantly since this bug was reported.  If it is still happening for you, please reopen this bug report.  For example, we there are no MPeers in the JDK 1.5 X embedded frame.