1 Reply Latest reply on Apr 26, 2017 5:25 AM by MartyG

    Issues when running Intel SDK samples with SR300 camera

    Trinity92

      Hello all!

       

       

      I am running into some trouble trying to run the Intel SDK sample for the 3D cameras on a Macbook Pro 15" 2015 Model running Ubuntu 16.04. I installed all of th dependencies and optional packages successfully and downloaded the source code from the repository.

       

      1) Tried to compile the samples from source (which succeeded), but I get the following error:

       

       

       leandrogil@trinity92-macbook-ubuntu:~/Dropbox/University_BachelorInInformatics/Master4_Thesis/realsense_samples/samples/pt_tutorial_3/build$ ./pt_tutorial_3 
          terminate called after throwing an instance of 'std::runtime_error'
            what():  camera is not support requested format
          Aborted (core dumped)
          leandrogil@trinity92-macbook-ubuntu:~/Dropbox/University_BachelorInInformatics/Master4_Thesis/realsense_samples/samples/pt_tutorial_3/build$
      
      

      Next, I compiled this sample with debugging symbols and ran the gdb debugger on it:

       

       

      GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.04) 7.11.1
          Copyright (C) 2016 Free Software Foundation, Inc.
          License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
          This is free software: you are free to change and redistribute it.
          There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
          and "show warranty" for details.
          This GDB was configured as "x86_64-linux-gnu".
          Type "show configuration" for configuration details.
          For bug reporting instructions, please see:
          <http://www.gnu.org/software/gdb/bugs/>.
          Find the GDB manual and other documentation resources online at:
          <http://www.gnu.org/software/gdb/documentation/>.
          For help, type "help".
          Type "apropos word" to search for commands related to "word"...
          Reading symbols from pt_tutorial_3...done.
          (gdb) run
          Starting program: /home/leandrogil/Dropbox/University_BachelorInInformatics/Master4_Thesis/realsense_samples/samples/pt_tutorial_3/build/pt_tutorial_3 
          [Thread debugging using libthread_db enabled]
          Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
          [New Thread 0x7fffea3cb700 (LWP 18084)]
          terminate called after throwing an instance of 'std::runtime_error'
            what():  camera is not support requested format
      
          Thread 1 "pt_tutorial_3" received signal SIGABRT, Aborted.
          0x00007ffff28cd428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
          54    ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
          (gdb) backtrace
          #0  0x00007ffff28cd428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
          #1  0x00007ffff28cf02a in __GI_abort () at abort.c:89
          #2  0x00007ffff2f0684d in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
          #3  0x00007ffff2f046b6 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
          #4  0x00007ffff2f04701 in std::terminate() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
          #5  0x00007ffff2f04919 in __cxa_throw () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
          #6  0x0000000000406a51 in pt_utils::ConfigureCamera (this=this@entry=0x7fffffffce60, device=0x71a7c0)
              at /home/leandrogil/Dropbox/University_BachelorInInformatics/Master4_Thesis/realsense_samples/samples/pt_tutorial_3/../common/utils/pt_utils.hpp:139
          #7  0x00000000004074df in pt_utils::init_camera (this=0x7fffffffce60, actualConfig=...)
              at /home/leandrogil/Dropbox/University_BachelorInInformatics/Master4_Thesis/realsense_samples/samples/pt_tutorial_3/../common/utils/pt_utils.hpp:326
          #8  0x0000000000403513 in main (argc=<optimized out>, argv=<optimized out>)
              at /home/leandrogil/Dropbox/University_BachelorInInformatics/Master4_Thesis/realsense_samples/samples/pt_tutorial_3/cpp/main.cpp:29
          (gdb) exit
          Undefined command: "exit".  Try "help".
          (gdb) quit
          A debugging session is active.
      
              Inferior 1 [process 18080] will be killed.
      
          Quit anyway? (y or n) y
          leandrogil@trinity92-macbook-ubuntu:~/Dropbox/University_BachelorInInformatics/Master4_Thesis/realsense_samples/samples/pt_tutorial_3/build$
      

       

      The program crashes at the following line in the main.cpp file:

       

         

          ...
          // Initializing Camera and Person Tracking modules
          if(pt_utils.init_camera(actualModuleConfig) != rs::core::status_no_error)
              {
          ...
      

       

      This init_camera(actualModuleConfig) call can be traced back to the common/utils/pt_utils.hpp file, where it references the following function/lines:

       

       

          ...
          rs::core::video_module_interface::actual_module_config ConfigureCamera (rs::device* device)
              {
              ...
              if (streamModeNb >= streamModeCount)
                      {
                          throw  runtime_error("camera is not support requested format");
                      }
              ...
          }
          ...
      

       

      Somewhere in this function I added the following line for debugging purposes, so that I can get the values with which it is trying to initialize the camera:

       

       

          ...
          // ##### debug line added by me #####
          cout << "\nTrying to enable stream with options:" << librealsenseStream << ", "<< width << "x" << height << "x" << frame_rate << ", format:" << format << endl;
          ...
      

       

      I also added the following line in the IsStreamCompatible() method, for similar purposes:

       

       

          bool IsStreamCompatible(rs::core::stream_type stream, rs::format  format, int width, int height, int frameRate) {
              ...
              // ##### debug line added by me #####
              std::cout << "colorFormatOK = " << colorFormatOK << endl << "frameRateOk = " << frameRateOK << endl << "resolutionOk = " << resolutionOK << endl;
      
              return  colorFormatOK && resolutionOK && frameRateOK;
              ...
          }
      

       

      When running the pt_tutorial_3 sample again with this line, I get the following output:

       

       

          leandrogil@trinity92-macbook-ubuntu:~/Dropbox/University_BachelorInInformatics/Master4_Thesis/realsense_samples/samples/pt_tutorial_3/build$ ./pt_tutorial_3 
      
          Trying to enable stream with options:DEPTH, 640x480x60, format:Z16
          colorFormatOK = 1
          frameRateOk = 0
          resolutionOk = 0
      
          Trying to enable stream with options:DEPTH, 640x480x30, format:Z16
          colorFormatOK = 1
          frameRateOk = 1
          resolutionOk = 0
      
          Trying to enable stream with options:DEPTH, 640x480x10, format:Z16
          colorFormatOK = 1
          frameRateOk = 0
          resolutionOk = 0
      
          Trying to enable stream with options:DEPTH, 640x240x110, format:Z16
          colorFormatOK = 1
          frameRateOk = 0
          resolutionOk = 0
      
          Trying to enable stream with options:DEPTH, 640x240x60, format:Z16
          colorFormatOK = 1
          frameRateOk = 0
          resolutionOk = 0
      
          Trying to enable stream with options:DEPTH, 640x240x30, format:Z16
          colorFormatOK = 1
          frameRateOk = 1
          resolutionOk = 0
      
          Trying to enable stream with options:DEPTH, 640x240x10, format:Z16
          colorFormatOK = 1
          frameRateOk = 0
          resolutionOk = 0
          terminate called after throwing an instance of 'std::runtime_error'
            what():  camera is not support requested format
          Aborted (core dumped)
          leandrogil@trinity92-macbook-ubuntu:~/Dropbox/University_BachelorInInformatics/Master4_Thesis/realsense_samples/samples/pt_tutorial_3/build$
      
      
      

       

      Seems like it's trying multiple configurations and see if any of these succeed, but the condition (colorFormatOK, frameRateOK and resolutionOK must all be true) is never satisfied as you can see. Also, the problem has to be related to the resolution since that boolean is never true in any of the scenarios. Thus, my investigation continues...

       

      I checked the samples/commons/pt_utils.hpp file again and at the very end of the file I found the following code:

       

       

          ...
          Resolution depth_resolution, color_resolution;
              ...
              int get_resolution_width(Resolution res)
              {
                  switch(res)
                  {
                  case RESOLUTION_QVGA:
                      return 320;
                  case RESOLUTION_VGA:
                      return 640;
                  case RESOLUTION_HD:
                      return 1280;
                  case RESOLUTION_FULLHD:
                      return 1920;
                  default:
                      throw std::runtime_error("unknown value for resolution");
                  }
              }
              int get_resolution_height(Resolution res)
              {
                  switch(res)
                  {
                  case RESOLUTION_QVGA:
                      return 240;
                  case RESOLUTION_VGA:
                      return 480;
                  case RESOLUTION_HD:
                      return 720;
                  case RESOLUTION_FULLHD:
                      return 1080;
                  default:
                      throw std::runtime_error("unknown value for resolution");
                  }
              }
          ...
      
      

      These definitions are used in the IsStreamCompatible method to determine if all of the camera parameters are correct, if I understood correctly, like so:

       

          ...
          bool IsStreamCompatible(rs::core::stream_type stream, rs::format  format, int width, int height, int frameRate) {
                  bool frameRateOK = (frameRate == 30);
                  bool colorFormatOK = false;
              bool resolutionOK = false;
              switch (stream)
                  {
                      case rs::core::stream_type::color:
                           colorFormatOK = (format == rs::format::rgb8);
                           resolutionOK = (width == get_resolution_width(color_resolution)) && (height == get_resolution_height(color_resolution)); //VGA resolution for color
                           break;
                      case rs::core::stream_type::depth:
                           colorFormatOK =  (format == rs::format::z16);
                           resolutionOK = (width == get_resolution_width(depth_resolution)) && (height == get_resolution_height(depth_resolution)); //QVGA resolution for depth
                           break;
                       default:
                           return  false;
                  }
      
              // ##### debug line added by me #####
              std::cout << "colorFormatOK = " << colorFormatOK << endl << "frameRateOk = " << frameRateOK << endl << "resolutionOk = " << resolutionOK << endl;
      
              return  colorFormatOK && resolutionOK && frameRateOK;
          }
          ...
      

       

      This function is finally called in the init_camera() method (still in the same file), which in turn is the method that the main.cpp file that belongs to the sample program:

       

       

          rs::core::status init_camera( rs::core::video_module_interface::actual_module_config& actualConfig)
              {
                  //Initializing depth resolution and color resolution
                  color_resolution = RESOLUTION_VGA;
                  depth_resolution = RESOLUTION_QVGA;
      
                  ...
      
                  return rs::core::status_no_error;
              }
      

       

      The depth_resolution variable will then be translated from RESOLUTION_QVGA to the 320x240 dimensions, which will be the final resolution used for the depth sensor. However, the RealSense SR300 3D camera does not support this resolution with the depth sensor! It should be 640x480 I think, shouldn't it?

      As a proof (sort of), here's the output of the lsusb command:

       

         

      wHeileandrogil@trinity92-macbook-ubuntu:~/Dropbox/University_BachelorInInformatics/Master4_Thesis/realsense_samples/samples$ lsusb -v -s 002:017 | egrep "wWidth|wHeight"         wWidth                           1920         wHeight                          1080         wWidth                           1280         wHeight                           720         wWidth                            960         wHeight                           540         wWidth                            848         wHeight                           480         wWidth                            640         wHeight                           480         wWidth                            640         wHeight                           360         wWidth                            424         wHeight                           240         wWidth                            320         wHeight                           240         wWidth                            320         wHeight                           180

       

      Above are the supported dimensions of the RGB camera, below are those for the depth sensor:

       

              wWidth                            640
              wHeight                           480
              wWidth                            640
              wHeight                           480
              wWidth                            640
              wHeight                           240
              wWidth                            640
              wHeight                           480
              wWidth                            640
              wHeight                           240
              wWidth                            640
              wHeight                           480
              wWidth                            640
              wHeight                           240
              wWidth                            640
              wHeight                           480
              wWidth                            640
              wHeight                           480
      leandrogil@trinity92-macbook-ubuntu:~/Dropbox/University_BachelorInInformatics/Master4_Thesis/realsense_samples/samples$
      

       

      As you can see, 320x280 is not a supported resolution of the depth sensor. A first fix was to simply change all of the lines in the pt_utils.hpp file that references the RESOLUTION_QVGA enum to RESOLUTION_VGA instead, which then seems to set the correct resolution of 640x480. Simple enough... until I stumbled upon a new error:

       

          Trying to enable stream with options:DEPTH, 640x480x60, format:Z16
          colorFormatOK = 1
          frameRateOk = 0
          resolutionOk = 1
      
          Trying to enable stream with options:DEPTH, 640x480x30, format:Z16
          colorFormatOK = 1
          frameRateOk = 1
          resolutionOk = 1
      
          enabling: stream:DEPTH, 640x480x30, format:Z16
      
          Trying to enable stream with options:COLOR, 1920x1080x30, format:YUYV
          colorFormatOK = 0
          frameRateOk = 1
          resolutionOk = 0
      
          Trying to enable stream with options:COLOR, 1920x1080x30, format:RGB8
          colorFormatOK = 1
          frameRateOk = 1
          resolutionOk = 0
      
          Trying to enable stream with options:COLOR, 1920x1080x30, format:BGR8
          colorFormatOK = 0
          frameRateOk = 1
          resolutionOk = 0
      
          Trying to enable stream with options:COLOR, 1920x1080x30, format:RGBA8
          colorFormatOK = 0
          frameRateOk = 1
          resolutionOk = 0
      
          Trying to enable stream with options:COLOR, 1920x1080x30, format:BGRA8
          colorFormatOK = 0
          frameRateOk = 1
          resolutionOk = 0
      
          Trying to enable stream with options:COLOR, 1920x1080x10, format:YUYV
          colorFormatOK = 0
          frameRateOk = 0
          resolutionOk = 0
      
          Trying to enable stream with options:COLOR, 1920x1080x10, format:RGB8
          colorFormatOK = 1
          frameRateOk = 0
          resolutionOk = 0
      
          Trying to enable stream with options:COLOR, 1920x1080x10, format:BGR8
          colorFormatOK = 0
          frameRateOk = 0
          resolutionOk = 0
      
          Trying to enable stream with options:COLOR, 1920x1080x10, format:RGBA8
          colorFormatOK = 0
          frameRateOk = 0
          resolutionOk = 0
      
          Trying to enable stream with options:COLOR, 1920x1080x10, format:BGRA8
          colorFormatOK = 0
          frameRateOk = 0
          resolutionOk = 0
      
          Trying to enable stream with options:COLOR, 1280x720x60, format:YUYV
          colorFormatOK = 0
          frameRateOk = 0
          resolutionOk = 0
      
          Trying to enable stream with options:COLOR, 1280x720x60, format:RGB8
          colorFormatOK = 1
          frameRateOk = 0
          resolutionOk = 0
      
          Trying to enable stream with options:COLOR, 1280x720x60, format:BGR8
          colorFormatOK = 0
          frameRateOk = 0
          resolutionOk = 0
      
          Trying to enable stream with options:COLOR, 1280x720x60, format:RGBA8
          colorFormatOK = 0
          frameRateOk = 0
          resolutionOk = 0
      
          Trying to enable stream with options:COLOR, 1280x720x60, format:BGRA8
          colorFormatOK = 0
          frameRateOk = 0
          resolutionOk = 0
      
          Trying to enable stream with options:COLOR, 1280x720x30, format:YUYV
          colorFormatOK = 0
          frameRateOk = 1
          resolutionOk = 0
      
          Trying to enable stream with options:COLOR, 1280x720x30, format:RGB8
          colorFormatOK = 1
          frameRateOk = 1
          resolutionOk = 0
      
          Trying to enable stream with options:COLOR, 1280x720x30, format:BGR8
          colorFormatOK = 0
          frameRateOk = 1
          resolutionOk = 0
      
          Trying to enable stream with options:COLOR, 1280x720x30, format:RGBA8
          colorFormatOK = 0
          frameRateOk = 1
          resolutionOk = 0
      
          Trying to enable stream with options:COLOR, 1280x720x30, format:BGRA8
          colorFormatOK = 0
          frameRateOk = 1
          resolutionOk = 0
      
          Trying to enable stream with options:COLOR, 1280x720x10, format:YUYV
          colorFormatOK = 0
          frameRateOk = 0
          resolutionOk = 0
      
          Trying to enable stream with options:COLOR, 1280x720x10, format:RGB8
          colorFormatOK = 1
          frameRateOk = 0
          resolutionOk = 0
      
          Trying to enable stream with options:COLOR, 1280x720x10, format:BGR8
          colorFormatOK = 0
          frameRateOk = 0
          resolutionOk = 0
      
          Trying to enable stream with options:COLOR, 1280x720x10, format:RGBA8
          colorFormatOK = 0
          frameRateOk = 0
          resolutionOk = 0
      
          Trying to enable stream with options:COLOR, 1280x720x10, format:BGRA8
          colorFormatOK = 0
          frameRateOk = 0
          resolutionOk = 0
      
          Trying to enable stream with options:COLOR, 960x540x60, format:YUYV
          colorFormatOK = 0
          frameRateOk = 0
          resolutionOk = 0
      
          Trying to enable stream with options:COLOR, 960x540x60, format:RGB8
          colorFormatOK = 1
          frameRateOk = 0
          resolutionOk = 0
      
          Trying to enable stream with options:COLOR, 960x540x60, format:BGR8
          colorFormatOK = 0
          frameRateOk = 0
          resolutionOk = 0
      
          Trying to enable stream with options:COLOR, 960x540x60, format:RGBA8
          colorFormatOK = 0
          frameRateOk = 0
          resolutionOk = 0
      
          Trying to enable stream with options:COLOR, 960x540x60, format:BGRA8
          colorFormatOK = 0
          frameRateOk = 0
          resolutionOk = 0
      
          Trying to enable stream with options:COLOR, 960x540x30, format:YUYV
          colorFormatOK = 0
          frameRateOk = 1
          resolutionOk = 0
      
          Trying to enable stream with options:COLOR, 960x540x30, format:RGB8
          colorFormatOK = 1
          frameRateOk = 1
          resolutionOk = 0
      
          Trying to enable stream with options:COLOR, 960x540x30, format:BGR8
          colorFormatOK = 0
          frameRateOk = 1
          resolutionOk = 0
      
          Trying to enable stream with options:COLOR, 960x540x30, format:RGBA8
          colorFormatOK = 0
          frameRateOk = 1
          resolutionOk = 0
      
          Trying to enable stream with options:COLOR, 960x540x30, format:BGRA8
          colorFormatOK = 0
          frameRateOk = 1
          resolutionOk = 0
      
          Trying to enable stream with options:COLOR, 960x540x10, format:YUYV
          colorFormatOK = 0
          frameRateOk = 0
          resolutionOk = 0
      
          Trying to enable stream with options:COLOR, 960x540x10, format:RGB8
          colorFormatOK = 1
          frameRateOk = 0
          resolutionOk = 0
      
          Trying to enable stream with options:COLOR, 960x540x10, format:BGR8
          colorFormatOK = 0
          frameRateOk = 0
          resolutionOk = 0
      
          Trying to enable stream with options:COLOR, 960x540x10, format:RGBA8
          colorFormatOK = 0
          frameRateOk = 0
          resolutionOk = 0
      
          Trying to enable stream with options:COLOR, 960x540x10, format:BGRA8
          colorFormatOK = 0
          frameRateOk = 0
          resolutionOk = 0
      
          Trying to enable stream with options:COLOR, 848x480x60, format:YUYV
          colorFormatOK = 0
          frameRateOk = 0
          resolutionOk = 0
      
          Trying to enable stream with options:COLOR, 848x480x60, format:RGB8
          colorFormatOK = 1
          frameRateOk = 0
          resolutionOk = 0
      
          Trying to enable stream with options:COLOR, 848x480x60, format:BGR8
          colorFormatOK = 0
          frameRateOk = 0
          resolutionOk = 0
      
          Trying to enable stream with options:COLOR, 848x480x60, format:RGBA8
          colorFormatOK = 0
          frameRateOk = 0
          resolutionOk = 0
      
      
      
          Trying to enable stream with options:COLOR, 848x480x60, format:BGRA8
          colorFormatOK = 0
          frameRateOk = 0
          resolutionOk = 0
      
          Trying to enable stream with options:COLOR, 848x480x30, format:YUYV
          colorFormatOK = 0
          frameRateOk = 1
          resolutionOk = 0
      
          Trying to enable stream with options:COLOR, 848x480x30, format:RGB8
          colorFormatOK = 1
          frameRateOk = 1
          resolutionOk = 0
      
          Trying to enable stream with options:COLOR, 848x480x30, format:BGR8
          colorFormatOK = 0
          frameRateOk = 1
          resolutionOk = 0
      
          Trying to enable stream with options:COLOR, 848x480x30, format:RGBA8
          colorFormatOK = 0
          frameRateOk = 1
          resolutionOk = 0
      
          Trying to enable stream with options:COLOR, 848x480x30, format:BGRA8
          colorFormatOK = 0
          frameRateOk = 1
          resolutionOk = 0
      
          Trying to enable stream with options:COLOR, 848x480x10, format:YUYV
          colorFormatOK = 0
          frameRateOk = 0
          resolutionOk = 0
      
          Trying to enable stream with options:COLOR, 848x480x10, format:RGB8
          colorFormatOK = 1
          frameRateOk = 0
          resolutionOk = 0
      
          Trying to enable stream with options:COLOR, 848x480x10, format:BGR8
          colorFormatOK = 0
          frameRateOk = 0
          resolutionOk = 0
      
          Trying to enable stream with options:COLOR, 848x480x10, format:RGBA8
          colorFormatOK = 0
          frameRateOk = 0
          resolutionOk = 0
      
          Trying to enable stream with options:COLOR, 848x480x10, format:BGRA8
          colorFormatOK = 0
          frameRateOk = 0
          resolutionOk = 0
      
          Trying to enable stream with options:COLOR, 640x480x60, format:YUYV
          colorFormatOK = 0
          frameRateOk = 0
          resolutionOk = 1
      
          Trying to enable stream with options:COLOR, 640x480x60, format:RGB8
          colorFormatOK = 1
          frameRateOk = 0
          resolutionOk = 1
      
          Trying to enable stream with options:COLOR, 640x480x60, format:BGR8
          colorFormatOK = 0
          frameRateOk = 0
          resolutionOk = 1
      
          Trying to enable stream with options:COLOR, 640x480x60, format:RGBA8
          colorFormatOK = 0
          frameRateOk = 0
          resolutionOk = 1
      
          Trying to enable stream with options:COLOR, 640x480x60, format:BGRA8
          colorFormatOK = 0
          frameRateOk = 0
          resolutionOk = 1
      
          Trying to enable stream with options:COLOR, 640x480x30, format:YUYV
          colorFormatOK = 0
          frameRateOk = 1
          resolutionOk = 1
      
          Trying to enable stream with options:COLOR, 640x480x30, format:RGB8
          colorFormatOK = 1
          frameRateOk = 1
          resolutionOk = 1
      
          enabling: stream:COLOR, 640x480x30, format:RGB8
      
          terminate called after throwing an instance of 'rs::error'
            what():  Option unsupported
          Aborted (core dumped)
          leandrogil@trinity92-macbook-ubuntu:~/Dropbox/University_BachelorInInformatics/Master4_Thesis/realsense_samples/samples/pt_tutorial_3/build$
      

       

      Well... let's say that I wasn't expecting this to work, but after inspecting this incident with gdb once more, I know now at least what other line is failing. I don't have my camera with me right now so I can't really show you the gdb output, but the next line in samples/common/utils/pt_utils.hpp that is failing is the following one:

       

       

          ...
          rs::core::status init_camera( rs::core::video_module_interface::actual_module_config& actualConfig)
              {
              //Initializing depth resolution and color resolution
              ...
              ...
              //enable auto exposure for Depth camera stream
              m_dev->set_option(rs::option::r200_lr_auto_exposure_enabled, 1);
              ...
          }
          ...
      

       

      I simply uncommented this line, compiled and ran the program again and... it now works! Although, it opens the RGB camera instead and not the depth sensor (I'm not sure if this is expected behaviour, but just wanted to point that out.). This leads me to believe to the following statements:

          - the RealSense SR300 camera does not support 320x280 resolution on the depth camera

          - the RealSense SR300 camera does not support auto exposure for the depth camera

      I think that there should be some case distinction somewhere before those lines where one would check the camera model before proceeding with these lines, as most of the samples will crash when using the RealSense SR300 camera as of now. If anyone has any other suggestions to solve this issue, then please feel free!