[vtkusers] ScalarBarActor Generating Exception in vtkInformation

Brenton Thomas brenton_thomas at bigpond.com
Sat Aug 11 21:14:33 EDT 2007


Am updating some code I wrote a few years ago using an older version of VTK
- which used to run perfectly - and am having a problem with the
vtkScalarBarActor.  It is generating an exception on cleanup in
vtkInformation::ReportReferences.

 

It looks like the Internal Keys and Values are referring to invalid memory
locations

 

void vtkInformation::ReportReferences(vtkGarbageCollector* collector)

{

  this->Superclass::ReportReferences(collector);

 

  // Ask each key/value pair to report any references it holds.

  unsigned short i;

  for (i = 0; i < this->Internal->TableSize; ++i)

    {

    if (this->Internal->Keys[i])

      {

      this->Internal->Keys[i]->Report(this,collector);  <--exception here

      }

    }

}

 

 

Anyone have any ideas what could cause this? 

 

 

Way too much code to post a sample of - but wouldn't mind some ideas if
anyone can think of one - somehow cleaning up twice?, cleanup occuring from
a different thread?

 

 

I am tending to think that the error is in polydatamapper or one of the
related classes - as the same thing is occuring with some labels I am using
on a set of floating axis.

 

 

Btw - it may be a red herring but it is hitting the part of the code in
UnRegisterInternal where it says the garbage collector did not accept the
reference

 

else if(check)

    {

    // The garbage collector did not accept the reference, but the

    // object still exists and is participating in garbage collection.

    // This means either that delayed garbage collection is disabled

    // or the collector has decided it is time to do a check.

    vtkGarbageCollector::Collect(this);

    }

 

 

bt

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20070812/4dbbb278/attachment.htm>


More information about the vtkusers mailing list