Jump to content

SRWorks C sample project hangs without errors


Schnaaki

Recommended Posts

Dear community,

I just bought a HTC Vive Pro and started working with the SRWorks SDK as I would love to develop software for it. However, I am already experiencing problems with the first sample project I would like to run. Hopefully anyone can help me with my problems.

 

I am able to compile the provided SRWorks SDK C sample code. However, if I run the binary a command window opens, giving me the following feedback:

 
SeeThrough observer ExternalCommandModule (first)
ViveSR_CreateModule 0 success(0)
 
Depth observer ExternalCommandModule (first)
ViveSR_CreateModule 2 success(0)
 
AI_Vision observer ExternalCommandModule (first)
ViveSR_CreateModule 4 success(0)
[Reconstruction Engine] [2018-11-27 12:17:13] [LOG] ViveStaticReconstruction Construction
 
RigidReconstruction observer ExternalCommandModule (first)
ViveSR_CreateModule 6 success(0)
[Reconstruction Engine] [2018-11-27 12:17:14]  [-WARNING-] [code: 0x0012] 
[Reconstruction Engine] [2018-11-27 12:17:14]  [-WARNING-] [code: 0x0012]  
 
I suppose at some point a GUI window should open but I can wait for a long time without anything happening. Looking into the log file doesn't give me any errors or warnings and shows me the following:
 
[Vive SRWorks] [2018-11-27 11:51:10] [LOG] ViveSR_Initial() success
[Vive SRWorks] [2018-11-27 11:51:10] [LOG] SRWorks Version 0.8.0.2
[Vive SRWorks] [2018-11-27 11:51:10] [LOG] OS : Windows 8+
[Vive SRWorks] [2018-11-27 11:51:10] [LOG] CPU GetMemory Total : 32446.000000
[Vive SRWorks] [2018-11-27 11:51:10] [LOG] CPU GetMemory InUse : 4523.000000
[Vive SRWorks] [2018-11-27 11:51:10] [LOG] GPU : TITAN V
[Vive SRWorks] [2018-11-27 11:51:10] [LOG] GPU driver : 41681
[Vive SRWorks] [2018-11-27 11:51:10] [LOG] GPU memory usage : 4238.183594
[Vive SRWorks] [2018-11-27 11:51:10] [LOG] GPU memory loading: 5
[JSON] [2018-11-27 11:51:10] [LOG] found steam install path
[JSON] [2018-11-27 11:51:10] [LOG] using device : LHR-0E37D649
[JSON] [2018-11-27 11:51:10] [LOG] using system : lighthouse
[JSON] [2018-11-27 11:51:11] [LOG] found device config file : C:\Program Files (x86)\Steam\config\lighthouse\LHR-0E37D649\config.json
[JSON] [2018-11-27 11:51:11] [LOG] Cali_V2D_00000
[JSON] [2018-11-27 11:51:11] [LOG] MIE_GCP_00000
[JSON] [2018-11-27 11:51:11] [LOG] found steam install path
[JSON] [2018-11-27 11:51:11] [LOG] using device : LHR-0E37D649
[JSON] [2018-11-27 11:51:11] [LOG] using system : lighthouse
[JSON] [2018-11-27 11:51:11] [LOG] found device config file : C:\Program Files (x86)\Steam\config\lighthouse\LHR-0E37D649\config.json
[JSON] [2018-11-27 11:51:11] [LOG] Cali_V2D_00000
[JSON] [2018-11-27 11:51:11] [LOG] MIE_GCP_00000
[ENGINE_SEETHROUGH_0] [2018-11-27 11:51:11] [LOG] ExternalCommandModule_link_to_SeeThrough_mode(first)
[Vive SRWorks] [2018-11-27 11:51:11] [LOG] CM_MT1_MID0_00000
[ENGINE_DEPTH_2] [2018-11-27 11:51:11] [LOG] ExternalCommandModule_link_to_Depth_mode(first)
[Vive SRWorks] [2018-11-27 11:51:11] [LOG] CM_MT4_MID2_00000
[ENGINE_AI_SCENE_4] [2018-11-27 11:51:11] [LOG] ExternalCommandModule_link_to_AI_Vision_mode(first)
[Vive SRWorks] [2018-11-27 11:51:11] [LOG] CM_MT7_MID4_00000
[ENGINE_RIGID_RECONSTRUCTION_6] [2018-11-27 11:51:11] [LOG] ExternalCommandModule_link_to_RigidReconstruction_mode(first)
[Vive SRWorks] [2018-11-27 11:51:11] [LOG] CM_MT5_MID6_00000
[ENGINE_SEETHROUGH_0] [2018-11-27 11:51:12] [LOG] M_MSCD_set_VRINT_1
[ENGINE_SEETHROUGH_0] [2018-11-27 11:51:12] [LOG] M_MSCD_set_VRINT_TYPE1
[ENGINE_SEETHROUGH_0_DLL] [2018-11-27 11:51:13] [LOG] initialization mode 2-2
[ENGINE_SEETHROUGH_0_DLL] [2018-11-27 11:51:13] [LOG] Create Mapping table start
[ENGINE_SEETHROUGH_0_DLL] [2018-11-27 11:51:13] [LOG] Create Mapping table end
[ENGINE_SEETHROUGH_0_DLL] [2018-11-27 11:51:13] [LOG] Create Mapping table start
[ENGINE_SEETHROUGH_0_DLL] [2018-11-27 11:51:13] [LOG] Create Mapping table end
[ENGINE_SEETHROUGH_0_DLL] [2018-11-27 11:51:13] [LOG] initialization mode end2-2
[ENGINE_SEETHROUGH_0_DLL] [2018-11-27 11:51:13] [LOG] TurnOn
 

I was able to trace the problem to the following line of code in the main.cpp (line 122) of the sample-vs2015 project:

res = ViveSR_StartModule(ID_SEETHROUGH);

The process just hangs here and fills up my RAM very quickly (I have 32GB RAM installed) and then crashes.

 

My setup is as follows:
1) Windows 10 64bit
2) SRWorks C Sample code v.0.8.0.2

3) Visual Studio 2017 Community edition

4) HTC Vive Pro Full Kit (fully updated firmware)

5) Nvidia Titan V (fully updated driver)

 

I hope anyone has a good idea what might be the problem in my case as I am struggling to get this basic sample to work on my machine.

 

Thanks in advance for all your help and suggestions!


 

Link to comment
Share on other sites

Hi Schnaaki,

 

Maybe you could check your steamvr camera setting, follow below steps.

you should see three green check signs and live image streaming of front camera. 

 

and test the original SRWorks C sample code, maybe start from the pre-built executable.

If there still occur problems with SRWorks C sample code, may you upload the entire srworks.log file?

 


 wrote:

Dear community,

I just bought a HTC Vive Pro and started working with the SRWorks SDK as I would love to develop software for it. However, I am already experiencing problems with the first sample project I would like to run. Hopefully anyone can help me with my problems.

 

I am able to compile the provided SRWorks SDK C sample code. However, if I run the binary a command window opens, giving me the following feedback:
 
SeeThrough observer ExternalCommandModule (first)

ViveSR_CreateModule 0 success(0)
 
Depth observer ExternalCommandModule (first)
ViveSR_CreateModule 2 success(0)
 
AI_Vision observer ExternalCommandModule (first)
ViveSR_CreateModule 4 success(0)
[Reconstruction Engine] [2018-11-27 12:17:13] [LOG] ViveStaticReconstruction Construction
 
RigidReconstruction observer ExternalCommandModule (first)
ViveSR_CreateModule 6 success(0)
[Reconstruction Engine] [2018-11-27 12:17:14]  [-WARNING-] [code: 0x0012] 
[Reconstruction Engine] [2018-11-27 12:17:14]  [-WARNING-] [code: 0x0012]  
 
I suppose at some point a GUI window should open but I can wait for a long time without anything happening. Looking into the log file doesn't give me any errors or warnings and shows me the following:
 
[Vive SRWorks] [2018-11-27 11:51:10] [LOG] ViveSR_Initial() success
[Vive SRWorks] [2018-11-27 11:51:10] [LOG] SRWorks Version 0.8.0.2
[Vive SRWorks] [2018-11-27 11:51:10] [LOG] OS : Windows 8+
[Vive SRWorks] [2018-11-27 11:51:10] [LOG] CPU GetMemory Total : 32446.000000
[Vive SRWorks] [2018-11-27 11:51:10] [LOG] CPU GetMemory InUse : 4523.000000
[Vive SRWorks] [2018-11-27 11:51:10] [LOG] GPU : TITAN V
[Vive SRWorks] [2018-11-27 11:51:10] [LOG] GPU driver : 41681
[Vive SRWorks] [2018-11-27 11:51:10] [LOG] GPU memory usage : 4238.183594
[Vive SRWorks] [2018-11-27 11:51:10] [LOG] GPU memory loading: 5
[JSON] [2018-11-27 11:51:10] [LOG] found steam install path
[JSON] [2018-11-27 11:51:10] [LOG] using device : LHR-0E37D649
[JSON] [2018-11-27 11:51:10] [LOG] using system : lighthouse
[JSON] [2018-11-27 11:51:11] [LOG] found device config file : C:\Program Files (x86)\Steam\config\lighthouse\LHR-0E37D649\config.json
[JSON] [2018-11-27 11:51:11] [LOG] Cali_V2D_00000
[JSON] [2018-11-27 11:51:11] [LOG] MIE_GCP_00000
[JSON] [2018-11-27 11:51:11] [LOG] found steam install path
[JSON] [2018-11-27 11:51:11] [LOG] using device : LHR-0E37D649
[JSON] [2018-11-27 11:51:11] [LOG] using system : lighthouse
[JSON] [2018-11-27 11:51:11] [LOG] found device config file : C:\Program Files (x86)\Steam\config\lighthouse\LHR-0E37D649\config.json
[JSON] [2018-11-27 11:51:11] [LOG] Cali_V2D_00000
[JSON] [2018-11-27 11:51:11] [LOG] MIE_GCP_00000
[ENGINE_SEETHROUGH_0] [2018-11-27 11:51:11] [LOG] ExternalCommandModule_link_to_SeeThrough_mode(first)
[Vive SRWorks] [2018-11-27 11:51:11] [LOG] CM_MT1_MID0_00000
[ENGINE_DEPTH_2] [2018-11-27 11:51:11] [LOG] ExternalCommandModule_link_to_Depth_mode(first)
[Vive SRWorks] [2018-11-27 11:51:11] [LOG] CM_MT4_MID2_00000
[ENGINE_AI_SCENE_4] [2018-11-27 11:51:11] [LOG] ExternalCommandModule_link_to_AI_Vision_mode(first)
[Vive SRWorks] [2018-11-27 11:51:11] [LOG] CM_MT7_MID4_00000
[ENGINE_RIGID_RECONSTRUCTION_6] [2018-11-27 11:51:11] [LOG] ExternalCommandModule_link_to_RigidReconstruction_mode(first)
[Vive SRWorks] [2018-11-27 11:51:11] [LOG] CM_MT5_MID6_00000
[ENGINE_SEETHROUGH_0] [2018-11-27 11:51:12] [LOG] M_MSCD_set_VRINT_1
[ENGINE_SEETHROUGH_0] [2018-11-27 11:51:12] [LOG] M_MSCD_set_VRINT_TYPE1
[ENGINE_SEETHROUGH_0_DLL] [2018-11-27 11:51:13] [LOG] initialization mode 2-2
[ENGINE_SEETHROUGH_0_DLL] [2018-11-27 11:51:13] [LOG] Create Mapping table start
[ENGINE_SEETHROUGH_0_DLL] [2018-11-27 11:51:13] [LOG] Create Mapping table end
[ENGINE_SEETHROUGH_0_DLL] [2018-11-27 11:51:13] [LOG] Create Mapping table start
[ENGINE_SEETHROUGH_0_DLL] [2018-11-27 11:51:13] [LOG] Create Mapping table end
[ENGINE_SEETHROUGH_0_DLL] [2018-11-27 11:51:13] [LOG] initialization mode end2-2
[ENGINE_SEETHROUGH_0_DLL] [2018-11-27 11:51:13] [LOG] TurnOn
 

I was able to trace the problem to the following line of code in the main.cpp (line 122) of the sample-vs2015 project:

res = ViveSR_StartModule(ID_SEETHROUGH);

The process just hangs here and fills up my RAM very quickly (I have 32GB RAM installed) and then crashes.

 

My setup is as follows:

1) Windows 10 64bit

2) SRWorks C Sample code v.0.8.0.2

3) Visual Studio 2017 Community edition

4) HTC Vive Pro Full Kit (fully updated firmware)

5) Nvidia Titan V (fully updated driver)

 

I hope anyone has a good idea what might be the problem in my case as I am struggling to get this basic sample to work on my machine.

 

Thanks in advance for all your help and suggestions!

Step1. 

 

Step2

Step3.

Link to comment
Share on other sites

Dear KevinYYLai,

thanks for your quick response. Indeed, I read several posts in this forum before creating a new topic, so I found the hint for activation of the front cameras already. Yes, all three check signs are there and I get a live preview of both cameras in the SteamVR app.

I tried the precompiled binaries of the C Sample code in v.0.8.0.1 and v.0.8.0.2 both before compiling the source code myself. I get the same problems also with the precompiled binaries. The task manager tells me that the process is inactive and I can watch my RAM getting filled up to the max. Then the process crashes.

The log I provided in my first post is indeed the complete log. It just stops after the line:

[ENGINE_SEETHROUGH_0_DLL] [2018-11-27 12:17:15] [LOG] TurnOn

I am happy to share more information here if you have any idea where to look at. Thanks for your help in troubleshooting this particular problem.

Link to comment
Share on other sites

  • 2 weeks later...

Any progress on this issus?

 

I'm having trouble running the Unity build files for Vive_SRWorks_Demo

-build version 0.8.0.2

-GPU: Titan V

-SteamVR: 1.2.1 beta & 1.1.4 both 

-tried json regeneration on Lighthouse pathway, checked SteamVR install path(which is default)

GPU -driver: latest version 

 

The demo build runs well on PC with GTX1080 as GPU.

Log stops updating after [ENGINE_SEETHROUGH_0_DLL]____[LOG] TurnOn,

and the program freezes, leaking memory to 97-98%

Link to comment
Share on other sites

I ran the same test with the Unity SRWorks & SRWorks Experience plugins

 

1)Unity-2018.2.20f (2018.3.xf or 2018.2.19f cannot run these SDK scenes as 2.19f and 3.x break packages)

2)PC - GTX1080 PC & Titan V PC

3)SteamVR - 1.2.1 beta & 1.1.4

 

The same problem persists with the Titan V PC, while GTX1080 PC can run the Unity scenes without issues.

I also report Unity freezing with memory leaks for the Titan V PC.  Unity editor does not respond.

 

The Logs in the Unity project is the same for the SRWorks build application.

~~Logs on initialization without errors on config or path~~

 [ENGINE_SEETHROUGH_0_DLL]____[LOG] TurnOn, 

and then nothing.

Link to comment
Share on other sites

  • 10 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...