OSVR / OSVR-Core

The core libraries, applications, and plugins of the OSVR software platform.
Apache License 2.0
329 stars 124 forks source link

Server Hangs on Ubuntu 17.04 #563

Open CMDann opened 7 years ago

CMDann commented 7 years ago

I have installed on Ubuntu 17.04, I am able to detect the devices from the command line however when I launch the server I am presented with this issue and it hangs.

Sept 04 14:19:10.305 info [OSVR]: Logging for /home/cmdann/osvr/bin/osvr_server
Sept 04 14:19:10.305 info [OSVR Server]: Using default config file - pass a filename on the command line to use a different one.
Sept 04 14:19:10.305 error [OSVR Server]: Could not find a valid config file!
Sept 04 14:19:10.305 info [OSVR Server]: Could not find a valid config file in the default search paths. Using default config object.
Sept 04 14:19:10.305 info [OSVR Server]: Constructing server as configured...
Sept 04 14:19:10.306 info [OSVR Server]: Loading auto-loadable plugins...
Sept 04 14:19:10.307 warning [PluginHost]: Failed to load plugin org_osvr_filter_deadreckoningrotation: Failed to load the module /home/cmdann/osvr/lib/osvr-plugins-0/org_osvr_filter_deadreckoningrotation.so with error: libosvrVRPNServer.so.0: cannot open shared object file: No such file or directory
Sept 04 14:19:10.307 warning [PluginHost]: Failed to load plugin org_osvr_unifiedvideoinertial: Failed to load the module /home/cmdann/osvr/lib/osvr-plugins-0/org_osvr_unifiedvideoinertial.so with error: libosvrAnalysisPluginKit.so.0: cannot open shared object file: No such file or directory
Sept 04 14:19:10.307 warning [PluginHost]: Failed to load plugin org_osvr_filter_videoimufusion: Failed to load the module /home/cmdann/osvr/lib/osvr-plugins-0/org_osvr_filter_videoimufusion.so with error: libosvrAnalysisPluginKit.so.0: cannot open shared object file: No such file or directory
Sept 04 14:19:10.307 warning [PluginHost]: Failed to load plugin com_osvr_VideoBasedHMDTracker: Failed to load the module /home/cmdann/osvr/lib/osvr-plugins-0/com_osvr_VideoBasedHMDTracker.so with error: libosvrPluginKit.so.0: cannot open shared object file: No such file or directory
Sept 04 14:19:10.307 warning [PluginHost]: Failed to load plugin com_osvr_Multiserver: Failed to load the module /home/cmdann/osvr/lib/osvr-plugins-0/com_osvr_Multiserver.so with error: libosvrVRPNServer.so.0: cannot open shared object file: No such file or directory
Sept 04 14:19:10.308 warning [PluginHost]: Failed to load plugin org_osvr_filter_oneeuro: Failed to load the module /home/cmdann/osvr/lib/osvr-plugins-0/org_osvr_filter_oneeuro.so with error: libosvrAnalysisPluginKit.so.0: cannot open shared object file: No such file or directory
Sept 04 14:19:10.308 info [OSVR Server]: Loading plugins...
Sept 04 14:19:10.308 info [OSVR Server]: Instantiating configured drivers...
Sept 04 14:19:10.308 info [OSVR Server]: Using OSVR HDK for display configuration. Did not find an alternate valid 'display' object in config file.
Sept 04 14:19:10.308 info [OSVR Server]: Triggering automatic hardware detection...
Sept 04 14:19:10.308 info [OSVR Server]: Registering shutdown handler...
Sept 04 14:19:10.308 info [OSVR Server]: Starting server mainloop: OSVR Server is ready to go!
Sept 04 14:19:10.308 info [OSVR Server]: Performing hardware auto-detection.
^CSept 04 15:21:55.416 info [OSVR Server]: Received shutdown signal...
Sept 04 15:21:55.418 info [OSVR Server]: OSVR Server exited.

Seems to be missing a config, also the plugins are missing.

godbyk commented 7 years ago

You can pass the location and filename of the configuration file when running osvr_server:

$ cd /home/cmdann/osvr/bin
$ ./osvr_server ./osvr_server_config.json

For the server and plugins to find the libraries they need, either add /home/cmdann/osvr/lib to the /etc/ld.so.conf file and run ldconfig or add it to the LD_LIBRARY_PATH environment variable.