Bug 459844

Summary: Really slow opening time suddenly
Product: [Applications] kate Reporter: Henning <boredsquirrel>
Component: applicationAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: major CC: waqar.17a
Priority: NOR    
Version First Reported In: 22.04.3   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Henning 2022-09-30 08:47:59 UTC
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
***


STEPS TO REPRODUCE
1. enable PDF preview (maybe)
2. leave everything normal
3. open Kate 

OBSERVED RESULT
It takes like 20 seconds to open on my machine, while Kwrite works very fast 

EXPECTED RESULT
Loading as fast as other programs. No huge cache or anything should be a po

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 22.04
KDE Plasma Version: 5.24.6
KDE Frameworks Version: 5.95.0
Qt Version: 5.15.3
Comment 1 Waqar Ahmed 2022-09-30 09:00:09 UTC
can you try removing the following file and see if it helps:

```
~/.local/share/recently-used.xbel
```

Also, explain what do you mean by "1. enable PDF preview (maybe)"
Comment 2 Henning 2022-09-30 15:06:58 UTC
Deleting the file worked somehow once, but after a few restarts it was the same.

20s waiting, error:

```
user@laptop kate
Hspell: can't open /usr/share/hspell/hebrew.wgz.sizes.
kf.sonnet.clients.hspell: HSpellDict::HSpellDict: Init failed
Not a JPEG file: starts with 0x89 0x50
```

I use the Okular PDF preview as the only not preconfigured addin that could be
Comment 3 Waqar Ahmed 2022-09-30 20:30:23 UTC
> Deleting the file worked somehow once, but after a few restarts it was the same.

This is known and fixed in 22.08. Once you open a few files, that file you deleted builds up again and starts slowing you down. I assume you open *a lot* of files.

For the second, I assume you mean "Document Preview" plugin. And for e.g when you open a markdown document, it shows you the preview for it. It is unlikely that this has any affect on startup. Especially because removing the xbel fixed it, so it's I am 99% sure the bug is with reading that file.

For now, I would suggest you to keep removing that file periodically. With 22.08, this problem is fixed but if you still face it, please reopen the bug.