isl-org / Open3D

Open3D: A Modern Library for 3D Data Processing
http://www.open3d.org
Other
11.29k stars 2.29k forks source link

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

Open DreamOneYou opened 3 years ago

DreamOneYou commented 3 years ago

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

ssheorey commented 3 years ago

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

DreamOneYou commented 3 years ago

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

RecursiveAV commented 3 years ago

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?

[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

Veej17 commented 3 years ago

@RecursiveAV Exact same for me..

RecursiveAV commented 3 years ago

@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!

Benjamin-Siebold commented 3 years ago

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

RecursiveAV commented 3 years ago

@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 👍🏻

cpatel245 commented 3 years ago

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?

guypystin commented 3 years ago

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

AmosChenZixuan commented 3 years ago

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

ballettodrew commented 2 years ago

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.

jhunjhunwala1234 commented 1 year ago

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

ssheorey commented 1 year ago

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!