#4824 Replace all corrupts the file if the process takes more than the new session backup time

Next_Major_Version
open
nobody
None
5
2014-08-01
2014-05-16
GregoryDF
No

Hello. I used the new version 6.6.2 today to modify a csv file as I usually do.
The first step I make is replacing all tabs with \r\n in extended mode. As my file is quite long (13Mb), it takes some times to do it and there is around 280 000 replacements to do.

I noticed that with the new version, I had around 34 corrupted lines, which are lines that were cut from a part of the file and partially put some place else.

I run the test 3 times and everytime I got the problem.

Then I deactivate the session backup functionality and it ran smoothly without errors.

So my guess is that the session backup functionality doesn't stop when there is an operation going on and so it seems to corrupt the file if it creates a backup during another operation.

Thanks you if you can help.

Related

Bugs: #4855

Discussion

  • oddsbodkins
    oddsbodkins
    2014-07-08

    It's still happening in 6.6.7. When "Replace All" with a file with more than 10000 lines of text the bottom of the document corrupts with NUL's and other odd character codes inserted and the remainder of the document is truncated. Attached dump file.

     
    Attachments
  • Philippe
    Philippe
    2014-08-01

    I can confirm this in version 6.6.8, a big search/replace corrupts the file being modified.
    Disabling session backup fixes the problem.

    And it seems after the big search/replace Undo function doesn't work when session backup is active.