Menu

#350 When delete photos the files in /tmp are not deleted

v1.0_(example)
closed-fixed
nobody
None
5
2020-07-22
2020-05-27
Mte90
No

I have a /tmp folder of 4 gb usually and I scan at high resolution but when I delete a photo from gscan2pdf the png file or pnm is stille there.
So I to be sure that the program don't crash on saving because the Ram is full I do this:

  • Scan 12/14 files
  • Save
  • Open the folder /tmp/gscan-xxx and remove thos files after removing it from gscan2pdf

If I remove the folder while the program is open this crash because cannot find the folder.
I saw also that if I scan too many images the saving doesn't work and there is no log or feedback about it.

Discussion

  • Jeffrey Ratcliffe

    The files belonging to deleted pages should be kept for one step in case the user undoes the operation.

    I see that they hang around for longer than that, so this is certainly a bug.

     
  • Mte90

    Mte90 - 2020-05-29

    Maybe adding a maximum number of undo or an alert when /tmp is full can avoid crashes.

     
  • Jeffrey Ratcliffe

    You should already get a warning. Please give me a log file where you run out of tmp space and get no warning.

     
  • Mte90

    Mte90 - 2020-05-31

    You are right, I get

    Error importing image /tmp/gscan2pdf-xiNI/sKXeoU4wq5.png: No space left on device at /usr/share/perl5/Gscan2pdf/Document.pm line 4812 thread 1.
    The problem is that the tmp folder incude old folder of gscan2pdf that are not removed so I have to clean manually those.

     
  • Jeffrey Ratcliffe

    I've implemented this for the next release. Would you like to test a patch?

     
  • Jeffrey Ratcliffe

    • status: open --> closed-fixed
     
  • Mte90

    Mte90 - 2020-07-22

    I saw that on closing the folder in tmp are removed but not when I delete them with the latest release on debian sid.

     

Log in to post a comment.

Auth0 Logo