problem with zmtrigger.pl

Forum for questions and support relating to the 1.26.x releases only.
Locked
User avatar
Basildane
Posts: 108
Joined: Mon Sep 16, 2013 1:09 pm

problem with zmtrigger.pl

Post 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?
User avatar
Basildane
Posts: 108
Joined: Mon Sep 16, 2013 1:09 pm

Re: problem with zmtrigger.pl

Post 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};
    }
}
RecordEverything
Posts: 5
Joined: Tue Apr 01, 2014 8:20 am

Re: problem with zmtrigger.pl

Post 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.
Locked