← Back to team overview

yade-dev team mailing list archive

Re: r1643 - bug - images of spheres vanish if to close primary view

 

sega said:     (by the date of Mon, 26 Jan 2009 19:40:24 +0300)

> Hi, all. I have found a bug: if to close "Primary view" window in Simulation Controller then spheres vanish:
> 1. Run examples/STLImporerTest.py
> 2. Open Simulation Controller.
> 3. Close Primary View
> 4. Click on "New 3D" button.
> in results spheres vanish.

I've been fighting with this bug for about a year now. It's well
known to me. I have always had problems in reproducing it. I thought
that I solved it about 6 months ago, but now it comes back.

Now I decided to try an even more radical approach. Maybe finally it
will work....?

my theory is that when the GL context is closed (last GL window is
closed) the GL Lists are all deleted. Sphere is a GL list, and needs
to be recreated every time when a new GL context is created.

Very often it was working without the need to recreate the GL list,
because incidentally the new list was in the same place in memory,
where the old one was present. Maybe.


-- 
Janek Kozicki                                                         |



References