1 2 3 Previous Next 35 Replies Latest reply on Apr 13, 2017 9:52 AM by Praveen_kumar

    PXCMSenseManager not compatible with the 2016 R3

    Praveen_kumar

      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.

        • 1. Re: PXCMSenseManager not compatible with the 2016 R3
          MartyG

          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.

          • 2. Re: PXCMSenseManager not compatible with the 2016 R3
            Praveen_kumar

            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?

            • 3. Re: PXCMSenseManager not compatible with the 2016 R3
              MartyG

              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!

              • 4. Re: PXCMSenseManager not compatible with the 2016 R3
                Praveen_kumar

                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.

                • 5. Re: PXCMSenseManager not compatible with the 2016 R3
                  MartyG

                  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.

                  • 7. Re: PXCMSenseManager not compatible with the 2016 R3
                    Intel Corporation
                    This message was posted on behalf of Intel Corporation

                    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.

                    • 8. Re: PXCMSenseManager not compatible with the 2016 R3
                      Praveen_kumar

                      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?

                      • 9. Re: PXCMSenseManager not compatible with the 2016 R3
                        Intel Corporation
                        This message was posted on behalf of Intel Corporation

                        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.

                        • 10. Re: PXCMSenseManager not compatible with the 2016 R3
                          Praveen_kumar

                          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.    

                          • 11. Re: PXCMSenseManager not compatible with the 2016 R3
                            Intel Corporation
                            This message was posted on behalf of Intel Corporation

                            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.

                            • 12. Re: PXCMSenseManager not compatible with the 2016 R3
                              Praveen_kumar

                              Thanks, Andres.

                              Looking forward to seeing some reply soon.

                              • 13. Re: PXCMSenseManager not compatible with the 2016 R3
                                Intel Corporation
                                This message was posted on behalf of Intel Corporation

                                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?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.

                                • 14. Re: PXCMSenseManager not compatible with the 2016 R3
                                  Praveen_kumar

                                  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.                             

                                  1 2 3 Previous Next