Menu

#244 Temporary flac files are not cleaned up

closed-fixed
None
7
2008-04-15
2008-04-02
John
No

In the last couple of days, I normalised a whole bunch of audio files (wav) - 36 in total - 18.5 GB worth using DPR.

I was looking for something today in my 'temp' folder and noticed 72 temp flac files (with names like flacoutput52681.tmp). 32 of these files had a 0kb size, but the other 32 files totalled 8.5GB

I would have expected that these temporary files would have been deleted after DPR had done its stuff.

I tried to normalise a wav file using xena directly. A temporary file was created during the normalisation which remained after I quit Xena. Given that its xena not cleaning up after itself, I have filed this bug under xena, not dpr.

I do not know if the temporary files were created by the flac converter, or by xena itself. However, its considered nice to clean up temporary files after you have finished with them. As there were enough temp files to half fill up my disk just from one transfer job, I would consider this to be a big problem. Given that we expect a load of audio files to come our way, we are going to be frustrated (more than usual).

I did notice a couple of temporary tif files in the temp files directory as well, so its not just flac.

Discussion

  • Justin Waddell

    Justin Waddell - 2008-04-03

    Logged In: YES
    user_id=1417827
    Originator: NO

    I've gone through Xena and made sure that all temporary files are deleted on exit. I've also made it so that a lot of them are deleted after they are no longer used (while Xena is still running) but this was not possible for all temporary files.

     
  • Justin Waddell

    Justin Waddell - 2008-04-03
    • assigned_to: nobody --> vombatus
    • status: open --> open-fixed
     
  • John

    John - 2008-04-11
    • assigned_to: vombatus --> jwaddell
     
  • John

    John - 2008-04-11

    Logged In: YES
    user_id=1606691
    Originator: YES

    This is still happening - I had to manually clean out a couple of gigabytes of temp flac files earlier today.

    I do not know if they were left there because xena terminated abnormally - in any case, it would be nice to have them cleaned up. Maybe a separate folder in the temp directory which is killed when xena starts (although that would present problems if you had more than one instance of xena running). It may be possible to delete the temp files older than x days (assuming that they are in a folder)

     
  • Justin Waddell

    Justin Waddell - 2008-04-15

    Logged In: YES
    user_id=1417827
    Originator: NO

    Can you test to see if the temp files are deleted as normal if Xena/DPR exits properly? I normalised and viewed a whole bunch of different file types when testing this and no temp files were left behind on exit. I also added code in to delete some temp files after they have finished being used rather than on exit, although this is not possible for all of them.

     
  • John

    John - 2008-04-15

    Logged In: YES
    user_id=1606691
    Originator: YES

    Now seems to be working as described.

    Case closed

     
  • John

    John - 2008-04-15
    • status: open-fixed --> closed-fixed
     
  • Justin Waddell

    Justin Waddell - 2008-04-29

    Logged In: YES
    user_id=1417827
    Originator: NO

    This was not working properly on Windows, should now be fixed.

     

Log in to post a comment.

MongoDB Logo MongoDB