librealsense icon indicating copy to clipboard operation
librealsense copied to clipboard

Windows 10 Version 1607 causes camera to crash

Open Wollimayer opened this issue 10 years ago • 2 comments

Required Info
Camera Model SR300
Firmware Version 1.15.00 / 1.17.00
Operating System & Version Windows 10 : version 1607 os build 14393.51
Build System VS2015

The librealses seems to have problems with the recent windows 10 Build (version 1607) release on the 2.8.2016 .

I experince some random crashes of the camera. I could not pin done the exact line causing the issue but would recommand not to update to the current build yet.

(In case someone experinces the same problem, there is an option to revert the system back to the latest build ( without reinstalling the system). Officialy not available after 10 days with the new build.

UPDATE: I testet this issue on different maschines :

  1. Running old build of win 10 -> no problems with firmeware 1.15 /1.17
  2. Running current build of win 10 -> error while init camera and set parameters -> After reset to old build of win 10 -> no problems with firmeware 1.15 /1.17 anymore.
    1. Running current old build of win 10 -> no problems with firmeware 1.15 /1.17 -> After installing current build -> error while init camera and set parameters

So this problems seems to be connected to the current windows build.

The error seems to be thrown here uvc.wmf line 564 when setting a F200/SR300 parameter.

ks_control->KsProperty((PKSPROPERTY)&node, sizeof(KSP_NODE), data, len, nullptr) allways returns -2147467261 (HRESULT : E_POINTER Invalid pointer. ) which indicates an error. Same program with previos build returns 0 (indicates no error).

If i do ignore those error some parameters are still beeing set to the camera. However it is not possible to check if it was executed correctly ( which usually results in a retry till it worked)

Is it possible, that some interfaces were changed at this point (windows side) ?

Wollimayer avatar Aug 15 '16 15:08 Wollimayer

SOLVED:

Problem was that ks_control->KsProperty((PKSPROPERTY)&node, sizeof(KSP_NODE), data, len, nullptr) does not accept nullpointer anymore. Changed to

ULONG bytes_received = 0; check("IKsControl::KsProperty", ks_control->KsProperty((PKSPROPERTY)&node, sizeof(KSP_NODE), data, len, &b

Wollimayer avatar Aug 17 '16 12:08 Wollimayer

Thank you, we'll make sure to integrate the fix

dorodnic avatar Aug 17 '16 12:08 dorodnic