MantisBT - VTK | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0013384 | VTK | (No Category) | public | 2012-08-22 04:52 | 2016-08-12 09:55 |
Reporter | John Stark | ||||
Assigned To | Bill Lorensen | ||||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | moved | ||
Platform | OS | OS Version | |||
Product Version | 5.8.0 | ||||
Target Version | Fixed in Version | ||||
Project | TBD | ||||
Type | crash | ||||
Summary | 0013384: vtkColorTransferFunction::GetTable race condition | ||||
Description | When vtkColorTransferFunction is used with vtkImageMapToColors a race condition can arise during running leading to corrupted output or a crash. The issue is caused by the re-allocation and re-computation of the lookup table (LUT) performed in vtkColorTransferFunction::GetTable(). Because vtkImageMapToColors is a multi-threaded algorithm, GetTable can be called by many threads simultaneously. The re-allocation and computation should be protected with a mutex or critical section. Only vtkImageData using unsigned char or unsigned short pixel data are affected. My solution was to protect GetTable with a vtkCriticalSection. | ||||
Steps To Reproduce | |||||
Additional Information | |||||
Tags | hackaton | ||||
Relationships | |||||
Attached Files | ![]() https://www.vtk.org/Bug/file/9261/ColorTransferFn.patch ![]() https://www.vtk.org/Bug/file/9262/ImageMapToColorsBugTest.cxx ![]() https://www.vtk.org/Bug/file/9433/TestColorTransferFunction.cxx | ||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2012-08-22 04:52 | John Stark | New Issue | |||
2012-08-23 03:58 | John Stark | File Added: ColorTransferFn.patch | |||
2012-08-23 03:58 | John Stark | File Added: ImageMapToColorsBugTest.cxx | |||
2012-08-23 04:00 | John Stark | Note Added: 0029049 | |||
2013-04-16 16:43 | John Stark | File Added: TestColorTransferFunction.cxx | |||
2013-04-16 16:45 | John Stark | Note Added: 0030575 | |||
2013-04-17 15:04 | John Stark | Note Edited: 0030575 | bug_revision_view_page.php?bugnote_id=30575#r579 | ||
2013-07-22 20:46 | Dave DeMarle | Note Added: 0031310 | |||
2014-08-29 08:42 | John Stark | Note Added: 0033304 | |||
2014-09-30 08:44 | Bill Lorensen | Tag Attached: hackaton | |||
2014-09-30 08:44 | Bill Lorensen | Assigned To | => Bill Lorensen | ||
2014-09-30 08:44 | Bill Lorensen | Status | backlog => tabled | ||
2014-10-01 12:40 | Berk Geveci | Status | tabled => backlog | ||
2016-07-06 16:48 | Berk Geveci | Status | backlog => expired | ||
2016-07-06 16:48 | Berk Geveci | Note Added: 0036273 | |||
2016-08-12 09:55 | Kitware Robot | Note Added: 0037291 | |||
2016-08-12 09:55 | Kitware Robot | Status | expired => closed | ||
2016-08-12 09:55 | Kitware Robot | Resolution | open => moved |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|