Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 6386791
Votes 8
Synopsis Mustang: SWT application hangs with embedded swing components
Category java:classes_swing
Reported Against b70
Release Fixed
State 5-Cause Known, bug
Priority: 3-Medium
Related Bugs
Submit Date 16-FEB-2006
Description
From webbugs review ID 644155:

category:    java
subcategory: classes_swing
company:      xxxxx 
release:     mustang
hardware:    x86
OSversion:   Linux
priority:    2
synopsis:    SWT application hangs with embedded swing components
description: Problem: Application hangs with "Xlib: unexpected async reply" message printed while running an SWT application with embedded Swing components.

Environment: Linux (Fedora Core 4)
              JDK 1.6 (problem seen with builds 68 and 70)
              GTK Look and Feel (problem seen with GTK 2.6.7 and 2.6.10)
              SWT 3.1.1

The problem does not occur at all with JDK 5.0, and it does not occur on JDK 6.0 unless the GTK look and feel is used (Metal works fine). SWT 3.2 also displays the same problem, again only with JDK 6.0 and only with the GTK look and feel.

Un-tar the attached application, edit the "run" script for your environment, and run it.

About 25% of the time for me, it will immediately print out a message like:

Xlib: unexpected async reply (sequence 0x2e0)!

At this point the application is mostly unresponsive.

The application is a very simple example of embedding Swing into an SWT application via the SWT_AWT bridge. The source for the app is included in the tar file (see /com.sas.swtswing/com/sas/swtswing/Main.java).
Posted Date : 2006-02-16 17:11:21.0
Work Around
N/A
Evaluation
This problem is most likely related to the introduction of GTK LAF native rendering in Mustang. Either SWT or the bridge may access GTK methods on their own, so multithreaded access may occur, which GTK does not like. The bridge should probably have some means of protection.
Posted Date : 2006-03-13 15:36:08.0
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang