Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 442298 - dev-python/matplotlib-1.1.1 - Assertion `ob_refcnt == 0' failed.
Summary: dev-python/matplotlib-1.1.1 - Assertion `ob_refcnt == 0' failed.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 441278
  Show dependency tree
 
Reported: 2012-11-08 02:00 UTC by Carl Michal
Modified: 2012-11-26 06:23 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build log (no PIL installed) (build.log.tar,16.28 KB, text/plain)
2012-11-24 13:01 UTC, mike
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Carl Michal 2012-11-08 02:00:16 UTC
Creating a plot with matplotlib-1.1.1 causes a crash:

python2.7: CXX/Python2/cxx_extensions.cxx:1320: virtual Py::PythonExtensionBase::~PythonExtensionBase(): Assertion `ob_refcnt == 0' failed.

This appears to be related to this commit,
https://github.com/mdboom/matplotlib/commit/ca678a49f37411b1b0e72d7d0dfa88c124b0e34b

which is included in the portage tree as: matplotlib-1.1.1-ft-refcount.patch,
except that the patch in the tree is missing the fifth insertion.  Looks like the patch was truncated.

Adding that last insertion makes my crashes go away.


Reproducible: Always
Comment 1 mike 2012-11-24 13:01:57 UTC
Created attachment 330434 [details]
build log (no PIL installed)

x86 not ok (repoman ok, compilation not ok)

There seems to be a forgotten dependency to
dev-python/imaging (PIL). But there are
test failures with PIL after all:


Summary output (no PIL installed):

Ran 1068 tests in 558.029s

FAILED (KNOWNFAIL=2, errors=1040)
 * ERROR: dev-python/matplotlib-1.1.1 failed (test phase):
 *   Testing failed with CPython 2.7 in testing() function
 *
 * Call stack:
 *     ebuild.sh, line   93:  Called src_test
 *   environment, line 5078:  Called python_execute_function 'testing'
 *   environment, line 3405:  Called die
 * The specific snippet of code:
 *                       die "${failure_message}";


Summary output (PIL installed):


======================================================================
FAIL: matplotlib.tests.test_mathtext.mathfont_stix_14_test.test
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/var/tmp/portage/dev-python/matplotlib-1.1.1/work/matplotlib-1.1.1/test-2.7/lib/python/matplotlib/testing/decorators.py", line 36, in failer
    result = f(*args, **kwargs)
  File "/var/tmp/portage/dev-python/matplotlib-1.1.1/work/matplotlib-1.1.1/test-2.7/lib/python/matplotlib/testing/decorators.py", line 140, in do_test
    '(RMS %(rms).3f)'%err)
ImageComparisonFailure: images not close: /var/tmp/portage/dev-python/matplotlib-1.1.1/work/matplotlib-1.1.1/test-2.7/lib/result_images/test_mathtext/mathfont_stix_14.png vs. /var/tmp/portage/dev-python/matplotlib-1.1.1/work/matplotlib-1.1.1/test-2.7/lib/result_images/test_mathtext/expected-mathfont_stix_14.png (RMS 3377.889)

======================================================================
FAIL: matplotlib.tests.test_delaunay.test_gauss.test
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/var/tmp/portage/dev-python/matplotlib-1.1.1/work/matplotlib-1.1.1/test-2.7/lib/python/matplotlib/testing/decorators.py", line 36, in failer
    result = f(*args, **kwargs)
  File "/var/tmp/portage/dev-python/matplotlib-1.1.1/work/matplotlib-1.1.1/test-2.7/lib/python/matplotlib/testing/decorators.py", line 140, in do_test
    '(RMS %(rms).3f)'%err)
ImageComparisonFailure: images not close: /var/tmp/portage/dev-python/matplotlib-1.1.1/work/matplotlib-1.1.1/test-2.7/lib/result_images/test_delaunay/gauss-lin-con.png vs. /var/tmp/portage/dev-python/matplotlib-1.1.1/work/matplotlib-1.1.1/test-2.7/lib/result_images/test_delaunay/expected-gauss-lin-con.png (RMS 11.180)

======================================================================
FAIL: matplotlib.tests.test_delaunay.test_trig.test
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/var/tmp/portage/dev-python/matplotlib-1.1.1/work/matplotlib-1.1.1/test-2.7/lib/python/matplotlib/testing/decorators.py", line 36, in failer
    result = f(*args, **kwargs)
  File "/var/tmp/portage/dev-python/matplotlib-1.1.1/work/matplotlib-1.1.1/test-2.7/lib/python/matplotlib/testing/decorators.py", line 140, in do_test
    '(RMS %(rms).3f)'%err)
ImageComparisonFailure: images not close: /var/tmp/portage/dev-python/matplotlib-1.1.1/work/matplotlib-1.1.1/test-2.7/lib/result_images/test_delaunay/trig-lin-con.png vs. /var/tmp/portage/dev-python/matplotlib-1.1.1/work/matplotlib-1.1.1/test-2.7/lib/result_images/test_delaunay/expected-trig-lin-con.png (RMS 15.395)

----------------------------------------------------------------------
Ran 1068 tests in 373.642s

FAILED (KNOWNFAIL=534, failures=3)
 * ERROR: dev-python/matplotlib-1.1.1 failed (test phase):
 *   Testing failed with CPython 2.7 in testing() function
 * 
 * Call stack:
 *     ebuild.sh, line   93:  Called src_test
 *   environment, line 5080:  Called python_execute_function 'testing'
 *   environment, line 3407:  Called die
 * The specific snippet of code:
 *                       die "${failure_message}";
Comment 2 mike 2012-11-24 13:03:42 UTC
(In reply to comment #1)
Sorry wrong window, belongs to bug Bug 441278.
Comment 3 Ian Delaney (RETIRED) gentoo-dev 2012-11-26 06:23:28 UTC
Carl,

good 'pickup', well done and thanks. Missing 'hunk' appended to current patch, closes bug