Error in Text Panel, turns to dripping red stuff

simple joined text. Any insights? This is on last weeks WIP build

BloodyHell.gh (35.6 KB)

Could you internalise the data so I can have a look without installing the AutoGraph plugin?

PS: I encountered this many times in GH. In my case it was usually related to memory / display memory stuff. It tends to happen when you have a lot (I mean a LOT) of data and give that to a panel.

My bad, didn’t notice that was an autograph capsule.

see attached, its not a ton, about 12,000 values

BloodyHell.gh (33.9 KB)

I can confirm the same (bloody) behaviour over here, also using the current v7 WIP.

My guess is that its somehow related to the string length (note that the individual items after the split display just fine). It’s a single string with a length of about 112000 characters. That might be too much for the drawing pipeline of the panel (unfortunately I can’t answer why).

EDIT: It seems that everything over 32000 characters is too much for a single string.


The amount of data should matter all that much (it will have a performance impact of course, but that’s not the issue here). Each item is drawn individually so only those items currently visible in the panel are considered. However if one of those items is HUGE, GDI drawing may simply choke on it. So try to not show enormous amounts of single block text in a panel.

1 Like

You’re right. I don’t know the answer either. GDI+ I think simply wasn’t designed to draw large amounts of text all in one go. GDI reserves small amounts of memory for caching objects needed during drawing, such as fonts, fills, pens and images. If one of those pools runs out, it’ll just stop working with an ‘out of memory’ error, even though you may well have gigabytes of memory left outside of those pools.

The size of the pools depends on the Windows version btw. it’s not a constant.

1 Like

Thanks, That works for me, will push those out to a text file if needed or partition things as needed.