Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • VTK VTK
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 876
    • Issues 876
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 234
    • Merge requests 234
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Terraform modules
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • VTKVTK
  • VTKVTK
  • Issues
  • #15485
Closed
Open
Issue created May 22, 2015 by Kitware Robot@kwrobotOwner

Crash in VTK 6.2 at exit

This issue was created automatically from an original Mantis Issue. Further discussion may take place here.


Static version of VTK causes crash inside msvcrt.exit() call in my program and many tests. Debugging of this problem shows following trace of code:

...
vtkObjectFactory.cxx:444 (vtkObjectFactory::UnRegisterAllFactories()) vtkObjectFactory::RegisteredFactories->Delete();
...
vtkCollection.cxx:40         (~vtkCollection())                              this->RemoveAllItems();
vtkCollection.cxx:199       (vtkCollection::RemoveAllItems())      this->Modified();
vtkObject.cxx:850              (vtkObject::Modified())                     this->MTime.Modified();
vtkTimeStamp.cxx:41       (vtkTimeStamp::Modified())                this->ModifiedTime = (unsigned long)++GlobalTimeStamp;
...
                                                                                                  ntdll.RtlEnterCriticalSection(<<pGarbageInHeap>>)

Seems that object GlobalTimeStamp destroyed before vtkObjectFactory::RegisteredFactories. VTK 6.2.0, compiled with CMake 3.2.1 and gcc 4.9.2 (MinGW-w64 32bit). OS: Windows 7 32bit.

vtkTEst2.7z

Edited Oct 23, 2018 by Ben Boeckel
Assignee
Assign to
Time tracking