CuteMarkEd icon indicating copy to clipboard operation
CuteMarkEd copied to clipboard

Larger md files cause program to not close, stay running in background, and use 25% CPU

Open githwithit opened this issue 9 years ago • 3 comments

On Windows 7 x64 using CuteMarkEd 0.11.3, both the installer or the zip:

Open 1KB md file, close. No issues, the program closes and disappears from Task Manager.

Open 10KB md file, close. The cutemarked.exe process keeps running in the background using about 25% CPU.

Open/close 10KB md file 4 times and there are 4 cutemarked.exe processes each trying to take about 25% so the CPU is pegged at 100%.

Closing can be via File, Exit or the X in the upper right.

I also tested 0.9.0 and 0.9.2 and they have the same behavior.

The two md test files are attached, just remove the .txt extension. GitHub-cutemarked01-test1-no-cpu-issue-closes-fine.md.txt GitHub-cutemarked01-test2-cpu-issue-will-not-close.md.txt

20160410 edit: Thanks cloose for looking at this and labeling it a bug with a v0.12.0 milestone. Your program is very helpful and fixing this bug would be great. Thanks!

githwithit avatar Apr 09 '16 14:04 githwithit

I can confirm same behavior on Windows 10 x64 using CuteMarked v0.11.3 using large md file attached to first post (GitHub-cutemarked01-test2-cpu-issue-will-not-close.md.txt).

dbelyaev avatar Apr 11 '16 06:04 dbelyaev

My current suspect is the syntax highlighting in the editor. Maybe there is a bug or even an endless loop in the parsing by peg-markdown-highlight.

Unfortunately my time is very limited currently. I will try to investigate this as soon as possible.

Regards, Christian

cloose avatar Apr 12 '16 05:04 cloose

Quite sure its the same issue I posted some months ago: https://github.com/cloose/CuteMarkEd/issues/279

Switched now to Win10 Pro x64 and to CuteMarkEd 11.3, and it shows same behaviour unfortunately :/

Hope you will find the bug somehow @cloose :)

Nevertheless great work with the editor :+1:

infinity85 avatar Apr 18 '16 11:04 infinity85