SUMMARY The editor window becomes unusable STEPS TO REPRODUCE 1. Open a text file 2. Have some lines in the text file 3. Modify the file outside kate 4. Once you press reload on the "Documents modified on Disk" dialog, kate becomes unusable. OBSERVED RESULT * some lines are only rendered with the upper half part of the font. * some lines are fixed in the bottom of the editor window * I can't see the cursor any more. EXPECTED RESULT It works as before the file is modified outside kate. SOFTWARE/OS VERSIONS KDE Frameworks 5.85.0 Qt 5.15.2 (built against 5.15.2) The wayland windowing system kate Version 21.11.70 ADDITIONAL INFORMATION
Created attachment 140504 [details] Strange behaviour
Operating System: Arch Linux (latest) KDE Plasma Version: 5.22.5 KDE Frameworks Version: 5.85.0 Qt Version: 5.15.2 Kate 21.08 Full Wayland +1 from me - exactly the same problem
A crash closing kate after reloading the view. [KCrash Handler] #6 0x000055ff3106e373 in qDeleteAll<__gnu_cxx::__normal_iterator<KateMDI::ToolView* const*, std::vector<KateMDI::ToolView*, std::allocator<KateMDI::ToolView*> > > > (end=..., begin=0x55ff33a223f0) at /usr/include/qt5/QtCore/qalgorithms.h:320 #7 qDeleteAll<std::vector<KateMDI::ToolView*, std::allocator<KateMDI::ToolView*> > > (c=std::vector of length 1, capacity 16 = {...}) at /usr/include/qt5/QtCore/qalgorithms.h:328 #8 KateMDI::MainWindow::~MainWindow (__vtt_parm=<optimized out>, this=<optimized out>, this=<optimized out>, __vtt_parm=<optimized out>) at /usr/src/debug/kate-21.08.0-1.1.x86_64/kate/katemdi.cpp:778 #9 KateMainWindow::~KateMainWindow (this=<optimized out>, this=<optimized out>) at /usr/src/debug/kate-21.08.0-1.1.x86_64/kate/katemainwindow.cpp:203 #10 0x000055ff31064340 in KateMainWindow::~KateMainWindow (this=<optimized out>, this=<optimized out>) at /usr/src/debug/kate-21.08.0-1.1.x86_64/kate/katemainwindow.cpp:181 #11 KateApp::~KateApp (this=<optimized out>, this=<optimized out>) at /usr/src/debug/kate-21.08.0-1.1.x86_64/kate/kateapp.cpp:113 #12 0x000055ff3105ded4 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/kate-21.08.0-1.1.x86_64/kate/main.cpp:689
True, with the "Use a separate dialog for handling..." option enabled, all is in perfect chaos after some external change here, too. Without that option set and just the inline "reload" messages all is fine.
A possibly relevant merge request was started @ https://invent.kde.org/utilities/kate/-/merge_requests/504
Git commit 2fd3f8077f721c9b225ea37c7eff9aa670587753 by Christoph Cullmann. Committed on 24/10/2021 at 15:05. Pushed by cullmann into branch 'master'. fixes reload dialog on wayland avoid that after initial triggering this repaint and more of main window is destroyed M +0 -2 kate/katemainwindow.cpp https://invent.kde.org/utilities/kate/commit/2fd3f8077f721c9b225ea37c7eff9aa670587753