You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
UUPMediaConverter stores its in-progress files in %Temp% by default (configurable with temp-path). If the program is run and then sent a SIGINT signal (say, by using Ctrl+C), the application immediately exits without cleaning after itself. This results in multi-gigabyte directories that fill up temp-path.
If this is repeated enough times (twice in my case), temp-path will exhaust the partition's space, preventing the program from proceeding any further.
Possible solutions
SIGINT gives the program a chance to shut down the program gracefully, so perhaps in a shutdown sequence, the temporary files are deleted unless a flag is set that retains them (say, --retain-temp-files). This will not account for SIGKILL terminations, as by nature, they don't give the process a chance to do anything.
So, additionally, perhaps the directory in temp-path can be ear-tagged with a GUID generated at runtime and a retention flag. If the flag is present, leave the examined directory alone, create a new directory and proceed. If the flag is absent, the GUID wouldn't match and the directory can be deleted.
Steps to reproduce
Open Command Prompt as Administrator and navigate to working directory
Download any UUP
Generate an image for any UUP, press Ctrl+C anytime midway
Repeat the last step and see the drive space reduce
Additional Notes
System Information
Operating System: Windows 10 22H2 19045.3448
Shell: Command Prompt
Administrative Privileges: Yes
Virtualized: Yes
Host: Linux
Platform: VirtualBox 7.0.10 r158379
Guest Additions: Yes
Extension Pack: Yes
Program Information
Version: 3.1.8.0
Architecture: AMD64 (x64)
Consider defining the minimum amount of space needed to store temporary files and adding an init-check that bails out if it doesn't meet that minimum. Doesn't have to be exact, just a gigabyte or two above the average expected size.
The text was updated successfully, but these errors were encountered:
Description
UUPMediaConverter
stores its in-progress files in%Temp%
by default (configurable withtemp-path
). If the program is run and then sent aSIGINT
signal (say, by using Ctrl+C), the application immediately exits without cleaning after itself. This results in multi-gigabyte directories that fill uptemp-path
.If this is repeated enough times (twice in my case),
temp-path
will exhaust the partition's space, preventing the program from proceeding any further.Possible solutions
SIGINT
gives the program a chance to shut down the program gracefully, so perhaps in a shutdown sequence, the temporary files are deleted unless a flag is set that retains them (say,--retain-temp-files
). This will not account forSIGKILL
terminations, as by nature, they don't give the process a chance to do anything.So, additionally, perhaps the directory in
temp-path
can be ear-tagged with a GUID generated at runtime and a retention flag. If the flag is present, leave the examined directory alone, create a new directory and proceed. If the flag is absent, the GUID wouldn't match and the directory can be deleted.Steps to reproduce
Additional Notes
System Information
Program Information
Consider defining the minimum amount of space needed to store temporary files and adding an init-check that bails out if it doesn't meet that minimum. Doesn't have to be exact, just a gigabyte or two above the average expected size.
The text was updated successfully, but these errors were encountered: