Bug#740121: libgraphics-primitive-driver-cairo-perl: height and width being ignored?

Dean Hamstead dean at fragfest.com.au
Tue Feb 25 22:42:59 UTC 2014


Package: libgraphics-primitive-driver-cairo-perl
Version: 0.46-1
Severity: normal

Dear Maintainer,

here is the code i am using

#!/usr/bin/perl

use strict;use warnings;

use Graphics::Primitive::Container;
use Graphics::Color::RGB;
use Graphics::Primitive::Font;
use Graphics::Primitive::TextBox;
use Graphics::Primitive::Driver::Cairo;
use Layout::Manager::Compass;

my $black = Graphics::Color::RGB->new(red => 0, green => 0, blue => 0);

my $container = Graphics::Primitive::Container->new( width => 100, height => 100);

$container->border->width(1);
$container->border->color($black);
$container->padding(
	Graphics::Primitive::Insets->new(top => 5, bottom => 5, left => 5, right => 5)
);


my $comp = Graphics::Primitive::Component->new;
$comp->background_color($black);
$container->add_component($comp, 'c');

my $lm = Layout::Manager::Compass->new;
$lm->do_layout($container);

my $driver = Graphics::Primitive::Driver::Cairo->new;
$driver->draw($container);
$driver->write('/tmp/foo.png');


__END__



for which i always see this error

dean at laserbeak:/tmp$ perl test.pl
Use of uninitialized value in subroutine entry at /usr/share/perl5/Graphics/Primitive/Driver/Cairo.pm line 85.
Use of uninitialized value in subroutine entry at /usr/share/perl5/Graphics/Primitive/Driver/Cairo.pm line 85.


Chart::Clicker works fine, so i know that its possible for Graphics::Primitive::Driver::Cairo to output something

perhaps its a problem between the chair and the keyboard?

The minimal examples in the pod of Graphics::Primitive I am struggling with as too minimalistic.



-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.12-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_AU.utf8, LC_CTYPE=en_AU.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libgraphics-primitive-driver-cairo-perl depends on:
ii  libcairo-perl               1.104-1
ii  libgeometry-primitive-perl  0.24-1
ii  libgraphics-primitive-perl  0.64-1
ii  libmoose-perl               2.1005-1+b1
ii  libtext-flow-perl           0.01-1
ii  perl                        5.18.2-2

libgraphics-primitive-driver-cairo-perl recommends no packages.

libgraphics-primitive-driver-cairo-perl suggests no packages.

-- no debconf information



More information about the pkg-perl-maintainers mailing list