https://bugs.kde.org/show_bug.cgi?id=522023
Bug ID: 522023
Summary: Crash after migrating a session from an older kate
version
Classification: Applications
Product: kate
Version First 25.12.3
Reported In:
Platform: Ubuntu
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: sessions
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
Created attachment 193555
--> https://bugs.kde.org/attachment.cgi?id=193555&action=edit
kate session file from the older kate version
DESCRIPTION
I had used kate from Kubuntu 24.04 for years. Very stable.
Saved the session (from ~/.local/share/kate/sessions/) to
gnu3.katesession-olderkate.
Then I started to use Kubuntu 26.04, which ships with Kate version 25.12.3.
I opened this session, then re-saved it. The result is the file
gnu3.katesession-newkate.
Among the last few tabs, this session has quotearg.h twice.
I can close one of these tabs. But when I close the other quotearg.h tab, kate
crashes - reproducibly.
The cause appears to be that in gnu3.katesession-newkate, line 6324, the list
Documents=432,5,6,...,886,887,887,888,890,889
contains the 887 twice. 887 is the document number of quotearg.h (see line
6135).
After manually eliminating this duplicate from line 6324
(and likewise also from lines 6325..6330), the resulting gnu3.katesession
works fine, no longer crashes kate.
STEPS TO REPRODUCE
1. Store gnu3.katesession-olderkate as
~/.local/share/kate/sessions/gnu3.katesession .
2. Open kate and choose to open session "gnu3".
3. Close both quotearg.h tabs.
OBSERVED RESULT
Crash.
EXPECTED RESULT
I would have expected only one quotearg.h tab in the first place.
SOFTWARE/OS VERSIONS
Operating System (available in the Info Center app, or by running `kinfo` in a
terminal window): Kubuntu 26.04 LTS
KDE Plasma Version: 6.6.4
KDE Frameworks Version: 6.24.0
Qt Version: 6.10.2
ADDITIONAL INFORMATION
To me, this looks like a bug in the session converter (reader for old
katesession files and writer for new katesession files).
--
You are receiving this mail because:
You are watching all bug changes.