Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-16731

Qt Creator crashes when using auto on ITK filter

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • Qt Creator 4.2.1
    • Qt Creator 4.0.0, Qt Creator 4.0.3, Qt Creator 4.1.0-rc1, Qt Creator 4.2.1
    • C/C++/Obj-C++ Support
    • None
    • Windows 7 SP 1 64 bits

    Description

      Hi,

      I am working on a quite big project using the ITK library. When handling ITK filter, for conciseness, we are often using them like that:

      typedef itk::CastImageFilter<typename itk::Image<inputPixelType, ImageDimension> , ItkFilterImageType > CastFilterType;
      typename CastFilterType::Pointer castFilter = CastFilterType::New();

      So we use a typedef for the type before using it. We have some classes with many typedef, and with clang code model, this is totally not usable. Qt Creator is very slow, lag, freeze. After some tests, it seems that removing the typedef and using auto too keep the conciseness of the code help the performance:

      auto castFilter = itk::CastImageFilter<typename itk::Image<inputPixelType, ImageDimension> , ItkFilterImageType >::New();

      But with such construction, Qt Creator is crashing a lot. Sometime it is when manipulating the variable typed with auto, sometime this is just when starting Qt Creator with the file having such auto usage open. In summary, this is too not usable.

      Attachments

        1. itkpro.tar.gz
          0.6 kB
        2. memcheck.txt
          16 kB
        For Gerrit Dashboard: QTCREATORBUG-16731
        # Subject Branch Project Status CR V

        Activity

          People

            kosjar Nikolai Kosjar
            Siron Simon Van Goethem
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes