FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

"Too many open files" in test runs on Python 3.3 · Issue #3315 · matplotlib/matplotlib · GitHub

Repository navigation

"Too many open files" in test runs on Python 3.3 #3315

Closed

Description

The OSX testing juggernaut rolls on. For tests on Python 3.3.5, I am getting multiple (> 400) test errors related to "Too many open files":

======================================================================
ERROR: matplotlib.tests.test_mathtext.test_mathtext_cm_37.test
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/nose/case.py", line 198, in runTest
    self.test(*self.arg)
  File "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/matplotlib/testing/decorators.py", line 51, in failer
    result = f(*args, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/matplotlib/testing/decorators.py", line 183, in do_test
    figure.savefig(actual_fname, **self._savefig_kwarg)
  File "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/matplotlib/figure.py", line 1470, in savefig
    self.canvas.print_figure(*args, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/matplotlib/backend_bases.py", line 2192, in print_figure
    **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/matplotlib/backends/backend_pdf.py", line 2475, in print_pdf
  File "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/matplotlib/backends/backend_pdf.py", line 525, in close
  File "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/matplotlib/backends/backend_pdf.py", line 628, in writeFonts
  File "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/matplotlib/backends/backend_pdf.py", line 798, in embedTTF
OSError: [Errno 24] Too many open files: '/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/matplotlib/mpl-data/fonts/ttf/cmr10.ttf'

See:

I wasn't getting this failure for the multiprocess tests on previous Python 3.3 runs (which will have been testing a different commit on the 1.4.x branch):

https://s3.amazonaws.com/archive.travis-ci.org/jobs/30794971/log.txt

I assume this is because the multiprocess tests were each only using a smaller number of open files per process.

Any ideas why this should be happening for Python 3.3 specifically, not 2.7 or 3.4?

Activity

  1. added this to the milestone on Aug 17, 2014
  2. tacaswell commented on Aug 17, 2014

    Member

    @matthew-brett Is there anything we need to do mpl side about this?

  3. matthew-brett commented on Aug 21, 2014

    ContributorAuthor

    Sorry - I am not sure of the cause of the problem, or why it is fixed
    in Python 3.4 - so I don't know whether there is a real mpl problem or
    not :). Is there anything simple I can do to track down what is
    happening?

  4. added a commit that references this issue on Oct 21, 2015
    2b98a5f
  5. self-assigned this
    on Oct 21, 2015
  6. added 3 commits that reference this issue on Oct 26, 2015
    facbee5
    bd5812b
    349762b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


    Back | FazBrowse Home | New Git URL