Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DarkModeDefault.xml become very eavy. #14809

Open
SigmaFlame opened this issue Feb 27, 2024 · 1 comment
Open

DarkModeDefault.xml become very eavy. #14809

SigmaFlame opened this issue Feb 27, 2024 · 1 comment

Comments

@SigmaFlame
Copy link

Description of the Issue

Hello,
When Notepad++ is used for a very long time, it become slow to open a file. It could take some seconds.
This issue seems to be caused by the file DarkModeDefault.xml that become very eavy. (64 Mo in my case)

Steps to Reproduce the Issue

Using the program for a very long time, multiple weeks or years, updating it when asked, and so on.

Expected Behavior

It stays fast.

Actual Behavior

It becomes slow after a while, some weeks or years after, depending of the usage.

Debug Information

According to my tests, it appears that the file « %appdata%/Notepad++/themes/DarkModeDefault.xml » become very eavy.
Deleting this file makes the program fast again, the dark mode is still on and this file is not automatically recreated.
Deleting all « %appdata%/Notepad++ » recreate a new light DarkModeDefault.xml file.

My old DarkModeDefault.xml have a size of 64.1 Mo with 67 292 488 lines. The default one is only 183 Ko.
This file is very too eavy to be opened with any program that I have on my computer.
I guess at some time, something went wrong somewhere and this file will increase its size each time I open a file.

On my Notepadd++ settings I have disabled "memory session" so if I close the program with files open, they are closed the next time I open Notepad++, and I added some word in the PHP colorization section.

@mpheath
Copy link
Contributor

mpheath commented Feb 28, 2024

It appears an accented character triggered this corruption to occur.

accent

The top line is fresh from v8.5.4 portable zip.
The bottom line is from v8.5.4 in use which shows some corruption and probably gets larger over time.

The latest version does not have the accented character in the comment header.

<!--
Dark mode default style for Notepad++.
This file is based on Zenburn them (zenburn.xml)
License: GPL2
-->

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants