VTK 6 Unhandled C++ Error Affecting ImagePlaneWidget
- Dominant language
- Python
- Stars
- 1.4k
- Forks
- 316
- Avg merge
- 7h 44m
- Merged PRs (30d)
- 5
Description
Hello,
Please bear with me as I'm new to Mayavi and am trying to debug an application someone else wrote. (I've encountered a problem I think is internal to Mayavi, but I'm not sure.) The application I'm working on was built for VTK 5 and does not work correctly with VTK 6. I changed the application code throughout to use `configure_input` instead of specifying `input` as a parameter, and that resolved all Python errors from tvtk/Mayavi, but I'm still getting multiple errors from the C++ code that are similar to this:
> ERROR: In /Users/prabhu/src/git/VTKPythonPackage/standalone-build/VTK-source/Interaction/Widgets/vtkImagePlaneWidget.cxx, line 1589
> vtkImagePlaneWidget (0x7fdd847b2e50): Invalid extent [0, -1, 0, -1, 0, -1]. Perhaps the input data is empty?
>
> ERROR: In /Users/prabhu/src/git/VTKPythonPackage/standalone-build/VTK-source/Interaction/Widgets/vtkImagePlaneWidget.cxx, line 1699
> vtkImagePlaneWidget (0x7fdd847b2e50): Invalid X extent: 2.14748e+09
>
> ERROR: In /Users/prabhu/src/git/VTKPythonPackage/standalone-build/VTK-source/Interaction/Widgets/vtkImagePlaneWidget.cxx, line 1717
> vtkImagePlaneWidget (0x7fdd847b2e50): Invalid Y extent: 2.14748e+09
>
> ERROR: In /Users/prabhu/src/git/VTKPythonPackage/standalone-build/VTK-source/Filters/Sources/vtkPlaneSource.cxx, line 104
> vtkPlaneSource (0x7fdd847b3790): Bad plane coordinate system
>
> ERROR: In /Users/prabhu/src/git/VTKPythonPackage/standalone-build/VTK-source/Common/ExecutionModel/vtkExecutive.cxx, line 784
> vtkCompositeDataPipeline (0x7fdd847b3ff0): Algorithm vtkPlaneSource(0x7fdd847b3790) returned failure for request: vtkInformation (0x7fdd847b4ac0)
> Debug: Off
> Modified Time: 1290247
> Reference Count: 1
> Registered Events: (none)
> Request: REQUEST_DATA
> ALGORITHM_AFTER_FORWARD: 1
> FROM_OUTPUT_PORT: 0
> FORWARD_DIRECTION: 0
As far as I can tell, I cannot catch these errors from my Python code to handle them in any way, since the lower-level tvtk Python code is ignoring them. That makes it very difficult for me to figure out what line of the Python code is calling the C++ code that throws this error. (The error seems to be triggered by magic traits methods that can get triggered by just accessing fields, making debugging difficult.)
1. Can you provide any help in determining a stack trace for this error (or resolving the error)? I think I may be missing source code for a low-level layer with class names like vtkImageData, vtkImagePlaneWidget.
2. Is there any guide for all changes that need to be made to migrate from VTK 5 to VTK 6? (I'd like to preserve backward compatibility with VTK 5 if possible.)
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.