Items with no label
3335 Discussions

PXCMSenseManager not compatible with the 2016 R3

PKuma35
Beginner
2,577 Views

I have been using the camera for image acquisition with the older version of the camera (SR300 version 1) as per the old documentation and it is not working with the new camera (SR300 version 2) as per the 2016 R3 SDK Documentation.

 

Can you please help me troubleshoot this error?

I am getting a Null Reference Exception at this point below:-

NoFail(SenseManager.EnableStream(PXCMCapture.StreamType.STREAM_TYPE_COLOR, 1280, 720, 30), "Failed to enable color stream.");

The camera fails to start in this case. And the application crashes otherwise.

0 Kudos
35 Replies
MartyG
Honored Contributor III
614 Views

Often, the SenseManager is written in scripts as sm instead of SenseManager. Here's an example that's similar to your script:

sm.EnableStream(PXCMCapture.StreamType.STREAM_TYPE_COLOR, 1920, 1080, 30);

Maybe you could try changing the word SenseManager to sm in your script and see if that removes the error.

0 Kudos
PKuma35
Beginner
614 Views

No. Sensemanager is not abbreviated in this case.

I believe that PXCMSenseManager.CreateInstance(); isnot initiated properly in the line above.

SenseManager = PXCMSenseManager.CreateInstance();

RaiseMessage("Starting the camera...");

SenseManager.EnableStream(PXCMCapture.StreamType.STREAM_TYPE_COLOR, 1920, 1080, 30);

Can you help me on that?

0 Kudos
MartyG
Honored Contributor III
614 Views

There are helpful people on this forum who are much more experienced than me in stream programming. Hopefully they can give you better advice on this than I can. I apologize for the wait in the meantime. Good luck!

0 Kudos
PKuma35
Beginner
614 Views

Thanks for your reply. I appreciate your help in the meantime. Please share the post if you can so that I can the response is quicker.

Thanks again for your assistance in this regard.

0 Kudos
MartyG
Honored Contributor III
614 Views

As long as your post is marked as unanswered, an Intel support staff member will follow up on it and discuss your problem with you.

0 Kudos
PKuma35
Beginner
614 Views
0 Kudos
idata
Employee
614 Views

Hello Praveen_kumar,

Thank you for interest in the Intel® RealSense™ Technology.

I understand you are experiencing a null reference exception when using the SenseManager function.

Could you please tell me what is the "old documentation" that you mentioned in the first post?

If you are willing to share your code, we may be able to have a better understanding of what may be causing the issue.

I'll be needing more time to come up with information that you may find useful.

As soon as I have relevant information I'll post it here.

Thank you for your patience.

Regards,

 

Andres V.
0 Kudos
PKuma35
Beginner
614 Views

Hi Andres,

Thanks for your email.

I appreciate your efforts to reach me.

 

So as discussed, I was using the SDK with the older version of SR300 hardware VF0800.

But now, as we got the new hardware (SR300 new version VF0810) the older SDK does not work anymore.

Some function calls are continuing to fail inherently.

Can you throw some light on the above errors please?

0 Kudos
idata
Employee
614 Views

Hello Praveen_kumar,

 

 

Thank you for the information provided.

 

 

In order to provide better assistance we'll be needing more specific information, so please check the following requests:

 

 

1. The full version of the RealSense SDK you were using before that worked for you. All SDK versions work with all models of the SR300 camera. You can see the version number of the SDK in Programs and Features.

 

 

2. The DCM (Depth Camera Manager) versions you used before and now.

 

 

3. A more complete code snippet would be helpful for us to further troubleshoot the issue.

 

 

I'll be waiting for your response.

 

 

Regards,

 

Andres V.
0 Kudos
PKuma35
Beginner
614 Views

Hi Andres,

 

Thanks for your reply.

Please find the answers to your queries below:-

1. The full version of the RealSense SDK you were using before that worked for you. All SDK versions work with all models of the SR300 camera. You can see the version number of the SDK in Programs and Features.

I was using the Real Sense SDK 2016 R2 version 7.0.23.8048 before that worked with the Camera VF0800 on Windows 8

Now, I am intending to use the Real Sense SDK 3D scan for windows version 11.0.27.8892 with the Camera VF0810 on Windows 10.

I will be happy to use the SDK R2 if it works with the newer camera (VF0810) on Windows 10. I strongly believe it doesn't.

Also advise if I am missing something in the SDK.

2. The DCM (Depth Camera Manager) versions you used before and now.

Previous version of DCM is 1.4.27.41944 and the current version is 3.3.27.8892

3. A more complete code snippet would be helpful for us to further troubleshoot the issue.

Here is a complete snippet of the function where I get a null reference exception. The issue is exactly when I call the SenseManager. Looks like the function call needs to be revised. If yes, what ll function calls do i have to revise and how?

SenseManager = PXCMSenseManager.CreateInstance();

RaiseMessage("Starting the camera...");

NoFail(SenseManager.EnableStream(PXCMCapture.StreamType.STREAM_TYPE_COLOR, 1920, 1080, 30), "Failed to enable color stream.");

NoFail(SenseManager.EnableStream(PXCMCapture.StreamType.STREAM_TYPE_DEPTH, 640, 480, 30), "Failed to enable depth stream.");

NoFail(SenseManager.EnableFace(), "failed to enable face module");

NoFail(SenseManager.Enable3DScan(), "failed to enable 3d scan");

Let me know if you need any more information and thanks again for your assistance with this regard.

Any speedy assistance with this issue is highly appreciated.

0 Kudos
idata
Employee
614 Views

Hello Praveen_kumar,

 

 

Thank you for sharing all the information requested.

 

 

Now I'll proceed to analyze the information, as soon as I have relevant results I'll contact you through this post.

 

 

Thank you for your patience.

 

 

Regards,

 

Andres V.
0 Kudos
PKuma35
Beginner
614 Views

Thanks, Andres.

Looking forward to seeing some reply soon.

0 Kudos
idata
Employee
614 Views

Hello Praveen_kumar,

While I investigate, could you please check the following link https://software.intel.com/sites/landingpage/realsense/camera-sdk/v2016r3/documentation/html/index.html%3Fpxcsensemanager.html https://software.intel.com/sites/landingpage/realsense/camera-sdk/v2016r3/documentation/html/index.html?pxcsensemanager.html for more information regarding the SenseManager interface.

Also, could you try the following, and share your results:

Use "SenseManager sm=SenseManager.CreateInstance();" then use sm in the rest of the function calls instead of using SenseManager directly.

I'll be waiting for your response.

Regards,

 

Andres V.
0 Kudos
PKuma35
Beginner
614 Views

Hi Andres,

 

thanks for your reply.

I did try it already but I am getting an error as I have not declared Sensemanager in my definition.

 

But in my case, with the older documentation, I have declared the PXCMSenseManager already in a public class termed PXCNSenseManager:PXCMBase

If this is what we intend to correct, please advise how we have to have it changed.

0 Kudos
idata
Employee
614 Views

Hello Praveen_kumar,

 

 

Thank you for the fast reply, all that information may help us come up with a solution to the issue.

 

 

As soon as I have relevant results I'll contact you through this post.

 

 

Thank you for your patience.

 

 

Regards,

 

Andres V.
0 Kudos
idata
Employee
614 Views

Hello Praveen_kumar,

 

 

Could you please try using this code snippet from "C:\Program Files (x86)\Intel\RSSDK\framework\CSharp\DF_3DScan.cs", line 235:

 

 

/* Create an instance of the PXCSenseManager interface */

 

PXCMSenseManager pp = PXCMSenseManager.CreateInstance();

 

if (pp == null)

 

{

 

form.UpdateStatus("Failed to create sense manager");

 

return;

 

}

 

 

Please let me know the outcome of this.

 

 

I'll be waiting for your response.

 

 

Regards,

 

Andres V.
0 Kudos
PKuma35
Beginner
614 Views

Hi Andres,

Thanks for your reply. As discussed with you earlier, I think that the PXCMSenseManager Method is no longer valid.

This is how my code looks like:

PXCMSenseManager pp= PXCMSenseManager.CreateInstance();

System.Console.WriteLine("The value of pp is:",pp);

if (pp==null)

{

RaiseMessage("Camera did not start");

}

RaiseMessage("Starting...");

NoFail(pp.EnableStream(PXCMCapture.StreamType.STREAM_TYPE_COLOR, 1280, 720, 30), "Failed to enable color stream.");

NoFail(pp.EnableStream(PXCMCapture.StreamType.STREAM_TYPE_DEPTH, 640, 480, 30), "Failed to enable depth stream.");

I am getting a null unhandled exception in the highlighted line.

It pretty much looks to me that the PXCMSenseManager method is not able to create an instance of the camera using the old version of the Dynamic linked libraries.

Can you please escalate the issue or speed up to initiate a phone conversation or maybe a screen sharing session to narrow down the issue further?

 

Thanks and regards,

Praveen Kumar.

0 Kudos
idata
Employee
614 Views

Hello Praveen_kumar,

Thank you for letting me know the outcome of running the code.

I understand the urgency of the situation, please let me investigate a bit further in order to come up with a solution to your issue.

Currently, all technical support is made through this community so I can't provide assistance via phone call or screen sharing.

Sorry for the inconvenience this may cause.

Thank you for your patience.

Regards,

 

Andres V.

Jesus Garcia

0 Kudos
jb455
Valued Contributor II
614 Views

This may not be any use, but just in case...

Did you copy all of the new DLLs to your debug (and/or release) folder? You should have libpxcclr.cs.dll and libpxccpp2c.dll there, both with the same "last modified" date. To be sure you have the right ones you can copy them from C:\Program Files (x86)\Intel\RSSDK\bin\(x64 or win32 depending on which you're building for). I once had issues when updating my app to a newer SDK because I forgot to update the latter file.

0 Kudos
PKuma35
Beginner
582 Views

jb455 : That is a very good point and it makes absolute sense.

And did not change the dll's before and now I have changed them.

But now, the situation is more critical. Once I changed the dll's and tweaked some code, I can see the LIDAR and the depth laser lights glowing in the camera once I start an instance.

But, I cannot see any image in the screen.

 

I think we are nearing the solution but would like to solve it real soon.intel_corp the_jesus MartyG

Thanks again for your assistance and any more information towards the solution is highly appreciated.

0 Kudos
Reply