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

segmentation fault when importing matplotlib.pyplot

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Duplicate
    • Affects Version/s: 5.12.1
    • Fix Version/s: 5.12.2
    • Component/s: PySide
    • Labels:
      None
    • Platform/s:
      Linux/X11
    • Commits:
      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

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

            Activity

              People

              • Assignee:
                crmaurei Cristian Maureira-Fredes
                Reporter:
                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