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

Clang Code Model crashes depending on LOCALE

    XMLWordPrintable

Details

    • Linux/X11
    • 5719e7961e5f719f7a8faa15e59f823931c6dfca (qt-creator/qt-creator/4.8)

    Description

      After switching from Creator 4.7 to 4.8 every file I open causes clang code model to fail and restart indefinitely:

      Clang Code Model: Error: The clangbackend process has finished unexpectedly and was restarted.

      The terminal shows some more information from a qWarning:

      Error in ClangCodeModelServer::documentsClosed: Document 'some_source.cpp' does not exists!
      terminate called after throwing an instance of 'std::invalid_argument'
      what(): stod

       

      The error goes away when setting `LC_ALL="C"`, which affects the behavior of 'stod'. My default locale apparently uses "," as decimal separator.

      Attachments

        Issue Links

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

          Activity

            People

              kosjar Nikolai Kosjar
              pwuertz Peter Würtz
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes