Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autosaving errors #117

Open
ThinkEV opened this issue Oct 23, 2023 · 0 comments
Open

Autosaving errors #117

ThinkEV opened this issue Oct 23, 2023 · 0 comments

Comments

@ThinkEV
Copy link

ThinkEV commented Oct 23, 2023

Version 0.9.0
Autosaving: Filename template: Document <DateTime:yyyyMMddHHmmss> JD
Autosaving: Folder name template: N:\printeroutput\<DateTime:yyyyMMddHHmmss> JD

Today I printed three documents shortly after each other.
These folders were created:

N:\printeroutput\20231023084417 JD
N:\printeroutput\20231023084431 JD
N:\printeroutput\20231023084443 JD

I want one file per folder, but the second folder was empty and the file that was supposed to go in there was saved into the next folder.

N:\printeroutput\20231023084417 JD\Document 20231023084417 JD.pdf
N:\printeroutput\20231023084431 JD\[ empty folder ]
N:\printeroutput\20231023084443 JD\Document 20231023084443 JD.pdf
N:\printeroutput\20231023084443 JD\Document 20231023084443 JD 2.pdf

The processing must have been stuck somehow. If this happens, the destination folder should not be changed!

from the clawPDF.log:

2023-10-23 08:44:31.6539 [Error] clawSoft.clawPDF.Workflow.ConversionWorkflow.RunWorkflow: clawSoft.clawPDF.Core.Ghostscript.OutputDevices.DeviceException: Error while copying to target file in second attempt. Process gets canceled. clawSoft.clawPDF.Core.Ghostscript.OutputDevices.DeviceException: Error while copying to target file in second attempt. Process gets canceled.
   bei clawSoft.clawPDF.Core.Jobs.AbstractJob.MoveOutputFiles()
   bei clawSoft.clawPDF.Core.Jobs.GhostscriptJob.RunJobWork()
   bei clawSoft.clawPDF.Core.Jobs.AbstractJob.RunJob()
   bei clawSoft.clawPDF.Workflow.ConversionWorkflow.DoWorkflowWork()
   bei clawSoft.clawPDF.Workflow.ConversionWorkflow.RunWorkflow()
2023-10-23 08:44:31.9836 [Error] clawSoft.clawPDF.JobRunner.ProcessJob: The job 'Dokument 20231023084431' terminated at step Convert and did not end successfully. 

I think that after this error the print was retried by the printer spooler and therefore resulted in two files at the same timestamp.
Mybe it is due to a race condition. I have got a post-processing tool that renames all direcories and files and replaces " " by "_".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant