[Bf-python] PyDriver-related problem
Willian Padovani Germano
wgermano at superig.com.br
Tue May 2 01:21:32 CEST 2006
Hi Ken (hadn't seen you emailed the list, too, so I'm pasting my reply
here, too),
I "feared" this could indeed break something, thanks for finding it.
Gotta see what to do, maybe we'll need two different ways to kill
Python, maybe shifting things around a little more will do.
Thanks again,
--
Willian
Ken Hughes wrote:
> Willian:
>
> Accidentally discovered a problem with the new commit for PyDrivers:
>
> If you run this script from the command line ("blender -P script.py"),
> you get a segfault:
>
> #----------------
> import Blender
>
> class Material:
> def __init__(self):
> MATERIALS = self
>
> MATERIALS = None
> material = Material()
> Blender.Quit()
> #----------------
>
> 2.41 doesn't have this problem but CVS does. I traced the problem into
> Blender.Quit(), as far the call to free_blender() in exit_usiblender().
> If I move the call to BPY_end_python() back to its previous location
> (after the call to quicktime_exit()) it works fine.
>
> Reading the comment in the source before the new call to
> BPY_end_python(), figured I'd better leave it where it is.
>
> Ken
More information about the Bf-python
mailing list