Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-943

segmentation fault when importing matplotlib.pyplot

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • 5.12.2
    • 5.12.1
    • PySide
    • None
    • Linux/X11
    • 8aa9cdf783e926e9d9a5543b77a54d3a34e90782 (pyside/pyside-setup/5.12)

      I tried to run using PySide2 5.12.1 a program I wrote that runs without any problems with <=5.12.0, and now I get a "segmentation fault" at the very beginning of the execution. According to faulthandler it happens when some submodules of matplotlib are loaded. Apparently, the problem is solved if I load matplotlib.pyplot (or the backends) before the PySide2 components, but in realty the crash is delayed when some functions involving matplotlib are executed.

      I don't think it is a matplotlib problem, as I use the same version 3.0.2 but only fails when PySide2 5.12.1 is loaded.

      It also seems that the failure does not depend on the matplotlib backend that is used (it fails either with Qt5Agg and Agg).

      Any suggestions?

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            crmaurei Cristian Maureira-Fredes
            steog88 Stefano Gariazzo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes