App Designer uitree nodedata memory size limit?

2 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Categorical Arrays 的更多信息

产品


版本

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by