Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • VTK VTK
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 777
    • Issues 777
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 212
    • Merge requests 212
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • VTK
  • VTKVTK
  • Issues
  • #17083
Closed
Open
Created 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
Time tracking