View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0000636 | VTK | (No Category) | public | 2004-03-01 15:00 | 2011-01-13 17:00 | ||||
Reporter | Mathieu Malaterre | ||||||||
Assigned To | Mathieu Malaterre | ||||||||
Priority | low | Severity | major | Reproducibility | always | ||||
Status | closed | Resolution | fixed | ||||||
Platform | OS | OS Version | |||||||
Product Version | |||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0000636: DeepCopy of vtkStructuredGrid | ||||||||
Description | Hello, We are using a nightly build from Dec 31. We read in a structured grid using the strucutred grid reader and then do a deepcopy to a structured grid and then pass the strucutred grid to vtkStreamLine and the code dumps a core. If we don't do a deepcopy the streamline function works fine. The following is the output from the core: vtkDataArrayTemplate<unsigned char>::GetValue(int) Called from: in vtkUnsignedCharArray::GetValue(int) in vtkStructuredVisibilityConstraint::IsVisible(int) in vtkStructuredGrid::IsCellVisible(int) If this problem has already been fixed please let me know and we will update our builds. Thanks for any help. Doug | ||||||||
Tags | No tags attached. | ||||||||
Project | |||||||||
Type | |||||||||
Attached Files | StreamlinesWithLineWidget.py [^] (4,302 bytes) 1969-12-31 19:00 structuredgrid.py [^] (602 bytes) 1969-12-31 19:00 | ||||||||
Relationships | |
Relationships |
Notes | |
(0000711) Mathieu Malaterre (developer) 2004-03-01 15:02 |
I attached a demo.py python script to reproduce the bug. |
(0001110) Mathieu Malaterre (developer) 2004-05-21 21:13 |
Need to apply this patch, after dashboard: Index: vtkStructuredVisibilityConstraint.cxx =================================================================== RCS file: /cvsroot/VTK/VTK/Common/vtkStructuredVisibilityConstraint.cxx,v retrieving revision 1.3 diff -u -3 -p -r1.3 vtkStructuredVisibilityConstraint.cxx --- vtkStructuredVisibilityConstraint.cxx 14 Nov 2003 20:43:25 -0000 1.3 +++ vtkStructuredVisibilityConstraint.cxx 22 May 2004 01:12:55 -0000 @@ -50,14 +50,17 @@ vtkStructuredVisibilityConstraint::~vtkS void vtkStructuredVisibilityConstraint::DeepCopy( vtkStructuredVisibilityConstraint* src) { - memcpy(this->Dimensions, src->Dimensions, 3*sizeof(float)); + memcpy(this->Dimensions, src->Dimensions, 3*sizeof(int)); this->NumberOfIds = this->Dimensions[0]*this->Dimensions[1]*this->Dimensions[2]; - if (!this->VisibilityById) + if(src->VisibilityById) { - this->VisibilityById = vtkUnsignedCharArray::New(); + if (!this->VisibilityById) + { + this->VisibilityById = vtkUnsignedCharArray::New(); + } + this->VisibilityById->DeepCopy(src->VisibilityById); } - this->VisibilityById->DeepCopy(src->VisibilityById); this->Initialized = src->Initialized; } @@ -65,7 +68,7 @@ void vtkStructuredVisibilityConstraint:: void vtkStructuredVisibilityConstraint::ShallowCopy( vtkStructuredVisibilityConstraint* src) { - memcpy(this->Dimensions, src->Dimensions, 3*sizeof(float)); + memcpy(this->Dimensions, src->Dimensions, 3*sizeof(int)); this->NumberOfIds = this->Dimensions[0]*this->Dimensions[1]*this->Dimensions[2]; this->SetVisibilityById(src->VisibilityById); |
(0001174) Mathieu Malaterre (developer) 2004-06-03 22:02 |
$ cvs ci /opt/VTK/Common Checking in vtkStructuredVisibilityConstraint.cxx; /cvsroot/VTK/VTK/Common/vtkStructuredVisibilityConstraint.cxx,v <-- vtkStructuredVisibilityConstraint.cxx new revision: 1.4; previous revision: 1.3 done |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
2010-11-29 17:59 | Mathieu Malaterre | Source_changeset_attached | => VTK master ab508a05 |
2011-01-13 17:00 | Source_changeset_attached | => VTK master a2bd8391 | |
2011-01-13 17:00 | Source_changeset_attached | => VTK master 020ef709 | |
2011-06-16 13:11 | Zack Galbreath | Category | => (No Category) |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |