View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0004707 | Slicer4 | Module Markups | public | 2019-08-20 14:58 | 2019-08-21 10:25 |
| Reporter | arankin | Assigned To | arankin | ||
| Priority | urgent | Severity | crash | Reproducibility | always |
| Status | closed | Resolution | not fixable | ||
| Platform | amd64 | OS | Windows | OS Version | 10 Creators |
| Product Version | Slicer 4.11.0 | ||||
| Target Version | Fixed in Version | ||||
| Summary | 0004707: Slicer crashes when observing calldata on vtkMRMLMarkupsNode.PointModifiedEvent | ||||
| Description | When using python observer with calldata decorator, vtkMRMLMarkupsNode.PointModifiedEvent causes a crash. | ||||
| Steps To Reproduce | Start Slicer f = getNode('F') then move the fiducial in one of the views | ||||
| Additional Information | Python 3.6.7 (default, Jul 29 2019, 23:26:11) [MSC v.1900 64 bit (AMD64)] on win32
| ||||
| Tags | No tags attached. | ||||
|
I've had this issue before, it's very puzzling. The correct decorator is actually with @vtk.calldata_type(vtk.VTK_INT) The following code works for me: f.AddObserver(slicer.vtkMRMLMarkupsNode.PointModifiedEvent, hi) |
|
|
I just thought of this last night while falling asleep! I had decorated it incorrectly. Thanks! |
|
|
Reporter error, incorrect decorator on python function. |
|
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2019-08-20 14:58 | arankin | New Issue | |
| 2019-08-20 14:58 | arankin | Status | new => assigned |
| 2019-08-20 14:58 | arankin | Assigned To | => nicole |
| 2019-08-20 15:50 | johan.andruejol | Note Added: 0016280 | |
| 2019-08-21 10:25 | arankin | Note Added: 0016282 | |
| 2019-08-21 10:25 | arankin | Assigned To | nicole => arankin |
| 2019-08-21 10:25 | arankin | Status | assigned => closed |
| 2019-08-21 10:25 | arankin | Resolution | open => not fixable |
| 2019-08-21 10:25 | arankin | Note Added: 0016283 |