フィルターのクリア

App Designer uitree nodedata memory size limit?

3 ビュー (過去 30 日間)
Chris
Chris 2020 年 8 月 14 日
回答済み: Vimal Rathod 2020 年 8 月 23 日
Is there a memory limit to what can be put into the nodedata field of a uitree?
My app and tree work correctly when putting data of less than 13.4 Megabyte into the nodedata field, but will fail when adding 55 Megabyte.
the error I am getting is:
java.lang.OutOfMemoryError: Java heap space
Nearly all the size of what is being put into nodedata is an array of numbers.
Are there any workarounds? The best (and only) option I can think of is to keep the mass of data in normal structure named identically to the uitree; have the user interact with the uitree but work with the data from a structure.

回答 (1 件)

Vimal Rathod
Vimal Rathod 2020 年 8 月 23 日
Hi,
In this type of workflow where there is a lot of data associated with the tree nodes, I would recommend a strategy where the NodeData contains some minimum identifier that is used to retrieve data from a central place.
That should allow for a better memory footprint for the app and a more consistent experience with uitree across releases.

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by