Program received signal SIGSEGV, Segmentation fault. 0x00007ffff73b3ecf 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 0x00007ffff73b3ecf in QVector::operator[] (this=0x0, i=0) at ../../include/QtCore/../../src/corelib/tools/qvector.h:347 #1 0x00007ffff74fcc14 in QTextLine::naturalTextRect (this=0x7fffffffa5a0) at text/qtextlayout.cpp:1454 #2 0x00007fffe0091aae in TextEditor::Internal::TextEditorOverlay::createSelectionPath (this=0x8d0570, begin=..., end=..., clip=...) at texteditoroverlay.cpp:193 #3 0x00007fffe0093147 in TextEditor::Internal::TextEditorOverlay::paintSelection (this=0x8d0570, painter=0x7fffffffb810, selection=...) at texteditoroverlay.cpp:322 #4 0x00007fffe0093aea in TextEditor::Internal::TextEditorOverlay::paint (this=0x8d0570, painter=0x7fffffffb810, clip=...) at texteditoroverlay.cpp:403 #5 0x00007fffe0027033 in TextEditor::BaseTextEditor::paintEvent (this=0x1f96550, e=0x7fffffffc4b0) at basetexteditor.cpp:2441 #6 0x00007ffff724c726 in QWidget::event (this=0x1f96550, event=0x7fffffffc4b0) at kernel/qwidget.cpp:8346 #7 0x00007ffff774418b in QFrame::event (this=0x1f96550, e=0x7fffffffc4b0) at widgets/qframe.cpp:557 #8 0x00007ffff77f620f in QAbstractScrollArea::viewportEvent (this=0x1f96550, e=0x7fffffffc4b0) at widgets/qabstractscrollarea.cpp:1043 #9 0x00007fffe00243bc in TextEditor::BaseTextEditor::viewportEvent (this=0x1f96550, event=0x7fffffffc4b0) at basetexteditor.cpp:2057 #10 0x00007ffff77f6e8f in QAbstractScrollAreaPrivate::viewportEvent (this=0x1f9b7d0, event=0x7fffffffc4b0) at widgets/qabstractscrollarea_p.h:100 #11 0x00007ffff77f6f9a in QAbstractScrollAreaFilter::eventFilter (this=0xa1b110, o=0x1f9bab0, e=0x7fffffffc4b0) at widgets/qabstractscrollarea_p.h:116 #12 0x00007ffff6c5cb8f in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=0x415060, receiver=0x1f9bab0, event=0x7fffffffc4b0) at kernel/qcoreapplication.cpp:847 #13 0x00007ffff71dc4d1 in QApplicationPrivate::notify_helper (this=0x415060, receiver=0x1f9bab0, e=0x7fffffffc4b0) at kernel/qapplication.cpp:4447 #14 0x00007ffff71dc35b in QApplication::notify (this=0x7fffffffd820, receiver=0x1f9bab0, e=0x7fffffffc4b0) at kernel/qapplication.cpp:4416 #15 0x00007ffff6c5c8e6 in QCoreApplication::notifyInternal (this=0x7fffffffd820, receiver=0x1f9bab0, event=0x7fffffffc4b0) at kernel/qcoreapplication.cpp:732 #16 0x00007ffff71decb1 in QCoreApplication::sendSpontaneousEvent (receiver=0x1f9bab0, event=0x7fffffffc4b0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218 #17 0x00007ffff7244121 in QWidgetPrivate::drawWidget (this=0x1f9bbe0, pdev=0x709090, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0xdda6e0) at kernel/qwidget.cpp:5433 #18 0x00007ffff749cd80 in QWidgetBackingStore::sync (this=0xdda6e0) at painting/qbackingstore.cpp:1325 #19 0x00007ffff723ac73 in QWidgetPrivate::syncBackingStore (this=0x6551b0) at kernel/qwidget.cpp:1816 #20 0x00007ffff724cdc8 in QWidget::event (this=0x651890, event=0x5b0b90) at kernel/qwidget.cpp:8493 #21 0x00007ffff7767e33 in QMainWindow::event (this=0x651890, event=0x5b0b90) at widgets/qmainwindow.cpp:1478 #22 0x00007ffff71dc4fa in QApplicationPrivate::notify_helper (this=0x415060, receiver=0x651890, e=0x5b0b90) at kernel/qapplication.cpp:4451 #23 0x00007ffff71dc35b in QApplication::notify (this=0x7fffffffd820, receiver=0x651890, e=0x5b0b90) at kernel/qapplication.cpp:4416 #24 0x00007ffff6c5c8e6 in QCoreApplication::notifyInternal (this=0x7fffffffd820, receiver=0x651890, event=0x5b0b90) at kernel/qcoreapplication.cpp:732 #25 0x00007ffff71cabbd in QCoreApplication::sendEvent (receiver=0x651890, event=0x5b0b90) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215 #26 0x00007ffff6c5da7f in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x415620) at kernel/qcoreapplication.cpp:1373 #27 0x00007ffff6c5d6e3 in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1266 #28 0x00007ffff72b7345 in QCoreApplication::sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220 #29 0x00007ffff6c993dd in postEventSourceDispatch (s=0x41a480) at kernel/qeventdispatcher_glib.cpp:277 #30 0x00007ffff5499342 in g_main_context_dispatch () from /lib/libglib-2.0.so.0 #31 0x00007ffff549d2a8 in ?? () from /lib/libglib-2.0.so.0 #32 0x00007ffff549d45c in g_main_context_iteration () from /lib/libglib-2.0.so.0 #33 0x00007ffff6c9a6d3 in QEventDispatcherGlib::processEvents (this=0x416a00, flags=...) at kernel/qeventdispatcher_glib.cpp:415 #34 0x00007ffff72c4a88 in QGuiEventDispatcherGlib::processEvents (this=0x416a00, flags=...) at kernel/qguieventdispatcher_glib.cpp:204 #35 0x00007ffff6c59908 in QEventLoop::processEvents (this=0x7fffffffd720, flags=...) at kernel/qeventloop.cpp:149 #36 0x00007ffff6c59a5e in QEventLoop::exec (this=0x7fffffffd720, flags=...) at kernel/qeventloop.cpp:201 #37 0x00007ffff6c5cf70 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009 #38 0x00007ffff71d97bc in QApplication::exec () at kernel/qapplication.cpp:3725 #39 0x000000000040b75b in main (argc=2, argv=0x7fffffffdff8) at main.cpp:326 (gdb)