# Camera::open() never returns when connecting to an invalid stream IP (Windows, Receiver sample)

**URL:** <https://community.stereolabs.com/t/camera-open-never-returns-when-connecting-to-an-invalid-stream-ip-windows-receiver-sample/11449>\
**Category:** C++\
**Tags:** sdk, windows\
**Created:** [June 17, 2026, 9:27am UTC](https://community.stereolabs.com/t/camera-open-never-returns-when-connecting-to-an-invalid-stream-ip-windows-receiver-sample/11449 "2026-06-17T09:27:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![LUP](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/l/6f9a4e/32.png) [@LUP](https://community.stereolabs.com/u/LUP)\
**Post date:** [June 17, 2026, 9:27am UTC](https://community.stereolabs.com/t/camera-open-never-returns-when-connecting-to-an-invalid-stream-ip-windows-receiver-sample/11449/1 "2026-06-17T09:27:26Z")

</div>

Hi everyone,

First of all, thank you for all the work you’ve put into the ZED SDK. We’ve been using it in our project and it’s been a great experience overall. I think I may have found an issue with the streaming receiver and wanted to check whether this is expected behavior or a bug.

### Environment

- **OS:** Windows

- **SDK:** ZED SDK 5.3

- **Sample:** Official C++ Streaming Receiver sample  
[https://github.com/stereolabs/zed-sdk/blob/master/camera%20streaming/receiver/cpp/src/main.cpp](https://github.com/stereolabs/zed-sdk/blob/master/camera%20streaming/receiver/cpp/src/main.cpp)

### Issue

When I try to connect to an invalid stream IP, the SDK reports a timeout internally, but `Camera::open()` never returns.

To reproduce:

1. Build and run the official Streaming Receiver sample.

2. Enter an invalid IP address (or an IP where no ZED streamer is running).

3. The console outputs:

```auto
[ZED][INFO] Logging level INFO
[Streaming] Warning: Failed to retrieve camera settings from sender
[Streaming] Error: Stream Opening returned TIMEOUT (350)

```

However, the call to `zed.open(init_parameters)` never returns.

For example, if I add:

```auto
auto returned_state = zed.open(init_parameters);

std::cout << "Returned: "
          << sl::toString(returned_state)
          << " ("
          << static_cast<int>(returned_state)
          << ")" << std::endl;

```

the `"Returned:"` line is never printed because `zed.open()` blocks indefinitely.

### Expected behavior

I would expect `Camera::open()` to return an appropriate `sl::ERROR_CODE` after the timeout so the application can handle the connection failure and notify the user.

### Actual behavior

The SDK reports:

```auto
[Streaming] Error: Stream Opening returned TIMEOUT (350)

```

but `Camera::open()` never returns, leaving the application blocked indefinitely.

Has anyone experienced this with SDK 5.3 on Windows, or is this a known issue?

Thank you in advance for your help!

---

<div class="post-metadata">

**Author:** ![LUP](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/l/6f9a4e/32.png) [@LUP](https://community.stereolabs.com/u/LUP)\
**Post date:** [June 17, 2026, 12:58pm UTC](https://community.stereolabs.com/t/camera-open-never-returns-when-connecting-to-an-invalid-stream-ip-windows-receiver-sample/11449/2 "2026-06-17T12:58:06Z")

</div>

I also noticed that @sherod reported what appears to be the same issue in another thread:  
[https://community.stereolabs.com/t/camera-open-seems-to-ignore-open-timeout-seconds-if-set-from-stream/11441](https://community.stereolabs.com/t/camera-open-seems-to-ignore-open-timeout-seconds-if-set-from-stream/11441)

In `InitParameters`, setting `open_timeout_sec` doesn’t seem to have any effect when connecting to a streaming camera using `setFromStream()`. Even with `open_timeout_sec` set, `Camera::open()` never returns if the stream is unreachable.

Could someone from the [Stereolabs](https://www.stereolabs.com/) team confirm whether `open_timeout_sec` is expected to apply to `setFromStream()` connections? If not, is there currently a recommended way to prevent `Camera::open()` from blocking indefinitely when the remote stream is unreachable?

Thank you!

---

<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:** [June 17, 2026, 4:54pm UTC](https://community.stereolabs.com/t/camera-open-never-returns-when-connecting-to-an-invalid-stream-ip-windows-receiver-sample/11449/3 "2026-06-17T16:54:16Z")

</div>

Hi @LUP  
Welcome to the [StereoLabs](https://www.stereolabs.com/) community.

Thank you for reporting this issue. It has been logged, and it will be fixed in one of the next releases of the ZED SDK.

---

<div class="post-metadata">

**Author:** ![LUP](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/l/6f9a4e/32.png) [@LUP](https://community.stereolabs.com/u/LUP)\
**Post date:** [June 17, 2026, 5:15pm UTC](https://community.stereolabs.com/t/camera-open-never-returns-when-connecting-to-an-invalid-stream-ip-windows-receiver-sample/11449/4 "2026-06-17T17:15:28Z")

</div>

Thank you for the quick reply and for looking into it!

I really appreciate the responsiveness of the team. Keep up the great work on the SDK!
