2011/9/20 István Csanády <istvancsan...@gmail.com>

> Hi All!
>
> I can't send any particular code, because I can't intentionally reproduce
> this error. I am generating thousands of TopoDS_Vertex objects, and when I
> use gc.collect() and GarbageCollector.garbage.collect() together, the app
> sometimes crashes, sometimes throws exceptions. Here are some of them:
>
> This is a strange one, I think this means that some objects are maybe
> double freed:
> 1.
>
> *Fatal Python error: GC object already tracked*
> *
> *
> *This one is might be more helpful.*
> *2.*
>
> *  File "/Library/Python/2.6/site-packages/OCC/GarbageCollector.py", line
> 111, in smart_purge*
>
> *    misc._kill_pointed()*
>
> *TypeError: in method 'TopoDS_Vertex__kill_pointed', argument 1 of type
> 'TopoDS_Vertex *'*
> *
> *
> *
> *
> *Is there something messed up in the GC, or am I doing something wrong?*
> *
> *
> István
>
>
Hi Itsvan,

Interesting report. What do you mean exactly with "using gc.collect() and
GarbageCollector.garbage.collect() together"? GarbageCollector.garbage does
not have any collect() method. Although you can't reproduce the error, what
is the pseudo-code for the script that sometimes raises these exceptions?

Best Regards,

Thomas
_______________________________________________
Pythonocc-users mailing list
Pythonocc-users@gna.org
https://mail.gna.org/listinfo/pythonocc-users

Reply via email to