eclipse oxygen plugin problem

Having trouble installing Oxygen? Got a bug to report? Post it all here.
bill

eclipse oxygen plugin problem

Post by bill »

hi,

when i open .xml, .xsl, or any other files associated with the eclipse oxygen plugin, eclipse hangs and i have to send it a KILL signal. what could be causing this?

here's the info:

com.oxygenxml.editor_2.0.2.beta3
eclipse 2.1
java 1.4.1

thank you in advance for your help!

--bill
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Post by george »

The problem may have to do with a conflict between SWT and AWT. We are using a couple of AWT classes java.awt.Color is one of them and on Mac OS X this may cause a deadlock. There is a message on news://news.eclipse.org/eclipse.platform.swt with subject bug when calling java.awt.Color on MacOSX that describes this situation:
> I did some testing and this is definitively seems to be a bug.
>
> I tested this in a working class (that had no bug):
>
> ....
> // add the import
> import java.awt.Color;
> ....
> // initialize a color with the awt.Color lib.
> Color noir = Color.black; // this causes a bug when trying to load the
> Color librairy
>
>
> I would like somebody else to confirm it before posting a bug. Thnaks.
>
> Patrice Drolet
>

On MacOS X (and probably on other platforms as well) it is not supported to
use AWT and SWT at the same time.
Even instantiating an AWT Color starts the AWT event loop which will
conflict (deadlock) with SWT's event loop.

Yes, please file a bug. But it is very unlikely that we can fix the problem.

you can try to workaround the problem by:
- removing all dependencies on AWT
- create a fake AWT that contains the Color class but uses SWT internally
- wait for the Swing based SWT port discussed elsewhere on this list.
We will remove all the dependencies on AWT in the next release.

Best Regards,
George
Post Reply