Crash occurs if a RV temp archive is open by another process during a rename

RV 3.5.2

File Access
j

johnsanc

3 years ago

RomVault creates temporary files when compressing an archive during a fix. If this temporary file is open by another application at the time RomVault tries to rename it to its final archive name, a crash will occur.


Steps to reproduce:

  1. Perform a fix that requires compressing a large file so that you have time to open the file while RV is processing

  2. Open the temporary archive in another application when its nearing the full archive size, such as Sublime Text

  3. Notice when RomVault attempts to rename the archive a crash occurs


Expected behavior:

  • RomVault should display a halting error and update the cache, OR

  • RomVault should abandon the temp archive and continue with the rest of the fixes


(screenshot)

Activity

j

johnsanc changed the status to Cannot Reproduce

3 years ago

G

GordonJ changed the status to Open

3 years ago

1 hidden items

G

GordonJ

3 years ago

Fixed in V3.5.1 WIP 6, I set the temp file to be locked to any other process while it is being written, so it should not be locked when it is ready to be moved.

I also plan to add an extra rename before the delete on the old zip file, just in case something else still manages to go wrong.

G

GordonJ changed the status to RV 3.5.2

3 years ago


Powered by Convas