Jash
3ffcf6fdfd
fix: retry a failed zmtrigger monitor reload every ten seconds instead of four times a second refs #5856
2026-11-14 19:13:19 +05:30
Jash
f531d14471
fix: zmtrigger no longer dies when a monitor with unreachable shared memory is deleted refs #5856
2026-11-14 19:13:19 +05:30
Jash
44f13807d5
fix: ignore blank trigger messages instead of reloading every monitor from the database refs #5856
2026-11-14 19:13:19 +05:30
Jash
173cde1a39
fix: drop a pending zmtrigger cancel when a newer on or cancel arrives for the monitor refs #5856
2026-11-14 19:13:17 +05:30
Jash
1759a22afe
fix: keep a partial trigger message until its line ends instead of handling both halves refs #5856
2026-11-14 19:13:17 +05:30
Isaac Connor
985180b79f
Merge pull request #5709 from AJ0070/export-mp4-option
...
fix: honour the mp4 option in the event download modal
2026-11-13 18:18:54 -05:00
Isaac Connor
62100a1fd3
Merge pull request #5711 from AJ0070/export-flat-names
...
fix: prefix flat export file names so events don't collide
2026-11-13 18:16:49 -05:00
Isaac Connor
a712b7d382
Merge pull request #5717 from AJ0070/stream-lock
...
fix: serialise ajax/stream.php commands per connkey without leaking semaphores
2026-11-13 18:14:38 -05:00
Jash
ef2380e683
fix: lock stream commands with flock instead of a leaked SysV semaphore refs #5716
2026-11-13 14:29:33 +05:30
Jash
53454f9d82
fix: use milliseconds for the stream reply timeout refs #5716
2026-11-13 14:29:33 +05:30
Jash
0182c39438
fix: never send stream commands without the connkey lock refs #5716
2026-11-13 14:29:33 +05:30
Jash
4172a62758
fix: prefix flat export file names so events don't collide refs #5710
2026-11-13 14:15:07 +05:30
Jash
31959be5ff
fix: send correct content types and attachment disposition for exports refs #5708
2026-11-13 14:15:01 +05:30
Jash
adb04f5d33
fix: honour the mp4 option in the event download modal refs #5708
2026-11-13 14:15:01 +05:30
Isaac Connor
a050807668
Merge branch 'fix-1.39.38-controls-type'
2026-11-12 23:06:01 -05:00
Isaac Connor and Claude Opus 5.5
3de4820f42
fix: guard Controls.Type statements in the 1.39.38 migration
...
Upgrades stopped at 1.39.38 with ERROR 1054 "Unknown column 'Type' in
'where clause'" on databases that no longer had Controls.Type, leaving
the zoneminder package unconfigured. The column is dropped in 1.39.39,
but databases have been seen reaching 1.39.38 without it.
Run the Controls UPDATE and enum MODIFY only when the column exists,
using the same INFORMATION_SCHEMA check 1.39.39 uses before dropping
it. The two Controls UPDATEs are merged into one. Monitors and
MonitorPresets handling is unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-11-12 23:04:01 -05:00
Isaac Connor
00b01faa6c
Merge pull request #5626 from AJ0070/zmu-snapshot-ownership
...
fix: give snapshot packets their own image and handle a missing snapshot
2026-11-12 21:27:41 -05:00
Isaac Connor
c98bb49995
Merge pull request #5630 from AJ0070/zmu-options
...
fix: accept the documented zmu short options and exit non-zero on a bad option
2026-11-12 19:58:31 -05:00
Isaac Connor
55671fcd96
Merge pull request #5553 from AJ0070/5552-janus-pin-shm
...
perf: read the Janus pin from shared memory instead of running zmu
2026-11-12 19:52:58 -05:00
Isaac Connor
7a43d5a20b
Merge pull request #5534 from AJ0070/5533-blob-skip-black
...
perf: skip black pixels eight at a time when looking for blobs
2026-11-12 19:50:58 -05:00
Isaac Connor
a6b073c8f5
Merge pull request #5555 from AJ0070/5554-delete-path-no-shell
...
fix: delete event paths with File::Path instead of an unquoted rm -rf
2026-11-12 19:50:38 -05:00
Isaac Connor
e5de8d352b
Merge pull request #5518 from AJ0070/5517-zms-zone-count
...
perf: count zones instead of building them when a monitor is loaded without zones
2026-11-12 19:48:26 -05:00
Jash
951a82c165
fix: accept the documented zmu short options and exit non-zero on a bad option fixes #5629
2026-11-13 00:26:43 +05:30
Jash
0bbac0499f
fix: give snapshot packets their own image and handle a missing snapshot fixes #5625
2026-11-13 00:17:23 +05:30
Isaac Connor
4d474ded4e
Merge pull request #5567 from AJ0070/5563-zmaudit-batch-event-rows
...
perf: load the events zmaudit checks in batches of 1000 instead of one query each
2026-11-12 08:36:25 -05:00
Isaac Connor
31ee44e611
Merge pull request #5604 from AJ0070/5603-dbqueue-drain
...
fix: keep the DB queue writing until stop() so rows queued at shutdown are saved
2026-11-12 08:33:37 -05:00
Isaac Connor
981a5127bd
Merge pull request #5606 from AJ0070/5605-delete-storage-diskspace
...
fix: take a deleted event's DiskSpace off its Storage in the PHP delete
2026-11-12 08:32:39 -05:00
Isaac Connor
4647900ff0
Merge pull request #5608 from AJ0070/5607-jpeg-raw-any-width
...
perf: encode YUV420P jpegs of any width from the planes
2026-11-12 08:30:33 -05:00
Isaac Connor
7378e2ba17
Merge pull request #5610 from AJ0070/5609-amcrest-reconnect-leak
...
fix: delete the previous AmcrestAPI before connect() makes a new one
2026-11-12 08:26:23 -05:00
Isaac Connor
c7666dd297
Merge pull request #5612 from AJ0070/5611-privacy-mask-owner
...
fix: let the Monitor own its privacy mask image instead of delete[]ing its buffer
2026-11-12 08:25:31 -05:00
Isaac Connor
7e34c08cca
Merge pull request #5597 from AJ0070/5595-snapshots-sql-paging
...
perf: page the snapshots list in SQL instead of fetching every snapshot
2026-11-12 08:16:55 -05:00
Jash
148bc3c2cd
fix: let the Monitor own its privacy mask image instead of delete[]ing its buffer refs #5611
2026-11-12 10:22:12 +05:30
Jash
87d0f4333e
fix: delete the previous AmcrestAPI before connect() makes a new one refs #5609
2026-11-12 10:16:15 +05:30
Jash
2c1fcb003a
perf: encode YUV420P jpegs of any width from the planes refs #5607
2026-11-12 10:00:33 +05:30
Jash
3f635686a1
fix: take a deleted event's DiskSpace off its Storage in the PHP delete refs #5605
2026-11-12 09:49:11 +05:30
Jash
351f096974
fix: keep the DB queue writing until stop() so rows queued at shutdown are saved refs #5603
2026-11-12 09:41:22 +05:30
Isaac Connor
e9e446e12f
Merge pull request #5600 from AJ0070/5599-zone-fill-step
...
perf: step polygon fills by density instead of testing every pixel
2026-11-11 22:54:21 -05:00
Jash
9ec9b43d62
perf: step polygon fills by density instead of testing every pixel refs #5599
2026-11-12 09:04:48 +05:30
Isaac Connor
bff634b713
Merge pull request #5598 from connortechnology/fix/delta-nonaligned-width-sse-crash-master
...
fix: handle a non-block-aligned row width in Image::Delta
2026-11-11 22:10:52 -05:00
Isaac Connor and Claude Opus 4.8
bb7204449b
fix: handle a non-block-aligned row width in Image::Delta
...
The delta8_* helpers consume whole blocks per iteration (16 pixels for
the gray8 unrolled/SSE2/NEON variants, 4 pixels for the rgb32 ones). The
SSE2 and NEON variants require the pixel count to be an exact multiple of
that block: a shorter count wraps the loop counter past zero and runs off
the end of memory, and the unrolled C variants overrun by up to a block.
Since PR #4788 made Delta stride-aware it drives those helpers row by row
with the row width as the count. update_function_pointers() only falls
back to the scalar helpers when total pixels % 4 is non-zero, which does
not imply each row width is block-aligned. A monitor whose width is not a
multiple of 16 (e.g. 1366) therefore reaches sse2_delta8_gray8 with a
count of 1366 and zmc dies with SIGSEGV in that loop.
Run the block-aligned bulk of each row through the fast/SIMD helper and
finish the remaining tail pixels with the matching one-pixel-at-a-time
scalar helper.
tests/zm_image_delta.cpp exercises gray8 (widths 17 and 1366) and rgb32
(width 6) at counts that select the SIMD path; each reproduces the crash
on the unfixed code and verifies the per-pixel result on the fix.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-11-11 21:53:49 -05:00
Isaac Connor
d34f26d14c
Merge pull request #5538 from AJ0070/5537-daemon-check-once
...
perf: ask zmdc.pl whether ZoneMinder is running once a request
2026-11-11 21:49:14 -05:00
Isaac Connor
600414089d
Merge pull request #5542 from AJ0070/5541-zmfilter-object-cache
...
fix: clear the object cache on every zmfilter pass so handled events are freed
2026-11-11 21:45:12 -05:00
Isaac Connor
45550fea91
Merge branch 'master' of github.com:ZoneMinder/zoneminder
2026-11-11 21:22:56 -05:00
Jash
c1e8f9d453
fix: leave out the WHERE clause in the snapshots list when the search terms give no SQL refs #5595
2026-11-12 06:02:28 +05:30
Isaac Connor
b6154ee8aa
Merge pull request #5571 from AJ0070/5570-curl-timeouts
...
fix: give the Janus, go2rtc and RTSP2Web curl requests connect and total timeouts
2026-11-11 19:28:22 -05:00
Jash
01e5acb46f
perf: page the snapshots list in SQL instead of fetching every snapshot fixes #5595
2026-11-12 05:46:58 +05:30
Isaac Connor
06c093c44b
Merge pull request #5572 from AJ0070/5568-zmaudit-lazy-start-time
...
perf: work out a filesystem event's start time in zmaudit only when it is needed
2026-11-11 19:14:48 -05:00
Isaac Connor
7dd72fd1c2
Merge pull request #5576 from AJ0070/5574-upload-failure
...
fix: stop zmfilter treating a failed FTP or SFTP upload as done
2026-11-11 19:14:20 -05:00
Isaac Connor
343b302bba
Merge pull request #5577 from AJ0070/5573-event-stream-stopped
...
fix: keep a stopped event stream sending keepalives and sleeping so zms notices a closed viewer
2026-11-11 19:12:47 -05:00
Isaac Connor
122dddf8d2
Merge pull request #5578 from AJ0070/5575-videostream-delete
...
fix: free VideoStream codec_and_format with delete[]
2026-11-11 19:12:07 -05:00