Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Error(?): "CV isn't complete"?

by BrowserUk (Pope)
on Nov 16, 2004 at 18:06 UTC ( #408187=perlquestion: print w/replies, xml ) Need Help??

BrowserUk has asked for the wisdom of the Perl Monks concerning the following question:

Possibly related to Assigning to the CODE slot of a GLOB whose REF is held in a lexical?, I'm getting a message from somewhere that says: "CV isn't complete".

The program appears to function correctly. No other clue is given. I've done a grep of the 5.8.5 core sources without a hit.

Any clue as to (a) Where the message is coming from? (b) What it means?


Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"Think for yourself!" - Abigail        "Time is a poor substitute for thought"--theorbtwo
"Memory, processor, disk in that order on the hardware side. Algorithm, algorithm, algorithm on the code side." - tachyon

Replies are listed 'Best First'.
Re: Error(?): "CV isn't complete"?
by NetWallah (Canon) on Nov 16, 2004 at 18:28 UTC
    Are you using Devel::Size ?

    Your message is probably coming from "size.xs":

    case SVt_PVCV: total_size += sizeof(XPVCV); total_size += magic_size(thing, tracking_hash); if (go_yell) { carp("CV isn't complete"); } break;
    Update:Looks like you can make the message go away by disabling warnings - I'm not recommending this - just offering this as an option.

        Earth first! (We'll rob the other planets later)

      It appears that if you pass a globref that has a code component to Devel::Size::total_size(), and warnings are enabled, it always issues the "CV isn't complete" message.

      Which seems like a non-useful behaviour to me?

      #! perl -slw use strict; use Devel::Size qw[ total_size ]; our $GLOB; *GLOB = sub{ print "@_" }; print total_size \*GLOB; __END__ P:\test>junk CV isn't complete 291

      Examine what is said, not who speaks.
      "Efficiency is intelligent laziness." -David Dunham
      "Think for yourself!" - Abigail        "Time is a poor substitute for thought"--theorbtwo
      "Memory, processor, disk in that order on the hardware side. Algorithm, algorithm, algorithm on the code side." - tachyon

        IIRC, it's because Devel::Size is not able to compute a real "size" for CV's. See the "Bugs" section of Devel::Size. It returns a minimum size, and throws a warning to let you know somethings not 100% accurate.

      Oh you beauty!++

      Are you using Devel::Size?

      Yes I am. And have been for a few days. Comment that out and it "goes away".

      Of course, that doesn't mean that there isn't a bug worth tracking down, but it does give me some tuits on where to start. Thanks.


      Examine what is said, not who speaks.
      "Efficiency is intelligent laziness." -David Dunham
      "Think for yourself!" - Abigail        "Time is a poor substitute for thought"--theorbtwo
      "Memory, processor, disk in that order on the hardware side. Algorithm, algorithm, algorithm on the code side." - tachyon
Re: Error(?): "CV isn't complete"?
by gaal (Parson) on Nov 16, 2004 at 19:49 UTC
    Um, you did fill in the Education, Employers, and Experience fields, did you? No CV is complete without them! :)
Re: Error(?): "CV isn't complete"?
by ysth (Canon) on Nov 16, 2004 at 18:21 UTC
    Can you show your code?

      It is rather large, and currently incomplete. The problem is, without any idea of where the error is coming from, it is difficult to know where to start trying to whittle down the code for posting.

      Worse is that I am not even sure when it first started appearing as it appears in the middle of several hundred lines of test output. If I hadn't paused the screen at exactly the right moment, I might never have seen it.

      I'll try to rationalise the code to something postable, but any clues as to where to start would be useful.


      Examine what is said, not who speaks.
      "Efficiency is intelligent laziness." -David Dunham
      "Think for yourself!" - Abigail        "Time is a poor substitute for thought"--theorbtwo
      "Memory, processor, disk in that order on the hardware side. Algorithm, algorithm, algorithm on the code side." - tachyon

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://408187]
Approved by mpeppler
Front-paged by grinder
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (9)
As of 2021-05-06 11:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Perl 7 will be out ...





    Results (73 votes). Check out past polls.

    Notices?