I'm getting the following exception when running the 3DxTraceNL sample:
boost::wrapexcept<boost::property_tree::ptree_bad_path>
KernelBase.dll!00007ffda852a839()
TDxNavLib.dll!00007ffd426358d0()
..
TDxNavLib.dll!00007ffd42646176()
3DxTraceNL.exe!NlCreate()
3DxTraceNL.exe!TDx::SpaceMouse::Navigation3D::CNavlibInterface::Open(std::string profileText)
3DxTraceNL.exe!TDx::SpaceMouse::Navigation3D::CNavlibImpl::Open(std::string profileName)
3DxTraceNL.exe!TDx::SpaceMouse::Navigation3D::CNavigation3D::EnableNavigation(bool value)
3DxTraceNL.exe!TDx::SpaceMouse::Navigation3D::CNavigation3D::EnableNavigation(bool value, std::error_code & ec)
3DxTraceNL.exe!TDx::TraceNL::CApplication3D::Enable3DNavigation()
m_hdl is 0 and profileText is "TraceNL Sample".
There is a "Trace NLSample.navlib.log" at localappdata/3Dconnexion/3DxWare.
I've changed the value of m_navigationModel.Profile and a new navlib.log is created for that name, but the exception still occurs.
Anyone come across this before?
Win 10
VS 2019 (16.6.5)
3DxWare_SDK_v4-0-0_r17130
SDK Sample exception
Moderator: Moderators
Re: SDK Sample exception
Happens all the time and is handled in TDxNavlib.dll. If you are interested the code that throws is inI'm getting the following exception when running the 3DxTraceNL sample:
boost::wrapexcept<boost::property_tree::ptree_bad_path>
Code: Select all
template<class K, class D, class C>
basic_ptree<K, D, C> &basic_ptree<K, D, C>::get_child(const path_type &path)
{
...
if (!n) {
BOOST_PROPERTY_TREE_THROW(ptree_bad_path("No such node", path));
}
return *n;
}
Hope this helps
Re: SDK Sample exception
Thanks for your reply, that was indeed my problem.
Launching without debugger does give me mouse output, and attaching the debugger is then successful.
However, after receiving any mouse input in this state, I then get a further exception:
nav::future_error at memory location 0x0000007019FFF370.
With the following trace:
> KernelBase.dll!00007ffda852a839()
TDxNavLib.dll!00007ffd62167cc0()
..
TDxNavLib.dll!00007ffd6212ebd4()
ntdll.dll!00007ffdab43089d()
ntdll.dll!00007ffdab434634()
kernel32.dll!00007ffda94c7bd4()
ntdll.dll!00007ffdab46ced1()
Any ideas what might be causing this?
Launching without debugger does give me mouse output, and attaching the debugger is then successful.
However, after receiving any mouse input in this state, I then get a further exception:
nav::future_error at memory location 0x0000007019FFF370.
With the following trace:
> KernelBase.dll!00007ffda852a839()
TDxNavLib.dll!00007ffd62167cc0()
..
TDxNavLib.dll!00007ffd6212ebd4()
ntdll.dll!00007ffdab43089d()
ntdll.dll!00007ffdab434634()
kernel32.dll!00007ffda94c7bd4()
ntdll.dll!00007ffdab46ced1()
Any ideas what might be causing this?
Re: SDK Sample exception
I would suggest restoring the C++ Exceptions in Visual Studio back to the defaults.
Select 'DEBUG->Windows->Exception Settings'.
Right-click 'C++ Exceptions' and select 'Restore Defaults'.
Exceptions that are thrown but handled will still be logged to the Debug Output window.
Note: 'Checked' exceptions in the 'Exception Settings' cause the debugger to break when the exception is thrown irrespective of whether the program handles the error condition. This is the reason why a dialogue is being popped up in the debugger.
Hope this helps.
Select 'DEBUG->Windows->Exception Settings'.
Right-click 'C++ Exceptions' and select 'Restore Defaults'.
Exceptions that are thrown but handled will still be logged to the Debug Output window.
Note: 'Checked' exceptions in the 'Exception Settings' cause the debugger to break when the exception is thrown irrespective of whether the program handles the error condition. This is the reason why a dialogue is being popped up in the debugger.
Hope this helps.
Re: SDK Sample exception
Hah, indeed, that was the problem. I now get good output from the sample program.
FYI, I also had crashes from exceptions sourced from our security platform Sentinel One, and had to have an exception added for the sample exe.
I've been busy implementing from the older v3.4 SDK, would you recommend upgrading to the 4.0 version? I'm also intending on implementing a linux version.
FYI, I also had crashes from exceptions sourced from our security platform Sentinel One, and had to have an exception added for the sample exe.
I've been busy implementing from the older v3.4 SDK, would you recommend upgrading to the 4.0 version? I'm also intending on implementing a linux version.
Re: SDK Sample exception
In the 3.4 SDK the developer hooks up to the driver and then receives the raw 3DMouse data. His next step is to design some algorithms that convert the raw data into motion, get the required view properties from the application apply the motion model to them and set those properties back.... would you recommend upgrading to the 4.0 version?
The 4.0 SDK does all of the above. However, the 4.0 SDK has no knowledge of how get or set the applications view or related properties and requires the developer to implement a set of property accessors and mutators as the interface to the application. Once that is done you get all the various motion models implemented in the navigation library for free.
Application command export (so that the commands are assignable to 3DMouse buttons) can be implemented with both SDKs.
About Linux: I'm strictly a windows guy, and looking at the Linux developers forum doesn't inspire much hope. I would ask over there if there are plans for a cross-platform 4.0 SDK and how far they are.
Re: SDK Sample exception
Thanks for your assistance. I implemented the 3.4 sdk and have success with camera transformation.
I'll have a poke about the linux dev forum and see what's in store for me haha.
I'll have a poke about the linux dev forum and see what's in store for me haha.
Re: SDK Sample exception
There was an exception raised from <install_dir>\SentinelOne\Sentinel Agent <ver>\InProcessClient64.dll when debugging from visual studio. I requested a whitelist for 3DxTraceNL.exe from our IT and that seemed to resolve the issue.
I read about similar issues with antivirus causing the same problems, perhaps on the forum I don't recall.
I didn't have to whitelist anything for the 3.4 sample. It's not to easy for me to get things un/whitelisted so I'm afraid I can't offer much testing in this regard.
I read about similar issues with antivirus causing the same problems, perhaps on the forum I don't recall.
I didn't have to whitelist anything for the 3.4 sample. It's not to easy for me to get things un/whitelisted so I'm afraid I can't offer much testing in this regard.
Re: SDK Sample exception
Hi sn1k,
Do you recall what exception was being thrown? Perhaps there's an entry for that event in your security tool logs.
Nuno Gomes