This queue is for tickets about the PDF-API2 CPAN distribution.

Report information
The Basics
Id:
122372
Status:
resolved
Priority:
Low/Low
Queue:

People
Owner:
Nobody in particular
Requestors:
philperry [...] hvc.rr.com
Cc:
AdminCc:

BugTracker
Severity:
(no value)
Broken in:
(no value)
Fixed in:
2.033



Subject: Reference is already weak
Date: Wed, 5 Jul 2017 21:17:21 -0400
To: bug-PDF-API2@rt.cpan.org
From: Phil M Perry <philperry@hvc.rr.com>
I'm running the old examples/023_cjkfonts against PDF::API2 2.032 (just released), on Win7. Every single page gets a message "Reference is already weak at ...PDF/API2.pm line 1110." Line 1110 is weaken $self->{'pagestack'}->[0]; in sub page(). My wild guess would be that the array reference $self->{'pagestack'} only needs to be weakened once, and not every time a new page is pushed on it. Does that sound reasonable? Is the ->[0] making it apply only to the page just pushed, or is it something else? Commenting out this line makes the program run without these warnings, but I don't know if this is a safe fix or if there are other interactions to be aware of. I don't think I have seen this warning message anywhere else, either t tests or other examples, so it may have something to do with the specified CJK fonts themselves, or their supporting Perl files.
Thanks for the bug report. That 0 should be a -1. I've patched it and added a test.


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.