Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Devel-Cover CPAN distribution.

Report information
The Basics
Id: 67543
Status: resolved
Priority: 0/
Queue: Devel-Cover

People
Owner: Nobody in particular
Requestors: bowtie [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 0.75
Fixed in: 0.74



Subject: JSON implementation fails
just upgraded to 0.75 as doing some testing using perl 5.12.3 Linux nx9005 2.6.35-28-generic #50-Ubuntu SMP Fri Mar 18 19:00:26 UTC 2011 i686 GNU/Linux Release 0.75 - 17th April 2011 - Write database as JSON if JSON::PP is available. JSON::PP (2.27105) installed called with # devel cover perl -MDevel::Cover script/video.pl cover malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before "pst0\x{5}\x{8}\x{3}\x{0}...") at /usr/local/lib/perl5/site_perl/5.12.3/i686- linux-thread-multi/Devel/Cover/DB/IO.pm line 59 END failed--call queue aborted. Reading database from /home/kevin/workspace/Video/cover_db malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before "pst0\x{5}\x{8}\x{3}\x{0}...") at /usr/local/lib/perl5/site_perl/5.12.3/i686- linux-thread-multi/Devel/Cover/DB/IO.pm line 59 rolled back to 0.74 which work's for me. hope this helps ;)
Subject: Re: [rt.cpan.org #67543] JSON implementation fails
Date: Mon, 18 Apr 2011 09:49:58 +0200
To: kevin dawson via RT <bug-Devel-Cover [...] rt.cpan.org>
From: Paul Johnson <paul [...] pjcj.net>
On Sun, Apr 17, 2011 at 07:32:16PM -0400, kevin dawson via RT wrote: Show quoted text
> just upgraded to 0.75 as doing some testing > > using perl 5.12.3 > > Linux nx9005 2.6.35-28-generic #50-Ubuntu SMP Fri Mar 18 19:00:26 UTC 2011 i686 > GNU/Linux > > Release 0.75 - 17th April 2011 > - Write database as JSON if JSON::PP is available. > > JSON::PP (2.27105) installed > > called with > > # devel cover > perl -MDevel::Cover script/video.pl > cover > > malformed JSON string, neither array, object, number, string or atom, at character > offset 0 (before "pst0\x{5}\x{8}\x{3}\x{0}...") at /usr/local/lib/perl5/site_perl/5.12.3/i686- > linux-thread-multi/Devel/Cover/DB/IO.pm line 59 > END failed--call queue aborted. > Reading database from /home/kevin/workspace/Video/cover_db > malformed JSON string, neither array, object, number, string or atom, at character > offset 0 (before "pst0\x{5}\x{8}\x{3}\x{0}...") at /usr/local/lib/perl5/site_perl/5.12.3/i686- > linux-thread-multi/Devel/Cover/DB/IO.pm line 59
Hello Kevin, Thanks very much for this report. I wonder whether you had an already existing cover_db directory from pre-0.75 when you got this problem with 0.75. If that is possible, then a simple solution is to just delete this directory (or run cover -delete). Are you able to test that and let me know if it is the case? If that is the problem, then I think that just bumping the database version should solve it, so I'll do that for the next release. Thanks again, -- Paul Johnson - paul@pjcj.net http://www.pjcj.net
From: kevin.dawson [...] btclick.com
On Mon Apr 18 03:50:18 2011, paul@pjcj.net wrote: Show quoted text
> On Sun, Apr 17, 2011 at 07:32:16PM -0400, kevin dawson via RT wrote: >
> > just upgraded to 0.75 as doing some testing > > > > using perl 5.12.3 > > > > Linux nx9005 2.6.35-28-generic #50-Ubuntu SMP Fri Mar 18 19:00:26
> UTC 2011 i686
> > GNU/Linux > > > > Release 0.75 - 17th April 2011 > > - Write database as JSON if JSON::PP is available. > > > > JSON::PP (2.27105) installed > > > > called with > > > > # devel cover > > perl -MDevel::Cover script/video.pl > > cover > > > > malformed JSON string, neither array, object, number, string or
> atom, at character
> > offset 0 (before "pst0\x{5}\x{8}\x{3}\x{0}...") at
> /usr/local/lib/perl5/site_perl/5.12.3/i686-
> > linux-thread-multi/Devel/Cover/DB/IO.pm line 59 > > END failed--call queue aborted. > > Reading database from /home/kevin/workspace/Video/cover_db > > malformed JSON string, neither array, object, number, string or
> atom, at character
> > offset 0 (before "pst0\x{5}\x{8}\x{3}\x{0}...") at
> /usr/local/lib/perl5/site_perl/5.12.3/i686-
> > linux-thread-multi/Devel/Cover/DB/IO.pm line 59
> > Hello Kevin, > > Thanks very much for this report. > > I wonder whether you had an already existing cover_db directory from > pre-0.75 > when you got this problem with 0.75. If that is possible, then a > simple > solution is to just delete this directory (or run cover -delete). Are > you > able to test that and let me know if it is the case? > > If that is the problem, then I think that just bumping the database > version > should solve it, so I'll do that for the next release. > > Thanks again, >
Paul you are correct, deleted db, re-run cover, works ok, thanks for your prompt response. regards bowtie
Resolved