[OpenJDK 2D-Dev] CR 6974985 Redispatched, P3 java/classes_2d Jave2Demo threw exceptions when xrender enabled in OEL5.5

Clemens Eisserer linuxhippy at gmail.com
Fri Aug 27 20:07:10 UTC 2010

Hi Phil,

The root of all those Errors seems to be that on XDetroyWindow all
Pictures associated with that Window are freed automatically, however
the same is not true for Pixmaps.
So I may only call XRenderFreePicture for Pixmaps, because it seems
X11SurfaceData.dispose is called after XDestroyWindow. However I would
like to make sure first this is really the intended behaviour, it
seems quite strange and inconsistent to me and I don't want to depend
on it if possible.

I don't know how those XErrors can cause the DnD exception, but when I
comment the XRenderFreePicture call, I don't get the DnD exception

> Looking at (3) the alternatives that come to mind are :
> - as you suggest the error reporting is questionable
Yes, the XID reported is bogous, no idea why. Its even there in the
XEventError structure passed to Java's custom error handler, even in
synchrnous mode.

> - some other code is doing X11 protocol on another thread without the lock
I went over all sections and didn't find anything.

Thanks, Clemens

More information about the 2d-dev mailing list