problem is that it occasionally stops the process after an arbitrary amount of renders, with exit code 137.
According to the internet it’s a memory issue.
It sometimes happens after graphicsEngine.makeOutput and sometimes after graphicsEngine.renderFrame, so I looked it up and found this:
Which version of Panda3D are you using? On which operating system?
Are you creating a new buffer every time you want to render something? If so, are you deleting the buffer using base.graphicsEngine.removeWindow(window) ?
I added base.graphicsEngine.removeWindow(window) at the end of my screenshot function but I’m still getting an error for some reason at base.graphicsEngine.renderFrame():
:linmath(warning): Tried to invert singular LMatrix4.
Assertion failed: has_mat() at line 461 of built1.10/include/transformState.I
AssertionError: has_mat() at line 461 of built1.10/include/transformState.I
For the record, I don’t have anything with scale 0 (saw this issue somewhere on this forum)
Could you perhaps have something that is altering the scale of an object, and that might perhaps alter it to zero? (For example, an element that causes an object to smoothly scale down over time.)
Alternatively, do you perhaps have any code that takes a scale as a parameter, and that might possibly be being passed a value of zero?