MantisBT - VTK | ||||||||||
View Issue Details | ||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||
0013143 | VTK | (No Category) | public | 2012-05-01 22:04 | 2015-08-28 14:48 | |||||
Reporter | Gopalakrishna Palem | |||||||||
Assigned To | T.J. Corona | |||||||||
Priority | high | Severity | minor | Reproducibility | have not tried | |||||
Status | closed | Resolution | fixed | |||||||
Platform | OS | OS Version | ||||||||
Product Version | ||||||||||
Target Version | Fixed in Version | |||||||||
Project | TBD | |||||||||
Type | crash | |||||||||
Summary | 0013143: crash due to vtkDataArrayTemplateLookup::SortedArray incorrect state because of vtkDataArrayTemplate<T>::SetVariantValue() | |||||||||
Description | The method vtkDataArrayTemplate<T>::SetVariantValue() is missing the DataElementChanged() method call, leaving its Lookup variable Sorted array in incorrect state. This is causing a crash(access violation). There are actually two issues here: 1. vtkDataArrayTemplate<T>::SetVariantValue() changes the value, but does not update the lookup sorted array. A call to DataElementChanged() should be able to take care of it. 2. But, the vtkDataArrayTemplate<T>::DataElementChanged() does not take the updates for SortedArray() into account. Presently its only taking care of CachedUpdates member. To correct issue 1, please add this below line at about line 907 in Common\vtkDataArrayTemplate.txx file: this->Lookup->Rebuild = true;; The corrected code should look like: if (valid) { this->SetValue(id, toInsert); this->Lookup->Rebuild = true; } Also, If DataElementChanged() can be updated to include the SortedArray() updations into account, then vtkDataArrayTemplate<T>::SetVariantValue() can as well use the DataElementChanged() as below: if (valid) { this->SetValue(id, toInsert); DataElementChanged(id); } | |||||||||
Steps To Reproduce | ||||||||||
Additional Information | ||||||||||
Tags | No tags attached. | |||||||||
Relationships |
| |||||||||
Attached Files | ![]() https://www.vtk.org/Bug/file/9186/bug.jpg | |||||||||
Issue History | ||||||||||
Date Modified | Username | Field | Change | |||||||
2012-05-01 22:04 | Gopalakrishna Palem | New Issue | ||||||||
2012-05-01 22:04 | Gopalakrishna Palem | File Added: bug.jpg | ||||||||
2012-05-01 22:05 | Gopalakrishna Palem | Note Added: 0028563 | ||||||||
2013-06-24 22:18 | Dave DeMarle | Note Added: 0031034 | ||||||||
2014-10-02 14:16 | Utkarsh Ayachit | Relationship added | related to 0014340 | |||||||
2015-08-13 10:44 | T.J. Corona | Assigned To | => T.J. Corona | |||||||
2015-08-13 10:44 | T.J. Corona | Description Updated | bug_revision_view_page.php?rev_id=1221#r1221 | |||||||
2015-08-28 14:48 | T.J. Corona | Note Added: 0035096 | ||||||||
2015-08-28 14:48 | T.J. Corona | Status | backlog => closed | |||||||
2015-08-28 14:48 | T.J. Corona | Resolution | open => fixed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|