Page 1 of 1

problem with zmtrigger.pl

Posted: Sun Oct 20, 2013 4:31 pm
by Basildane
I'm using zmtrigger.pl to communicate with my security system. It works and I get the information I need, but only for few minutes, then it throws an error and terminates.
The error is

Code: Select all

variable is not a string at /usr/local/lib/x86_64-linux-gnu/perl5/ZoneMinder/Memory/Mapped.pm line 113.
Any thoughts?

Re: problem with zmtrigger.pl

Posted: Wed Jan 08, 2014 1:11 am
by Basildane
variable is not a string at /usr/local/lib/x86_64-linux-gnu/perl5/ZoneMinder/Memory/Mapped.pm line 113.
I continue to be plagued with this error.

I see the code here in Mapped.pm, I do not use this language and it's really foreign to me.
Any clues what's wrong, what it's doing, and how do we fix it?

I really need to use zmtrigger.pl, and it returns the data I need, but it is unstable.

Code: Select all

sub zmMemDetach( $ )
{
        my $monitor = shift;

    if ( $monitor->{MMap} )
    {
        munmap( ${$monitor->{MMap}} );     <<<<<<<< error on this line
            delete $monitor->{MMap};
    }
    if ( $monitor->{MMapAddr} )
    {
            delete $monitor->{MMapAddr};
    }
    if ( $monitor->{MMapHandle} )
    {
        close( $monitor->{MMapHandle} );
            delete $monitor->{MMapHandle};
    }
}

Re: problem with zmtrigger.pl

Posted: Sat Jan 10, 2015 2:31 pm
by RecordEverything
I'm getting the same error with zmtrigger under 1.28. (installed from Ubuntu packages)

variable is not a string at /usr/share/perl/5.18.2/ZoneMinder/Memory/Mapped.pm line 125.

This is 125: if ( ! munmap( ${$monitor->{MMap}} ) ) {

# dpkg -l | grep zonemin
ii zoneminder 1.28.0-trusty

I'm yet to track down what is causing it. It doesn't seem to be related to any particular external event being sent to zmtrigger - it just randomly dies.