Azure-Kinect-Sensor-SDK icon indicating copy to clipboard operation
Azure-Kinect-Sensor-SDK copied to clipboard

Enqueue capture in playback prevent to close application

Open nicolas0carre opened this issue 5 years ago • 3 comments

Describe the bug During the playback of a .mkv file, at the moment where we enqueue a capture (k4abt_tracker_enqueue_capture), the program can't stop after that. No problem with processing after enqueue the capture, and of course, we release/close everything when done. The only way to close the app is by using the task manager. Also, this bug has appeared since we integrated the lite model and all associated files, before this update, all worked fine.

To Reproduce

  • Open playback
  • Set playback color conversion
  • Get playback calibration
  • Create config body tracker
  • Create body tracker
  • Get playback next capture
  • Enqueue capture tracker After this step, only task manager can close the app

Expected behavior The app should be closed

Desktop (please complete the following information):

  • OS Windows 10, Version 21H1
  • SDK Version: 1.4.1
  • Firmware version: AzureKinectDK_Fw_1.6.110079014

nicolas0carre avatar Aug 03 '21 15:08 nicolas0carre

Re: ... , and of course, we release/close everything when done. ...

Did the code call k4abt_tracker_shutdown before calling release/close?

scotthsu98052 avatar Aug 09 '21 16:08 scotthsu98052

Yes we did

nicolas0carre avatar Aug 10 '21 07:08 nicolas0carre

I used offline_processor sample code to repro the problem you reported.

The only change I added to the sample code is to use the lite model as you described. tracker_config.model_path = "dnn_model_2_0_lite_op11.onnx";

The program can exit successfully. e:\Azure-Kinect-Samples\body-tracking-samples\offline_processor\build\bin\Release> offline_processor.exe e:\src\quentin.mkv 1.log Tracking e:\src\quentin.mkv frame 451 DONE Total read 452 frames Results saved in 1.log

Or I can hit ctrl-c to terminate it. e:\Azure-Kinect-Samples\body-tracking-samples\offline_processor\build\bin\Release> offline_processor.exe e:\src\quentin.mkv 1.log Tracking e:\src\quentin.mkv ^Came 22

Could you please also try offline_processor sample code to see if you still repro the problem?

Here are the loaded BT dependent files (I excluded system files): image

scotthsu98052 avatar Aug 12 '21 18:08 scotthsu98052