Open ghost opened 7 years ago
I have exactly the same issue, fail at the line with OSVR_DeviceInitOptions opts = osvrDeviceCreateInitOptions(ctx);
This Is Crash Stack:
osvrConnectiond.dll!osvr::connection::Connection::retrieveConnection(const osvr::pluginhost::RegistrationContext & ctx) 行 68 C++
osvrConnectiond.dll!OSVR_DeviceInitObject::OSVR_DeviceInitObject(void * ctx) 行 41 C++
osvrPluginKitd.dll!osvrDeviceCreateInitOptions(void * ctx) 行 48 C++
> AnalogSync.dll!`anonymous namespace'::TrackerDevice::TrackerDevice(void * ctx) 行 41 C++
AnalogSync.dll!`anonymous namespace'::HardwareDetection::operator()(void * ctx) 行 94 C++
AnalogSync.dll!osvr::util::functor_trampolines::detail::Caller<osvr::util::functor_trampolines::this_last_t,1,1>::Specialized<char (__cdecl*)(void *,void *),`anonymous namespace'::HardwareDetection>::call(void * p0, void * functor) 行 170 C++
osvrPluginHost.dll!osvr::pluginhost::PluginSpecificRegistrationContextImpl::triggerHardwareDetectCallbacks() 行 97 C++
osvrPluginHost.dll!osvr::pluginhost::RegistrationContext::triggerHardwareDetect() 行 219 C++
osvrServer.dll!osvr::server::ServerImpl::m_update() 行 224 C++
osvrServer.dll!osvr::server::ServerImpl::m_loop() 行 240 C++
osvrServer.dll!osvr::server::ServerImpl::start::__l8::<lambda>() 行 146 C++
[外部代码]
Debug In retrieveConnection function, it seems like ctx.data().get(CONNECTION_KEY) failed.
@Shaktyi have you sloved this problem.
@lishuwei115 I haven't solved the problem but am quite confident that there are problems with some c++ part and the chosen visual studio version. I used a different programming language with the C API afterwards. I would suggest, you look through the documentation. They provide a description of a software combination that should work.
I am new to OSVR and try to compile and run the selfcontained plugin. When placing it in the plugin directory and running the server, it crashes. With println statements to narrow down the problematic location, it seems to fail at the line with
OSVR_DeviceInitOptions opts = osvrDeviceCreateInitOptions(ctx);
. I looked around for some time but couldn't find a solution. I am using Windows 10 with a new binary install of the osvr sdk, Visual Studio 2015 Community, boost boost_1_63_0 and 3.7.1