[vtkusers] VTK/Java crashes -- WeakGlobalRef or garbage collection problem...solution?

Baliki baliki balikivtk at gmail.com
Tue Nov 17 09:42:31 EST 2009


The crash happened afterwards.
The data rendered ok. But when i interacted with the rendered object, sooner
or later the program would crash. The same thing happened when i changed the
size of the window (expected so, as it makes the object to be updated, if
i'm not mistaken).


2009/11/17 Jeff Baumes <jeff.baumes at kitware.com>

> On Tue, Nov 17, 2009 at 4:56 AM, Baliki baliki <balikivtk at gmail.com>
> wrote:
> > I use a vtkVRMLImporter to read a vrml file. All variables
> (vtkVRMLImporter,
> > vtkActor, etc) i use are in function scope.
> > I "solved" the problem using the vtkVRMLImporter as a global variable.
> >
> > The weird thing is that when i tried a similar thing using vtkSTLReader
> to
> > read an stl file, the crash did not occur!
> > (all variables in function scope).
> >
> > If you have any possible explanation, please let me know.
>
> Where did your crash happen? Within the function where you are using
> the vtkVRMLImporter, or afterward when you are accessing/rendering
> data that came from the importer?
>
> Jeff
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20091117/50825f18/attachment.htm>


More information about the vtkusers mailing list