Home General

RB12 - Out of Memory error on PDF Output !!

edited August 2010 in General
Since upgrading to RB12 we can no longer print large reports to PDF. The
report generation rapidly consumes large amounts of memory and
eventually aborts with the error : "Out of Memory while expanding memory
stream"

- I have uninstalled RB12 and gone back to RB10 and the problem goes away.

- I have tried completely uninstalling and re-installing RB12. The
problem remains

- The error happens on both Win-XP and Win-7.

Help please !!




--
Norman Rorke
Desktop Financials Limited
Email: norman.r@desktopfinancials.com

Comments

  • edited August 2010
    Hi Norman,

    Which exact version of ReportBuilder are you using and which version of
    Delphi are you using?

    This is not a known issue however it is possible that there is a memory leak
    causing this that is only exposed (or noticed) with large reports. How
    large does the report need to be before the problem occurs. Is there a
    certain component that causes the memory usage to increase? If possible
    please put together a simple example that demonstrates the issue and send it
    in .zip format to support@digital-metaphors.com and I'll take a look at it
    for you.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited August 2010
    Nico Cizik (Digital Metaphors) wrote:

    Nico,
    It appears this was fixed in v12.01
    We have installed this release and all is now OK.

    Thanks
    Norman Rorke

    --
    Norman Rorke
    Desktop Financials Limited
    Email: norman.r@desktopfinancials.com

  • edited October 2010
    Nico,

    I believe I have a similar problem. I am using Delphi 7 and Report Builder
    Enterprise version 11.07.

    The report I am printing is in excess of 7000 pages.

    If I print to a printer or other PDF print driver, the excess memory
    consumption does not occur.

    It only occurs if I print to PDF using Report Builder.

    It appears Norman addressed his issue by installing a minor upgrade from
    RB12 to v12.01. I wonder what was in those changes?

    Is there any way I can get this issue resolved without purchasing an upgrade
    since I am on 11.07?

    The reason we upgraded from version 7 to 11 was the enhanced PDF output.

    Steve Elliott

  • edited October 2010
    Hi Steve,

    My first suggestion would be to upgrade to RB 11.08 (free upgrade) and see
    if that helps the issue. Contact info@digital-metaphors.com with your
    serial number and purchasing email address for upgrade instructions.

    We made some major enhancements to the memory management of the PDF device
    for RB 12. If you would like, you can send me an example report that causes
    this behavior and I can test it here with the latest version. Send the
    example in .zip format to support@digital-metaphors.com.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited October 2010
    Nico,

    I will try the free upgrade first.

    Thanks.

  • edited October 2010
    Nico,

    Lisa was very helpful in getting me upgraded to 11.08.

    The upgrade, however, did not resolve the apparent memory leak issue.

    The database the current app is running against is several gig in size, so
    putting together an example application that demonstrates the issue, yet is
    not prohibitive in size to transfer a complete example may take a
    significant amount of time.

  • edited October 2010
    Hi Steve,

    If you export the large report to an Archive file, then try to export it to
    PDF using the ArchiveReader, do you still get the same result? If so, you
    can send me the archive file and I can test that here with the latest
    version.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited November 2010
    Nico,

    I was wondering if it would be easier for me to download and install the
    trial version of RBE 12, install that, compile and test? Are there any
    potential issues with that?

    Thanks,

    Steve Elliott

  • edited November 2010
    Hi Steve,

    One of the limitations of the trial edition is that you can only
    print/export 5 pages of any report.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited November 2010
    Nico,

    OK. I had to extract some of the proprietary text from the report and
    confidential logos, etc.

    The memory leak is still overservable in task manager, however, it is now
    not so severe that it actually crashes the application. Still - I need the
    actual report to work.

    OK. I exported the report to an archive file. It is 53MB zipped (818MB
    unzipped). If I load and print this archive file, the memory leak is
    observable in task manager.

    Memory consumption in the application goes from around 12MB before running
    the report to 90MB after. The 90MB is not released until exiting the
    application.

    Where would you want me to send this file?

    Thanks,

    Steve Elliott

  • edited November 2010
    Hi Steve,

    Please send the file to support@digital-metaphors.com and I'll take a look
    at it for you.


    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
    "Steve Elliott" wrote in message news:4cd038e2$1@mail....

    Nico,

    OK. I had to extract some of the proprietary text from the report and
    confidential logos, etc.

    The memory leak is still overservable in task manager, however, it is now
    not so severe that it actually crashes the application. Still - I need the
    actual report to work.

    OK. I exported the report to an archive file. It is 53MB zipped (818MB
    unzipped). If I load and print this archive file, the memory leak is
    observable in task manager.

    Memory consumption in the application goes from around 12MB before running
    the report to 90MB after. The 90MB is not released until exiting the
    application.

    Where would you want me to send this file?

    Thanks,

    Steve Elliott

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited November 2010
    Nico,

    Is there another way to transfer the file to you? I suppose I could split
    the zip file for you to reassemble, but the largest file size I can email
    from here is 25MB.

    Steve

  • edited November 2010
    I received your file. I'll take a look at it today and respond via email.


    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
    "Steve Elliott" wrote in message news:4cd06921$1@mail....

    Nico,

    Is there another way to transfer the file to you? I suppose I could split
    the zip file for you to reassemble, but the largest file size I can email
    from here is 25MB.

    Steve

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited November 2010
    Thank you!

  • edited November 2010
    Nico,

    OK. RBE v12.02 seems to resolve this issue. It also appears to have solved
    another issue I noticed with some memo fields printing to PDFs and not
    formatting correctly on output to PDF.

    Thanks,

    Steve Elliott

  • edited March 2011

    Hello

    It seems that I have the same problem.
    I have RB 11.05 enterprise with D7.
    Large report (4363 pages) gives "out of memory while expanding memory
    stream" printing to pdf with the rb driver, while it works
    without problems using a virtual pdf print driver.
    Is there any patch available for my version ?
    Upgrading would be quite a issue to me now...
    Thanks
    Bye
    Nicola

  • edited March 2011
    Hi Nicola,

    For RB 12, we made some significant design changes to the PDF device and
    how it manages memory.

    I would first suggest updating your copy of RB to 11.08 and see if this
    solves the issue. If not, you can send me an example and I can test it
    here with the latest version.

    Contact info@digital-metaphors.com for upgrade instructions.


    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.