Skip Menu |

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

Report information
The Basics
Id: 122372
Status: resolved
Priority: 0/
Queue: PDF-API2

Owner: Nobody in particular
Requestors: philperry [...]

Bug Information
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 [...]
From: Phil M Perry <philperry [...]>
Download (untitled) / with headers
text/plain 878b
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/ 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 is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to