[Koha-devel] Printing patron cards results in 100% cpu

Fridolin SOMERS fridolin.somers at biblibre.com
Tue Apr 10 14:37:22 CEST 2018


Hi,

I have seen something on the doc of this lib :
https://metacpan.org/pod/PDF::FromHTML#<img>-tags

Add the height and width attributes if you are creating the source HTML, 
it keeps PDF::FromHTML from having to open and read the source image 
file to get the real size. Less file I/O means faster processing.

Maybe it is this problem.

Regards,

Le 01/04/2018 à 21:43, Sven Halm a écrit :
> Hello and happy Easter!
> 
> I have a problem with the patronage card printing. I also described the problem in Bug 20077. I got a tip from Katrin to try the mailing list.
> 
> When I try to print the patron cards, the /usr/share/koha/intranet/cgi-bin/patroncards/create-pdf.pl does not finish and runs with 100% CPU load.
> 
> In plack-error.log I find the following lines:
> Use of uninitialized value $batch_id in concatenation (.) or string at /usr/share/koha/intranet/cgi-bin/patroncards/create-pdf.pl line 68.
> Use of uninitialized value in multiplication (*) at /usr/share/koha/lib/C4/Patroncards/Patroncard.pm line 239.
> Use of uninitialized value in addition (+) at /usr/share/koha/lib/C4/Patroncards/Patroncard.pm line 256.
> Use of uninitialized value in multiplication (*) at /usr/share/koha/lib/C4/Patroncards/Patroncard.pm line 288.
> Use of uninitialized value in multiplication (*) at /usr/share/koha/lib/C4/Patroncards/Patroncard.pm line 239.
> Use of uninitialized value in addition (+) at /usr/share/koha/lib/C4/Patroncards/Patroncard.pm line 256.
> Use of uninitialized value in multiplication (*) at /usr/share/koha/lib/C4/Patroncards/Patroncard.pm line 288.
> Use of uninitialized value in multiplication (*) at /usr/share/koha/lib/C4/Patroncards/Patroncard.pm line 239.
> Use of uninitialized value in addition (+) at /usr/share/koha/lib/C4/Patroncards/Patroncard.pm line 256.
> 
> The problem first appeared in February 2018 after I started the Ubuntu updates. Unfortunately I don't remember what has been updated.
> 
> Current system environment (no changes made to koha!):
> OS: Ubuntu 17.10
> Koha-Version:
> 17.11.04.000
> OS Version ('uname -a'):
> Linux koha 4.13.0-37-generic #42-Ubuntu SMP Wed Mar 7 14:13:23 UTC 2018 x86_64
> Perl Interpreter:
> /usr/bin/perl
> Perl-Version:
> 5.026000
> Perl @INC:
> /usr/share/koha/lib
> /usr/share/koha/installer
> /usr/share/koha/lib/installer
> /etc/perl
> /usr/local/lib/x86_64-linux-gnu/perl/5.26.0
> /usr/local/share/perl/5.26.0
> /usr/lib/x86_64-linux-gnu/perl5/5.26
> /usr/share/perl5
> /usr/lib/x86_64-linux-gnu/perl/5.26
> /usr/share/perl/5.26
> /usr/local/lib/site_perl
> /usr/lib/x86_64-linux-gnu/perl-base
> MySQL-Version:
> mysql Ver 15.1 Distrib 10.1.30-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2
> Apache-Version:
> Server version: Apache/2.4.27 (Ubuntu)
> 
> 
> Unfortunately I am not able to print patron cards at the moment. It would be great if there was a solution for this soon.
> 
> Many greetings
> Sven
> 
> 
> 
> 
> _______________________________________________
> Koha-devel mailing list
> Koha-devel at lists.koha-community.org
> http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
> website : http://www.koha-community.org/
> git : http://git.koha-community.org/
> bugs : http://bugs.koha-community.org/
> 

-- 
Fridolin SOMERS <fridolin.somers at biblibre.com>
BibLibre, France - software and system maintainer


More information about the Koha-devel mailing list