[XForms] Shared GL contexts

David Scriven davidwriter at yahoo.com
Fri May 28 14:48:29 EDT 2004


 --- jason cipriani <jac4 at mindless.com> wrote: > To subscribers of the
xforms list
> 
> 
> > 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.
> 

This is rather worrying. It doesn't seem to be a problem with 
XForms-GL apps built with 0.89. I can run any number under 
Fedora and they don't seem to interact. My Fedora is fully 
updated and I'm using the latest NVIDIA driver - 5336. 

I've rebuilt the apps in Fedora with the latest g++, but I haven't
rebuilt the XForms library - so it makes me wonder - is there 
something in XForms that is causing the problem? The only way
to test this (I think) is to compile an app under Fedora and
link it with both the old (0.89) library and the new to see
if there is any difference in behaviour.

> 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
> 
> 
> _______________________________________________
> To unsubscribe, send the message "unsubscribe" to
> xforms-request at bob.usuhs.mil or see: 
> http://cweblog.usuhs.mil/mailman/listinfo/xforms
> XForms Home Page: http://world.std.com/~xforms
> List Archive: http://bob.usuhs.mil/pipermail/xforms and
> http://bob.usuhs.mil/mailserv/list-archives/
> Development: http://savannah.nongnu.org/files/?group=xforms 

______________________________________________________________________ 
Post your free ad now! http://personals.yahoo.ca



More information about the Xforms mailing list