Open3D icon indicating copy to clipboard operation
Open3D copied to clipboard

When I run azure_kinect_mkv_reader.py to get the depth map in mkv, the error Invalid k4a_capture_t appears

Open DreamOneYou opened this issue 4 years ago • 13 comments

This is the error when I run the code. MKV reader initialized. Press [SPACE] to pause/start, [ESC] to exit. [2021-02-04 12:11:29.096] [error] [t=9420] D:\a\1\s\extern\Azure-Kinect-Sensor-SDK\src\allocator\allocator.c (118): k4a_capture_t_get_context(). Invalid k4a_capture_t 0000016503094650 [2021-02-04 12:11:29.096] [error] [t=9420] D:\a\1\s\extern\Azure-Kinect-Sensor-SDK\src\allocator\allocator.c (344): Invalid argument to capture_get_color_image(). capture_handle (0000016503094650) is not a valid handle of type k4a_capture_t

I hope to get help, thank you very much

DreamOneYou avatar Feb 04 '21 04:02 DreamOneYou

Hi @DreamOneYou can you provide more information about your Open3D install, system and environment, following the bug report template?

ssheorey avatar Feb 05 '21 19:02 ssheorey

Hi @ssheorey Thank you for your reply。 I installed open3d using the pip install open3d command. My system is Windows 10 Home Edition.

DreamOneYou avatar Feb 07 '21 09:02 DreamOneYou

I also have this issue. The issue appears whenever the azure kinect is called to capture, or to read captured files, so it fails on the MKV reader example but it also fails on the Kinect viewer example. It appears in both cases that the is something wrong in the source code with how the k4a capture command is being requested. From the below I can see "k4a_capture_t_get_context()." but when i look at the kinect sdk list of commands this doesn't seem to be one of them?

  • Running Windows 10 Pro
  • OS Build 19041.804
  • python 3.9.7
  • azure Sdk 1.2 and 1.41 both tried - same result
  • open3d 0.12, 0.11 and 0.8 all tried - same result (installed by pip)

[Open3D INFO] AzureKinectSensor::Connect [Open3D INFO] sensor_index 0 [Open3D INFO] Serial number: 000155301312 [Open3D INFO] Firmware build: Rel [Open3D INFO] > Color: 1.6.102 [Open3D INFO] > Depth: 1.6.75[6109.7] Sensor initialized. Press [ESC] to exit. [2021-02-17 21:06:59.439] [error] [t=16176] D:\a\1\s\extern\Azure-Kinect-Sensor-SDK\src\allocator\allocator.c (118): k4a_capture_t_get_context(). Invalid k4a_capture_t 0000000000000000

[2021-02-17 21:06:59.439] [error] [t=16176] D:\a\1\s\extern\Azure-Kinect-Sensor-SDK\src\allocator\allocator.c (344): Invalid argument to capture_get_color_image(). capture_handle (0000000000000000) is not a valid handle of type k4a_capture_t

[2021-02-17 21:06:59.439] [error] [t=16176] D:\a\1\s\extern\Azure-Kinect-Sensor-SDK\src\allocator\allocator.c (118): k4a_capture_t_get_context(). Invalid k4a_capture_t 0000000000000000

[2021-02-17 21:06:59.439] [error] [t=16176] D:\a\1\s\extern\Azure-Kinect-Sensor-SDK\src\allocator\allocator.c (359): Invalid argument to capture_get_depth_image(). capture_handle (0000000000000000) is not a valid handle of type k4a_capture_t

[2021-02-17 21:06:59.439] [error] [t=16176] D:\a\1\s\extern\Azure-Kinect-Sensor-SDK\src\allocator\allocator.c (118): k4a_capture_t_get_context(). Invalid k4a_capture_t 0000000000000000

RecursiveAV avatar Feb 18 '21 09:02 RecursiveAV

@RecursiveAV Exact same for me..

Veej17 avatar Mar 09 '21 11:03 Veej17

@yxlao is this likely to be looked at in the near future? Keen to work with the library but this is in the way. Appreciate it's one of many things to cover!

RecursiveAV avatar Mar 09 '21 12:03 RecursiveAV

Also experiencing this. Haven't been able to figure out a work-around, always get those errors.

Benjamin-Siebold avatar Mar 18 '21 18:03 Benjamin-Siebold

@yxlao Just checking in on this as there hasn't been any responses to the issues highlighted. I know this is just one of many thing the team have to cover - but it would be good to know if this has been looked at and if there is a solution? Thanks in advance 👍🏻

RecursiveAV avatar Apr 27 '21 10:04 RecursiveAV

same issue:

Windows 10 Azure Kinect SDK v1.4.1 with open3d=0.13.0, python=3.7.10

Trying to use this library in Python to read and extract the frames, colour and depth, from the recorded .mkv file.

Any updates on the solution?

cpatel245 avatar Jun 08 '21 09:06 cpatel245

same error, is there a solution? Is the team dealing with the problem?

guypystin avatar Sep 01 '21 13:09 guypystin

It works for the viewer and recorder, but throws errors when running the mkv_reader. Window 10 Azure Kinect SDK v1.4.1| v1.3.0 open3d=0.13.0 via pip python=3.8

AmosChenZixuan avatar Sep 29 '21 08:09 AmosChenZixuan

Having this problem with the Python and C++ builds for windows. Keep getting D:\a\1\s\extern\Azure-Kinect-Sensor-SDK\src\allocator\allocator.c (118): k4a_capture_t_get_context(). Invalid k4a_capture_t. Can anyone confirm if this works on linux?

This is holding back my ability to evaluate Open3D's usefulness in my current project.

ballettodrew avatar Dec 02 '21 17:12 ballettodrew

Hi, I would like to work on this Issue. it would be great could you please assign this issue to me

jhunjhunwala1234 avatar Feb 19 '23 14:02 jhunjhunwala1234

Hi @jhunjhunwala1234 thanks for helping with this - github only allows "assigning" maintainers. But please go ahead and work on this issue. We accept bug fixes from users!

ssheorey avatar Feb 19 '23 18:02 ssheorey