"Unable to allocate memory for an incoming image frame due to insufficient free physical memory." error for skeleton tracking with Kinect v2
83 ビュー (過去 30 日間)
古いコメントを表示
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.
1 件のコメント
José-Luis
2017 年 9 月 6 日
How big is your image?
How much memory do you have?
How much do you already have in your workspace?
回答 (7 件)
Walter Roberson
2018 年 1 月 3 日
You might be able to use https://www.mathworks.com/help/imaq/managing-memory-usage.html or https://www.mathworks.com/help/imaq/imaqreset.html
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.
1 件のコメント
Aarush Sood
2020 年 5 月 26 日
I tried solutions from above two links but didn't work out for me. Any more suggestions?
Thanking You.
Best,
Aarush Sood
yann Michaud
2021 年 2 月 18 日
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
0 件のコメント
rokano1984
2021 年 11 月 13 日
編集済み: rokano1984
2021 年 11 月 13 日
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);
0 件のコメント
Arman Arefi
2022 年 2 月 2 日
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
0 件のコメント
Jingsong Zhu
2017 年 11 月 9 日
I am confronted with the same problem. Do you solve the problem ?
3 件のコメント
Dymiargani Milono
2018 年 5 月 28 日
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
1 件のコメント
sheng
2020 年 7 月 21 日
the RAM of My PC is 16Gb. But the same problem happens to me, again and again.
I still have to try other ways
参考
カテゴリ
Help Center および File Exchange で Acquisition Using Kinect for Windows Hardware についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!