Re: [Matplotlib-users] MathTextParser, maxdict ... Assertion failed!

2009-10-18 Thread Michael Droettboom
I don't think maxdict is the problem though it may be changing how the problem manifests itself. What is happening is that when maxdict is used, those C++ extension objects are deleted after the first 50 math expressions. When using a dict, they aren't deleted until closing the application,

Re: [Matplotlib-users] MathTextParser, maxdict ... Assertion failed!

2009-10-18 Thread Cédrick FAURY
Thank you very much !! With python 2.6... There is no error, no crash... Michael Droettboom a écrit : I don't think maxdict is the problem though it may be changing how the problem manifests itself. What is happening is that when maxdict is used, those C++ extension objects are deleted

Re: [Matplotlib-users] MathTextParser, maxdict ... Assertion failed!

2009-10-17 Thread Cédrick FAURY
Hello, I restate the problem : With the attached script test_mathtext_wx.py : 50 functions (line 31) : the 50 bitmaps are generated correctly, by when I close the application an error appears in the console : Assertion failed: ob_refcnt == 0, file CXX\cxx_extensions.cxx, line 1128 This

[Matplotlib-users] MathTextParser, maxdict ... Assertion failed!

2009-10-12 Thread Cédrick FAURY
Hello, I did an application that uses bitmaps constructed with MathTextParser as described in the example http://matplotlib.sourceforge.net/examples/user_interfaces/mathtext_wx.html (I work with Windows XP, python 2.5, Matplotlib 0.98.5 and wxPython 2.8.10.1) After making a lot of these

Re: [Matplotlib-users] MathTextParser, maxdict ... Assertion failed!

2009-10-12 Thread Michael Droettboom
Cédrick FAURY wrote: Hello, I did an application that uses bitmaps constructed with MathTextParser as described in the example http://matplotlib.sourceforge.net/examples/user_interfaces/mathtext_wx.html (I work with Windows XP, python 2.5, Matplotlib 0.98.5 and wxPython 2.8.10.1) After

Re: [Matplotlib-users] MathTextParser, maxdict ... Assertion failed!

2009-10-12 Thread Cédrick FAURY
Thank you for responding so quickly !! I don't think these problems are related. One is a cache of math expression images, the other is a cache of fonts. I know ... and i found a lot of way to reproduce the same crash... I am unable to reproduce this on Matplotlib 0.98.5.3 on Linux (don't

Re: [Matplotlib-users] MathTextParser, maxdict ... Assertion failed!

2009-10-12 Thread Michael Droettboom
Cédrick FAURY wrote: Thank you for responding so quickly !! I don't think these problems are related. One is a cache of math expression images, the other is a cache of fonts. I know ... and i found a lot of way to reproduce the same crash... I am unable to reproduce this on Matplotlib

Re: [Matplotlib-users] MathTextParser, maxdict ... Assertion failed!

2009-10-12 Thread Cédrick FAURY
This script does'nt work (it causes a PyAssertion error : invalid stock id) If it's a PyAssertion error, it should have a traceback. Is there not one? No, this problem is not related with Matplotlib : the PyAssertion error occurs when creating the wx.Menu ... Cédrick