"Unable to allocate memory for an incoming image frame due to insufficient free physical memory." error for skeleton tracking with Kinect v2

6 visualizaciones (últimos 30 días)
I was trying to do skeleton tracking with Kinect v2 but am getting "Unable to allocate memory for an incoming image frame due to insufficient free physical memory." when running the second time. Restarting the matlab window enables to solve this problem for one time. again while am running the same code for more than one time the same error comes. The error screenshot is attached herewith. Please anyone if possible let me know how to resolve this error.
  3 comentarios
yann Michaud
yann Michaud el 18 de Feb. de 2021
Movida: DGM el 10 de Feb. de 2025
hi guys, I still have the same pbm today even with a 1To SSD and 16Go RAM.
Have you found a solution ? Or an other way to get the same result ?
Thanking you

Iniciar sesión para comentar.

Respuestas (6)

Walter Roberson
Walter Roberson el 3 de En. de 2018
See also https://www.mathworks.com/support/bugreports/1422542 which has to do with macvideo adapter but shows a way to change memory allocation strategy.

rokano1984
rokano1984 el 13 de Nov. de 2021
Editada: rokano1984 el 13 de Nov. de 2021
I had the same error but with "linuxvideo" (I'm on Ubuntu 18.04.6) and tiny 8GB RAM :).
In my case, the solution below worked.
Below is what I tried. Hope this helps.
Before
>> obj = videoinput("linuxvideo",1);
>> start(obj);
Error event occurred at 11:56:41 for video input object: YUY2_640x480-linuxvideo-1.
Unable to allocate memory for an incoming image frame due to insufficient free physical memory.
Unable to allocate memory for an incoming image frame due to insufficient free physical memory.
After - I had to set -limitPhysicalMemoryUsage false before creating videoinput object.
>> imaqmex('feature','-limitPhysicalMemoryUsage',false);
>> obj = videoinput("linuxvideo",1);
>> start(obj);

Arman Arefi
Arman Arefi el 2 de Feb. de 2022
Hi
Use the following code:
set(obj,'Timeout',value);% increase the value parameter as much as the problem is resolved. In my case, the value of 35 worked
Regards,
Arman Arefi

Jingsong Zhu
Jingsong Zhu el 9 de Nov. de 2017
I am confronted with the same problem. Do you solve the problem ?
  3 comentarios

Iniciar sesión para comentar.


Dymiargani Milono
Dymiargani Milono el 28 de Mayo de 2018
i used to have the same problem as you, back then i got 8 GB of RAM and that notification is always showing every time i run the my program.
in my own experience, you need at least 10 GB of RAM to run this program

Norbert
Norbert el 10 de Feb. de 2025
Editada: Norbert el 10 de Feb. de 2025
Hi guys,
still the same issue with matlab 2022b and 2024a with win11 and this adapter:
InstalledAdaptors: {'tisimaq_r2013_64'}
MATLABVersion: '24.1 (R2024a)'
ToolboxName: 'Image Acquisition Toolbox'
ToolboxVersion: '24.1 (R2024a)'
to be sure the machine ram (16GB) is sufficient, i used only a small roi:
vid.ROIPosition = [0 0 4000 100];
takes some time but then
"Unable to allocate memory for an incoming image frame due to insufficient free physical memory."
occurs
without this thread i would assume this is due to the third party driver, but now i have the impression Matlab has a general issue here..
which confirms with the webcam:
Error event occurred at 14:48:33 for video input object: MJPG_1280x720-winvideo-1.
Unable to allocate memory for an incoming image frame due to insufficient free physical memory.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by