SIMULINK launching Logic Analyzer causes memory leak

13 ビュー (過去 30 日間)
Cameron
Cameron 2025 年 10 月 29 日 11:14
コメント済み: Cameron 2025 年 10 月 30 日 17:00
Hi all,
I have built a testbench in SIMULINK 2024b usaing the vision HDL toolbox for streaming in video from a test file (.avi) passing through a DUT and then displaying video using the video viewer.
When I try to run a simulation where I stream out 3 of my 1280x1024 8bit pixles from the file (by setting stop time to 36ms), convert to a pixel stream, convert back to a frame and view the video, it works! However, when I try to open the logic analyser to view my 6 logged signals after (or have it open before and run the simulation) MATLAB completely halts, and i have to force quit from the task manager.
From the task manager I can see the Memory consumed by MATLAB rise continually as if there is a memory leak. What is going on here?
Update:
I have removed more and more blocks in my design and have tracked the problem down i believe to the pixels to frame block
Above is a heavily simplified version of my design I/O. Video loaded in from file, converted to pixel stream, then back to a frame and into a display. However Running simulation crashes my matlab - but not immediately:
I open the design and configure my stop time to be equivalent to three frames worth, then I open the logic analyzer to view my logged signals. Then I commence the simulation. The 3 frames appear correctly in the video viewer, but my logged signals do not appear. Then a swirly Icon appears on my logic analyzer and there is a massive surge in memory usage from MATLAB (~20GB). I have to force quit the application.
Note: when I comment out the pixels to frame and video viewer, the logic analyser works completely fine for reading data out of the frame to pixels block
What is going on?
  1 件のコメント
Cameron
Cameron 2025 年 10 月 30 日 17:00
I believe I have discovered the answer:
The issue only arises when attempting to log the data when it is in the frame format, this causes issues with the logic analyser which freaks out whilst trying to log a 3d signal in time (frames stored as height x width x frame_no)
May be worth placing indicator to suggest the user doesn't attempt this to prevent the memory leak and crash that occurs

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeComputer Vision with Simulink についてさらに検索

製品


リリース

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by