Subject: | Mac::Glue eating up all the memory? |
Date: | Mon, 26 Mar 2007 22:43:04 +0100 |
To: | Chris_Nandor via RT <bug-Mac-Glue [...] rt.cpan.org> |
From: | Jelte Liebrand <jelte [...] liebrand.co.uk> |
HI there,
Remember me? We emailed a while ago about some script i was putting
together using Mac::Glue, and more specifically Mac::EyeTV.
Basically everything has been working fine, but recently my script
(which runs nightly) got itself in a mess. Basically this bit of code:
#!/usr/bin/perl -w
use strict;
use Mac::EyeTV;
use Mac::Glue;
use Mac::AppleEvents::Simple 1.18;
my $eyetv = Mac::EyeTV->new();
my @eyeTvChannelList = $eyetv->channels;
will just gobble up about 1 GB of memory before running completely
out of memory. It does so on the last line (getting the channels).
Now this used to work fine, so perhaps EyeTV has got some internal
bits wrong or something, but inside EyeTV everything is fine. Still
the same number of channels and all is well. Btw, there are only
about 88 channels or so (most of which are disabled).
I reinstalled eyetv completely and then things worked again. But then
a few weeks later, bam: same story...
I tried to debug through the glue code, but as the comment says:
"here be demons", no sh*t... that stuff is a little too hardcore for
me to workout where the memory problems are occurring! :-)
Would you have any idea where I should look to work out what is going
on?
Any help would be appreciated, since I obviously dont want to re-
install EyeTV every couple of weeks...
/Cheers,
Jelte