Hello! I’ve been trying to get multiprocessing working with a Blender plugin for weeks but nothing seems to be working for me so have finally come to talk to the experts!
I have a plugin that simulates erosion that requires a lot of calculations. When looking into multiprocessing from the Blender/Python API I come back to this Stackoverflow answer: https://blender.stackexchange.com/questions/8530/how-to-get-python-multiprocessing-module-working-on-windows
When running the code in the answer (or any other variation of code using the
multiprocessing library) a new instance of Blender will open, immediately crash with these errors and I can’t seem to trace the source:
Error: engine not found '-s' Error: Not freed memory blocks: 47571, total unfreed memory 12.142883 MB
I’ve looked into forking off some subprocesses from the Python script and while this works with small, simple test scripts I need to pass the subprocess some complicated data structures - which subprocess can’t seem to handle.
Any help would be greatly appreciated!