Skip to content

Remove non-bookmarked lines feature loops itself badly #14288

@Dum4G

Description

@Dum4G

Description of the Issue

If you try this feature on a large file you will see an expanentional growth in RAM consumption, at some point it will fail and do nothing but keep hogging your memory

Steps to Reproduce the Issue

  1. Download http://5.9.147.111/epg/epg_1.xml.gz
  2. Set your Mark querry as follows
    image
  3. Mark dem all
  4. Choose "Remove Non-Bookmarked Lines"
  5. Enjoy the turmoil
    image

Expected Behavior

  1. To save all marked lines in memory (copying and cutting them works just fine)
  2. To clean every line
  3. To paste querried lines from memory
  4. RAM gets cleaned from remnants of the task

Actual Behavior

Either some unnecessary loop or huge memory leak happens. Even after it fails ands gets responsive again memory is being hogged until you close Notepad++

Debug Information

Notepad++ v8.5.8 (64-bit)
Build time : Oct 15 2023 - 21:43:56
Path : C:\Program Files\Notepad++\notepad++.exe
Command Line :
Admin mode : OFF
Local Conf mode : OFF
Cloud Config : OFF
OS Name : Windows 10 Pro (64-bit)
OS Version : 21H1
OS Build : 19043.1526
Current ANSI codepage : 1251
Plugins :
ComparePlugin (2.0.2)
CSVLint (0.4.6.5)
mimeTools (2.9)
NppConverter (4.5)
NppExport (0.4)

Metadata

Metadata

Assignees

No one assigned

    Labels

    scintilla dependentCan't be considered for N++ implementation unless/until Scintilla changes

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions