drracket icon indicating copy to clipboard operation
drracket copied to clipboard

out of control memory use on rhombus/private/string.rkt

Open samth opened this issue 2 years ago • 6 comments

If I open rhombus/private/string.rkt from the rhombus-prototype repository, DrRacket quickly completes background expansion but memory use (as reported in the bottom corner) continues growing without bound (eg from 800MB to 8GB in a couple minutes). Nothing appears to be happening while this memory usage growth happens, and it hasn't happened with other Rhombus programs that I've noticed.

samth avatar Apr 20 '23 18:04 samth

I see memory use climb but then drop back down again.

rfindler avatar Apr 20 '23 18:04 rfindler

How high does it climb? For me I have to close the tab or eventually close DrRacket.

samth avatar Apr 20 '23 18:04 samth

Not very high! Maybe 20mb before dropping back down?

rfindler avatar Apr 20 '23 18:04 rfindler

Right, for me it grows by gigabytes. I wonder if I have some different configuration that might be at issue?

samth avatar Apr 20 '23 18:04 samth

The language settings can affect online expansion. It might not actually be related to online expansion, tho.

Can you get a stack trace? Perhaps control-c in the terminal window where drr is started?

rfindler avatar Apr 20 '23 18:04 rfindler

I think I had another file that used Rhombus open, and a change in private/string.rkt (relative to the zo version). I'm working on getting more precise reproduction instructions.

samth avatar Apr 20 '23 19:04 samth