View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0013212 | VTK | (No Category) | public | 2012-05-31 03:20 | 2012-06-12 18:02 | ||||
Reporter | amaclean | ||||||||
Assigned To | |||||||||
Priority | urgent | Severity | minor | Reproducibility | have not tried | ||||
Status | closed | Resolution | fixed | ||||||
Platform | OS | OS Version | |||||||
Product Version | |||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0013212: vtkMaskPoints: bad initialisation of MaximumNumberOfPoints | ||||||||
Description | I am using vtk 6.0 MaximumNumberOfPoints is being initialised to VTK_LARGE_ID, this should be initialised to VTK_LARGE_INT instead. See line 36 of vtkMaskPoints.cxx. Also VTK_LARGE_ID should be changed to VTK_LARGE_INT in the clamp macros at lines 49, 54 in vtkMaskPoints.h Rationale: This code will crash in Python: mask.SetInputConnection(parametricFunctionSource.GetOutputPort()) print vtk.VTK_LARGE_ID, vtk.VTK_LARGE_INTEGER print mask.GetMaximumNumberOfPoints() #mask.SetMaximumNumberOfPoints(100) mask.RandomModeOn() with the error: ERROR: In c:\users\amaclean\code\kitware\src\vtk\common\core\vtkDataArrayTemplate.txx, line 144 vtkFloatArray (000000000278C110): Unable to allocate 9223372036854775805 elements of size 4 bytes. Obviously uncommenting: #mask.SetMaximumNumberOfPoints(100) will fix this. This issue probably only arises in 64-bit systems. | ||||||||
Tags | No tags attached. | ||||||||
Project | TBD | ||||||||
Type | crash | ||||||||
Attached Files | |||||||||
Relationships | |
Relationships |
Notes | |
(0028691) amaclean (reporter) 2012-06-12 18:01 |
A fix has been merged intothe vtk master, see: http://vtk.org/gitweb?p=VTK.git;a=commit;h=68858bd9 [^] |
(0028692) amaclean (reporter) 2012-06-12 18:02 |
See: http://vtk.org/gitweb?p=VTK.git;a=commit;h=68858bd9 [^] |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
2012-05-31 03:20 | amaclean | New Issue | |
2012-06-12 18:01 | amaclean | Note Added: 0028691 | |
2012-06-12 18:02 | amaclean | Note Added: 0028692 | |
2012-06-12 18:02 | amaclean | Status | backlog => closed |
2012-06-12 18:02 | amaclean | Resolution | open => fixed |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |