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

segmentation fault when importing matplotlib.pyplot

    XMLWordPrintable

Details

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

    Description

      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?

      Attachments

        Issue Links

          For Gerrit Dashboard: PYSIDE-943
          # Subject Branch Project Status CR V

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes