[Koha-bugs] [Bug 31259] New: Downloading patron card PDF hangs the server

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Jul 29 11:09:25 CEST 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31259

            Bug ID: 31259
           Summary: Downloading patron card PDF hangs the server
 Change sponsored?: ---
           Product: Koha
           Version: 21.11
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: minor
          Priority: P5 - low
         Component: Label/patron card printing
          Assignee: cnighswonger at foundations.edu
          Reporter: jake.deery at ptfs-europe.com
        QA Contact: testopia at bugs.koha-community.org

Hi,

One of our customers is having an issue with their patron card creator, that we
have been able to replicate on our support server. Both installations are
Debian package installations, and both installations run atop Debian 10.

When one goes to create a 'patron card' using the build-in patron card creator
found under Tools > Patron card creator, the download process loops endlessly
and eventually returns a Proxy Timeout (we have tried without Plack).

Steps to reproduce:
1.    Create printer profile with:
      *    0mm x 0mm offset
      *    0mm x 0mm creep
2.    Create card template with:
      *    297mm x 210mm page
      *    99.1mm x 38.1 card
      *    15mm top page margin
      *    5mm left page margin
      *    2 columns
      *    7 rows
      *    3mm gap between columns
      *    0mm gap between rows
3.    Create layout with:
      *    Guide box on
      *    Guide grid off
      *    Field 1 text to 'Name: <firstname> <surname>'
      *    Font to 'Courier'
      *    Font size to 14pt
      *    Text alignment to left
      *    Lower left X co-ord to 20mm
      *    Lower left Y co-ord to 25mm
      *    Print card number as barcode: yes
      *    Lower left X co-ord: 30
      *    Lower left Y co-ord: 10
      *    Barcode type: CODE39
      *    Print card number as text under barcode: yes
4.    Add two patrons to a new card batch, and use the previously created
printer profile, card template, and layout.
5.    Export the entire batch as a PDF.
6.    The software will hang, and a 'create-ptf.pl' process will run
indefinitely
koha at demo1:~$ sudo ps aux | grep perl
support+ 30344 93.1  5.2 287880 210820 ?       R    10:06   0:05 /usr/bin/perl
/usr/share/koha/intranet/cgi-bin/patroncards/create-pdf.pl

The create-ptf.pl script eats the CPU, and also appears to leak memory
indefinitely, until the OOM killer is forced to step in. I have tried changing
a few different values, including the font (as I thought maybe it was Courier
being missing in Linux), all to no avail.

If anyone has the time to take a look at this, or has a vague idea of what
lines to look at so I can see if I can fix it myself, that would be hugely
appreciated.

Many thanks,
Jake

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list