Bug 22462 - Crash in patron card printing
Summary: Crash in patron card printing
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Label/patron card printing (show other bugs)
Version: Main
Hardware: All All
: P5 - low major (vote)
Assignee: Chris Nighswonger
QA Contact: Testopia
URL:
Keywords:
Depends on: 22429
Blocks:
  Show dependency treegraph
 
Reported: 2019-03-06 12:28 UTC by Christian Stelzenmüller
Modified: 2020-08-16 07:49 UTC (History)
4 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Stelzenmüller 2019-03-06 12:28:34 UTC
Patron card printing:

Layout: the entered text in a text field is longer then the possible page height, page width, card height and card width in the 
template.
Result: when running a batch, the created pdf can't be opened, and Koha doesn't respond. It also seems to end in an infinite loop.
It also happens if all values in the template are saved with the default values "0". 

Template:
page height: 50 mm
page width: 20 mm
card heigh: 50 mmm
card width: 20 mm

Layout:
Textfield Text: Libraries are great
Comment 1 Katrin Fischer 2019-03-06 12:55:54 UTC
If what Christian describes happens, this brings down the instance until the process is killed (like with a Plack restart)
Comment 2 Jonathan Druart 2020-08-07 12:17:36 UTC
Can you provide detailed steps to recreate the problem?
Comment 3 Katrin Fischer 2020-08-07 13:05:00 UTC
It's actually in the bug description:

1) Set up a template for patron card printing with either 

Template:
page height: 50 mm
page width: 20 mm
card heigh: 50 mmm
card width: 20 mm

or leaving all those as 0.

2) Create a layout, including:

Textfield Text: Libraries are awesome, great and super cool.

(or something else too long for the card width)

3) Create a batch with one or more patrons to print cards for

4) Print the cards.

5) PDF won't open.
Comment 4 Jonathan Druart 2020-08-07 13:25:41 UTC
I don't recreate with those step (the pdf is blank however).
Comment 5 Katrin Fischer 2020-08-16 07:49:48 UTC
Maybe this has been fixed by bug 23488?