While exporting about 1000 documents from a particular folder, at a random stage of the process the remaining files are exported as empty, with the following log entry
System.ComponentModel.Win32Exception (0x80004005): Not enough storage is available to process this command at MS.Win32.UnsafeNativeMethods.CreateWindowEx(Int32 dwExStyle, String lpszClassName, String lpszWindowName, Int32 style, Int32 x, Int32 y, Int32 width, Int32 height, HandleRef hWndParent, HandleRef hMenu, HandleRef hInst, Object pvParam) at MS.Win32.HwndWrapper..ctor(Int32 classStyle, Int32 style, Int32 exStyle, Int32 x, Int32 y, Int32 width, Int32 height, String name, IntPtr parent, HwndWrapperHook[] hooks) at System.Windows.Threading.Dispatcher..ctor() at System.Windows.DependencyObject..ctor() at System.Windows.Media.Imaging.BitmapSource..ctor() at Laserfiche.Imaging.LfiWriteableBitmap..ctor(Stream streamSource, Int32 frameIndex) at Laserfiche.Imaging.LfiBitmapDecoder.GetBitmap(Int32 frameIndex) at Laserfiche.DocumentServices.ImageExporter.DecodeBitmap(LfiBitmapFrame frame) at Laserfiche.DocumentServices.ImageExporter.ExportImages(Stream outputStream) at Laserfiche.DocumentServices.DocumentExporter.ExportPages(IDocumentContents document, PageSet pages, Stream outputStream) at Laserfiche.DocumentServices.DocumentExporter.ExportPages(IDocumentContents document, PageSet pages, String outputPath) at WorkflowActivity.Scripting.ExporttoServerFolder.Script1.Execute()
Once the entry in question hits this point, the following documents (exported empty) continue the log this message, except the "error" reads "The operation completed successfully".
Also, for all documents exported as empty, the Event Logs report this error
Faulting application name: Laserfiche.Workflow.Activities.83.Processor.exe, version: 9.1.1.395, time stamp: 0x53d928d9 Faulting module name: KERNELBASE.dll, version: 6.3.9600.17278, time stamp: 0x53eebd22 Exception code: 0xc0000142 Fault offset: 0x00000000000ec0b4 Faulting process id: 0x520 Faulting application start time: 0x01d0a889a3a98530 Faulting application path: C:\Program Files\Laserfiche\Laserfiche Workflow 9\Laserfiche.Workflow.Activities.83.Processor.exe Faulting module path: KERNELBASE.dll Report Id: e1561158-147c-11e5-80e4-06eb6ca5bd72 Faulting package full name: Faulting package-relative application ID:
I wonder if this kind of error is related to a similar problem I have with an ongoing Email workflow. What can happen is that Emails with attachments outbound of this workflow (triggered by an event) can end up being sent without any attachment. A restart of the Laserfiche Workflow Service & Subscribe resolves the issue, but the symptoms are very similar to that described above.
For the file export, I'm using a Workflow SDK Activity via the DocExporter (nothing fancy)
For the email export, I'm using a Workflow Email Activity.
Any suggestions?