This code was running fine for most of this week, but has ground to a halt with the cryptic error:
anvil.server.ExecutionTerminatedError: Server code execution process was killed. It may have run out of memory: a75a720258
This form takes a user input and reinterprets it, to display as an image, but it seems to fail now regardless. Is there something I need to do to clean up the memory?
I set up a clone that uses a server uplink and it works without passing this error, but my internet uplink speed is pitiful which makes this a less-than-ideal work around.
What that error probably means is that your server function used too much memory (RAM), and so it got killed. How big is the image you’re dealing with? If you’re on an Individual plan, you have a memory limit of 1GB.
(This is probably also why your Uplink process is feeling slow - if you’re shipping gigabytes of data around, it’s going to take a while!)
As usual, I found the solution immediately after posting. The figsize was the problem 200x200 is just too big in the matplotlib package. Possibly this is a memory leak issue.
Here is the documentation. You would think that matplotlib gave figsize in pixels. The do not. It is in inches. 200 x 200 inches is quite the large figure. Definitely too big.