[vtkusers] VTK with JDK1.3.1_08

R K Shyamprakash ramakrishna.prakash at quest-global.com
Thu Jun 26 09:33:02 EDT 2003


Jeff,
      I am running the application on Windows NT. I will test the same on
Windows 2000 and check if it works.
	One more thing. vtkPanel occasionally crashes(may be once in 150 times or
so) in the Render() method. Below is the exact location where crash occurs
  public synchronized void Render()
  {
    if (!rendering)
      {
        rendering = true;
        if (ren.VisibleActorCount() == 0) {rendering = false; return;}
        if (rw != null)
          {
            if (windowset == 0)
              {
                // set the window id and the active camera
                cam = ren.GetActiveCamera();//here the application crashes

	Is it because VTK is unable to find the active camera associated with
vtkRenderer? Have you come across the same problem? below is the error
message


An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x24807FCD
Function=vtkDataSetToPolyDataFilter::GetClassNameA+0x2577C
Library=D:\apps\vtk42\bin\vtkFiltering.dll

Current Java thread:
	at vtk.vtkRenderer.GetActiveCamera_23(Native Method)
	at vtk.vtkRenderer.GetActiveCamera(vtkRenderer.java:104)
	at vtk.vtkPanel.Render(vtkPanel.java:125)
	- locked <114A22A0> (a SourceViewer)
	at SourceViewer.Render()(SourceViewer.java:171)
	- locked <114A22A0> (a SourceViewer)
Thanks
Shyam


-----Original Message-----
From: vtkusers-admin at vtk.org [mailto:vtkusers-admin at vtk.org]On Behalf Of
Jeff Lee
Sent: Wednesday, June 25, 2003 3:57 PM
To: R K Shyamprakash
Cc: vtkusers at vtk.org
Subject: Re: [vtkusers] VTK with JDK1.3.1_08


on which os are you compiling?  I have seen this before on winnt and
older versions of java.  vtkPanel/Canvas are only dependent on jdk1.3 or
greater.  I think it is a winnt/jdk1.3 problem.
-Jeff

R K Shyamprakash wrote:

>Jeff/Users,
>		I built VTK 4.2 with JDK1.3.1_08. The build completed successfully. But
my
>application would not run. It crashes with the following error message. Is
>it that vtkPanel and vtkCanvas are not compatible with JDK version lower
>than 1.4 or its because of some other problem?
>
>Thanks
>Shyam
>
>An unexpected exception has been detected in native code outside the VM.
>Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x77f67616
>Function name=RtlLeaveCriticalSection
>Library=C:\WINNT\System32\ntdll.dll
>
>Current Java thread:
>        at vtk.vtkPanel.UnLock(Native Method)
>        at vtk.vtkCanvas.mouseMoved(vtkCanvas.java:204)
>        at java.awt.Component.processMouseMotionEvent(Component.java:3751)
>        at java.awt.Component.processEvent(Component.java:3543)
>        at java.awt.Component.dispatchEventImpl(Component.java:2588)
>        at java.awt.Component.dispatchEvent(Component.java:2492)
>        at java.awt.EventQueue.dispatchEvent(EventQueue.java:334)
>        at
>java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchT
>read.java:126)
>        at
>java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThr
>ad.java:93)
>        at
>java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:88)
>        at java.awt.EventDispatchThread.run(EventDispatchThread.java:80)
>
>
>


_______________________________________________
This is the private VTK discussion list.
Please keep messages on-topic. Check the FAQ at:
<http://public.kitware.com/cgi-bin/vtkfaq>
Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers




More information about the vtkusers mailing list