Closed HubKing closed 4 years ago
Unfortunately, this is a known and annoying limitation. I'm working on it... See https://developer.blender.org/D7812.
Thanks. Meanwhile, it maybe reduce confusion if you change "only 2.8" to "only 2.80", because I thought "2.8" could mean "2.8X" including 2.82a, the latest version.
The issue also exists in older Blender versions. It's mostly related to using the context in the script.
For anyone who sees this later, the hang part was my mistake. The script added 10 primitive_ico_sphere_add
, but after having tested it in Blender's editor with subdivisions=2
, I had changed it into subdivisions=10
because 2
looked ugly. I don't now about other people's computer, but on my computer Blender shows delay whensubdivisions=8
and hangs with 10
, even when I run the script right in its editor. Seems like increasing subdivisions exponentially consumes more memory.
When I changed it to 2
, and ran the code in VS Code, Blender immediately crashed with the same output.
It launched Blender in debug mode correctly, but when I tried to run a script, Blender hanged for about a minute or so (with 50% CPU usage) and then it crashed with an output below. The script itself does not have a problem; it has only a few lines of code to add some primitives and the same code worked when I directly ran it in Blender's script editor.