Project: SWT
Bug 50639 Deadlock creating image outside UI thread
Reported: 2004-01-26 15:39:24 | Status: resolved fixed

I20040121 I got a deadlock today while performing a manual workspace build (Ctrl+B). The stack trace shows that it is trying to create an Image instance outside of the UI thread. This is causing it to block on a GTK OS primitive (presumably because the main thread currently holds some mutex on the UI). I will attach the log file. Image javadoc doesn't seem to specify that Images must be created in the UI thread.

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Display.java bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Display.java