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

Crash while typing C++ code

XMLWordPrintable

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

      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.

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

            kosjar Nikolai Kosjar
            lastique Andrey Semashev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes