microsoft / Azure-Kinect-Sensor-SDK

A cross platform (Linux and Windows) user mode SDK to read data from your Azure Kinect device.
https://Azure.com/Kinect
MIT License
1.47k stars 613 forks source link

[vcpkg] Run-time crash due to multiple libraries trying to use the same log-file. #1962

Open MartinEekGerhardsen opened 6 months ago

MartinEekGerhardsen commented 6 months ago

Describe the bug

When using the k4arecord library, both k4a and k4arecord seem to try to log to the same logfile. This is an issue when installing the sdk using vcpkg, and is also described here.

To Reproduce

The program shows the current env varables (to ensure that I know these are set) and then the program executes without issue. The logs are either disabled or set to two separate files.

Logs

N/A

Screenshots

Here is a screenshot of the run time error I get from the code described above. image

Desktop (please complete the following information):

Additional context

I don't have this issue when using k4a and k4arecord from system installs. However, this is a suboptimal solution, as