1. Tobias Weichel
  2. PowerBuilder
  3. Tuesday, 18 January 2022 08:03 AM UTC

Hi,

we are currently facing an issue in the systems of one of our clients in which printing pdf documents, out of our application, consumes round about 5MB Memory per Print and doesnt free it.

Since our application is still 32-Bit and our customer prints sometimes over 1000 pdf´s in a single process it happens that the memory gets over the 4GB and windows terminates our application.

We are still using Ghostscript for the pdf generation since we had format issues with the native pdf generation ( Switching is no concern of this question).

SourceCode which generated the .pdf-File:

...

ls_modify = "DataWindow.Export.PDF.Distill.CustomPostScript='1'" + gnv_app.of_cr() + &
	    "Datawindow.Export.PDF.Method = '0'" + gnv_app.of_cr() + &
            "Datawindow.Printer='" + is_pdf_ghostscript_printer + "'"
ls_rtn = ads.Modify(ls_modify)

...

If ll_rtn = SUCCESS Then
	ll_rtn = ads.SaveAs(as_filename, PDF!, False)
End If

...

Application:

Fatclient application build with Powerbuilder 2019R2 Build 2353

 

Environment on clientside:

Windows Server 2012, virtualized with VMWare in an external data center.

Ghostscript + HP Printing Driver PS for the PDF generation.

Some of the pc´s are used as terminals, some as batchservers.

No Windowsupdates installed since 04 2021

 

What did we already check:

Issue occurs on all systems of this specific client, we cant reproduce it in our own environments, even if we try to use the same setups.

Changing path where the pdf file is generated to a local path ( normally a network path is used).

Tried to generate the pdf with Win2PDF and the native pdf generation.

 

Im kinda out of ideas what to looking for right now so a good advice is appreciatet, if you need more infos feel free to ask.

 

Kind Regards,

Tobias

 

Tobias Weichel Accepted Answer Pending Moderation
  1. Monday, 24 January 2022 08:07 AM UTC
  2. PowerBuilder
  3. # 1

Hi,

our customer currently works on the migration project to w2016/w2019 but that might be another month before they can do that.

About GS, we tried it with newer versions of GS and newer version of the hp ps driver but no success aswell.

 

About the Windows Drivers themselves the it support of our customer said they tried different drivers/reinstalled them.

 

Out actual focus point is to get the open windows updates into the system now, we had in march 2021 exact that problem with an windows update but i didnt knew until last week how it shows up with our application, and it seems like exact the behaviour our customer has right now.

 

Regards,

Tobias

 

Update to the Topic:

Our Customer installed the updates now and the issue was resolved with that.

The failing windowsupdate was from my information: KB5000848, error was fixed with the general Update in april as far is i know, so solution would be deinstalling the failed updated or install newer updates. 

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 18 January 2022 16:18 PM UTC
  2. PowerBuilder
  3. # 2

Hi Tobias;

  This might be a GhostScript issue. Are you using the latest version?

https://www.ghostscript.com/releases/gsdnld.html

  Also, have you tried a newer MS-Windows release (ie: W2019)?


Regards ... Chris

Comment
There are no comments made yet.
René Ullrich Accepted Answer Pending Moderation
  1. Tuesday, 18 January 2022 08:57 AM UTC
  2. PowerBuilder
  3. # 3

Could be a windows or driver problem. Have you tried to use a different driver?

Maybe also that other installed printer is the reason: https://social.technet.microsoft.com/Forums/ie/en-US/aa96e5a5-aa88-483d-90e6-551294291be0/memory-leak-on-spoolsvexe?forum=w7itproperf

 

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.