Re: [Koha-devel] Printing patron cards results in 100% cpu
Hi, I have seen something on the doc of this lib : https://metacpan.org/pod/PDF::FromHTML#-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@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 SOMERSBibLibre, France - software and system maintainer ___ Koha-devel mailing list Koha-devel@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/
Re: [Koha-devel] Printing patron cards results in 100% cpu
I'm not sure what is going on in this particular instance, but taking the same steps on my production system results in a PDF containing the expected cards and nearly zero CPU usage. Unless someone else can confirm the problem, I would look at something local. Perhaps a Koha update did not apply well or some such, resulting in a script not being updated. On Sun, Apr 1, 2018 at 5:22 PM, Sven Halm <sven.h...@shalm.de> wrote: > I've always gone the following way: > > Tools/Patron lists/Actions/Print cartridge cards > > Then I choose the template and layout and that's it. As soon as I click on > the pdf-link, the CPU goes up. > > I'll attach some screenshots to the e-mail. > > Many greetings > Sven > > -- > *Von: *"Christopher Nighswonger" <chris.nighswon...@gmail.com> > *An: *"Sven Halm" <sven.h...@shalm.de> > *Gesendet: *Sonntag, 1. April 2018 22:35:51 > *Betreff: *Re: [Koha-devel] Printing patron cards results in 100% cpu > > It appears that no batch is passed to the script. How are you accessing it? > > Chris > > On Sun, Apr 1, 2018, 3:43 PM Sven Halm <sven.h...@shalm.de> wrote: > >> 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@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/ > > > ___ Koha-devel mailing list Koha-devel@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/
[Koha-devel] Printing patron cards results in 100% cpu
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@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/