Skip to main content
Waters

Error "out of memory" appears when adding a PDF file to a NuGenesis LMS document - WKB54238

Article number: 54238

SYMPTOMS

  • The following error message appears when adding a PDF file to a NuGenesis LMS document:
    • Out of memory

      at System.Drawing.Image.FromStream(Stream stream Boolean ,useEmbeddedColorManagement, Boolean validateImageData)
      at ExpControl.ExpDataHandler.GetObjectInfos(String[] files, String&* failedFiles, String& comment, ExperimentInfo info, IExpControl expControl)
      at MainApp.Document.DocumentEditor.insertFilesObjects(String[] files, Int32 seqNo)
      at MainApp.Document.DocumentEditor.insertSectionFromFile()
      at MainApp.Document.DocumentEditor.SectionTypeListControl_InsertSection(Object sender, SectionTypeEventArgs se)

ENVIRONMENT

  • NuGenesis 8 LMS
  • NuGenesis 8 ELN

CAUSE

The PDF file contains many images. LMS tries to convert the PDF file to Enhanced Metafiles, and when it converts the bitmap images in the PDF file to EMFs, it uses a lot of memory on the client machine.

FIX or WORKAROUND

Defect report CRI-106 has been filed for this issue. It is fixed in NuGenesis 9.

  1. In NuGenesis 8, if the PDF need not be visible in the document content, simply attach the PDF to a document section. Attaching a PDF to a section does not convert the file to EMFs.
  2. If the file must be visible in the document content, try the following:
    1. Restart the LMS client.
    2. Open the document.
    3. Drop the PDF file into the document.
  3. The above workaround attempts to import the PDF when the LMS client's memory usage is at its lowest, so there is a greater chance of successfully importing the file.

ADDITIONAL INFORMATION

 

id54238, ELN, NGLMS, NGLMSLIC, NGLMSOPT, SUPNG

Not able to find a solution? Click here to request help.