1. First checks
- Read the recorder lines when a recording starts:
Recorder: N files (N frame items, N stream directions), the capture mode, the frame ring, therecRateitems with their period, and the I/O of every drive (drive 0: ioMode direct ...). - Open the profile view (Profiler) while recording and compare
Recording data ratewithdisk rate, theRecording ring(now / min / max / size) andRecording drops(frames dropped, stream messages dropped, late captures, write errors). See Runtime performance report. - Read the close report: frames recorded and dropped per drive, MB/s, write errors, and the
recRate itemsline. - No recorder lines at all? They need
"report": 1(configuration) or2(also the item table) in therecordersection; errors and warnings are always shown. Two folders and the tables printed twice: a model calledStartRecording()after the boot session opened; set"startRecording": "model". - Decide which of the two problems you have (section 3): the drive does not keep up (ring fills), or the copy of a frame does not fit in one minor frame (ring empty, many late captures).
2. Message reference
| Message | Cause | What to do |
|---|---|---|
Recorder: data dropped, the disk does not keep up (see recorder ioMode, ringMB) (warning) | The frame ring was full: the drive writes slower than the recorded data. | See section 3.1. |
Recorder: memory allocated while running: frame ring of N KB (... allocate it at init: ringMB, or record the items from the start) (warning) | A ring was larger than the one set aside at engine init; allocating it (and touching its memory) while running can stall the engine for a moment. | Raise ringMB to the size the message names. |
Recorder: memory allocated while running: recRate ring of N KB (... set the recorder rateRingMB to M or more to set it aside at start) (warning) | rateRingMB is 0 (auto): the ring of the recRate items was allocated when the first session opened. | Set "rateRingMB": M (or more) in the recorder section. |
Recorder: rateRingMB N is less than 4 copies of the recRate items, M MB used (warning) | The ring must hold at least 4 copies of the recRate items. | Set rateRingMB to M or more. |
Recorder: item '<name>': recRate '<text>' is not valid: ... (error)config.json recorder coredb '<name>': recRate must be ... (error) | The recRate text or JSON type is wrong. The item is recorded as before (one minor frame). | A number = ms, "30hz", "1khz", "1mhz" or "auto". See recRate. |
Recorder: SetRecordingRate: '<name>' is not a recording item (add it first) (warning) | CRecorder::SetRecordingRate was called for a name that is not in the item list. | Call AddRecordingItem first (or use its recRate argument), with exactly the same name (a wildcard item: the same "LRU.*" text, before PrepareRecording). |
Start report: <item>: auto, the block has no framePerMS in streams.json: one minor frame | recRate: "auto", but the item's block is in no streams.json stream or its framePerMS is 0. Values of drivers are never used. | Give the block a framePerMS, or give the item a number / Hz. |
Start report: <item>: N ms is not more than one minor frame (M ms): one minor frame | The item's data changes every frame (or faster): there is nothing to gain. | Nothing, or check the value. |
Recorder: '<dir>' has no files of the recording items (playback) | The played recording does not contain the configured items, or a copied recording's other drives were not found. | See playbackPath / playbackDrives. |
Recorder: the recording was made with LRU version 'X', this engine has 'Y': the played values can be wrong (warning) | The engine's LRU is another version than the one of the recording. | Play it with the engine version that recorded it. |
Streams: stream '<name>', block <block>: framePerMS '<text>' is not valid ... (error) | A streams.json framePerMS text that is neither a number nor Hz (also read by recRate: "auto"). | A number (ms), "100hz" ("100herz"), "1khz", "1mhz". |
3. Symptoms
Small items (INS) lose messages while a camera image is recorded
An INS block with a recRate next to a 10.6 MB camera image used to lose about 2 messages at every camera frame: it shared the recRate lane and waited behind
the long image copy while its block was overwritten. Now only records of captureThresholdKB (256 KB) and more go to the recRate lane; smaller ones
are copied in the frame every frame they change (start report: N small (under captureThresholdKB ...), copied in the frame lane;
detailed table note small record: copied every frame it changes). Gaps in the msgCounter of such an item mean an old build.
3.1 The ring fills, frames are dropped: the drive does not keep up
Recording ring max near its size, disk rate lower than data rate for a long time, the warning data dropped, the disk does not keep up.
Use a faster drive (ioMode direct on an SSD), spread big items over several drives (drives + item storage),
record less (recordOnlyOnChange, engSize / rawSize), or enlarge ringMB for short bursts.
On a rotating disk many items mean many files and seeks. The benchmark key measures the drive (benchmark).
3.2 Many late captures and dropped frames, the ring stays almost empty: an item too big for one minor frame
Example (CAMRnD, 1 ms minor frame, a 10.6 MB camera image at 30 fps): Recording drops = 1468 frames | 0 msgs | 1535 late | 0 errors,
Recording ring 0 B now (20 MB max of 537 MB), disk rate = data rate = 142 MB/s.
The drive keeps up; the copy into the ring does not: each minor frame's copy must end before the next minor frame starts (it may change the data), and copying 10.6 MB takes about 1 ms.
Late copies are aborted and tried again; the other items of those frames are dropped with them.
Fix: tell the recorder how often the image really changes, recRate:
"recorder": { ..., "rateRingMB": 128,
"coredb": { "CAM.cam.frame": { "recRate": "30hz" } } } // or in code: AddRecordingItem(name, size, 0, true, nullptr, "30hz")
The image then gets its own capture lane: its copy may take up to 33 frames, the other items are still recorded every frame. Measured with CAMRnD and a 2592 x 2056 16-bit GigE camera: without recRate 433..467 frames dropped in 20 s, with recRate 0 dropped, 0 late, every received image recorded.
Also check:
- Image size: a camera set larger than needed (or a camera that scales its picture up) records many MB per image for nothing.
- Recorder
affinity: the recorder's threads (a writer thread and a capture thread per drive and lane, the control thread) on ONE core, maybe shared with other threads, make the capture thread start late. Give the recorder cores of its own, not used byRealTime("0,*"= core 0 and every core after it). Recording capturemax near 1 ms: the frame copied a big item itself because the capture thread had not started in time (counted as late). recRate and the affinity fix it.onOverflow: "wait"drops nothing, but the frame waits for every late copy (the frame overruns).
3.3 Recording rate items shows changed
The data of a recRate item changed while it was copied: the copy is dropped (it would mix two images) and counted. The declared rate is slower than the real one:
declare the fastest rate the data can change at (a camera that delivers in bursts: a little faster than its nominal rate, e.g. "40hz" for 30 fps).
With "auto": an in-block that publishes whenever a message arrives can change more often than its framePerMS.
The check finds most such cases, not all (a writer that counts the message only after changing the data can finish after the check).
3.4 Recording rate items shows late
A recRate copy was still running when its data could change (or its thread had not started one frame before): it was dropped (onOverflow: "drop") or waited for.
The copy takes longer than the item's period: check the recorder affinity / priority (the capture thread is not scheduled) and the copy time in the row (max).
3.5 The engine crashed at start with a framePerMS in Hz
Before 2026-10-20 a streams.json framePerMS text with hz was read from the wrong position: "10hz" crashed the engine (access violation before the first report),
"100hz" was taken as 1000 ms. Fixed; values written "50herz" were read right and stay the same.