Troubleshooting
This document collects troubleshooting guidance for the Raptor SDK, in three parts:
- General: issues that apply to the whole SDK, and what to collect when reporting a crash, hang or performance problem to Vantor support.
- PoseEstimator: poor-quality results, covariance and performance, and how to use
Vantor 3D Explorer to visually debug the CANV recordings produced by the
refine_canv_poses.pytool and by Debug Capture. - AttitudeTracker: missing estimates, low FOM, and misaligned results.
General
These issues can occur with either class.
Initialization Failures
Problem: Context, PoseEstimator or AttitudeTracker construction throws an exception
Solutions:
- Ensure map files (
.r3db,.3tzor.3dtiles.zip) exist and are readable - Check the license path and license; see the License Management Guide
- Check that geo resources are found; see Geo Resources
- Check available RAM/GPU memory (minimum 4GB required, 8GB recommended)
- Verify Vulkan-compatible GPU and drivers; see Vulkan
- Use absolute paths for reliability
See Initialization errors for the exception types.
Reporting crashes, hangs and performance problems
The shipped libraptor has no internal debug information, so a backtrace or
profile taken on your machine shows most SDK frames as ?? or as raw
addresses. Vantor support keeps matching debug information for every released
build and can resolve them, provided the report contains the items below.
The commands in this section are for Linux and use standard tools (readelf,
gdb, gcore, perf). Install them from your distribution's package
manager if they are missing.
Information to include in every report
-
Raptor SDK version, as returned by
raptor::Context::version()(major.minor.patch,revisionandref). -
Platform: OS and version, CPU architecture, and the Jetson Linux (L4T) version if relevant.
-
The build ID of the
libraptoryour application loads. It identifies the exact library build:readelf -n /path/to/libraptor.so.1 | grep "Build ID" -
Raptor log output, preferably at
raptor::LogLevel::Debug(see Logger Configuration). -
Steps to reproduce the problem.
Crash (segmentation fault, abort, uncaught exception)
Preferred: a core dump. A core dump is a snapshot of the process memory at the time of the crash.
# Enable core dumps in the shell that starts the application
ulimit -c unlimited
./your_app ...
# On systems with systemd-coredump, export the core instead
coredumpctl list
coredumpctl dump <PID> -o core.your_app
Send the core file, your application binary, and the libraptor.so* files
your application loaded.
Note: A core dump contains the memory of your process, which can include images, configuration and license data. If you cannot share it, send a gdb backtrace instead.
Alternative: a gdb backtrace.
gdb -batch -ex run -ex "thread apply all bt" -ex "info proc mappings" \
--args ./your_app ...
Send the complete output. The info proc mappings part is required: it
contains the address where libraptor was loaded, without which the ??
frames cannot be resolved.
Hang or deadlock
While the process is hanging, write a core dump of the running process and send it as described for a crash:
gcore <PID> # writes core.<PID>
If you cannot share a core dump, send a backtrace of all threads instead:
gdb -p <PID> -batch -ex "thread apply all bt" -ex "info proc mappings"
Performance problem
Record a CPU profile with perf:
perf record -F 999 --call-graph dwarf -o perf.data -- ./your_app ...
# or attach to a running process for 30 s:
perf record -F 999 --call-graph dwarf -o perf.data -p <PID> -- sleep 30
perf archive perf.data # bundles the binaries perf.data refers to
Send both perf.data and perf.data.tar.bz2. The --call-graph dwarf
option is required. If perf record fails with a permission error, the
kernel.perf_event_paranoid setting on your machine does not allow
unprivileged profiling; lower it or run perf as root.
PoseEstimator
See Error Handling for the meaning of each PoseEstimationError.
Poor Quality Results
Problem: Low Confidence (confidence < 0.7) or PoseEstimationError::Failed
Root Causes & Solutions:
-
Initial pose too inaccurate
- If the initial pose is too far off, the algorithm may fail to find a good match
- Provide covariance matrix reflecting actual uncertainty
-
Camera calibration mismatch
- Verify FOV values match actual camera calibration
- Make sure the lens model matches the image: either undistort the image and pass a pinhole model, or pass the matching radial model for the distorted image (see Lens Model)
-
Image quality issues
- Ensure sufficient contrast and texture in image
- Check for motion blur or focus issues
-
Map Coverage problems
- Verify 3D map covers your area of interest
- Check map resolution is sufficient for your altitude
-
Correlation mismatch between image and map
- If the image contains water bodies and/or sky, the correlation with the map will be poor.
- Verify the map covers the area with sufficient detail
- If the terrain has changed since the map was created (e.g. construction, natural disasters), the correlation will also be poor.
Covariance Configuration Issues
Problem: Estimation failures with uncertain initial poses
Solutions:
- Always provide covariance when pose uncertainty is high
- Set variance values to match actual uncertainty (not smaller); see Prior Pose Covariance
- Monitor success rates and adjust covariance accordingly
Performance Issues
Problem: Processing too slow for real-time applications
Solutions:
- Set
EstimationOptions::maxTimefor time-limited processing - Reduce the
detailStage1anddetailStage2Configvalues - Provide appropriate covariance to focus search area
Debugging CANV recordings with 3D Explorer
Vantor 3D Explorer can load a CANV recording, project each frame onto the loaded 3D map, and replay the camera trajectory. Because it renders the same 3D data the SDK matches against, it is the most direct way to visually judge whether a pose is correct: when the pose is right, the video frame projects onto the terrain so that image features line up with their counterparts on the map; when the pose is wrong, the projection is visibly offset or tilted.
Where the CANV recordings come from
Two SDK workflows produce CANV recordings that are useful to inspect this way:
refine_canv_poses.pywrites an output CANV (--output refined.canv) in which each frame carries Raptor's refinedposition,attitude,metrics.covariance_matrix,metrics.confidence, and anextras.raptor_guideblock. Keep the original input recording too — comparing input vs. refined is one of the most useful checks (see below).PoseEstimator::startDebug()/stopDebug()records everyupdatePose()/updatePosition()call made by your own integration into a CANV archive, so you can replay exactly what the SDK saw in production.
Loading a CANV recording
- Add the 3D map the recording was refined against to the workspace —
alignment can only be judged against the same map data. Right-click the
workspace, click Add, then click Vivid Terrain Dataset for a 3DSM
(
.r3db) map or 3D Tiles for a 3D Tiles dataset. Browse to the dataset, click Get layers, and click OK. - Right-click the workspace, click Add, then click Canonical Video.
- In the URL box, browse to the
.canvfile and click Get layers. A single-stream recording (such as arefine_canv_poses.pyoutput) yields one layer; a Debug Capture recording yields several (see the note below). - Double-click the layer to navigate to the recording, then use the timeline playback controls to play it back.
Note: A Debug Capture (
startDebug()) recording is self-describing and exposes three streams as separate layers when you click Get layers:camera_initial(the input camera image with the input pose),camera_refined(the same image with Raptor's refined pose), andrendered(the SDK's own rendered view of the map at the input pose). Add whichever layers you need: overlayingcamera_refinedand comparing it againstrenderedshows directly how the refined pose lines up with what the SDK matched against, whilecamera_initialvs.camera_refinedshows the correction the refinement applied.
Checking pose alignment against the map
This is the primary sanity check for a refined pose:
- Select the video overlay and click Align camera to place the 3D view at the exact position and orientation of the current frame's camera — you are now looking "through" the estimated pose.
- Compare the projected video frame with the underlying 3D terrain:
- Good pose — buildings, roads, and terrain edges in the video line up with the same structures on the map.
- Bad pose — the projection is shifted, rotated, or scaled relative to the map. A consistent shift across the whole recording usually points at a systematic input error (e.g. wrong height system, lens FOV, or platform-to-camera mounting), whereas erratic per-frame jumps point at low-confidence frames.
- Step frame by frame to find exactly which frames are misaligned, then
cross-reference those frame indices with the per-frame log printed by
refine_canv_poses.py.
Inspecting per-frame CANV metadata
Both the player window (opened by clicking the video layer in the workspace) and the Video Comparison window can show the raw CANV metadata next to the image:
- Click Set layout and choose one of the table layouts (metadata below / left / right of the video, or in a separate tab) to reveal the metadata table.
- Open the Canonical Metadata tab. As you scrub the timeline it lists the
per-frame values the SDK wrote —
position,attitude,lens,metrics.confidence, andmetrics.covariance_matrix.
Use this to confirm the values Explorer is drawing match the per-frame log from
refine_canv_poses.py (or the extras.raptor_guide block in a Debug Capture
recording).
Comparing the input and refined recordings
To see what the SDK actually changed, load both the original recording and the
refined.canv and compare them:
- Select both canonical video layers in the workspace, right-click, then click Compare Videos... to open the Video Comparison window (up to six videos side by side, all overlays shown simultaneously in the 3D view).
- Click Build Track on each to draw its flight path.
- Click Covariance to toggle a covariance ellipsoid at the camera
position for the current frame (only available when the frame carries
metrics.covariance_matrix, which refined CANV frames do). The ellipsoid visualizes the positional uncertainty only — it is derived from the position block of the covariance and does not depict the attitude (orientation) uncertainty. An implausibly large ellipsoid flags a frame whose refined pose should be treated with caution.
Flipping between overlays
To rapidly A/B the two recordings directly in the 3D view, add both layers to a
flip group: select both layers in the workspace, right-click, then click
Add to flip group. With the workspace in flip-group mode, press the
, (comma) / . (period) keys — or the index number shown next to each
layer — to flip between them. Because both project onto the same terrain, a
shift visible while flipping is exactly the pose change the refinement applied
(or, for a Debug Capture recording, the residual between camera_refined and
rendered).
Persisting a flight path as a layer
Build Track in the comparison window is transient. To keep a flight path as
its own workspace layer, use the Video Path tool: click Tools, then
Video toolset > Video Path, drag the canonical video into the
Add video dataset box, choose the Flight path / Look at path /
Direction visualizations, enter an Output name, and click Start.
Generating a path layer for both the input and refined recordings lets you
compare the two trajectories on the terrain after the comparison window is
closed.
Canonical Video Analysis
The Canonical Video Analysis tool runs a per-frame geometric analysis and flags problematic frames, which maps closely onto the SDK quality concepts:
- Right-click the video layer and click Canonical Video Analysis.
- Drag the mesh/3DSM dataset into the Mesh dataset box.
- Select a frame range on the frame bar and click Process frames.
- Frames with issues are colored in the frame bar; use the navigation buttons to jump between them.
The reported metrics relate back to the SDK as follows:
| Explorer metric | SDK relevance |
|---|---|
| Mesh Coverage | Mirrors PoseOutput::mapCoverage; low coverage means the view falls outside the map and correlates with low confidence (see Map Coverage problems). |
| Sky Visible | High sky fraction is a common cause of poor correlation (see Correlation mismatch). |
| Confidence | The metrics.confidence written per frame by refine_canv_poses.py. |
| Height Above Ground / Pitch Angle / Footprint | Sanity-check the geometry of the refined pose against the terrain. |
Note: Explorer's analysis results are approximate and intended as guidance; treat them as a way to locate suspect frames, then confirm with the SDK's
confidenceandmapCoveragevalues.
Plotting per-frame parameters
To spot trends across a recording (e.g. an altitude bias or a drifting attitude), right-click the video dataset and click Plot parameter, then select Yaw, pitch, roll, Field of view, Altitude (EGM2008), or Height above terrain and click Start. Plotting the same parameter for the input and refined recordings side by side highlights exactly which pose component the refinement adjusted.
AttitudeTracker
See Errors and frames without estimates
for the meaning of each AttitudeTrackerError.
InvalidInput
Problem: update() returns AttitudeTrackerError::InvalidInput
Solutions:
- Check that timestamps are positive and strictly increasing for the tracker. Create a new tracker when replaying or seeking to earlier capture times.
- Check the image dimensions and storage, and the lens and pose values; see Input Requirements
Frequent EstimationFailed or low FOM
Problem: Many frames return AttitudeTrackerError::EstimationFailed, or FOM stays low
Root Causes & Solutions:
- Image or map content — the same causes as for
PoseEstimatorapply: low contrast or texture, motion blur, sky or water in the view, terrain changes since the map was made, or a view outside the map (see Poor Quality Results). - Calibration mismatch — supply the calibration of the image actually passed, including zoom, crop and resampling, with the matching lens model (see Lens Model).
- Recent input change — results may be unavailable for some frames after the image size or calibration changes (see New sequences and changed inputs).
- Discontinuous sequence — do not concatenate unrelated recordings into one tracker; create a new tracker for each sequence.
Keep calling update() after EstimationFailed; do not reset timestamps or recreate the tracker for
every such frame.
Misaligned results despite an acceptable FOM
Problem: The returned orientation looks wrong when the image is projected onto the map
Root Causes & Solutions:
AttitudeTrackerkeeps the supplied position and only refines orientation and lens. An inaccurate supplied position causes misalignment that a correct orientation cannot remove; check the navigation source, height system and CRS (see Coordinate Reference Systems).- FOM describes match quality; it is not a bound on pose error. Validate your acceptance threshold with representative imagery and independent reference data (see FOM and acceptance).
Further reference
- SDK integration and the
Config/EstimationOptionsknobs referenced above: Integration Guide, PoseEstimator Integration Guide and AttitudeTracker Integration Guide - Confidence and covariance interpretation: Uncertainty
- Producing the CANV recordings:
python/tools/README.mdand Debug Capture