|
From: Jörgen S. <jor...@bo...> - 2008-06-17 18:44:49
|
Hi,
I have tried to build the docs of current trunk on windows using
python2.5. But I get a crash with an Assertion failed: ob_refcnt == 0,
file CXX\cxx_extensions.cxx, line 1128
There are also some warnings caused by the use of the link mpl_data. Is
it possible to get this link to work on win32?
versions:
sphinx: 0.3 $Revision: 64324 $
docutils: 0.5
matplotlib: 0.98.0 r5583
numpy: '1.1.0.dev5176'
/Jörgen
C:\python\external\matplotlib-trunk\doc>make.py
Sphinx v0.3, building html
trying to load pickled env... not found
building [html]: targets for 42 source files that are out of date
updating environment: 42 added, 0 changed, 0 removed
reading... api/artist_api api/axes_api api/axis_api
api/backend_bases_api api/ba
ckend_gtkagg_api api/backend_qt4agg_api api/backend_wxagg_api
api/cbook_api api/
cm_api api/collections_api api/colorbar_api api/index
api/index_backend_api api/
matplotlib_configuration_api api/pyplot_api devel/add_new_projection
devel/codin
g_guide devel/documenting_mpl devel/index devel/outline
devel/transformations fa
q/environment_variables_faq faq/howto_faq faq/index faq/installing_faq
faq/troub
leshooting_faq glossary/index index users/annotations already have
pyplots\a
nnotation_basic.py
already have pyplots\annotation_polar.py
users/arraydata users/artists already have
pyplots\fig_axes_labels_simple.py
already have pyplots\fig_x.py
already have pyplots\fig_axes_customize_simple.py
already have pyplots\dollar_ticks.py
users/customizing users/event_handling users/index users/index_text
users/intro
users/mathtext already have pyplots\pyplot_mathtext.py
users/navigation_toolbar users/pyplot_tutorial already have
pyplots\pyplot_s
imple.py
already have pyplots\pyplot_formatstr.py
already have pyplots\pyplot_three.py
already have pyplots\pyplot_two_subplots.py
already have pyplots\pyplot_text.py
already have pyplots\pyplot_annotate.py
users/text_intro already have pyplots\text_commands.py
users/text_props already have pyplots\text_layout.py
users/usetex already have pyplots\tex_demo.py
already have pyplots\tex_unicode_demo.py
WARNING:
C:\python\external\matplotlib-trunk\doc\api\backend_qt4agg_api.rst:5: (
WARNING/2) autodoc can't import/find module
'matplotlib.backends.backend_qt4agg'
, check your spelling and sys.path
WARNING:
C:\python\external\matplotlib-trunk\doc\api\backend_wxagg_api.rst:5: (W
ARNING/2) autodoc can't import/find module
'matplotlib.backends.backend_wxagg',
check your spelling and sys.path
WARNING: C:\python\external\matplotlib-trunk\doc\api\cbook_api.rst:9:
(WARNING/2
) error while formatting signature for matplotlib.cbook.Xlator: arg is
not a Pyt
hon function
WARNING:
C:\python\external\matplotlib-trunk\doc\users\customizing.rst:66: (WARN
ING/2) Include file u'../mpl_data/matplotlibrc' not found or reading it
failed
WARNING:
C:\python\external\matplotlib-trunk\doc\users\navigation_toolbar.rst:13
: Image file not readable: mpl_data\images\home.png
WARNING:
C:\python\external\matplotlib-trunk\doc\users\navigation_toolbar.rst:15
: Image file not readable: mpl_data\images\back.png
WARNING:
C:\python\external\matplotlib-trunk\doc\users\navigation_toolbar.rst:17
: Image file not readable: mpl_data\images\forward.png
WARNING:
C:\python\external\matplotlib-trunk\doc\users\navigation_toolbar.rst:30
: Image file not readable: mpl_data\images\move.png
WARNING:
C:\python\external\matplotlib-trunk\doc\users\navigation_toolbar.rst:54
: Image file not readable: mpl_data\images\zoom_to_rect.png
WARNING:
C:\python\external\matplotlib-trunk\doc\users\navigation_toolbar.rst:65
: Image file not readable: mpl_data\images\subplots.png
WARNING:
C:\python\external\matplotlib-trunk\doc\users\navigation_toolbar.rst:72
: Image file not readable: mpl_data\images\filesave.png
pickling the env... done
checking consistency...
WARNING: C:\python\external\matplotlib-trunk\doc\users\arraydata.rst::
document
isn't included in any toctree
writing output... api/artist_api api/axes_api api/axis_api
api/backend_bases_api
api/backend_gtkagg_api api/backend_qt4agg_api api/backend_wxagg_api
api/cbook_a
pi api/cm_api api/collections_api api/colorbar_api api/index
api/index_backend_a
pi api/matplotlib_configuration_api api/pyplot_api
devel/add_new_projection deve
l/coding_guide devel/documenting_mpl devel/index devel/outline
devel/transformat
ions faq/environment_variables_faq faq/howto_faq faq/index
faq/installing_faq fa
q/troubleshooting_faq glossary/index index users/annotations
users/arraydata use
rs/artists users/customizing users/event_handling users/index
users/index_text u
sers/intro users/mathtext $\circledR$
Assertion failed: ob_refcnt == 0, file CXX\cxx_extensions.cxx, line 1128
This application has requested the Runtime to terminate it in an unusual
way.
Please contact the application's support team for more information.
Building HTML failed.
C:\python\external\matplotlib-trunk\doc>
|
|
From: Michael D. <md...@st...> - 2008-06-17 18:57:28
|
I'm not sure these two issues are related. Before I look deeper, have you updated from SVN today? I fixed a bug earlier today related to using the STIX fonts (which appears to be where this is crashing) on narrow Unicode Python interpreters (which I believe Win32 Python is). Occasionally I get these ob_refcnt assertions when distutils didn't decide to rebuild enough things. Try doing a clean rebuild (if you haven't already). Cheers, Mike Jörgen Stenarson wrote: > Hi, > > I have tried to build the docs of current trunk on windows using > python2.5. But I get a crash with an Assertion failed: ob_refcnt == 0, > file CXX\cxx_extensions.cxx, line 1128 > > There are also some warnings caused by the use of the link mpl_data. Is > it possible to get this link to work on win32? > > versions: > sphinx: 0.3 $Revision: 64324 $ > docutils: 0.5 > matplotlib: 0.98.0 r5583 > numpy: '1.1.0.dev5176' > > /Jörgen > > > > C:\python\external\matplotlib-trunk\doc>make.py > Sphinx v0.3, building html > trying to load pickled env... not found > building [html]: targets for 42 source files that are out of date > updating environment: 42 added, 0 changed, 0 removed > reading... api/artist_api api/axes_api api/axis_api > api/backend_bases_api api/ba > ckend_gtkagg_api api/backend_qt4agg_api api/backend_wxagg_api > api/cbook_api api/ > cm_api api/collections_api api/colorbar_api api/index > api/index_backend_api api/ > matplotlib_configuration_api api/pyplot_api devel/add_new_projection > devel/codin > g_guide devel/documenting_mpl devel/index devel/outline > devel/transformations fa > q/environment_variables_faq faq/howto_faq faq/index faq/installing_faq > faq/troub > leshooting_faq glossary/index index users/annotations already have > pyplots\a > nnotation_basic.py > already have pyplots\annotation_polar.py > users/arraydata users/artists already have > pyplots\fig_axes_labels_simple.py > > already have pyplots\fig_x.py > already have pyplots\fig_axes_customize_simple.py > already have pyplots\dollar_ticks.py > users/customizing users/event_handling users/index users/index_text > users/intro > users/mathtext already have pyplots\pyplot_mathtext.py > users/navigation_toolbar users/pyplot_tutorial already have > pyplots\pyplot_s > imple.py > already have pyplots\pyplot_formatstr.py > already have pyplots\pyplot_three.py > already have pyplots\pyplot_two_subplots.py > already have pyplots\pyplot_text.py > already have pyplots\pyplot_annotate.py > users/text_intro already have pyplots\text_commands.py > users/text_props already have pyplots\text_layout.py > users/usetex already have pyplots\tex_demo.py > already have pyplots\tex_unicode_demo.py > > WARNING: > C:\python\external\matplotlib-trunk\doc\api\backend_qt4agg_api.rst:5: ( > WARNING/2) autodoc can't import/find module > 'matplotlib.backends.backend_qt4agg' > , check your spelling and sys.path > WARNING: > C:\python\external\matplotlib-trunk\doc\api\backend_wxagg_api.rst:5: (W > ARNING/2) autodoc can't import/find module > 'matplotlib.backends.backend_wxagg', > check your spelling and sys.path > WARNING: C:\python\external\matplotlib-trunk\doc\api\cbook_api.rst:9: > (WARNING/2 > ) error while formatting signature for matplotlib.cbook.Xlator: arg is > not a Pyt > hon function > WARNING: > C:\python\external\matplotlib-trunk\doc\users\customizing.rst:66: (WARN > ING/2) Include file u'../mpl_data/matplotlibrc' not found or reading it > failed > WARNING: > C:\python\external\matplotlib-trunk\doc\users\navigation_toolbar.rst:13 > : Image file not readable: mpl_data\images\home.png > WARNING: > C:\python\external\matplotlib-trunk\doc\users\navigation_toolbar.rst:15 > : Image file not readable: mpl_data\images\back.png > WARNING: > C:\python\external\matplotlib-trunk\doc\users\navigation_toolbar.rst:17 > : Image file not readable: mpl_data\images\forward.png > WARNING: > C:\python\external\matplotlib-trunk\doc\users\navigation_toolbar.rst:30 > : Image file not readable: mpl_data\images\move.png > WARNING: > C:\python\external\matplotlib-trunk\doc\users\navigation_toolbar.rst:54 > : Image file not readable: mpl_data\images\zoom_to_rect.png > WARNING: > C:\python\external\matplotlib-trunk\doc\users\navigation_toolbar.rst:65 > : Image file not readable: mpl_data\images\subplots.png > WARNING: > C:\python\external\matplotlib-trunk\doc\users\navigation_toolbar.rst:72 > : Image file not readable: mpl_data\images\filesave.png > pickling the env... done > checking consistency... > WARNING: C:\python\external\matplotlib-trunk\doc\users\arraydata.rst:: > document > isn't included in any toctree > writing output... api/artist_api api/axes_api api/axis_api > api/backend_bases_api > api/backend_gtkagg_api api/backend_qt4agg_api api/backend_wxagg_api > api/cbook_a > pi api/cm_api api/collections_api api/colorbar_api api/index > api/index_backend_a > pi api/matplotlib_configuration_api api/pyplot_api > devel/add_new_projection deve > l/coding_guide devel/documenting_mpl devel/index devel/outline > devel/transformat > ions faq/environment_variables_faq faq/howto_faq faq/index > faq/installing_faq fa > q/troubleshooting_faq glossary/index index users/annotations > users/arraydata use > rs/artists users/customizing users/event_handling users/index > users/index_text u > sers/intro users/mathtext $\circledR$ > Assertion failed: ob_refcnt == 0, file CXX\cxx_extensions.cxx, line 1128 > > This application has requested the Runtime to terminate it in an unusual > way. > Please contact the application's support team for more information. > Building HTML failed. > > C:\python\external\matplotlib-trunk\doc> > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA |
|
From: Jörgen S. <jor...@bo...> - 2008-06-17 20:00:46
|
Michael Droettboom skrev: > I'm not sure these two issues are related. > I don't think so either but I thought I should mention it anyway. > Before I look deeper, have you updated from SVN today? I fixed a bug > earlier today related to using the STIX fonts (which appears to be where > this is crashing) on narrow Unicode Python interpreters (which I believe > Win32 Python is). > > Occasionally I get these ob_refcnt assertions when distutils didn't > decide to rebuild enough things. Try doing a clean rebuild (if you > haven't already). > > Cheers, > Mike > I did a svn up and a clean rebuild but still the same error. The error reminded me of the problems a while back when references to the fontfiles were not released. So I have tried to look at the filehandles using procexp but I cannot say if this is the problem, but I don't see any explosion in open file handles. But the crash is so sudden I may not be able to see this. Any thing else I can check at my end? /Jörgen |
|
From: John H. <jd...@gm...> - 2008-06-17 20:07:48
|
On Tue, Jun 17, 2008 at 3:00 PM, Jörgen Stenarson
<jor...@bo...> wrote:
> I did a svn up and a clean rebuild but still the same error. The error
> reminded me of the problems a while back when references to the
> fontfiles were not released. So I have tried to look at the filehandles
> using procexp but I cannot say if this is the problem, but I don't see
> any explosion in open file handles. But the crash is so sudden I may not
> be able to see this.
>
> Any thing else I can check at my end?
I wonder if the reference counting in py_as_array is wrong. The most
likely culprit is the new function in src/ft2font.cpp. Do we need an
incref here? Joergen, does it help to comment out
the PyArray_SimpleNewFromData line and replace it with the commented
out block below it? I need to dig into the ownership and reference
policy of these two funcs but I don't have time to do it now.
Py::Object
FT2Image::py_as_array(const Py::Tuple & args) {
_VERBOSE("FT2Image::as_array");
args.verify_length(0);
npy_intp dimensions[2];
dimensions[0] = get_height(); //numrows
dimensions[1] = get_width(); //numcols
PyArrayObject *A = (PyArrayObject *) PyArray_SimpleNewFromData(2,
dimensions, PyArray_UBYTE, _buffer);
/*
PyArrayObject *A = (PyArrayObject *) PyArray_FromDims(2, dimensions,
PyArray_UBYTE);
unsigned char *src = _buffer;
unsigned char *src_end = src + (dimensions[0] * dimensions[1]);
unsigned char *dst = (unsigned char *)A->data;
while (src != src_end) {
*dst++ = *src++;
}
*/
return Py::asObject((PyObject*)A);
}
|
|
From: Jörgen S. <jor...@bo...> - 2008-06-17 20:26:23
|
John Hunter skrev:
> On Tue, Jun 17, 2008 at 3:00 PM, Jörgen Stenarson
> <jor...@bo...> wrote:
>
>> I did a svn up and a clean rebuild but still the same error. The error
>> reminded me of the problems a while back when references to the
>> fontfiles were not released. So I have tried to look at the filehandles
>> using procexp but I cannot say if this is the problem, but I don't see
>> any explosion in open file handles. But the crash is so sudden I may not
>> be able to see this.
>>
>> Any thing else I can check at my end?
>
> I wonder if the reference counting in py_as_array is wrong. The most
> likely culprit is the new function in src/ft2font.cpp. Do we need an
> incref here? Joergen, does it help to comment out
> the PyArray_SimpleNewFromData line and replace it with the commented
> out block below it? I need to dig into the ownership and reference
> policy of these two funcs but I don't have time to do it now.
>
I tried this but it still crashes. Below is the change I did.
/Jörgen
Py::Object
FT2Image::py_as_array(const Py::Tuple & args) {
_VERBOSE("FT2Image::as_array");
args.verify_length(0);
npy_intp dimensions[2];
dimensions[0] = get_height(); //numrows
dimensions[1] = get_width(); //numcols
/*
PyArrayObject *A = (PyArrayObject *) PyArray_SimpleNewFromData(2,
dimensions, PyArray_UBYTE, _buffer);
*/
PyArrayObject *A = (PyArrayObject *) PyArray_FromDims(2, dimensions,
PyArray_UBYTE);
unsigned char *src = _buffer;
unsigned char *src_end = src + (dimensions[0] * dimensions[1]);
unsigned char *dst = (unsigned char *)A->data;
while (src != src_end) {
*dst++ = *src++;
}
return Py::asObject((PyObject*)A);
}
|