https://bugs.kde.org/show_bug.cgi?id=461558

            Bug ID: 461558
           Summary: Kate crashes when closing after saving a new file
                    overwriting a file in another kate tab.
    Classification: Applications
           Product: kate
           Version: unspecified
          Platform: Neon
                OS: Linux
            Status: REPORTED
          Keywords: drkonqi
          Severity: crash
          Priority: NOR
         Component: general
          Assignee: kwrite-bugs-n...@kde.org
          Reporter: o...@geek.co.il
  Target Milestone: ---

Application: kate (22.11.70)

Qt Version: 5.15.7
Frameworks Version: 5.100.0
Operating System: Linux 5.19.0-23-generic x86_64
Windowing System: Wayland
Distribution: KDE neon Unstable Edition
DrKonqi: 5.26.80 [CoredumpBackend]

-- Information about the crash:
This seems very reproducable:

1. Open a file in Kate.
2. In the same window, open a new empty tab and type something.
3. Save the new file to the same file that was opened in step 1.
4. Close the first file by middle-clicking its tab.
5. Close the second file - for example, by exiting Kate.

I think it has something to do with the temporary files, because I see this in
the terminal right before the crash:

---8<---
kf.kio.core.dirlister: "/home/odeda/.test.txt.kate-swp"
kf.kio.core.dirlister: "/home/odeda/.test.txt.kate-swp"
kf.kio.core.dirlister: old: ".test.txt.kate-swp"
QUrl("file:///home/odeda/.test.txt.kate-swp") new: ".test.txt.kate-swp"
QUrl("file:///home/odeda/.test.txt.kate-swp")
kf.kio.core.dirlister: "/home/odeda/.test.txt.kate-swp"
kf.kio.core.dirlister: "/home/odeda/.test.txt.kate-swp"
kf.kio.core.dirlister: old: ".test.txt.kate-swp"
QUrl("file:///home/odeda/.test.txt.kate-swp") new: ".test.txt.kate-swp"
QUrl("file:///home/odeda/.test.txt.kate-swp")
kf.texteditor: 
kf.texteditor: new range:  [ (0, 0)  ->  (8, 0) ]
kf.texteditor: old range:  [ (0, 0)  ->  (9, 0) ]
kf.kio.core.dirlister: "/home/odeda/.test.txt.kate-swp"
kf.kio.core.dirlister: "/home/odeda/.test.txt.kate-swp"
kf.kio.core.dirlister: old: ".test.txt.kate-swp"
QUrl("file:///home/odeda/.test.txt.kate-swp") new: ".test.txt.kate-swp"
QUrl("file:///home/odeda/.test.txt.kate-swp")

---8<---

The reporter is unsure if this crash is reproducible.

-- Backtrace (Reduced):
#6  0x00007f9c911dba0e in
KateMwModOnHdDialog::slotSelectionChanged(QTreeWidgetItem*, QTreeWidgetItem*)
(this=<optimized out>, current=0x563178f4c620) at
./apps/lib/katemwmodonhddialog.cpp:240
#7  0x00007f9c8fdb10f4 in QtPrivate::QSlotObjectBase::call(QObject*, void**)
(a=0x7ffdb5a14a30, r=0x563176b06670, this=0x563178f02e40) at
../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#8  doActivate<false>(QObject*, int, void**) (sender=0x563176b08670,
signal_index=24, argv=0x7ffdb5a14a30) at kernel/qobject.cpp:3919
#9  0x00007f9c90d1d972 in QTreeWidget::currentItemChanged(QTreeWidgetItem*,
QTreeWidgetItem*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#10 0x00007f9c8fdb1128 in doActivate<false>(QObject*, int, void**)
(sender=0x5631789dcca0, signal_index=4, argv=0x7ffdb5a14b30) at
kernel/qobject.cpp:3931


Reported using DrKonqi

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to