# Some problems encountered while using the simulator

**URL:** <https://opendaq.discourse.group/t/some-problems-encountered-while-using-the-simulator/33>\
**Category:** 🆘 Support\
**Created:** [November 27, 2024, 1:10am UTC](https://opendaq.discourse.group/t/some-problems-encountered-while-using-the-simulator/33 "2024-11-27T01:10:12Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![welling](https://avatars.discourse-cdn.com/v4/letter/w/ecccb3/32.png) [@welling](https://opendaq.discourse.group/u/welling)\
**Post date:** [November 27, 2024, 1:10am UTC](https://opendaq.discourse.group/t/some-problems-encountered-while-using-the-simulator/33/1 "2024-11-27T01:10:12Z")

</div>

Since the virtual box is difficult to use， I moved the simulator to a Ubuntu 24.04 system, and it runs ok， and the ‘client\_discovery’ example can find the simulator and make a connection to it.

Then I downloaded the openDAQ source code from GitHub, successfully compiled it, and replaced the `application_simulator` program and all dynamic library files in the original program path. The program runs successfully, and the logs printed are consistent with the version on VirtualBox.

However， The ‘client\_discovery’ program can detect the simulator, but the program crashes when attempting to connect (using `instance.addDevice` ). I compiled a debug version of the dynamic library and obtained the error message shown in the screenshot below. Unfortunately, I still cannot determine the root cause or figure out how to fix this issue.

 ![image](https://canada1.discourse-cdn.com/flex004/uploads/opendaq/original/1X/8963e71c212dded3570212127da4c3c6f350f12f.png)  
and the following is the log of the simulator:  
 ![image](https://canada1.discourse-cdn.com/flex004/uploads/opendaq/original/1X/59eb9504951bada00e7a7d313d9352769775ddb5.png)

Thank you in advance for your help.

---

<div class="post-metadata">

**Author:** ![Dusan](https://yyz2.discourse-cdn.com/flex004/user_avatar/opendaq.discourse.group/dusan/32/17_2.png) [@Dusan](https://opendaq.discourse.group/u/Dusan)\
**Post date:** [November 27, 2024, 10:54am UTC](https://opendaq.discourse.group/t/some-problems-encountered-while-using-the-simulator/33/2 "2024-11-27T10:54:53Z")

</div>

Hi welling, can you please share on which version of openDAQ you observed this?

---

<div class="post-metadata">

**Author:** ![welling](https://avatars.discourse-cdn.com/v4/letter/w/ecccb3/32.png) [@welling](https://opendaq.discourse.group/u/welling)\
**Post date:** [November 27, 2024, 11:31am UTC](https://opendaq.discourse.group/t/some-problems-encountered-while-using-the-simulator/33/3 "2024-11-27T11:31:17Z")

</div>

V3.3.0，the latest version

---

<div class="post-metadata">

**Author:** ![Dusan](https://yyz2.discourse-cdn.com/flex004/user_avatar/opendaq.discourse.group/dusan/32/17_2.png) [@Dusan](https://opendaq.discourse.group/u/Dusan)\
**Post date:** [November 27, 2024, 11:39am UTC](https://opendaq.discourse.group/t/some-problems-encountered-while-using-the-simulator/33/4 "2024-11-27T11:39:51Z")

</div>

Thank you! I will let you know here as soon as there is progress on the front.

---

<div class="post-metadata">

**Author:** ![JakaM](https://avatars.discourse-cdn.com/v4/letter/j/df788c/32.png) [@JakaM](https://opendaq.discourse.group/u/JakaM)\
**Post date:** [December 3, 2024, 8:53am UTC](https://opendaq.discourse.group/t/some-problems-encountered-while-using-the-simulator/33/5 "2024-12-03T08:53:15Z")

</div>

Hello, would it be possible for you try the latest 3.10 version that’s been released today?

It’d be the easiest to check whether you are able to connect to the simulator via python GUI application that can be accessed by running the following shell commands

```auto
py -m pip install opendaq
py -m opendaq

```

---

<div class="post-metadata">

**Author:** ![welling](https://avatars.discourse-cdn.com/v4/letter/w/ecccb3/32.png) [@welling](https://opendaq.discourse.group/u/welling)\
**Post date:** [December 3, 2024, 9:19am UTC](https://opendaq.discourse.group/t/some-problems-encountered-while-using-the-simulator/33/6 "2024-12-03T09:19:00Z")

</div>

👌，I’ll try that later

---

<div class="post-metadata">

**Author:** ![aljazfrancic](https://yyz2.discourse-cdn.com/flex004/user_avatar/opendaq.discourse.group/aljazfrancic/32/27_2.png) [@aljazfrancic](https://opendaq.discourse.group/u/aljazfrancic)\
**Post date:** [January 9, 2025, 10:56am UTC](https://opendaq.discourse.group/t/some-problems-encountered-while-using-the-simulator/33/7 "2025-01-09T10:56:27Z")

</div>

@welling Any updates?

---

<div class="post-metadata">

**Author:** ![welling](https://avatars.discourse-cdn.com/v4/letter/w/ecccb3/32.png) [@welling](https://opendaq.discourse.group/u/welling)\
**Post date:** [January 9, 2025, 11:15am UTC](https://opendaq.discourse.group/t/some-problems-encountered-while-using-the-simulator/33/8 "2025-01-09T11:15:30Z")

</div>

I tried it on a windows pc.  
If the simulator and the opendaq demo is on the same pc, things work ok;  
if they are on different pc in a LAN network, simulator cannot be found from the opendaq demo

---

<div class="post-metadata">

**Author:** ![aljazfrancic](https://yyz2.discourse-cdn.com/flex004/user_avatar/opendaq.discourse.group/aljazfrancic/32/27_2.png) [@aljazfrancic](https://opendaq.discourse.group/u/aljazfrancic)\
**Post date:** [January 16, 2025, 5:24pm UTC](https://opendaq.discourse.group/t/some-problems-encountered-while-using-the-simulator/33/9 "2025-01-16T17:24:13Z")

</div>

There is a known issue with `client_discovery.cpp` example (while running Virtual Box simulator), it fails with:

```txt
daq::DuplicateItemException
Device with the same local ID already exists.

```

Is this the issue you are facing?

There is a potential fix coming, I will test it and let you know if it helps.

Then you can try the newer version of openDAQ SDK.

---

<div class="post-metadata">

**Author:** ![welling](https://avatars.discourse-cdn.com/v4/letter/w/ecccb3/32.png) [@welling](https://opendaq.discourse.group/u/welling)\
**Post date:** [January 17, 2025, 12:34am UTC](https://opendaq.discourse.group/t/some-problems-encountered-while-using-the-simulator/33/10 "2025-01-17T00:34:51Z")

</div>

I haven’t encountered this exception; I think it might be due to something else. Of course, I will verify it as soon as the new version is released.

---

<div class="post-metadata">

**Author:** ![aljazfrancic](https://yyz2.discourse-cdn.com/flex004/user_avatar/opendaq.discourse.group/aljazfrancic/32/27_2.png) [@aljazfrancic](https://opendaq.discourse.group/u/aljazfrancic)\
**Post date:** [February 4, 2025, 12:39pm UTC](https://opendaq.discourse.group/t/some-problems-encountered-while-using-the-simulator/33/11 "2025-02-04T12:39:02Z")

</div>

@welling I think the issues you were facing should now be resolved on the latest main. You can get the latest development version here: [https://docs-dev.opendaq.com/](https://docs-dev.opendaq.com/).
