Program stuck at get_latest_frame()

Hello. I am working with the Astra Stereo S USB 3.0 sensor.

When I run the first SDK example, it gets stuck at the get_latest_frame() function. I am also testing the Astra Mini S sensor, and it works fine with it.

I have already tried Josh’s solution here, which helped me with the Mini S sensor, but not with the Stereo S.

Also, I’m using a 2.0 usb-c cable (from my galaxy s10). Could this be a cable issue? Windows recognizes the sensor.

Here follows my debug info, which is similar to this one.

2021-06-15 23:26:52,424 WARN  [context] Hold on to yer butts
2021-06-15 23:26:52,425 INFO  [context] configuration path: C:\Users\henri\source\AstraSDK\bin\astra.toml
2021-06-15 23:26:52,425 INFO  [context] log file path: astra.log
2021-06-15 23:26:52,425 INFO  [context] astra_core library version: v2.1.1-9022570b7b API Level: 1
2021-06-15 23:26:52,426 INFO  [context] astra_core_api library version: v2.1.1-9022570b7b API Level: 1
2021-06-15 23:26:52,426 INFO  [context] plugin search paths C:\Users\henri\source\AstraSDK\bin\Plugins\;C:\Users\henri\source\AstraSDK\bin\
2021-06-15 23:26:52,426 DEBUG [plugin_manager] load plugins
2021-06-15 23:26:52,426 DEBUG [plugin_manager] try_load_plugin C:\Users\henri\source\AstraSDK\bin\Plugins\openni_sensor.dll
2021-06-15 23:26:52,473 DEBUG [plugin_manager] try_load_plugin valid plugin
2021-06-15 23:26:52,473 INFO  [plugin_manager] loading plugin: C:\Users\henri\source\AstraSDK\bin\Plugins\openni_sensor.dll version: v2.1.1-9022570b7b API level: 1
2021-06-15 23:26:52,474 INFO  [orbbec.ni.WmfBackend] Initializing Media Foundation
2021-06-15 23:26:52,483 INFO  [orbbec.ni.oni_adapter_plugin] Initializing OpenNI v2.2.0.33
2021-06-15 23:26:52,532 INFO  [orbbec.ni.oni_adapter_plugin] Initialized OpenNI v2.2.0.33
2021-06-15 23:26:52,532 DEBUG [plugin_manager] try_load_plugin initialized plugin
2021-06-15 23:26:52,533 DEBUG [plugin_manager] try_load_plugin C:\Users\henri\source\AstraSDK\bin\Plugins\OrbbecBodyTracking.dll
2021-06-15 23:26:52,549 DEBUG [plugin_manager] try_load_plugin valid plugin
2021-06-15 23:26:52,549 INFO  [plugin_manager] loading plugin: C:\Users\henri\source\AstraSDK\bin\Plugins\OrbbecBodyTracking.dll version: v2.1.1-9022570b7b API level: 1
2021-06-15 23:26:52,550 INFO  [orbbec.bodytracking.middleware] try to load bodytracking config from ./Plugins/OrbbecBodyTracking.config
2021-06-15 23:26:52,550 INFO  [orbbec.bodytracking.middleware] file ./Plugins/OrbbecBodyTracking.config doesn't exist
2021-06-15 23:26:52,888 DEBUG [plugin_manager] try_load_plugin initialized plugin
2021-06-15 23:26:52,888 DEBUG [plugin_manager] try_load_plugin C:\Users\henri\source\AstraSDK\bin\Plugins\orbbec_hand.dll
2021-06-15 23:26:52,893 DEBUG [plugin_manager] try_load_plugin valid plugin
2021-06-15 23:26:52,894 INFO  [plugin_manager] loading plugin: C:\Users\henri\source\AstraSDK\bin\Plugins\orbbec_hand.dll version: v2.1.1-9022570b7b API level: 1
2021-06-15 23:26:52,897 DEBUG [plugin_manager] try_load_plugin initialized plugin
2021-06-15 23:26:52,897 DEBUG [plugin_manager] try_load_plugin C:\Users\henri\source\AstraSDK\bin\Plugins\orbbec_xs.dll
2021-06-15 23:26:52,904 DEBUG [plugin_manager] try_load_plugin valid plugin
2021-06-15 23:26:52,904 INFO  [plugin_manager] loading plugin: C:\Users\henri\source\AstraSDK\bin\Plugins\orbbec_xs.dll version: v2.1.1-9022570b7b API level: 1
2021-06-15 23:26:52,905 INFO  [astra.xs.plugin] Initializing xs plugin
2021-06-15 23:26:52,913 DEBUG [plugin_manager] try_load_plugin initialized plugin
[StereoSU3] Opening sensor
2021-06-15 23:26:52,915 INFO  [context] client opening streamset: device/default
2021-06-15 23:26:52,918 INFO  [streamset_catalog] default uri provided.
2021-06-15 23:26:52,918 INFO  [astra.streamset] connecting to (1,0) on device/sensor0
2021-06-15 23:26:52,919 DEBUG [astra.streamset] registering stream (1, 0) on device/sensor0
2021-06-15 23:26:52,920 DEBUG [astra.stream_connection] 000001AF4720F890 starting (1, 0)
[StereoSU3] Reading image

Thank you

My sensor works as expected when I run the “DepthReaderPoll.exe” example, so I suppose something must be wrong with the code. Anyone has any suggestions?

I have also tried setting up the stream parameters as mentioned in Error in getting frames of IR stream with 320*240 @30fps - #4 by Victor.

And when I run the tests, all of them fail. The weird thing is that some executables in the /bin directory work just fine.

Hey everyone!

Turns out that deleting the “Debug” directory and rebuilding the project fixed it.

IDK why, but worked.

In fact I started a whole new project now, and that problem is now gone.