While porting to MITK 2018.04, our application crashes when I create an Ellipsoid. I always have the "Access Violation" error. I also tested with Cube, Cone and Cylinder and they are all ok. I investigated to find the problem and I know how to fix it but I don't know why it works. In the constructor of those 4 objects, we can find code that looks like that:
vtkSmartPointer<vtkSphereSource> sphere = vtkSmartPointer<vtkSphereSource>::New(); ... config sphere ... SetVtkPolyData(sphere->GetOutput()); sphere->Delete(); } // end of scope -> CRASH
The last line (Delete) is useless because the object will be deleted anyway at the end of the scope. My app doesn't crash when I remove it. I'm surprised though because I thought that we could safely call Delete() without a crash at the end of scope. Since it does work for the other objects, I don't understand what's going on.
I didn't test on other platform but I know it crashes on Windows 10, VS 2017 in Debug and Release (silent, but my test doesn't show "OK").