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

Crash while editing

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • Qt Creator 6.0.2
    • Qt Creator 6.0.1
    • Editors
    • None
    • b01be64963 (qt-creator/qt-creator/6.0) b01be64963 (qt-creator/qt-creator/master) b01be64963 (qt-creator/qt-creator/qmlprojectstorage) b01be64963 (qt-creator/qt-creator/qds-3.0)

    Description

      While editing Qt Creator crashed with the following backtrace

      Thread 1 "qtcreator" received signal SIGSEGV, Segmentation fault.
      TextEditor::FunctionHintProposalWidget::abort (this=0x55555a1ae150) at codeassist/functionhintproposalwidget.cpp:230
      230         if (proposalIsVisible())
      (gdb) bt
      #0  TextEditor::FunctionHintProposalWidget::abort (this=0x55555a1ae150) at codeassist/functionhintproposalwidget.cpp:230
      #1  0x00007ffff64ddd58 in QtPrivate::QSlotObjectBase::call (a=0x7fffffffcd40, r=0x55555a1ae150, this=<optimized out>)
          at qtbase/include/QtCore/../../../../qtbase/src/corelib/kernel/qobjectdefs_impl.h:399
      #2  doActivate<false> (sender=0x55555a1fa860, signal_index=0, argv=argv@entry=0x7fffffffcd40) at ../qtbase/src/corelib/kernel/qobject.cpp:3930
      #3  0x00007ffff64d6218 in QMetaObject::activate (sender=sender@entry=0x55555a1fa860, m=m@entry=0x7ffff6927b00 <QObject::staticMetaObject>,
          local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7fffffffcd40) at ../qtbase/src/corelib/kernel/qobject.cpp:3990
      #4  0x00007ffff64d62d3 in QObject::destroyed (this=this@entry=0x55555a1fa860, _t1=<optimized out>, _t1@entry=0x55555a1fa860) at qtbase/src/corelib/kernel/moc_qobject.cpp:218
      #5  0x00007ffff64dbf46 in QObject::~QObject (this=<optimized out>, __in_chrg=<optimized out>) at ../qtbase/src/corelib/kernel/qobject.cpp:1009
      #6  0x00007ffff760d69c in QWidget::~QWidget (this=0x55555a1fa860, __in_chrg=<optimized out>) at ../qtbase/src/widgets/kernel/qwidget.cpp:1403
      #7  0x00007ffff7e699e5 in Utils::FakeToolTip::~FakeToolTip (this=0x55555a1fa860, __in_chrg=<optimized out>) at .moc/release-shared/../../faketooltip.h:34
      #8  Utils::FakeToolTip::~FakeToolTip (this=0x55555a1fa860, __in_chrg=<optimized out>) at .moc/release-shared/../../faketooltip.h:34
      #9  0x00007ffff64ce393 in QObject::event (this=0x55555a1fa860, e=0x55555a1e9a20) at ../qtbase/src/corelib/kernel/qobject.cpp:1354
      #10 0x00007ffff75b80e6 in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x55555a1fa860, e=0x55555a1e9a20)
          at ../qtbase/src/widgets/kernel/qapplication.cpp:3336
      #11 0x00007ffff647b19a in QCoreApplication::notifyInternal2 (receiver=0x55555a1fa860, event=0x55555a1e9a20) at ../qtbase/src/corelib/kernel/qcoreapplication.cpp:1067
      #12 0x00007ffff647e55c in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x5555555b15b0) at ../qtbase/src/corelib/kernel/qcoreapplication.cpp:1847
      #13 0x00007ffff6732e47 in postEventSourceDispatch (s=0x55555561b410) at ../qtbase/src/corelib/kernel/qeventdispatcher_glib.cpp:279
      #14 0x00007ffff55748eb in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
      #15 0x00007ffff55c7d28 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
      #16 0x00007ffff5572023 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
      #17 0x00007ffff673275e in QEventDispatcherGlib::processEvents (this=0x555555618770, flags=...) at ../qtbase/src/corelib/kernel/qeventdispatcher_glib.cpp:429
      #18 0x00007ffff6487fab in QEventLoop::exec (this=this@entry=0x7fffffffd250, flags=..., flags@entry=...)
          at qtbase/include/QtCore/../../../../qtbase/src/corelib/global/qflags.h:70
      #19 0x00007ffff6483946 in QCoreApplication::exec () at qtbase/include/QtCore/../../../../qtbase/src/corelib/global/qflags.h:110
      #20 0x00007ffff6d54f50 in QGuiApplication::exec () at ../qtbase/src/gui/kernel/qguiapplication.cpp:1862
      #21 0x00007ffff75b8059 in QApplication::exec () at ../qtbase/src/widgets/kernel/qapplication.cpp:2617
      #22 0x0000555555561a93 in main (argc=<optimized out>, argv=<optimized out>) at main.cpp:771
      

      Looks like QObject::destroyed was connected to something that still assumed the object was fully defined.

      Attachments

        Activity

          People

            davschul David Schulz
            allan.jensen Allan Sandfeld Jensen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: