[vtkusers] Java EXCEPTION_ACCESS_VIOLATION

Sebastien Jourdain jourdain at artenum.com
Mon Oct 26 05:55:01 EDT 2009


Hello,

It seems that you forget to set the path to the VTK reader.   
(vtkDICOMImageReader)

=>  vtkDICOMImageReader imageReader = new vtkDICOMImageReader();
=> imageReader.SetXXX(strFolderPath);

Seb


On 26 oct. 09, at 10:30, vtkusers-request at vtk.org wrote:

> Message: 3
> Date: Sun, 25 Oct 2009 11:03:24 -0700 (PDT)
> From: Divye <zombi2_84 at yahoo.com>
> Subject: [vtkusers] Java EXCEPTION_ACCESS_VIOLATION
> To: vtkusers at vtk.org
> Message-ID: <58465.64627.qm at web56501.mail.re3.yahoo.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi All,
>
> I am trying to run a program for 3d rendering of DICOM images ,  
> using java on win vista 32 - bit using vtk 5.4.2 and am getting the  
> following EXCEPTION_ACCESS_VIOLATION.
>
> An unexpected error has been detected by Java Runtime Environment:
> #
> #? EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x59bf3b3f,  
> pid=27652, tid=27836
> #
> # Java VM: Java HotSpot(TM) Client VM (1.6.0-b105 mixed mode, sharing)
> # Problematic frame:
> # C? [vtkVolumeRendering.dll+0x313b3f]
> #
> # An error report file with more information is saved as  
> hs_err_pid27652.log
> #
> # If you would like to submit a bug report, please visit:
> #?? http://java.sun.com/webapps/bugreport/crash.jsp
>
> Looks like a memory leak somewhere but am not able to figure out  
> where it is.
>
> Here is the main class :
>
>

[...]

>
> ??? public boolean LoadVolumeFromFolder(String strFolderPath) {
> ??? ???
> ??? ??? vtkDICOMImageReader imageReader = new vtkDICOMImageReader();
> ??? ???
> ??? ??? int channels = imageReader.GetNumberOfScalarComponents();
> ??? ???
> ??? ??? if (channels == 1) {
> ??? ??? ??? loadGrayScaleDataSet(imageReader.GetOutput());
> ??? ??? ??? setupRendererMIP();
> ??? ??? } else {
> ??? ??? ??? System.out.println("unsupported number of channels in  
> dicom dataset");
> ??? ??? ??? return false;
> ??? ??? }
> ??? ???
> ??? ??? imageReader.Delete();
> ??? ??? renderer.ResetCamera();
> ??? ??? return true;
> ??? }




More information about the vtkusers mailing list