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
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}";
(In reply to comment #1) Sorry wrong window, belongs to bug Bug 441278.
Carl, good 'pickup', well done and thanks. Missing 'hunk' appended to current patch, closes bug