Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
VTK
VTK
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 581
    • Issues 581
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 163
    • Merge Requests 163
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • VTK
  • VTKVTK
  • Issues
  • #17083

Closed
Open
Opened Jul 10, 2017 by Oleksandr@OMalyushytsky

reference counting bug in vtkTransform or vtkAbstractTransform

Code crashing in

void vtkTransformConcatenation::DeepCopy(vtkTransformConcatenation *concat)
{
.........
    if (pair->ForwardTransform)
    {
      pair->ForwardTransform->Delete(); // crash here
      pair->ForwardTransform = NULL;
    }

Replacing calls to (vtkTransform) DeepCopy with setting matrix fixes the issue. Reproducible on both vtk 5 and vtk 7 (upgraded to it in order to pick up the fix to reference bug which added pair->ForwardTransform = NULL; after Delete). Upgrading did fix the problem in certain cases, but seems not all. Unfortunately even though I can reproduce it, I have not found the way to create a short test since it involves multiple concatenations of transforms and there is no an easy way to save transform state.

Edited Jul 13, 2017 by Oleksandr
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: vtk/vtk#17083