View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0009783 | VTK | (No Category) | public | 2009-10-27 12:34 | 2016-08-12 09:55 | ||||
Reporter | itkvtk123 | ||||||||
Assigned To | Kitware Robot | ||||||||
Priority | normal | Severity | crash | Reproducibility | always | ||||
Status | closed | Resolution | moved | ||||||
Platform | OS | OS Version | |||||||
Product Version | |||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0009783: Crash in vtkline.cxx - access uninitialized data | ||||||||
Description | Crash in vtkline.cxx - access uninitialized data (line 113 "Determine line vectors") | ||||||||
Steps To Reproduce | How to reproduce the bug (first way): 1. Zoom out using the mousewheel to see the entire image. 2. Left click inside image area to place first contour point 3. Right click outside image area to cancel/finish contour operation 4. Press Mousewheel and drag image -> crash How to reproduce the bug (second way): 1. Zoom out using the mousewheel to see the entire image. 2. Left click inside image area to place first contour point 3. Right click outside image area to cancel/finish contour operation 4. Hold Ctrl, Left Click Mouse and drag to rotate image 5. Left click inside image area to place second contour point -> crash | ||||||||
Additional Information | Minimal Code: #include "vtkImageViewer2.h" #include "vtkRenderWindowInteractor.h" #include "vtkContourWidget.h" #include "vtkPNGReader.h" #include "vtkOrientedGlyphContourRepresentation.h" #include "vtkImageActorPointPlacer.h" int main(int argc, char*argv[]) { //Setting Up Viewer vtkImageViewer2* viewer = vtkImageViewer2::New(); vtkRenderWindowInteractor *iren = vtkRenderWindowInteractor::New(); viewer->SetupInteractor(iren); //Read Image vtkPNGReader* reader = vtkPNGReader::New(); reader->SetFileName("BrainProtonDensitySlice.png"); viewer->SetInput(reader->GetOutput()); //Initialize Widget vtkContourWidget* widget = vtkContourWidget::New(); widget->SetInteractor(iren); vtkOrientedGlyphContourRepresentation *rep = vtkOrientedGlyphContourRepresentation::New(); widget->SetRepresentation(rep); //Initialize Point Placer vtkImageActorPointPlacer* pointPlacer = vtkImageActorPointPlacer::New(); pointPlacer->SetImageActor(viewer->GetImageActor()); rep->SetPointPlacer(pointPlacer); //Start Interaction viewer->Render(); widget->On(); iren->Start(); return 0; } | ||||||||
Tags | No tags attached. | ||||||||
Project | |||||||||
Type | |||||||||
Attached Files | |||||||||
Relationships | |
Relationships |
Notes | |
(0020308) David Doria (reporter) 2010-04-20 17:28 |
When does it crash? It seems to work fine for me. If you add viewer->Delete(); iren->Delete(); reader->Delete(); widget->Delete(); rep->Delete(); pointPlacer->Delete(); there are no memory leaks reported. |
(0037115) Kitware Robot (administrator) 2016-08-12 09:55 |
Resolving issue as `moved`. This issue tracker is no longer used. Further discussion of this issue may take place in the current VTK Issues page linked in the banner at the top of this page. |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
2009-10-27 12:34 | itkvtk123 | New Issue | |
2010-04-20 17:28 | David Doria | Note Added: 0020308 | |
2011-06-16 13:11 | Zack Galbreath | Category | => (No Category) |
2016-08-12 09:55 | Kitware Robot | Note Added: 0037115 | |
2016-08-12 09:55 | Kitware Robot | Status | expired => closed |
2016-08-12 09:55 | Kitware Robot | Resolution | open => moved |
2016-08-12 09:55 | Kitware Robot | Assigned To | => Kitware Robot |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |