Version: 1.37.40~20230525173249-focal
Here is a section of zmc_m2.log that starts right after a segmentation fault and runs to the next segmentation fault. It looks like the ONVIF pullpoint subscription is properly established and event notifications are received by ZM.
Code: Select all
05/26/23 14:54:54.369996 zmc_m2[196427].DB1-zm_logger.cpp/225 [LogOpts: level=DB1 effective=DB1, screen=WAR, database=WAR, logfile=DB9->/var/log/zm/zmc_m2.log, syslog=DB9]
05/26/23 14:54:54.551859 zmc_m2[196427].DB1-zm_utils.cpp/277 [Detected ARM (AArch64) processor with Neon]
05/26/23 14:54:54.629458 zmc_m2[196427].DB1-zm_storage.cpp/79 [Loaded Storage area 2 'zm-events']
05/26/23 14:54:54.631181 zmc_m2[196427].DB1-zm_monitor.cpp/379 [Have camera type Ffmpeg]
05/26/23 14:54:54.641157 zmc_m2[196427].DB1-zm_packetqueue.cpp/725 [Setting pre_event_video_packet_count to 10]
05/26/23 14:54:54.642313 zmc_m2[196427].DB1-zm_packetqueue.cpp/719 [Setting max_video_packet_count to 0]
05/26/23 14:54:54.657336 zmc_m2[196427].DB1-zm_ffmpeg.cpp/85 [Not enabling ffmpeg logs, as LOG_FFMPEG and/or LOG_DEBUG is disabled in options, or this monitor is not part of your debug targets]
05/26/23 14:54:54.668246 zmc_m2[196427].INF-zmc.cpp/221 [Starting Capture version 1.37.40]
05/26/23 14:54:54.675400 zmc_m2[196427].DB1-zm_zone.cpp/844 [Got 0 zones for monitor AV5426PMIR-S]
05/26/23 14:54:54.678138 zmc_m2[196427].DB1-zm_monitor.cpp/2364 [Reloading zones for monitor AV5426PMIR-S have 0]
05/26/23 14:54:54.680379 zmc_m2[196427].DB1-zm_monitor.cpp/833 [SharedData=840 TriggerData=560 zone_count 0 * sizeof int 4 VideoStoreData=4128 timestamps=64 images=4x20155392 = 80621568 analysis images=4x20155392 = 80621568 image_format = 4x4 = 16 total=161248808]
05/26/23 14:54:54.682960 zmc_m2[196427].DB1-zm_monitor.cpp/904 [Unable to map file /dev/shm/zm.mmap.2 (161248808 bytes) to locked memory, trying unlocked]
05/26/23 14:54:54.683895 zmc_m2[196427].DB1-zm_monitor.cpp/907 [Mapped file /dev/shm/zm.mmap.2 (161248808 bytes) to unlocked memory]
05/26/23 14:54:54.893552 zmc_m2[196427].DB1-zm_monitor.cpp/2370 [Reloading linked monitors for monitor AV5426PMIR-S, '']
05/26/23 14:54:54.895441 zmc_m2[196427].DB1-zm_monitor.cpp/1013 [Starting ONVIF]
05/26/23 14:54:54.976684 zmc_m2[196427].DB1-zm_monitor.cpp/1035 [ONVIF Endpoint: http://10.137.113.143/onvif/device_service/Events]
05/26/23 14:54:56.552243 zmc_m2[196427].DB1-zm_monitor.cpp/1053 [Good Initial ONVIF Pull]
05/26/23 14:54:56.555954 zmc_m2[196427].DB1-zm_db.cpp/191 [Success running sql query INSERT INTO Monitor_Status (MonitorId,Status,CaptureFPS,AnalysisFPS) VALUES (2, 'Running',0,0) ON DUPLICATE KEY UPDATE Status='Running',CaptureFPS=0,AnalysisFPS=0, thread_id: 38827]
05/26/23 14:54:56.558110 zmc_m2[196427].DB1-zm_ffmpeg_camera.cpp/178 [Priming capture from rtsp://10.137.113.143:554/stream1]
05/26/23 14:54:56.563217 zmc_m2[196427].DB1-zm_ffmpeg_camera.cpp/318 [Calling avformat_open_input for rtsp://10.137.113.143:554/stream1]
05/26/23 14:54:56.577306 zmc_m2[196427].DB1-zm_ffmpeg_camera.cpp/328 [Rebuilt URI with encoded parameters: 'rtsp://admin:IPC%5C271828gr@10.137.113.143:554/stream1']
05/26/23 14:55:07.046465 zmc_m2[196427].DB1-zm_ffmpeg_camera.cpp/601 [timeout in ffmpeg camera now 256425 - 256415 > 10 s]
05/26/23 14:55:07.084543 zmc_m2[196427].DB1-zm_ffmpeg_camera.cpp/394 [Failed to find decoder auto, falling back to auto]
05/26/23 14:55:07.087688 zmc_m2[196427].DB1-zm_ffmpeg.cpp/246 [Dumping stream index i(0) index(0)]
05/26/23 14:55:07.088655 zmc_m2[196427].DB1-zm_ffmpeg.cpp/252 [ Stream #0:0]
05/26/23 14:55:07.089521 zmc_m2[196427].DB1-zm_ffmpeg.cpp/260 [frame_size:0 stream timebase: 1/90000]
05/26/23 14:55:07.091009 zmc_m2[196427].DB1-zm_ffmpeg.cpp/265 [codec: h264 video]
05/26/23 14:55:07.091729 zmc_m2[196427].DB1-zm_ffmpeg.cpp/283 [, SAR 0:1 ]
05/26/23 14:55:07.093413 zmc_m2[196427].DB1-zm_ffmpeg.cpp/177 [90k stream tb numerator]
05/26/23 14:55:07.112631 zmc_m2[196427].DB1-zm_ffmpeg_camera.cpp/519 [Thread count? 1]
05/26/23 14:55:07.116895 zmc_m2[196427].DB1-zm_ffmpeg.cpp/215 [Dumping codec_context codec_type 0 video codec_id 27 h264 width 2592 height 1944 timebase 0/2 format yuvj420p profile 77 level 50 gop_size 12 has_b_frames 0 max_b_frames 0 me_cmp 0 me_range 0 qmin 2 qmax 31 bit_rate 0 extradata:28:00000001674d00329da80a203d7e59b8080808100000000168ee3c80]
05/26/23 14:55:07.118877 zmc_m2[196427].DB1-zm_ffmpeg.cpp/246 [Dumping stream index i(1) index(0)]
05/26/23 14:55:07.119399 zmc_m2[196427].DB1-zm_ffmpeg.cpp/252 [ Stream #0:1]
05/26/23 14:55:07.119725 zmc_m2[196427].DB1-zm_ffmpeg.cpp/260 [frame_size:0 stream timebase: 1/8000]
05/26/23 14:55:07.120195 zmc_m2[196427].DB1-zm_ffmpeg.cpp/265 [codec: pcm_mulaw audio]
05/26/23 14:55:07.120521 zmc_m2[196427].DB1-zm_ffmpeg.cpp/283 [, SAR 0:1 ]
05/26/23 14:55:07.121142 zmc_m2[196427].DB1-zm_ffmpeg.cpp/296 [profile -99 channels 1 sample_rate 8000]
05/26/23 14:55:07.202954 zmc_m2[196427].DB1-zm_packetqueue.cpp/681 [Didn't find a keyframe for stream 0, so returning the it to it]
05/26/23 14:55:07.205722 zmc_m2[196427].DB1-zm_monitor.cpp/3256 [Creating decoder thread]
05/26/23 14:55:07.295039 zmc_m2[196434].DB1-zm_monitor.cpp/1773 [Got Good Response! 0]
05/26/23 14:55:07.297581 zmc_m2[196434].DB1-zm_monitor.cpp/1783 [Got Motion Alarm!]
05/26/23 14:55:07.299318 zmc_m2[196434].DB1-zm_monitor.cpp/1793 [Triggered off ONVIF]
05/26/23 14:55:07.301335 zmc_m2[196434].DB1-zm_monitor.cpp/1797 [Setting ClosesEvent]
05/26/23 14:55:07.302765 zmc_m2[196434].DB1-zm_monitor.cpp/1783 [Got Motion Alarm!]
05/26/23 14:55:07.303840 zmc_m2[196434].DB1-zm_monitor.cpp/1793 [Triggered off ONVIF]
05/26/23 14:55:07.309424 zmc_m2[196434].ERR-zm_signal.cpp/50 [Got signal 11 (Segmentation fault), crashing]
05/26/23 14:55:07.358948 zmc_m2[196427].DB1-zm_monitor.cpp/3263 [Done restarting decoder]
05/26/23 14:55:07.373243 zmc_m2[196427].DB1-zm_monitor.cpp/3265 [getting analysis_it]
05/26/23 14:55:07.380564 zmc_m2[196427].DB1-zm_packetqueue.cpp/681 [Didn't find a keyframe for stream 0, so returning the it to it]
05/26/23 14:55:07.388163 zmc_m2[196427].DB1-zm_monitor.cpp/3271 [Starting an analysis thread for monitor (2)]
05/26/23 14:55:07.470631 zmc_m2[196432].DB1-zm_db.cpp/191 [Success running sql query INSERT INTO `Logs` ( `TimeKey`, `Component`, `ServerId`, `Pid`, `Level`, `Code`, `Message`, `File`, `Line` ) VALUES ( 1685138107.309424, 'zmc_m2', 0, 196434, -2, 'ERR', 'Got signal 11 (Segmentation fault), crashing', 'zm_signal.cpp', 50 ), thread_id: 38827]
That last thing that happened before the crash was an analysis thread was started for monitor 2?
Is analysis called for when Motion Detection is selected to be "None" on the Analysis configuration tab for monitor 2?
pygr