Generic PTZ Tracking

Forum for questions and support relating to the 1.29.x releases only.
Locked
airsoftsoldrecn9
Posts: 3
Joined: Sun Mar 12, 2017 6:53 am

Generic PTZ Tracking

Post by airsoftsoldrecn9 »

Hello All,

I am experiencing a bit of trouble debugging zmtrack.pl. I would like to find out more information on exit status code 9.
  • 2017-03-12 01:25:23.224490 zmdc 27405 ERR 'zmtrack.pl -m 1' exited abnormally, exit status 9 zmdc.pl
    2017-03-12 01:25:23.128000 zmdc 27501 INF 'zmtrack.pl -m 1' started at 17/03/12 01:25:23 zmdc.pl
    2017-03-12 01:25:23.127990 zmdc 27405 INF 'zmtrack.pl -m 1' starting at 17/03/12 01:25:23, pid = 27501 zmdc.pl
    2017-03-12 01:25:23.068860 zmdc 27405 INF Starting pending process, zmtrack.pl -m 1 zmdc.pl
    2017-03-12 01:24:43.243260 zmdc 27405 ERR 'zmtrack.pl -m 1' exited abnormally, exit status 9 zmdc.pl
    2017-03-12 01:24:43.158420 zmdc 27494 INF 'zmtrack.pl -m 1' started at 17/03/12 01:24:43 zmdc.pl
    2017-03-12 01:24:43.158390 zmdc 27405 INF 'zmtrack.pl -m 1' starting at 17/03/12 01:24:43, pid = 27494 zmdc.pl
    2017-03-12 01:24:43.097240 zmdc 27405 INF Starting pending process, zmtrack.pl -m 1 zmdc.pl
    2017-03-12 01:24:23.214370 zmdc 27405 ERR 'zmtrack.pl -m 1' exited abnormally, exit status 9 zmdc.pl
    2017-03-12 01:24:23.129090 zmdc 27491 INF 'zmtrack.pl -m 1' started at 17/03/12 01:24:23 zmdc.pl
    2017-03-12 01:24:23.129080 zmdc 27405 INF 'zmtrack.pl -m 1' starting at 17/03/12 01:24:23, pid = 27491 zmdc.pl
    2017-03-12 01:24:23.068410 zmdc 27405 INF Starting pending process, zmtrack.pl -m 1 zmdc.pl
    2017-03-12 01:24:14.458235 zmf 27434 INF Frame server socket open, awaiting images zmf.cpp 119
    2017-03-12 01:24:14.457347 zma_m1 27438 INF Analysis fps (20.00) is lower than capturing fps (25.49), disabling adaptive skip feature zm_monitor.cpp 880
    2017-03-12 01:24:14.410756 zma_m1 27438 INF In mode 3/1, warming up zma.cpp 142
    2017-03-12 01:24:13.309667 zma_m1 27438 WAR Waiting for capture daemon zm_monitor.cpp 503
    2017-03-12 01:24:13.212400 zmdc 27405 ERR 'zmtrack.pl -m 1' exited abnormally, exit status 9 zmdc.pl
    2017-03-12 01:24:13.109350 zmdc 27484 INF 'zmtrack.pl -m 1' started at 17/03/12 01:24:13 zmdc.pl
    2017-03-12 01:24:13.106770 zmdc 27405 INF 'zmtrack.pl -m 1' starting at 17/03/12 01:24:13, pid = 27484 zmdc.pl
    2017-03-12 01:24:13.056400 zmdc 27405 INF Starting pending process, zmtrack.pl -m 1 zmdc.pl
    2017-03-12 01:24:12.914458 web_js 22587 ERR Uncaught TypeError: Cannot read property 'focus' of null zm/skins/classic/js/skin.js 117
    2017-03-12 01:24:12.271046 zma_m1 27438 WAR Waiting for capture daemon zm_monitor.cpp 503
    2017-03-12 01:24:11.228198 zma_m1 27438 WAR Waiting for capture daemon zm_monitor.cpp 503
    2017-03-12 01:24:10.556260 zmwatch 27461 INF Watchdog pausing for 30 seconds zmwatch.pl
    2017-03-12 01:24:10.554300 zmdc 27405 INF 'zmupdate.pl -c' starting at 17/03/12 01:24:10, pid = 27468 zmdc.pl
    2017-03-12 01:24:10.554100 zmdc 27468 INF 'zmupdate.pl -c' started at 17/03/12 01:24:10 zmdc.pl
    2017-03-12 01:24:10.513140 zmwatch 27461 INF Watchdog starting
User avatar
knight-of-ni
Posts: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Generic PTZ Tracking

Post by knight-of-ni »

When troubleshooting the perl scripts, it is often helpful to call directly from the command line. e.g.

Code: Select all

sudo zmtrack.pl -m 1
On an unrelated note, is there any reason why the frame server is on? We have not found it to be useful on modern hardware and plan to remove it soon.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
airsoftsoldrecn9
Posts: 3
Joined: Sun Mar 12, 2017 6:53 am

Re: Generic PTZ Tracking

Post by airsoftsoldrecn9 »

Thanks for the quick response!

Code: Select all

gt@TB:/usr/bin$ sudo zmtrack.pl -m 1
Array found where operator expected at /usr/bin/zmtrack.pl line 60, at end of line (Missing operator before ?)
Bareword found where operator expected at /usr/bin/zmtrack.pl line 61, near "@use ZoneMinder" (Missing operator before ZoneMinder?)
Global symbol "@EXTRA_PERL_LIB" requires explicit package name (did you forget to declare "my @EXTRA_PERL_LIB"?) at /usr/bin/zmtrack.pl line 60.
syntax error at /usr/bin/zmtrack.pl line 61, near "@EXTRA_PERL_LIB@ use "Global symbol "@use" requires explicit package name (did you forget to declare "my @use"?) at /usr/bin/zmtrack.pl line 61.
BEGIN not safe after errors--compilation aborted at /usr/bin/zmtrack.pl line 62.
Appears to be some sort of syntax error at line 61-
@EXTRA_PERL_LIB@

I am guessing a library is missing here....

As for the frame server; could you specify the setting (or rather its location) in the UI? I am actually not familiar with this function or its purpose (still learning my way around things).
User avatar
knight-of-ni
Posts: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Generic PTZ Tracking

Post by knight-of-ni »

Unfortunately, the file zmtrack.pl, and quite possibly your whole zoneminder system, is not installed correctly. @EXTRA_PERL_LIB@ is a make macro. There are many of these macros embedded into the source code, and they get replaced with real values during build time.

You could try and just delete that particular line, but the fact that it is there in the first place implies you may have a bigger problem going on.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
airsoftsoldrecn9
Posts: 3
Joined: Sun Mar 12, 2017 6:53 am

Re: Generic PTZ Tracking

Post by airsoftsoldrecn9 »

Ok, removal resolved the syntax problem and the script is running. Will test it and see how things go.
End goal is to have some PTZ tracking using a IP Netcat camera with ZM running on an old Pentium 4 system w/ 1 GB RAM (+ 1GB SWAP on an old IDE hard drive). Motion detection works quite well up to this point. Read a few forum posts regarding things to improve performance. I would greatly appreciate your advice!
Capture.PNG
Capture.PNG (18.48 KiB) Viewed 2484 times
Thanks again!
Locked