# Global Localization Playback Mode - GNSS Ingest Error and Termination (Initial X not PSD)

**URL:** <https://community.stereolabs.com/t/global-localization-playback-mode-gnss-ingest-error-and-termination-initial-x-not-psd/8604>\
**Category:** Python\
**Tags:** python, jetson\
**Created:** [April 15, 2025, 2:13pm UTC](https://community.stereolabs.com/t/global-localization-playback-mode-gnss-ingest-error-and-termination-initial-x-not-psd/8604 "2025-04-15T14:13:37Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![karthikreddy157](https://community.stereolabs.com/user_avatar/community.stereolabs.com/karthikreddy157/32/3555_2.png) [@karthikreddy157](https://community.stereolabs.com/u/karthikreddy157)\
**Post date:** [April 15, 2025, 2:13pm UTC](https://community.stereolabs.com/t/global-localization-playback-mode-gnss-ingest-error-and-termination-initial-x-not-psd/8604/1 "2025-04-15T14:13:37Z")

</div>

Hi Team,

I am currently running the Global Localization module in **playback mode with inference enabled** , and after a certain amount of time, the process terminates unexpectedly with the following error:

```auto
Ingest error occurred when ingesting GNSSData: GNSS DATA COVARIANCE MUST VARY
[2025-04-15 13:26:22 UTC][ZED][WARNING] An internal error occurred while performing geotracking fusion for [GeoTracking]. Please verify your input GNSS data. Restarting GNSS and VIO calibration...
terminate called after throwing an instance of 'Bayesian_filter::Numeric_exception'
  what(): Initial X not PSD

```

This appears to happen when the system tries to fuse GNSS data, and it fails due to invalid covariance or non-varying values. A restart of GNSS and VIO calibration is triggered, followed by a crash with the **“Initial X not PSD”** error.

Let me know if any logs or data samples are needed for further investigation.

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![Myzhar](https://community.stereolabs.com/user_avatar/community.stereolabs.com/myzhar/32/11_2.png) [@Myzhar](https://community.stereolabs.com/u/Myzhar)\
**Post date:** [April 16, 2025, 5:32pm UTC](https://community.stereolabs.com/t/global-localization-playback-mode-gnss-ingest-error-and-termination-initial-x-not-psd/8604/2 "2025-04-16T17:32:34Z")

</div>

Hi @karthikreddy157  
are you using fixed values for the GNSS Data covariance?

---

<div class="post-metadata">

**Author:** ![karthikreddy157](https://community.stereolabs.com/user_avatar/community.stereolabs.com/karthikreddy157/32/3555_2.png) [@karthikreddy157](https://community.stereolabs.com/u/karthikreddy157)\
**Post date:** [April 17, 2025, 8:55am UTC](https://community.stereolabs.com/t/global-localization-playback-mode-gnss-ingest-error-and-termination-initial-x-not-psd/8604/3 "2025-04-17T08:55:52Z")

</div>

Hi @Myzhar

> [@Myzhar](#):
>
> are you using fixed values for the GNSS Data covariance?

Yes, Because of it these issue happening ?

---

<div class="post-metadata">

**Author:** ![Myzhar](https://community.stereolabs.com/user_avatar/community.stereolabs.com/myzhar/32/11_2.png) [@Myzhar](https://community.stereolabs.com/u/Myzhar)\
**Post date:** [April 17, 2025, 10:49am UTC](https://community.stereolabs.com/t/global-localization-playback-mode-gnss-ingest-error-and-termination-initial-x-not-psd/8604/4 "2025-04-17T10:49:53Z")

</div>

> [@karthikreddy157](#):
>
> Yes, Because of it these issue happening ?

Yes, that’s exactly what this error message means:  
`Ingest error occurred when ingesting GNSSData: GNSS DATA COVARIANCE MUST VARY`

We are investigating the cause of the crash, this should not happen.

---

<div class="post-metadata">

**Author:** ![karthikreddy157](https://community.stereolabs.com/user_avatar/community.stereolabs.com/karthikreddy157/32/3555_2.png) [@karthikreddy157](https://community.stereolabs.com/u/karthikreddy157)\
**Post date:** [April 25, 2025, 8:20am UTC](https://community.stereolabs.com/t/global-localization-playback-mode-gnss-ingest-error-and-termination-initial-x-not-psd/8604/5 "2025-04-25T08:20:10Z")

</div>

Hi @Myzhar  
Thanks for the clarification earlier.

I understand that using fixed GNSS data covariance values can lead to the error:  
**“GNSS DATA COVARIANCE MUST VARY”** , and potentially trigger a crash due to **“Initial X not PSD”**.

However, I have a doubt. I’m using a ZED Box with the internal GPS receiver connected to a u-blox GNSS antenna, but **without any NTRIP subscription**. In this setup, I do receive GPS signals with the status **“3D fix”** , and I’m also getting `eph` and `epv` values.

When I use these `eph` and `epv` values to build the GNSS data covariance and ingest it, the `get_geo_pose()` output from the fusion module seems to be incorrect.

But if I hardcode the covariance as:

```auto
0.002, 0, 0,  
0, 0.002, 0,  
0, 0, 2.0

```

then the `get_geo_pose()` output appears to be accurate — I’ve verified this multiple times.

Also worth noting:

**When I use the same hardcoded covariance values in live mode, the fusion doesn’t raise any issue and continues to work correctly.So I have a few questions:**

1. Does the `gpsdclient` provide accurate `epv` and `eph` values even without an NTRIP correction service?
2. Are there any unit conversions I should apply to `epv` and `eph` before using them for covariance?
3. Is there anything I might be missing in the GNSS data preparation or fusion pipeline?

Note: I’m using your Global Localization example from GitHub without any modifications.

Thanks again for your support!

Best regards,  
Karthik

---

<div class="post-metadata">

**Author:** ![TanguyHardelin](https://community.stereolabs.com/user_avatar/community.stereolabs.com/tanguyhardelin/32/1298_2.png) [@TanguyHardelin](https://community.stereolabs.com/u/TanguyHardelin)\
**Post date:** [April 28, 2025, 11:43am UTC](https://community.stereolabs.com/t/global-localization-playback-mode-gnss-ingest-error-and-termination-initial-x-not-psd/8604/6 "2025-04-28T11:43:31Z")

</div>

Hello @karthikreddy157,  
Thanks for your message ! What is your SDK version / zedbox model used to launch your sample ? Is it possible to share SVO2 with us (in order to reproduce) ?

To answer to your question:

```auto
Does the gpsdclient provide accurate epv and eph values even without an NTRIP correction service?

```

This is sometime an issue. In our tests we figure out that sometime, gpsdclient seems to under-estimate the covariance of the GNSS signal. Especially in canyoning scenario. In that case applying a scale to the covariance might be an option.

```auto
Are there any unit conversions I should apply to epv and eph before using them for covariance?

```

Normally no.

```auto
Is there anything I might be missing in the GNSS data preparation or fusion pipeline?

```

If you are using our sample the GNSS data preparation should be already implemented.

---

<div class="post-metadata">

**Author:** ![karthikreddy157](https://community.stereolabs.com/user_avatar/community.stereolabs.com/karthikreddy157/32/3555_2.png) [@karthikreddy157](https://community.stereolabs.com/u/karthikreddy157)\
**Post date:** [April 29, 2025, 11:08am UTC](https://community.stereolabs.com/t/global-localization-playback-mode-gnss-ingest-error-and-termination-initial-x-not-psd/8604/7 "2025-04-29T11:08:12Z")

</div>

Hi @TanguyHardelin  
Thanks for your response!

- **SDK Version** : 4.2.5
- **ZED Box Model** : GTW-ONX1F563O6C
- **SVO2 Sample File** :

```auto
https://drive.google.com/file/d/1agzO9fREMuPawLhEHryD14_iPxAzUPOn/view?usp=sharing

```

- **JSON file** :

```auto
https://drive.google.com/file/d/1rgLwBEqeaJf80LrtRWhNrCw9TKMK6CHE/view?usp=sharing

```

Please let me know if you need any additional information or configurations from our side to help reproduce the issue.

Also, could you please let us know the **maximum vehicle speed** we can maintain to achieve good sensor fusion accuracy, assuming a camera frame rate of **60 FPS**?

You can view the visualized fusion results here:

on original covariance

 ![Screenshot 2025-04-29 at 4.11.09 PM](https://community.stereolabs.com/uploads/default/original/2X/2/2e1d9b03a22793ff2825e4ae7c921b820f0e2c2d.jpeg)

on hardcoded covariance

 ![image](https://community.stereolabs.com/uploads/default/original/2X/b/bf2face8a8a14499cf4c1ca15f0a8bc697a1f175.jpeg)

Looking forward to your insights.

Best regards,  
@karthikreddy157

---

<div class="post-metadata">

**Author:** ![TanguyHardelin](https://community.stereolabs.com/user_avatar/community.stereolabs.com/tanguyhardelin/32/1298_2.png) [@TanguyHardelin](https://community.stereolabs.com/u/TanguyHardelin)\
**Post date:** [April 30, 2025, 3:35pm UTC](https://community.stereolabs.com/t/global-localization-playback-mode-gnss-ingest-error-and-termination-initial-x-not-psd/8604/8 "2025-04-30T15:35:24Z")

</div>

Thank you for sharing the details. I wasn’t able to reproduce the issue you described, but I can provide some guidelines based on the information you’ve shared.

For the type of environment present in your SVO, I recommend using the GEN\_1 positional tracking mode with the NEURAL depth mode. This configuration will be better suited than GEN\_2, especially for higher speeds.

Your hard-coded covariance seems quite low. I understand your intention: setting the GNSS data with low covariance will produce a fused path that closely follows the GNSS signal. While this approach can work, I suggest using a higher covariance (something like centimeter-level covariance would be ideal). If you proceed with this, be mindful of GNSS edge cases, such as canyoning, which are common in your use case.

Based on these guidelines, your issue should be resolved. Could you confirm if this helps?

---

<div class="post-metadata">

**Author:** ![karthikreddy157](https://community.stereolabs.com/user_avatar/community.stereolabs.com/karthikreddy157/32/3555_2.png) [@karthikreddy157](https://community.stereolabs.com/u/karthikreddy157)\
**Post date:** [May 2, 2025, 10:15am UTC](https://community.stereolabs.com/t/global-localization-playback-mode-gnss-ingest-error-and-termination-initial-x-not-psd/8604/9 "2025-05-02T10:15:04Z")

</div>

Hi @TanguyHardelin  
Thanks again for your guidance

> [@TanguyHardelin](#):
>
> For the type of environment present in your SVO, I recommend using the GEN\_1 positional tracking mode with the NEURAL depth mode. This configuration will be better suited than GEN\_2, especially for higher speeds.

As you suggested i have set my mode to NEURAL but while ingesting GNSS to zed i am getting INVALID TIMESTAMP issue apart from any Non performance depth mode iam getting **INVALID TIMESTAMP** but As u informed in **[the difference is expected to be less than 4 seconds](https://community.stereolabs.com/t/issue-with-invalid-timestamp-during-gnss-fusion-in-non-performance-depth-modes-real-time-global-localization/8579)** i have verified difference betweeb GNSS Time and sl.getCurrentTimeStamp() it is less than a second still iam getting INVALID TIMESTAMP.

### Observations:

- The GNSS timestamp and the `sl.getCurrentTimeStamp()` are **less than 1 second apart** , which is well within the \<4s threshold mentioned in the docs.
- The issue disappears when switching to a **performance depth mode** (e.g., `PERFORMANCE`).
- The error **only occurs in NEURAL and other non-performance depth modes** , which are necessary for our use case due to the scene’s complexity and speed.

**CODE**

 ![image](https://community.stereolabs.com/uploads/default/original/2X/5/51d9fbdb5264c2f819ed12bd85bb3f0283c86068.jpeg)

**LOGS**

 ![image](https://community.stereolabs.com/uploads/default/original/2X/b/b317fda4364510e3985cf2c709c1d1f6e5ada7c0.jpeg)

### Additional Notes:

- As you suggested earlier, we are actively working on increasing the GNSS covariance to assist with fusion stability.
- The INVALID\_TIMESTAMP issue appears tightly linked to NEURAL mode — possibly due to an internal delay or different sync behavior compared to PERFORMANCE mode.

### Questions:

1. Could NEURAL depth mode introduce a delay that causes GNSS timestamps to be misaligned internally?
2. Is there a known workaround or recommended approach to ensure reliable GNSS fusion when using NEURAL mode?

In the meantime, if there’s any solution or workaround available for the **INVALID\_TIMESTAMP** issue specifically, it would be extremely helpful to keep our pipeline moving forward.

Thanks in advance for your support!

---

<div class="post-metadata">

**Author:** ![TanguyHardelin](https://community.stereolabs.com/user_avatar/community.stereolabs.com/tanguyhardelin/32/1298_2.png) [@TanguyHardelin](https://community.stereolabs.com/u/TanguyHardelin)\
**Post date:** [May 5, 2025, 7:31am UTC](https://community.stereolabs.com/t/global-localization-playback-mode-gnss-ingest-error-and-termination-initial-x-not-psd/8604/10 "2025-05-05T07:31:31Z")

</div>

Hi @karthikreddy157,  
Indeed this is strange. This might be due to high loading on your jetson. Do you run another program / tool in parallel of the SDK ? Is the issue still present in C++ sample ?

Based on your data, your timestamp seems correct. If your issue comes from some additional runtime linked to NEURAL I might have workaround for you:

1. If you can switch to 5.0 we released a new NEURAL mode called `NEURAL_LIGHT` that provide better balance between runtime and accuracy than `PERFORMANCE`.
2. If you can’t switch to 5.0, try to change the depth mode to `QUALITY` or `ULTRA`. It should provide good balance between speed and accuracy for GEN\_1.

Regards,  
Tanguy

---

<div class="post-metadata">

**Author:** ![karthikreddy157](https://community.stereolabs.com/user_avatar/community.stereolabs.com/karthikreddy157/32/3555_2.png) [@karthikreddy157](https://community.stereolabs.com/u/karthikreddy157)\
**Post date:** [May 5, 2025, 8:34am UTC](https://community.stereolabs.com/t/global-localization-playback-mode-gnss-ingest-error-and-termination-initial-x-not-psd/8604/11 "2025-05-05T08:34:06Z")

</div>

Hi @TanguyHardelin  
Thanks for your response.

> [@TanguyHardelin](#):
>
> If you can switch to 5.0 we released a new NEURAL mode called `NEURAL_LIGHT` that provide better balance between runtime and accuracy than `PERFORMANCE`.

We have tested the 5.0 release earlier; however, in this version, the default depth mode is `NEURAL`, which unfortunately results in the same _Invalid Timestamp_ error.

> [@TanguyHardelin](#):
>
> If you can’t switch to 5.0, try to change the depth mode to `QUALITY` or `ULTRA`. It should provide good balance between speed and accuracy for GEN\_1

As mentioned earlier, in version 4.2, we encounter the _Invalid Timestamp_ error in all depth modes _except_ `PERFORMANCE`.

> [@TanguyHardelin](#):
>
> This might be due to high loading on your jetson.

To address this concern, we tested the issue using only the live example shared on GitHub, with no other processes running in parallel. Also, for context, we’re using the Python SDK, as our entire solution architecture is built around Python.

Additionally, I have tested the same scenario using the C++ live example from the GitHub repository, and it works correctly without the timestamp issue. Based on this, I suspect the issue might be specific to the Python.

Let me know if there’s anything else we can try.

Best regards,  
Karthik

---

<div class="post-metadata">

**Author:** ![TanguyHardelin](https://community.stereolabs.com/user_avatar/community.stereolabs.com/tanguyhardelin/32/1298_2.png) [@TanguyHardelin](https://community.stereolabs.com/u/TanguyHardelin)\
**Post date:** [May 12, 2025, 8:30am UTC](https://community.stereolabs.com/t/global-localization-playback-mode-gnss-ingest-error-and-termination-initial-x-not-psd/8604/12 "2025-05-12T08:30:21Z")

</div>

Hello @karthikreddy157,  
Thanks for your feedback. Indeed it seems linked to python wrapper. We will investigate this.

Regards,  
Tanguy
