Created attachment 141959 [details] backtrace of the crash STEPS TO REPRODUCE 1. Open C++ file 2. Switch Git branches OBSERVED RESULT Kate crashes EXPECTED RESULT Kate does not crash SOFTWARE/OS VERSIONS Linux/KDE Plasma: Fedora 34 KDE Plasma Version: 5.85.0 KDE Frameworks Version: 5.85.0 Qt Version: 5.15.2 ADDITIONAL INFORMATION Refer to the attached backtrace. There seems to be an infinite (or extremely deep) loop.
Reproducible for me if there is some text in the filter line edit of the project tree.
https://invent.kde.org/utilities/kate/-/merge_requests/491 should be fixed
Thanks for the quick fix! I confirm this is fixed in the master branch. I am glad I took the time to report the bug with a backtrace.
Git commit 3086b3af21639a8fcb39effde22aa67549674a1a by Christoph Cullmann, on behalf of Waqar Ahmed. Committed on 09/10/2021 at 21:21. Pushed by cullmann into branch 'lsp2clipboard'. Fix infinite recursion in project filter model M +10 -1 addons/project/kateprojectfiltermodel.h https://invent.kde.org/utilities/kate/commit/3086b3af21639a8fcb39effde22aa67549674a1a
Unfortunately I am still getting this crash with the master branch (commit 82bb95cbbfe3f58639f35dce57582b52ee6b06ed).
Have a backtrace? Can't reproduce anymore.
Fixed in 21.12. Please reopen if it still crashes.