Astra sdk - black screen for all viewer programs

  • Linux x-64
  • astra sdk develop branch
  • sudo make install created executable files in my build/bin directory
  • Astra Pro camera working with all of the executables in OpenNI2-Linux-x64/Bin directory

When I run any of the viewer programs, they only produce a black window.

Unless you specifies a different CMAKE_INSTALL_PREFIX, then make install will just install the files to your build/sdk directory. (build/bin is populated with regular make.) Try make install without sudo.

In your lib folder, edit astra.toml to look like:

[logging]
# trace, debug, info, warn, error, fatal
level = "trace"
console_output = true
file_output = true
[plugins]
#path = "Plugins"

Then run SimpleDepthViewer-SFML and then post the contents of astra.log here.

I’m having the same issue, and here is the log contents:

2016-06-13 15:55:36,369 WARN [context] Hold on to yer butts
2016-06-13 15:55:36,369 INFO [context] configuration path: /home/konneker/code/astra/build/bin/…/lib/astra.toml
2016-06-13 15:55:36,369 INFO [context] log file path: astra.log
2016-06-13 15:55:36,369 INFO [context] plugin path: /home/konneker/code/astra/build/bin/…/lib/Plugins/
2016-06-13 15:55:36,370 TRACE [plugin_manager] [void astra::plugin_manager::load_plugins(std::string)] [/home/konneker/code/astra/src/astra_core/astra_plugin_manager.cpp:35] load plugins
2016-06-13 15:55:36,370 TRACE [plugin_manager] [void astra::plugin_manager::try_load_plugin(const string&)] [/home/konneker/code/astra/src/astra_core/astra_plugin_manager.cpp:96] try_load_plugin /home/konneker/code/astra/build/bin/…/lib/Plugins/libopenni_sensor.so
2016-06-13 15:55:36,371 TRACE [plugin_manager] [void astra::plugin_manager::try_load_plugin(const string&)] [/home/konneker/code/astra/src/astra_core/astra_plugin_manager.cpp:111] try_load_plugin valid plugin
2016-06-13 15:55:36,372 INFO [orbbec.ni.oni_adapter_plugin] Initializing OpenNI v2.2.0.33
2016-06-13 15:55:36,379 INFO [orbbec.ni.oni_adapter_plugin] Initialized OpenNI v2.2.0.33
2016-06-13 15:55:36,379 TRACE [plugin_manager] [void astra::plugin_manager::try_load_plugin(const string&)] [/home/konneker/code/astra/src/astra_core/astra_plugin_manager.cpp:113] try_load_plugin initialized plugin
2016-06-13 15:55:36,379 TRACE [plugin_manager] [void astra::plugin_manager::try_load_plugin(const string&)] [/home/konneker/code/astra/src/astra_core/astra_plugin_manager.cpp:96] try_load_plugin /home/konneker/code/astra/build/bin/…/lib/Plugins/liborbbec_hand.so
2016-06-13 15:55:36,382 TRACE [plugin_manager] [void astra::plugin_manager::try_load_plugin(const string&)] [/home/konneker/code/astra/src/astra_core/astra_plugin_manager.cpp:111] try_load_plugin valid plugin
2016-06-13 15:55:36,382 TRACE [plugin_manager] [void astra::plugin_manager::try_load_plugin(const string&)] [/home/konneker/code/astra/src/astra_core/astra_plugin_manager.cpp:113] try_load_plugin initialized plugin
2016-06-13 15:55:36,382 TRACE [plugin_manager] [void astra::plugin_manager::try_load_plugin(const string&)] [/home/konneker/code/astra/src/astra_core/astra_plugin_manager.cpp:96] try_load_plugin /home/konneker/code/astra/build/bin/…/lib/Plugins/liborbbec_xs.so
2016-06-13 15:55:36,383 TRACE [plugin_manager] [void astra::plugin_manager::try_load_plugin(const string&)] [/home/konneker/code/astra/src/astra_core/astra_plugin_manager.cpp:111] try_load_plugin valid plugin
2016-06-13 15:55:36,383 INFO [astra.xs.plugin] Initializing xs plugin
2016-06-13 15:55:36,384 TRACE [plugin_manager] [void astra::plugin_manager::try_load_plugin(const string&)] [/home/konneker/code/astra/src/astra_core/astra_plugin_manager.cpp:113] try_load_plugin initialized plugin
2016-06-13 15:55:36,928 INFO [context] client opening streamset: device/default
2016-06-13 15:55:36,929 INFO [streamset_catalog] default uri provided.
2016-06-13 15:55:36,929 TRACE [astra.streamset] [astra::streamset_connection* astra::streamset::add_new_connection()] [/home/konneker/code/astra/src/astra_core/astra_streamset.cpp:118] new connection to device/sensor0
2016-06-13 15:55:36,929 INFO [astra.streamset] connecting to (7,0) on device/sensor0
2016-06-13 15:55:36,930 TRACE [astra.streamset] [astra::stream_connection* astra::streamset::create_stream_connection(const astra_stream_desc_t&)] [/home/konneker/code/astra/src/astra_core/astra_streamset.cpp:40] registering orphan stream of type (7,0) on device/sensor0
2016-06-13 15:55:36,930 DEBUG [astra.streamset] registering stream (7, 0) on device/sensor0
2016-06-13 15:55:36,930 DEBUG [astra.stream_connection] 0x25fe4e0 starting (7, 0)
2016-06-13 15:55:36,930 INFO [astra.streamset] connecting to (1,0) on device/sensor0
2016-06-13 15:55:36,930 TRACE [astra.streamset] [astra::stream_connection* astra::streamset::create_stream_connection(const astra_stream_desc_t&)] [/home/konneker/code/astra/src/astra_core/astra_streamset.cpp:40] registering orphan stream of type (1,0) on device/sensor0
2016-06-13 15:55:36,930 DEBUG [astra.streamset] registering stream (1, 0) on device/sensor0
2016-06-13 15:55:36,930 DEBUG [astra.stream_connection] 0x2600d00 starting (1, 0)
2016-06-13 15:56:42,487 INFO [orbbec.ni.oni_adapter_plugin] shutting down openni
2016-06-13 15:56:42,705 INFO [astra.xs.plugin] Terminated xs plugin
2016-06-13 15:56:42,705 TRACE [streamset_connection] [virtual astra::streamset_connection::~streamset_connection()] [/home/konneker/code/astra/src/astra_core/astra_streamset_connection.hpp:40] destroying streamset_connection: 0x258a600
2016-06-13 15:56:42,705 TRACE [astra.stream_reader] [virtual astra::stream_reader::~stream_reader()] [/home/konneker/code/astra/src/astra_core/astra_stream_reader.cpp:38] destroying reader: 0x25fe2f0
2016-06-13 15:56:42,705 TRACE [astra.streamset] [bool astra::streamset::destroy_stream_connection(astra::stream_connection*)] [/home/konneker/code/astra/src/astra_core/astra_streamset.cpp:59] destroying 0x2600d00 on device/sensor0
2016-06-13 15:56:42,705 TRACE [astra.streamset] [bool astra::streamset::destroy_stream_connection(astra::stream_connection*)] [/home/konneker/code/astra/src/astra_core/astra_streamset.cpp:67] removing unused/unavailable stream 0x2600ca0 on device/sensor0
2016-06-13 15:56:42,705 TRACE [astra.streamset] [bool astra::streamset::destroy_stream_connection(astra::stream_connection*)] [/home/konneker/code/astra/src/astra_core/astra_streamset.cpp:59] destroying 0x25fe4e0 on device/sensor0
2016-06-13 15:56:42,705 TRACE [astra.streamset] [bool astra::streamset::destroy_stream_connection(astra::stream_connection*)] [/home/konneker/code/astra/src/astra_core/astra_streamset.cpp:67] removing unused/unavailable stream 0x25fe430 on device/sensor0
2016-06-13 15:56:42,705 INFO [context] Astra terminated.
2016-06-13 15:56:42,706 WARN [context] attempt to destroy a non-existent reader: 0x25fe2f0

Any insights?

That log tells me that the plugins all loaded fine and the streams are started but the SDK/OpenNI doesn’t see any sensor. Are you able to test with NiViewer from OpenNI2? Also try other USB ports. If you’re on Linux, try setting up the usb rules per Orbbec openi problem with usb - #6 by malte.

Thank you for the tip. The usb stuff was fine, but I had to manually copy over the astra openni driver to the right folder for things to work.

Hello,

I am having the same problem. Could you please be more explicit. Where do you get the drivers from and what is the “right” folder? Thank you