Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

k4a_image_create - Alloc frame buffer failed! #63

Open
moskitoo opened this issue Apr 18, 2024 · 1 comment
Open

k4a_image_create - Alloc frame buffer failed! #63

moskitoo opened this issue Apr 18, 2024 · 1 comment

Comments

@moskitoo
Copy link

Hi there!

We're currently in the process of replacing Azure Kinect with Femto Bolt in our ROS package. Previously, the package was functioning smoothly. However, we encountered some errors upon introducing the orbbec k4a wrapper.

Problem Overview:

In general, our node subscribes to topics published by the Azure Kinect ROS driver. It then converts these messages to cv::Mat and subsequently to k4a_image_t for further operations. We've followed the code provided here.

Error Encountered:

The error arises during the conversion process from cv::Mat to k4a_image_t using k4a_image_create. The error message is as follows:

[04/18 14:52:21.664740][warning][201271][FrameBufferManager.cpp:43] Alloc frame buffer failed! Out of max size! require=7.911MB, total usage: allocated=2040.508MB, max limit=2048.000MB [04/18 14:52:21.664890][warning][201271][FrameBufferManager.cpp:82] allocBuffer failed! Will retry after release idle memory on FrameMemoryPool [04/18 14:52:21.664929][warning][201271][FrameBufferManager.cpp:43] Alloc frame buffer failed! Out of max size! require=7.911MB, total usage: allocated=2040.508MB, max limit=2048.000MB [04/18 14:52:21.664969][critical][201271][FrameBufferManager.cpp:88] Alloc frame buffer failed! size=8294831 [04/18 14:52:21.665006][warning][201271][ObException.hpp:40] Alloc frame buffer failed! size=8294831 [2024-04-18 14:52:21.665] [error] [t=201271] /home/orbbec/Desktop/daiyin/OrbbecSDK-K4A-Wrapper/src/orbbec/ob_type_helper.cpp (21): check_ob_error(). Inner Orbbec SDK error: Alloc frame buffer failed! size=8294831, function: ob_create_frame, exception: 7

Request for Assistance:

We're currently seeking guidance on how to resolve this issue. Any insights or suggestions would be greatly appreciated.

Thank you!

@zhonghong322
Copy link

Can you paste the code on how to call k4a_image_create and how to convert cv::Mat to k4a_image_t?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants