[vtk-developers] Possible bug with vtkActor2D or with text actors.

Prabhu Ramachandran prabhu at aero.iitm.ernet.in
Thu Oct 18 07:52:02 EDT 2001


Hi,

>>>>> "LSA" == Lisa Sobierajski Avila <lisa.avila at kitware.com> writes:

    LSA> I suspect some graphics resources are not being
    LSA> released. Either ReleaseGraphicsResources() is not being
    LSA> called (but I looked and it seems like it should be...) or
    LSA> else some resource that should be released in this method is
    LSA> not. Of course, having said this I do not have time to look
    LSA> at this for a couple of weeks - but perhaps someone else
    LSA> might know what resource (other than the display list for the
    LSA> text) should be released.

I wrote a 50 line C++ program that demonstrates the bug and stepped
through it.  Here is what happens:

The call fails in vtkXOpenGLTextMapper.cxx: 155, Revision: 1.24.

     153 cache[numCached]->FontFamily = tm->GetFontFamily();
     154   cache[numCached]->ContextId = ctx;
     155   glXUseXFont(CurrentFont, 0, 255, cache[numCached]->ListBase); 
	   ^^^^^^^^^^^^

This is in turn called from vtkXOpenGLTextMapper::RenderGeometry.  I
also find that numCached = 0.  I dont know enough to really figure
this out immediately.

Attached is a simple c++ program that demonstrates the problem.  Would
appreciate if someone could let me know what is going on and if there
is a simple workaround.

Thanks,
prabhu

-------------- next part --------------
A non-text attachment was scrubbed...
Name: bug.C
Type: application/octet-stream
Size: 1050 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtk-developers/attachments/20011018/9230e39a/attachment.obj>


More information about the vtk-developers mailing list