A Dijous 27 Abril 2006 23:00, Andrew Straw va escriure:
> >This one is a PyTables flaw. I've not a definitive solution for this,
> >but the attached workaround seems to work well (and it doesn't leak :).
>
> Thanks, indeed the patch allows me to see my data again! :)
>
> I hope you can determine the underlying cause, but I'll happily continue
> working with your patch.

Done. Ivan has effectively found the problem: you was invoking a table
iterator without having the table bounded to a variable. With this,
the table died shortly after iterator initialization, so removing the
input buffers. As a consequence of this, when the iterator object (who
meanwhile was well and alive) tried to write in the table input
buffer, the later didn't exist and hence, provoking the crash.

In any case, the workaround is correct (in fact, it will go in the
forthcoming PyTables 1.3.1), so you can use it without problems.
However, Ivan didn't liked the present solution of sharing the input
buffers between Table and Row objects, so we ended implementing
another solution in which a Row will always have its own input buffers
(if needed) and Table will have the output buffer (as there is no way
to have different output buffers, then Table is the logical place to
put it). In fact, this separation of buffers has allowed an important
simplification of the buffering code, and we hope that this will bring
improved stability for the whole beast. This new code will appear in
future PyTables 1.4, but if anybody wants to contribute checking it,
you can download the SVN trunk and have it a try.

Cheers,

-- 
>0,0<   Francesc Altet     http://www.carabos.com/
V   V   Cárabos Coop. V.   Enjoy Data
 "-"



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
_______________________________________________
Pytables-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pytables-users

Reply via email to