Uploaded image for project: 'Instrument control development'
  1. Instrument control development
  2. INSTRM-1071

matplotlib error caused plotTool to crash

    XMLWordPrintable

    Details

      Description

      Hitting Return after changing the name of a curve caused a plotTool crash (that is usually OK to do):

      QXcbClipboard: SelectionRequest too old
      QXcbClipboard: SelectionRequest too old
      Traceback (most recent call last):
        File "/software/mhs/products/Linux64/ics_sps_engineering_plotData/1.1.8/python/sps_engineering_plotData/navigationtoolbar.py", line 40, in edit_parameters
          NavigationToolbar2QT.edit_parameters(self)
        File "/software/conda/envs/anaconda_2019.07/lib/python3.7/site-packages/matplotlib/backends/backend_qt5.py", line 783, in edit_parameters
          figureoptions.figure_edit(ax, self)
        File "/software/conda/envs/anaconda_2019.07/lib/python3.7/site-packages/matplotlib/backends/qt_editor/figureoptions.py", line 264, in figure_edit
          apply_callback(data)
        File "/software/conda/envs/anaconda_2019.07/lib/python3.7/site-packages/matplotlib/backends/qt_editor/figureoptions.py", line 207, in apply_callback
          axes.xaxis.set_units(xunits)
        File "/software/conda/envs/anaconda_2019.07/lib/python3.7/site-packages/matplotlib/axis.py", line 1574, in set_units
          self.callbacks.process('units')
        File "/software/conda/envs/anaconda_2019.07/lib/python3.7/site-packages/matplotlib/cbook/__init__.py", line 212, in process
          for cid, ref in list(self.callbacks.get(s, {}).items()):
      RuntimeError: dictionary changed size during iteration
      Aborted
      

      This crashed the entire app, which was monitoring three cold cryostats.

      I'll note that before that, there were many of those QXcbClipboard errors:

      (anaconda_2019.07) pfs@tron:~$ grep '^QXcbClipboard: SelectionRequest too old' nohup.out | wc
      19921912 79687648 796876480
      

      No idea whether/if that is related.

        Attachments

          Activity

            People

            • Assignee:
              arnaud.lefur arnaud.lefur
              Reporter:
              cloomis cloomis
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: