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

Crash while typing C++ code

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • Qt Creator 4.8.0-beta1
    • None
    • Kubuntu 18.10
    • Linux/X11

    Description

      QtCreator crashes at seemingly random moments while I'm typing C++ code. I've attached a stack backtrace of one such crash. The crash happened when I was typing code like this:

      void  my_class::foo()
      {
          std::unique_lock lock(m_mutex);
      
          while (!m_stop_thread)
          {}
      }
      

      The crash happened when the cursor was between the curly braces after "while" and I pressed Enter. In this particular case the crash happened twice as I was typing this piece of code, which allowed me to capture the backtrace.

      In other instances I was typing different code, but I can't remember exactly what it looked like, and it didn't reproduce reliably. I think, the crash is more likely to happen when I'm typing fast (i.e. it might be related to how fast QtCreator updates its internal code model), but I might be wrong about this. I couldn't create a small reproducing code sample.

      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
              lastique Andrey Semashev
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes