Program terminated with signal 11, Segmentation fault. #0 0x00007fb951a0102f in QVector::operator[] (this=0x0, i=0) at ../../include/QtCore/../../src/corelib/tools/qvector.h:347 347 { Q_ASSERT_X(i >= 0 && i < d->size, "QVector::operator[]", "index out of range"); (gdb) bt #0 0x00007fb951a0102f in QVector::operator[] (this=0x0, i=0) at ../../include/QtCore/../../src/corelib/tools/qvector.h:347 #1 0x00007fb951b49c08 in QTextLine::naturalTextRect (this=0x7fff2fbedaa0) at text/qtextlayout.cpp:1454 #2 0x00007fb93b85467e in TextEditor::Internal::TextEditorOverlay::createSelectionPath (this=0x1b93460, begin=..., end=..., clip=...) at texteditoroverlay.cpp:193 #3 0x00007fb93b855d17 in TextEditor::Internal::TextEditorOverlay::paintSelection (this=0x1b93460, painter=0x7fff2fbeed10, selection=...) at texteditoroverlay.cpp:322 #4 0x00007fb93b8566ba in TextEditor::Internal::TextEditorOverlay::paint (this=0x1b93460, painter=0x7fff2fbeed10, clip=...) at texteditoroverlay.cpp:403 #5 0x00007fb93b7e9e1f in TextEditor::BaseTextEditor::paintEvent (this=0x18cd8d0, e=0x7fff2fbef9b0) at basetexteditor.cpp:2440 #6 0x00007fb951899416 in QWidget::event (this=0x18cd8d0, event=0x7fff2fbef9b0) at kernel/qwidget.cpp:8346 #7 0x00007fb951d910b7 in QFrame::event (this=0x18cd8d0, e=0x7fff2fbef9b0) at widgets/qframe.cpp:557 #8 0x00007fb951e430cf in QAbstractScrollArea::viewportEvent (this=0x18cd8d0, e=0x7fff2fbef9b0) at widgets/qabstractscrollarea.cpp:1043 #9 0x00007fb93b7e718e in TextEditor::BaseTextEditor::viewportEvent (this=0x18cd8d0, event=0x7fff2fbef9b0) at basetexteditor.cpp:2056 #10 0x00007fb951e43d4f in QAbstractScrollAreaPrivate::viewportEvent (this=0x1cfd590, event=0x7fff2fbef9b0) at widgets/qabstractscrollarea_p.h:100 #11 0x00007fb951e43e5a in QAbstractScrollAreaFilter::eventFilter (this=0x1844c00, o=0x18683f0, e=0x7fff2fbef9b0) at widgets/qabstractscrollarea_p.h:116 #12 0x00007fb950f04ddf in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=0x12e0060, receiver=0x18683f0, event=0x7fff2fbef9b0) at kernel/qcoreapplication.cpp:847 #13 0x00007fb9518291f3 in QApplicationPrivate::notify_helper (this=0x12e0060, receiver=0x18683f0, e=0x7fff2fbef9b0) at kernel/qapplication.cpp:4430 #14 0x00007fb95182907d in QApplication::notify (this=0x7fff2fbf0d20, receiver=0x18683f0, e=0x7fff2fbef9b0) at kernel/qapplication.cpp:4399 #15 0x00007fb950f04b36 in QCoreApplication::notifyInternal (this=0x7fff2fbf0d20, receiver=0x18683f0, event=0x7fff2fbef9b0) at kernel/qcoreapplication.cpp:732 #16 0x00007fb95182b9a3 in QCoreApplication::sendSpontaneousEvent (receiver=0x18683f0, event=0x7fff2fbef9b0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218 #17 0x00007fb951890e11 in QWidgetPrivate::drawWidget (this=0x1cf4450, pdev=0x1c051f8, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x1c06fa0) at kernel/qwidget.cpp:5433 #18 0x00007fb951ae9cd8 in QWidgetBackingStore::sync (this=0x1c06fa0) at painting/qbackingstore.cpp:1325 #19 0x00007fb951887963 in QWidgetPrivate::syncBackingStore (this=0x14fd770) at kernel/qwidget.cpp:1816 #20 0x00007fb951899ab8 in QWidget::event (this=0x151e940, event=0x16ddf50) at kernel/qwidget.cpp:8493 #21 0x00007fb951db4cf3 in QMainWindow::event (this=0x151e940, event=0x16ddf50) at widgets/qmainwindow.cpp:1478 #22 0x00007fb95182921c in QApplicationPrivate::notify_helper (this=0x12e0060, receiver=0x151e940, e=0x16ddf50) at kernel/qapplication.cpp:4434 #23 0x00007fb95182907d in QApplication::notify (this=0x7fff2fbf0d20, receiver=0x151e940, e=0x16ddf50) at kernel/qapplication.cpp:4399 #24 0x00007fb950f04b36 in QCoreApplication::notifyInternal (this=0x7fff2fbf0d20, receiver=0x151e940, event=0x16ddf50) at kernel/qcoreapplication.cpp:732 #25 0x00007fb9518179cd in QCoreApplication::sendEvent (receiver=0x151e940, event=0x16ddf50) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215 #26 0x00007fb950f05ccf in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x12e0200) at kernel/qcoreapplication.cpp:1373 #27 0x00007fb950f05933 in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1266 #28 0x00007fb951904029 in QCoreApplication::sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220 #29 0x00007fb950f4162d in postEventSourceDispatch (s=0x12e5040) at kernel/qeventdispatcher_glib.cpp:277 #30 0x00007fb94f7477e2 in g_main_context_dispatch () from /lib/libglib-2.0.so.0 #31 0x00007fb94f74b748 in ?? () from /lib/libglib-2.0.so.0 #32 0x00007fb94f74b8fc in g_main_context_iteration () from /lib/libglib-2.0.so.0 #33 0x00007fb950f42923 in QEventDispatcherGlib::processEvents (this=0x12e15e0, flags=...) at kernel/qeventdispatcher_glib.cpp:415 #34 0x00007fb95191176c in QGuiEventDispatcherGlib::processEvents (this=0x12e15e0, flags=...) at kernel/qguieventdispatcher_glib.cpp:204 #35 0x00007fb950f01b58 in QEventLoop::processEvents (this=0x7fff2fbf0c20, flags=...) at kernel/qeventloop.cpp:149 #36 0x00007fb950f01cae in QEventLoop::exec (this=0x7fff2fbf0c20, flags=...) at kernel/qeventloop.cpp:201 #37 0x00007fb950f051c0 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009 #38 0x00007fb9518264de in QApplication::exec () at kernel/qapplication.cpp:3708 #39 0x000000000040b75b in main (argc=2, argv=0x7fff2fbf14f8) at main.cpp:326 (gdb) up #1 0x00007fb951b49c08 in QTextLine::naturalTextRect (this=0x7fff2fbedaa0) at text/qtextlayout.cpp:1454 1454 const QScriptLine& sl = eng->lines[i]; (gdb) up #2 0x00007fb93b85467e in TextEditor::Internal::TextEditorOverlay::createSelectionPath (this=0x1b93460, begin=..., end=..., clip=...) at texteditoroverlay.cpp:193 193 QRectF lineRect = line.naturalTextRect();