This repository has been archived by the owner on Aug 22, 2024. It is now read-only.
[Visual Studio and vcpkg] Logger unable to open log file "k4a.log" #1987
Labels
Bug
Something isn't working
Code Sample
This issue is related to a code sample
Triage Needed
The Issue still needs to be reviewed by Azure Kinect team members.
Hey,
Thank you in advance for your time and help!
Describe the bug
I use Visual Studio and installed the SDK with the embedded
vcpkg
in manifest mode.When trying to get a frame of my
.mkv
Kinect video using thek4a_playback_get_next_capture
function, an exception occurs. It seems to be related to log files (The message <Logger unable to open log file "k4a.log"> appears in the terminal).More detail
0
or a specific location (both absolute and relative paths). When set to a specific location, bothk4a
andk4a_recorder
log files are created. Thek4a_recorder
log file contains some content ("New logging session started"), but thek4a
log file triggers an exception (Microsoft C++ exception: spdlog::spdlog_ex
)..exe
), I can bypass the exception by clicking the "Continue" button. After ignoring the exception, I can read all the frames of the video without any further issues. The exception only occurs during the first call tok4a_playback_get_next_capture
.To Reproduce
vcpkg new --application
vcpkg add port azure-kinect-sensor-sdk
K4A_ENABLE_LOG_TO_A_FILE = 0
K4A_RECORD_ENABLE_LOG_TO_A_FILE = 0
K4A_LOG_LEVEL = w
or
K4A_ENABLE_LOG_TO_A_FILE = logs/k4a.log
K4A_RECORD_ENABLE_LOG_TO_A_FILE = = logs/k4arecord.log
K4A_LOG_LEVEL = w
Expected behavior
I expected the log files to be ignored (with environment variables to 0) or to be filled as intended without triggering an error.
Desktop
Additional context
See the screenshot below.
Also, I have read/used:
https://learn.microsoft.com/en-us/azure/kinect-dk/record-playback-api
https://learn.microsoft.com/en-us/azure/Kinect-dk/troubleshooting#collecting-logs
#1015
Thank you!
Best,
Basil
The text was updated successfully, but these errors were encountered: