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

QtC crashes in BaseTextEditorWidget::viewportEvent

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: Qt Creator 2.4.1
    • Fix Version/s: Qt Creator 2.5.1
    • Component/s: Editors
    • Labels:
      None
    • Environment:
      Ubuntu Precise x86/32

      Description

      Something broke QtC today. Before lunch it worked
      like before, but when i got back it started crashing.
      Luckily i was able to reproduce it and caught a stack trace.

      I have no clue what might be causing this.

      When started, open recent session. Then start selecting some text with mouse, QtC crashes.

      (gdb) bt full
      #0 0xb785ccb8 in QTextEngine::positionInLigature(QScriptItem const*, int, QFixed, QFixed, int, bool) ()
      from /home/vranki/QtSDK/QtCreator/bin/../lib/qtcreator/libQtGui.so.4
      No symbol table info available.
      #1 0xb78638ea in QTextLine::xToCursor(double, QTextLine::CursorPosition) const ()
      from /home/vranki/QtSDK/QtCreator/bin/../lib/qtcreator/libQtGui.so.4
      No symbol table info available.
      #2 0xb7afff6e in QPlainTextEditControl::hitTest(QPointF const&, Qt::HitTestAccuracy) const ()
      from /home/vranki/QtSDK/QtCreator/bin/../lib/qtcreator/libQtGui.so.4
      No symbol table info available.
      #3 0xb784c556 in QTextControlPrivate::mouseMoveEvent(QEvent*, Qt::MouseButton, QPointF const&, QFlags<Qt::KeyboardModifier>, QFlags<Qt::MouseButton>, QPoint const&) () from /home/vranki/QtSDK/QtCreator/bin/../lib/qtcreator/libQtGui.so.4
      No symbol table info available.
      #4 0xb7851f10 in QTextControl::processEvent(QEvent*, QMatrix const&, QWidget*) ()
      from /home/vranki/QtSDK/QtCreator/bin/../lib/qtcreator/libQtGui.so.4
      No symbol table info available.
      #5 0xb7843f8d in QTextControl::processEvent(QEvent*, QPointF const&, QWidget*) ()
      from /home/vranki/QtSDK/QtCreator/bin/../lib/qtcreator/libQtGui.so.4
      No symbol table info available.
      #6 0xb7b061c9 in QPlainTextEdit::mouseMoveEvent(QMouseEvent*) ()
      from /home/vranki/QtSDK/QtCreator/bin/../lib/qtcreator/libQtGui.so.4
      No symbol table info available.
      #7 0xb21d17ff in TextEditor::BaseTextEditorWidget::mouseMoveEvent(QMouseEvent*) ()
      from /home/vranki/QtSDK/QtCreator/lib/qtcreator/plugins/Nokia/libTextEditor.so
      No symbol table info available.
      #8 0xb75fd505 in QWidget::event(QEvent*) () from /home/vranki/QtSDK/QtCreator/bin/../lib/qtcreator/libQtGui.so.4
      No symbol table info available.
      #9 0xb7a498c3 in QFrame::event(QEvent*) () from /home/vranki/QtSDK/QtCreator/bin/../lib/qtcreator/libQtGui.so.4
      No symbol table info available.
      #10 0xb7adf192 in QAbstractScrollArea::viewportEvent(QEvent*) ()
      from /home/vranki/QtSDK/QtCreator/bin/../lib/qtcreator/libQtGui.so.4
      No symbol table info available.
      #11 0xb21d07ba in TextEditor::BaseTextEditorWidget::viewportEvent(QEvent*) ()
      from /home/vranki/QtSDK/QtCreator/lib/qtcreator/plugins/Nokia/libTextEditor.so
      No symbol table info available.
      #12 0xb7ae15c5 in QAbstractScrollAreaFilter::eventFilter(QObject*, QEvent*) ()
      from /home/vranki/QtSDK/QtCreator/bin/../lib/qtcreator/libQtGui.so.4
      No symbol table info available.
      #13 0xb717bba1 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) ()
      from /home/vranki/QtSDK/QtCreator/bin/../lib/qtcreator/libQtCore.so.4
      No symbol table info available.
      #14 0xb759c263 in QApplicationPrivate::notify_helper(QObject*, QEvent*) ()
      from /home/vranki/QtSDK/QtCreator/bin/../lib/qtcreator/libQtGui.so.4
      No symbol table info available.
      #15 0xb75a4aef in QApplication::notify(QObject*, QEvent*) ()
      from /home/vranki/QtSDK/QtCreator/bin/../lib/qtcreator/libQtGui.so.4
      No symbol table info available.
      #16 0xb717b90b in QCoreApplication::notifyInternal(QObject*, QEvent*) ()
      from /home/vranki/QtSDK/QtCreator/bin/../lib/qtcreator/libQtCore.so.4
      No symbol table info available.
      #17 0xb759f132 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /home/vranki/QtSDK/QtCreator/bin/../lib/qtcreator/libQtGui.so.4
      No symbol table info available.
      #18 0xb762b5e5 in QETWidget::translateMouseEvent(_XEvent const*) ()
      from /home/vranki/QtSDK/QtCreator/bin/../lib/qtcreator/libQtGui.so.4
      No symbol table info available.
      #19 0xb762ac56 in QApplication::x11ProcessEvent(_XEvent*) ()
      from /home/vranki/QtSDK/QtCreator/bin/../lib/qtcreator/libQtGui.so.4
      No symbol table info available.
      #20 0xb7657ea4 in x11EventSourceDispatch(_GSource*, int (void*), void*) ()
      from /home/vranki/QtSDK/QtCreator/bin/../lib/qtcreator/libQtGui.so.4
      No symbol table info available.
      #21 0xb6c1fd86 in g_main_context_dispatch () from /lib/i386-linux-gnu/libglib-2.0.so.0
      No symbol table info available.
      #22 0xb6c20125 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
      No symbol table info available.
      #23 0xb6c20201 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
      No symbol table info available.
      #24 0xb71aa8f1 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
      from /home/vranki/QtSDK/QtCreator/bin/../lib/qtcreator/libQtCore.so.4
      No symbol table info available.
      #25 0xb76579f5 in QGuiEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
      from /home/vranki/QtSDK/QtCreator/bin/../lib/qtcreator/libQtGui.so.4
      No symbol table info available.
      #26 0xb717aaed in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
      from /home/vranki/QtSDK/QtCreator/bin/../lib/qtcreator/libQtCore.so.4
      No symbol table info available.
      #27 0xb717ad7a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
      from /home/vranki/QtSDK/QtCreator/bin/../lib/qtcreator/libQtCore.so.4
      No symbol table info available.
      #28 0xb717c821 in QCoreApplication::exec() () from /home/vranki/QtSDK/QtCreator/bin/../lib/qtcreator/libQtCore.so.4
      No symbol table info available.
      #29 0xb759bb77 in QApplication::exec() () from /home/vranki/QtSDK/QtCreator/bin/../lib/qtcreator/libQtGui.so.4
      No symbol table info available.
      #30 0x08051be0 in ?? ()
      No symbol table info available.
      #31 0xb6cfd4d3 in __libc_start_main (main=0x804f760, argc=1, ubp_av=0xbffff2f4, init=0x8053bc0, fini=0x8053bb0,
      rtld_fini=0xb7fed270 <_dl_fini>, stack_end=0xbffff2ec) at libc-start.c:226
      result = <optimized out>
      unwind_buf = {cancel_jmp_buf = {{jmp_buf = {-1226289164, 0, 0, 0, -1168321288, -636407574},
      mask_was_saved = 0}}, priv = {pad =

      {0x0, 0x0, 0x1, 0x804cf30}

      , data =

      {prev = 0x0, cleanup = 0x0, canceltype = 1}

      }}
      not_first_call = <optimized out>
      #32 0x0804cf51 in ?? ()
      No symbol table info available.

        Attachments

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

          Activity

            People

            • Assignee:
              davschul David Schulz
              Reporter:
              vranki Ville Ranki
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes