[vtkusers] vtkTextureObject bind error

Rick Dailey rick at pile.com
Thu Jul 20 12:45:02 EDT 2017


This is an ongoing issue I have had since starting my project with VTK 6.3
until today when I am using 7.1.1.  I have seen it mentioned many times by
other users and no one has been able to help.  I even had VTK paid support
for over a year and even working directly with a Kitware engineer failed to
the problem.

There are many times when I will display a 3D object and numerous errors
related to vtkTextureObject will be generated.  The result is that I get
notified of these errors and my object does not display.

The first problem occurs here, on the second line, assert(this->Handle). 
Note that nowhere in my code do I explicitly use a vtkTextureObject.  It is
my understanding that VTK must use this object for displaying text, even
when the text is a solid color, so if I don't specify a texture then a
default is created.

void vtkTextureObject::Bind()
{
  assert(this->Context);
  assert(this->Handle);
  ...
}

The next error occurs here:

void vtkTextureObject::SendParameters()
{
  assert("pre: is_bound" && this->IsBound());
  ...
}

Unfortunately, I am unable to provide sample code that reliably demonstrates
this issue.  The software it is used in is a commercial release which is
quite large and not open-source.  Out of the hundreds of users of this
software, approximately one half report the bug.  Many attempts at creating
a demo had varying results.  I was able to create one demo that failed on
half the computers I tried it on but no one at Kitware could duplicate them. 
There are many things I tried at the suggestion of Kitware and I will try to
organize a list at some time in the future.










--
View this message in context: http://vtk.1045678.n5.nabble.com/vtkTextureObject-bind-error-tp5744068.html
Sent from the VTK - Users mailing list archive at Nabble.com.


More information about the vtkusers mailing list