MantisBT - VTK | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0006259 | VTK | (No Category) | public | 2008-01-18 10:36 | 2008-02-19 11:22 |
Reporter | Jerome Robert | ||||
Assigned To | Jeff Baumes | ||||
Priority | normal | Severity | crash | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | OS | OS Version | |||
Product Version | |||||
Target Version | Fixed in Version | ||||
Project | |||||
Type | |||||
Summary | 0006259: The JVM crash when vtk.vtkAbstractPropPicker.GetPath() should return null: | ||||
Description | With the head of the CVS, the JVM crash when vtk.vtkAbstractPropPicker.GetPath() should return null: Stack: [0x89857000,0x898a8000), sp=0x898a6b50, free space=318k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) C [libvtkCommonJava.so.5.1.0+0x6d586] Java_vtk_vtkObjectBase_VTKRegister+0x2a j vtk.vtkObjectBase.VTKRegister()V+0 j vtk.vtkObjectBase.<init>(J)V+20 j vtk.vtkObject.<init>(J)V+2 j vtk.vtkCollection.<init>(J)V+2 j vtk.vtkAssemblyPath.<init>(J)V+2 j vtk.vtkAbstractPropPicker.GetPath()Lvtk/vtkAssemblyPath;+51 j testvtk.TestVTK$1.mouseClicked(Ljava/awt/event/MouseEvent;)V+44 vtk.vtkAbstractPropPicker.GetPath() is trying to create a vtkAssemblyPath with a 0/NULL native adress: public vtkAssemblyPath GetPath() { long temp = GetPath_3(); //temp == 0L vtkAssemblyPath obj = null; java.lang.ref.WeakReference ref = (java.lang.ref.WeakReference)vtkGlobalJavaHash.PointerToReference.get(new Long(temp)); if (ref != null) { obj = (vtkAssemblyPath)ref.get(); } if (obj == null) { vtkAssemblyPath tempObj = new vtkAssemblyPath(temp); //crash here because temp == 0L ... | ||||
Steps To Reproduce | |||||
Additional Information | Suggested solution: -- Wrapping/vtkParseJava.c 8 Oct 2007 14:40:27 -0000 1.39 +++ Wrapping/vtkParseJava.c 18 Jan 2008 15:09:00 -0000 @@ -555,6 +555,7 @@ fprintf(fp,"id%i",i); } fprintf(fp,");\n"); + fprintf(fp,"\n if(temp==0) return null;"); fprintf(fp,"\n %s obj = null;", currentFunction->ReturnClass); fprintf(fp,"\n java.lang.ref.WeakReference ref = (java.lang.ref.WeakReference)vtkGlobalJavaHash.PointerToReference.get(new Long(temp));"); fprintf(fp,"\n if (ref != null) {"); | ||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2008-01-18 10:36 | Jerome Robert | New Issue | |||
2008-02-06 09:19 | Jeff Baumes | Status | backlog => tabled | ||
2008-02-06 09:19 | Jeff Baumes | Assigned To | => Jeff Baumes | ||
2008-02-19 11:22 | Jeff Baumes | Status | tabled => closed | ||
2008-02-19 11:22 | Jeff Baumes | Note Added: 0010587 | |||
2008-02-19 11:22 | Jeff Baumes | Resolution | open => fixed | ||
2011-06-16 13:11 | Zack Galbreath | Category | => (No Category) |
Notes | |||||
|
|||||
|
|