# Getting segmentation fault during positional tracking 

**URL:** <https://community.stereolabs.com/t/getting-segmentation-fault-during-positional-tracking/7606>\
**Category:** C++\
**Created:** [December 5, 2024, 8:47am UTC](https://community.stereolabs.com/t/getting-segmentation-fault-during-positional-tracking/7606 "2024-12-05T08:47:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mathanprasannakumar1](https://community.stereolabs.com/user_avatar/community.stereolabs.com/mathanprasannakumar1/32/2629_2.png) [@mathanprasannakumar1](https://community.stereolabs.com/u/mathanprasannakumar1)\
**Post date:** [December 5, 2024, 8:47am UTC](https://community.stereolabs.com/t/getting-segmentation-fault-during-positional-tracking/7606/1 "2024-12-05T08:47:00Z")

</div>

Hi , I am working with zed2i cam for positional tracking , While trying out positional tracking examples given in the zed-sdk examples , got segmentation fault.

Issue arises only when the area\_file\_path is set to the previously saved area memory and trying to localize wrt to the world frame.

ZED-SDK version = 4.2  
Platform = Orin Nano (Jetpack 6.0 L4T36.3)

**Positional Tracking Parameters:**

- positional\_tracking\_param.area\_file\_path = “codd3sh.area”;
- 

```
positional_tracking_param.enable_imu_fusion = false;

```

- positional\_tracking\_param.mode = sl::POSITIONAL\_TRACKING\_MODE::GEN\_2;
- positional\_tracking\_param.enable\_pose\_smoothing = true;

Please let me know is it the issue with sdk or the configuration ? If there is any more issue please let me know

---

<div class="post-metadata">

**Author:** ![mattrouss](https://community.stereolabs.com/user_avatar/community.stereolabs.com/mattrouss/32/2452_2.png) [@mattrouss](https://community.stereolabs.com/u/mattrouss)\
**Post date:** [December 5, 2024, 9:29am UTC](https://community.stereolabs.com/t/getting-segmentation-fault-during-positional-tracking/7606/2 "2024-12-05T09:29:00Z")

</div>

Hi @mathanprasannakumar1,

Welcome to the [Stereolabs](https://www.stereolabs.com/) community 👋

I can confirm that we have already identified a bug in version 4.2.2 of the ZED SDK involving the area relocation file and positional tracking GEN\_2.

We are currently investigating the issue and plan on providing a fix in the next patch release 4.2.3.

---

<div class="post-metadata">

**Author:** ![mathanprasannakumar1](https://community.stereolabs.com/user_avatar/community.stereolabs.com/mathanprasannakumar1/32/2629_2.png) [@mathanprasannakumar1](https://community.stereolabs.com/u/mathanprasannakumar1)\
**Post date:** [December 5, 2024, 9:45am UTC](https://community.stereolabs.com/t/getting-segmentation-fault-during-positional-tracking/7606/3 "2024-12-05T09:45:48Z")

</div>

Hi @mattrouss ,

Thanks for the response and pointing out the underlying bug.

Will the the area memory re-localization will work properly for the lower zed-sdk version with the Positional tracking GEN1 / GEN2 ,

i am also facing the same issue with zed sdk 4.1.3 as well. and what is the suggested Postional tracking mode for area relocalization for now ?

below is the stdout info for the seg fault

 ![Screenshot from 2024-12-05 12-35-20](https://community.stereolabs.com/uploads/default/original/2X/3/3e99adb91a04e69f7fc0e6d4afe0005650781417.png)

---

<div class="post-metadata">

**Author:** ![mattrouss](https://community.stereolabs.com/user_avatar/community.stereolabs.com/mattrouss/32/2452_2.png) [@mattrouss](https://community.stereolabs.com/u/mattrouss)\
**Post date:** [December 6, 2024, 7:13pm UTC](https://community.stereolabs.com/t/getting-segmentation-fault-during-positional-tracking/7606/4 "2024-12-06T19:13:25Z")

</div>

Hi @mathanprasannakumar1,

The recommended mode for area relocalization is GEN\_1 for now, while we work on fixes for GEN\_2.

Do I understand correctly that you also have these issues on positional tracking GEN\_1?

---

<div class="post-metadata">

**Author:** ![mathanprasannakumar1](https://community.stereolabs.com/user_avatar/community.stereolabs.com/mathanprasannakumar1/32/2629_2.png) [@mathanprasannakumar1](https://community.stereolabs.com/u/mathanprasannakumar1)\
**Post date:** [December 12, 2024, 7:37am UTC](https://community.stereolabs.com/t/getting-segmentation-fault-during-positional-tracking/7606/5 "2024-12-12T07:37:12Z")

</div>

Hi @mattrouss ,

Thanks for the suggestion , in GEN\_1 we havent faced seg fault as of now . But in GEN\_1 tracking accuracy is pretty low and facing lot of deviations.

---

<div class="post-metadata">

**Author:** ![mattrouss](https://community.stereolabs.com/user_avatar/community.stereolabs.com/mattrouss/32/2452_2.png) [@mattrouss](https://community.stereolabs.com/u/mattrouss)\
**Post date:** [December 16, 2024, 10:22am UTC](https://community.stereolabs.com/t/getting-segmentation-fault-during-positional-tracking/7606/6 "2024-12-16T10:22:44Z")

</div>

Hi @mathanprasannakumar1,

Just letting you know that we have identified the issue and will provide a fix in the next version of the ZED SDK, planned for before the end of the year.
