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

clangbackend process has finished unexpectedly and was restarted on parsing type_traits.h

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • Qt Creator 4.5.0
    • None

    Description

      My environment:

      • Qt Creator 4.5.0
      • Qt 5.10.0 msvc2017_64
      • Clang Code Model Plugin
      • Embedded Clang Static Analyzer 3.9.1
      • Visual Studio 2017 Community Edition

      When I create new project or open any existen C++ project Clang Code Model cannot parse standard `C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.12.25827\include\type_traits:898` :

      ```

      2018-01-13T19:40:01 Clang Code Model: Error: The clangbackend process has finished unexpectedly and was restarted.
      2018-01-13T19:40:03 Clang Code Model: Error: The clangbackend process has finished unexpectedly and was restarted.

      ```

      and crashed with:

      ```

      [10352] qtc.clangcodemodel.ipc: >>> UnregisterTranslationUnitsForEditorMessage(FileContainer(C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.12.25827/include/type_traits, F:/Work/tolik.git/qt/qmlscroll/qmlscroll.pro qmlscroll, Utf8StringVector(), 0), )
      [10352] clangbackend.stderr: Precompiling preamble: 0.0625 (100.0%) 0.0156 (100.0%) 0.0781 (100.0%) 0.0781 (100.0%)
      [10352] clangbackend.stderr: ignoring nonexistent directory "\include"
      [10352] clangbackend.stderr: #include "..." search starts here:
      [10352] clangbackend.stderr: #include <...> search starts here:
      [10352] clangbackend.stderr: F:\Qt\Tools\QtCreator\share\qtcreator\cplusplus\wrappedQtHeaders
      [10352] clangbackend.stderr: F:\Qt\Tools\QtCreator\share\qtcreator\cplusplus\wrappedQtHeaders\QtCore
      [10352] clangbackend.stderr: F:\Work\tolik.git\qt\qmlscroll
      [10352] clangbackend.stderr: F:\Qt\5.10.0\msvc2017_64\include
      [10352] clangbackend.stderr: F:\Qt\5.10.0\msvc2017_64\include\QtQuick
      [10352] clangbackend.stderr: F:\Qt\5.10.0\msvc2017_64\include\QtGui
      [10352] clangbackend.stderr: F:\Qt\5.10.0\msvc2017_64\include\QtANGLE
      [10352] clangbackend.stderr: F:\Qt\5.10.0\msvc2017_64\include\QtQml
      [10352] clangbackend.stderr: F:\Qt\5.10.0\msvc2017_64\include\QtNetwork
      [10352] clangbackend.stderr: F:\Qt\5.10.0\msvc2017_64\include\QtCore
      [10352] clangbackend.stderr: F:\Work\tolik.git\qt\build-qmlscroll-Desktop_Qt_5_10_0_MSVC2017_64bit-Debug\debug
      [10352] clangbackend.stderr: F:\Work\tolik.git\qt\build-qmlscroll-Desktop_Qt_5_10_0_MSVC2017_64bit-Debug
      [10352] clangbackend.stderr: F:\Qt\5.10.0\msvc2017_64\mkspecs\win32-msvc
      [10352] clangbackend.stderr: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.12.25827\ATLMFC\include
      [10352] clangbackend.stderr: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.12.25827\include
      [10352] clangbackend.stderr: C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um
      [10352] clangbackend.stderr: C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\ucrt
      [10352] clangbackend.stderr: C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\shared
      [10352] clangbackend.stderr: C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um
      [10352] clangbackend.stderr: C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\winrt
      [10352] clangbackend.stderr: C:\Temp\QtCreator-LBXYmy\clang-uiheader-WofjIS
      [10352] clangbackend.stderr: End of search list.
      [10352] clangbackend.stderr: Wrote crash dump file "C:\Temp\QtCreator-LBXYmy\clang-rfAcRw\clangbackend.exe-f97d74.dmp"
      [10352] clangbackend.stderr: 0x66498E2D (0x00000001 0x05B53924 0x04ACB3D8 0x05E6C658), clang_getTypeSpelling() + 0x5157D bytes(s)
      [10352] clangbackend.stderr: 0x66512A19 (0x049F2B00 0x05A5DCE8 0x00000000 0x049EE4A8), clang_getTypeSpelling() + 0xCB169 bytes(s)
      [10352] clangbackend.stderr: 0x674DA9E7 (0x00000000 0x00000000 0x05A5DCE8 0x00000000), clang_indexSourceFile() + 0xC83A5A bytes(s)
      [10352] clangbackend.stderr: 0x776F13EE (0x05A5DCE8 0x00000000 0x00000000 0x049EEF80), RtlAllocateHeap() + 0x3E bytes(s)
      [10352] clangbackend.stderr: 0x6648930A (0x00000034 0x049F6D78 0x049D8F08 0x05C4C400), clang_getTypeSpelling() + 0x41A5A bytes(s)

      ```

      Let me know if you need crash dump `C:\Temp\QtCreator-LBXYmy\clang-rfAcRw\clangbackend.exe-f97d74.dmp` or any other details. 

      Thanks in advance!

      BR,

      Anatoly Shirokov

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            bubke Marco Bubke
            anatolys Anatoly Shirokov
            Votes:
            2 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes