https://bugs.kde.org/show_bug.cgi?id=472783
Bug ID: 472783 Summary: Kate crashes when quickly scrolling while comparing files Classification: Applications Product: kate Version: 22.12.3 Platform: Debian testing OS: Linux Status: REPORTED Severity: crash Priority: NOR Component: general Assignee: kwrite-bugs-n...@kde.org Reporter: blacklotus+kdeb...@powernein.com Target Milestone: --- Created attachment 160614 --> https://bugs.kde.org/attachment.cgi?id=160614&action=edit first file to compare SUMMARY *** NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols. See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports *** Thread 1 "kate" received signal SIGSEGV, Segmentation fault. 0x00007ffff6e44f44 in QVector<QScriptLine>::at (i=0, this=0x0) at ../../include/QtCore/../../src/corelib/tools/qvector.h:450 Download failed: Invalid argument. Continuing without source file ./src/gui/../../include/QtCore/../../src/corelib/tools/qvector.h. 450 ../../include/QtCore/../../src/corelib/tools/qvector.h: No such file or directory. (gdb) bt #0 0x00007ffff6e44f44 in QVector<QScriptLine>::at (i=0, this=0x0) at ../../include/QtCore/../../src/corelib/tools/qvector.h:450 #1 QTextLine::naturalTextRect (this=this@entry=0x7fffffffcba0) at text/qtextlayout.cpp:1443 #2 0x00007ffff7f1baa4 in DiffEditor::paintEvent (this=<optimized out>, e=<optimized out>) at ./apps/lib/diff/diffeditor.cpp:324 #3 0x00007ffff75a4dc8 in QWidget::event (this=this@entry=0x555555debe20, event=event@entry=0x7fffffffce30) at kernel/qwidget.cpp:9045 #4 0x00007ffff76505fe in QFrame::event (this=0x555555debe20, e=0x7fffffffce30) at widgets/qframe.cpp:550 #5 0x00007ffff66b21db in QCoreApplicationPrivate::sendThroughObjectEventFilters (receiver=receiver@entry=0x555556d646b0, event=event@entry=0x7fffffffce30) at kernel/qcoreapplication.cpp:1190 #6 0x00007ffff7562f5e in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x555556d646b0, e=0x7fffffffce30) at kernel/qapplication.cpp:3634 #7 0x00007ffff66b2458 in QCoreApplication::notifyInternal2 (receiver=0x555556d646b0, event=0x7fffffffce30) at kernel/qcoreapplication.cpp:1064 #8 0x00007ffff66b262e in QCoreApplication::sendSpontaneousEvent (receiver=<optimized out>, event=<optimized out>) at kernel/qcoreapplication.cpp:1474 #9 0x00007ffff759d085 in QWidgetPrivate::sendPaintEvent (this=this@entry=0x555556caa860, toBePainted=...) at kernel/qwidget.cpp:5479 #10 0x00007ffff759d999 in QWidgetPrivate::drawWidget (this=this@entry=0x555556caa860, pdev=0x555555f02a90, rgn=..., offset=..., flags=flags@entry=..., sharedPainter=sharedPainter@entry=0x0, repaintManager=<optimized out>) at kernel/qwidget.cpp:5429 #11 0x00007ffff7574221 in QWidgetRepaintManager::paintAndFlush (this=0x555555d65e30) at kernel/qwidgetrepaintmanager.cpp:1016 #12 0x00007ffff75a5088 in QWidget::event (this=this@entry=0x555555931640, event=event@entry=0x555557024ad0) at kernel/qwidget.cpp:8990 #13 0x00007ffff76b989d in QMainWindow::event (this=this@entry=0x555555931640, event=event@entry=0x555557024ad0) at widgets/qmainwindow.cpp:1341 #14 0x00007ffff69de605 in KMainWindow::event (this=this@entry=0x555555931640, ev=ev@entry=0x555557024ad0) at ./src/kmainwindow.cpp:961 #15 0x00007ffff6a1f4a7 in KXmlGuiWindow::event (this=0x555555931640, ev=0x555557024ad0) at ./src/kxmlguiwindow.cpp:220 #16 0x00007ffff7562f6e in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x555555931640, e=0x555557024ad0) at kernel/qapplication.cpp:3640 #17 0x00007ffff66b2458 in QCoreApplication::notifyInternal2 (receiver=0x555555931640, event=0x555557024ad0) at kernel/qcoreapplication.cpp:1064 #18 0x00007ffff66b261e in QCoreApplication::sendEvent (receiver=<optimized out>, event=<optimized out>) at kernel/qcoreapplication.cpp:1462 #19 0x00007ffff66b53e1 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x55555556c4b0) at kernel/qcoreapplication.cpp:1821 #20 0x00007ffff66b5868 in QCoreApplication::sendPostedEvents (receiver=<optimized out>, event_type=<optimized out>) at kernel/qcoreapplication.cpp:1680 #21 0x00007ffff670a903 in postEventSourceDispatch (s=0x555555663280) at kernel/qeventdispatcher_glib.cpp:277 #22 0x00007ffff45185e5 in g_main_dispatch (context=0x7fffe8000ee0) at ../../../glib/gmain.c:3460 #23 g_main_context_dispatch (context=context@entry=0x7fffe8000ee0) at ../../../glib/gmain.c:4200 #24 0x00007ffff45188e8 in g_main_context_iterate (context=context@entry=0x7fffe8000ee0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../../../glib/gmain.c:4276 #25 0x00007ffff451897c in g_main_context_iteration (context=0x7fffe8000ee0, may_block=1) at ../../../glib/gmain.c:4343 #26 0x00007ffff6709fe6 in QEventDispatcherGlib::processEvents (this=0x555555676730, flags=...) at kernel/qeventdispatcher_glib.cpp:423 #27 0x00007ffff66b0edb in QEventLoop::exec (this=this@entry=0x7fffffffd6c0, flags=..., flags@entry=...) --Type <RET> for more, q to quit, c to continue without paging--c at ../../include/QtCore/../../src/corelib/global/qflags.h:69 #28 0x00007ffff66b9036 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:121 #29 0x00007ffff6d3167c in QGuiApplication::exec () at kernel/qguiapplication.cpp:1863 #30 0x00007ffff7562ee5 in QApplication::exec () at kernel/qapplication.cpp:2832 #31 0x000055555555ce33 in main (argc=<optimized out>, argv=<optimized out>) at ./apps/kate/main.cpp:603 STEPS TO REPRODUCE 1. Open both files 2. Right click other file's tab -> compare with active document 3. quickly scroll upward with mouse wheel OBSERVED RESULT Kate crashes EXPECTED RESULT Kate scrolls to the top of the files SOFTWARE/OS VERSIONS Windows: macOS: Linux/KDE Plasma: 6.4.0-1-amd64 (available in About System) KDE Plasma Version: 5.27.5 KDE Frameworks Version: 5.107.0 Qt Version: 5.15.10 ADDITIONAL INFORMATION link to second file https://pastebin.com/9vr6Hcyk -- You are receiving this mail because: You are watching all bug changes.