[XForms] Shared GL contexts

jason cipriani jac4 at mindless.com
Fri May 28 11:45:08 EDT 2004


> Here I'm running a linux box with a stock Fedora Core 1 distribution.

That is the problem. I believe I mentioned this before but there's either a problem with Fedora 1 or a problem with the latest X server that causes apps that use GL to crash the server when they exit. The problem is not limited to the context sharing stuff, it is present in a clean 1.0.90 and 1.0 version of xforms as well.

Here at work we switched two machines to Fedora, had that problem with both of them, then went back to using RH9.

I have no idea what the cause is. Another way that I found to reproduce it was:

1) Create an xforms 1.0 or 1.0.90 application that uses GLCanvases and GL.
2) Run two instances of the application at the same time.
3) Close one of them.

That always did it for me. I would also experience weird things like:

1) Create an xforms 1.0 or 1.0.90 application that uses GL and calls glLineWidth(5.0).
2) Run it, exit it, some times it crashes some times it doesn't.
3) Start a completely different GL application and note that the line width in that application is 5.0!

Strange stuff like the GL states carrying across applications, and other things.

Like I said, we could not figure out the cause at all. And it only happened in certain applications... but nothing about the way those applications were coded stood out from the applications that -did- work.

PS: In fdesign/spec/glcanvas_spec.c I believe I inadvertently #included "forms.h" rather than "include/forms.h". Could you make sure that it's including the right thing?

Jason
-- 
___________________________________________________________
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm




More information about the Xforms mailing list