[vtkusers] Crash/Error by using vtkVRMLImporter with VTK6.1

Sean McBride sean at rogue-research.com
Tue Jul 22 11:56:52 EDT 2014


On Tue, 22 Jul 2014 02:53:13 -0700, -Daniel- said:

>in my application I can import one VRML-object. But my program crashes, when
>I load the next VRML-dataobject (with VTK6.1).
>With VTK 6.0 it runs fine.
>
>here my (JAVA-)code for loading a new VRML-object:
>/
>//***** VRML import ******
>vtkVRMLImporter importer = new vtkVRMLImporter();
>importer.SetFileName(file);
>importer.Read();
>importer.Update();
>
>vtkActorCollection coll = importer.GetRenderer().GetActors();
>coll.InitTraversal();
>		
>vtkActor actor = coll.GetLastActor();
>//*****************************
>/
>
>It crashes in the third line ( importer.Read() ).
>
>Is it a bug in 6.1 ?

You don't really give enough information for anyone to help you.  Have you run your code in a debugger?  Stepping into the VTK library code?  Where does it crash exactly?

Cheers,

-- 
____________________________________________________________
Sean McBride, B. Eng                 sean at rogue-research.com
Rogue Research                        www.rogue-research.com 
Mac Software Developer              Montréal, Québec, Canada




More information about the vtkusers mailing list