test_tight_layout_option_for_inline_plot test fails with Qt 5.15.2

Issue Report Checklist

[x] Searched the issues page for similar reports
[x] Read the relevant sections of the Spyder Troubleshooting Guide and followed its advice
[x] Reproduced the issue after updating with conda update spyder (or pip, if not using Anaconda)
[ ] Could not reproduce inside jupyter qtconsole (if console-related)
[x] Tried basic troubleshooting (if a bug/error)

[ ] Restarted Spyder
[ ] Reset preferences with spyder --reset
[ ] Reinstalled the latest version of Anaconda
[ ] Tried the other applicable steps from the Troubleshooting Guide

[x] Completed the Problem Description, Steps to Reproduce and Version sections below

Problem Description
I'm guessing this test failure, the last of the run-slow test failures that I don't understand, may have a similar cause to #17102 as it is also somewhat connected to the IPython kernel and appears in the same test file (spyder/app/tests/test_mainwindow.py).  But of course I might be completely wrong about this.
What steps reproduce the problem?
This test fails when run on its own or within the complete test suite.  There is a lot of console output for this test, most of which is probably unhelpful, but I'm including it anyway just in case it's useful.  I'm assuming the final segmentation fault is Qt 5.15.2 related, but I don't understand the main test failure.
(sid-minimal)jdg@euler:/build/spyder-jdg/build-area/spyder-5.2.1+dfsg1$ debian/tests/pytest --run-slow spyder/app/tests/test_mainwindow.py::test_tight_layout_option_for_inline_plot
Testing with python3.10:
Temporary home directory: /tmp/tmp.0F79B3h2vB
Pytest Arguments: ['-vv', '-rw', '--durations=10', '-W ignore::UserWarning', '--run-slow', '-k', 'not test_get_pydoc and not test_qtbug35861 and not test_run_python_script_in_terminal and not test_run_python_script_in_terminal_blank_wdir and not test_run_python_script_in_terminal_with_wdir_empty and not test_find_external_plugins and not test_load_time and not test_objectexplorer_collection_types and not test_pylint.py and not test_object_arrays_display and not test_profiler_config_dialog.py and not test_handle_exception', 'spyder/app/tests/test_mainwindow.py::test_tight_layout_option_for_inline_plot']
============================= test session starts ==============================
platform linux -- Python 3.10.1, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
cachedir: .pytest_cache
PyQt5 5.15.6 -- Qt runtime 5.15.2 -- Qt compiled 5.15.2
rootdir: /build/spyder-jdg/build-area/spyder-5.2.1+dfsg1, configfile: pytest.ini
plugins: flaky-3.7.0, xvfb-2.0.0, mock-3.6.1, cov-3.0.0, order-1.0.0, qt-4.0.2, lazy-fixture-0.6.3
collected 1 item

spyder/app/tests/test_mainwindow.py::test_tight_layout_option_for_inline_plot FAILED [100%]

=================================== FAILURES ===================================
___________________ test_tight_layout_option_for_inline_plot ___________________

main_window = <spyder.app.mainwindow.MainWindow object at 0x7f539c123ac0>
qtbot = <pytestqt.qtbot.QtBot object at 0x7f53dc18da20>
tmpdir = '/tmp/pytest-of-jdg/pytest-118/test_tight_layout_option_for_i2'

    @pytest.mark.slow
    @flaky(max_runs=3)
    @pytest.mark.skipif(
        (parse_version(ipy_release.version) >= parse_version('7.23.0') and
         parse_version(ipykernel.__version__) <= parse_version('5.5.3')),
        reason="Fails due to a bug in the %matplotlib magic")
    def test_tight_layout_option_for_inline_plot(main_window, qtbot, tmpdir):
        """
        Test that the option to set bbox_inches to 'tight' or 'None' is
        working when plotting inline in the IPython console. By default, figures
        are plotted inline with bbox_inches='tight'.
        """
        tmpdir = to_text_string(tmpdir)

        # Assert that the default is True.
        assert CONF.get('ipython_console', 'pylab/inline/bbox_inches') is True

        fig_dpi = float(CONF.get('ipython_console', 'pylab/inline/resolution'))
        fig_width = float(CONF.get('ipython_console', 'pylab/inline/width'))
        fig_height = float(CONF.get('ipython_console', 'pylab/inline/height'))

        # Wait until the window is fully up.
        shell = main_window.ipyconsole.get_current_shellwidget()
        client = main_window.ipyconsole.get_current_client()
        qtbot.waitUntil(lambda: shell._prompt_html is not None,
                        timeout=SHELL_TIMEOUT)

        # Give focus to the widget that's going to receive clicks
        control = main_window.ipyconsole.get_widget().get_focus_widget()
        control.setFocus()

        # Generate a plot inline with bbox_inches=tight (since it is default) and
        # save the figure with savefig.
        savefig_figname = osp.join(
            tmpdir, 'savefig_bbox_inches_tight.png').replace('\\', '/')
        with qtbot.waitSignal(shell.executed):
            shell.execute(("import matplotlib.pyplot as plt\n"
                           "fig, ax = plt.subplots()\n"
                           "fig.set_size_inches(%f, %f)\n"
                           "ax.set_position([0.25, 0.25, 0.5, 0.5])\n"
                           "ax.set_xticks(range(10))\n"
                           "ax.xaxis.set_ticklabels([])\n"
                           "ax.set_yticks(range(10))\n"
                           "ax.yaxis.set_ticklabels([])\n"
                           "ax.tick_params(axis='both', length=0)\n"
                           "for loc in ax.spines:\n"
                           "    ax.spines[loc].set_color('#000000')\n"
                           "    ax.spines[loc].set_linewidth(2)\n"
                           "ax.axis([0, 9, 0, 9])\n"
                           "ax.plot(range(10), color='#000000', lw=2)\n"
                           "fig.savefig('%s',\n"
                           "            bbox_inches='tight',\n"
                           "            dpi=%f)"
                           ) % (fig_width, fig_height, savefig_figname, fig_dpi))

        # Get the image name from the html, fetch the image from the shell, and
        # then save it to a file.
        html = shell._control.toHtml()
        img_name = re.search('''
''', html).group(1)
        qimg = shell._get_image(img_name)
        assert isinstance(qimg, QImage)

        # Save the inline figure and assert it is similar to the one generated
        # with savefig.
        inline_figname = osp.join(tmpdir, 'inline_bbox_inches_tight.png')
        qimg.save(inline_figname)
        assert compare_images(savefig_figname, inline_figname, 0.1) is None

        # Change the option so that bbox_inches=None.
        CONF.set('ipython_console', 'pylab/inline/bbox_inches', False)

        # Restart the kernel and wait until it's up again
        shell._prompt_html = None
        client.restart_kernel()
>       qtbot.waitUntil(lambda: shell._prompt_html is not None,
                        timeout=SHELL_TIMEOUT)
E       pytestqt.exceptions.TimeoutError: waitUntil timed out in 20000 milliseconds

/build/spyder-jdg/build-area/spyder-5.2.1+dfsg1/spyder/app/tests/test_mainwindow.py:2014: TimeoutError
----------------------------- Captured Qt messages -----------------------------
QtWarningMsg: Attribute Qt::AA_UseSoftwareOpenGL must be set before QCoreApplication is created.
QtWarningMsg: Scenegraph already initialized, setBackend() request ignored
---------------------------- Captured stdout setup -----------------------------
Attribute Qt::AA_UseSoftwareOpenGL must be set before QCoreApplication is created.
--------------------------- Captured stdout teardown ---------------------------
Python 3.10.1 (main, Dec 16 2021, 23:04:04) [GCC 11.2.0]
Type "copyright", "credits" or "license" for more information.

IPython 7.27.0 -- An enhanced Interactive Python.

In [1]: import matplotlib.pyplot as plt
   ...: fig, ax = plt.subplots()
   ...: fig.set_size_inches(6.000000, 4.000000)
   ...: ax.set_position([0.25, 0.25, 0.5, 0.5])
   ...: ax.set_xticks(range(10))
   ...: ax.xaxis.set_ticklabels([])
   ...: ax.set_yticks(range(10))
   ...: ax.yaxis.set_ticklabels([])
   ...: ax.tick_params(axis='both', length=0)
   ...: for loc in ax.spines:
   ...:     ax.spines[loc].set_color('#000000')
   ...:     ax.spines[loc].set_linewidth(2)
   ...: ax.axis([0, 9, 0, 9])
   ...: ax.plot(range(10), color='#000000', lw=2)
   ...: fig.savefig('/tmp/pytest-of-jdg/pytest-118/test_tight_layout_option_for_i0/savefig_bbox_inches_tight.png',
   ...:             bbox_inches='tight',
   ...:             dpi=72.000000)

￼
Exception in thread Thread-5 (poll_thread):
Traceback (most recent call last):
  File "/usr/lib/python3.10/threading.py", line 1009, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.10/threading.py", line 946, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/frontendcomm.py", line 124, in poll_thread
    self.poll_one()
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/frontendcomm.py", line 144, in poll_one
    self._comm_close(msg)
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/frontendcomm.py", line 241, in _comm_close
    self.close(comm_id)
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/frontendcomm.py", line 104, in close
    return super(FrontendComm, self).close(comm_id)
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/commbase.py", line 173, in close
    self._comms[comm_id]['comm'].close()
KeyError: 'dcdc3eea673611eca3d3049226da1b49'
Task was destroyed but it is pending!
task: <Task pending name='Task-2' coro=<Kernel.poll_control_queue() running at /usr/lib/python3/dist-packages/ipykernel/kernelbase.py:227> wait_for=<Future finished result=<Future at 0x...state=pending>> cb=[_chain_future.<locals>._call_set_state() at /usr/lib/python3.10/asyncio/futures.py:391]>

[SpyderKernelApp] ERROR | Exception in comm_msg for dcdc3eea673611eca3d3049226da1b49
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/commbase.py", line 344, in _handle_remote_call
    self._set_call_return_value(msg_dict, return_value)
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/commbase.py", line 381, in _set_call_return_value
    self._send_message('remote_call_reply', content=content, data=data,
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/frontendcomm.py", line 109, in _send_message
    return super(FrontendComm, self)._send_message(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/commbase.py", line 235, in _send_message
    raise CommError("The comm is not connected.")
spyder_kernels.comms.commbase.CommError: The comm is not connected.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/ipykernel/comm/manager.py", line 109, in comm_msg
    comm.handle_msg(msg)
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/frontendcomm.py", line 256, in handle_msg
    comm._msg_callback(msg)
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/commbase.py", line 330, in _comm_message
    self._message_handlers[spyder_msg_type](
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/commbase.py", line 348, in _handle_remote_call
    self._set_call_return_value(msg_dict, exc_infos, is_error=True)
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/commbase.py", line 381, in _set_call_return_value
    self._send_message('remote_call_reply', content=content, data=data,
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/frontendcomm.py", line 109, in _send_message
    return super(FrontendComm, self)._send_message(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/commbase.py", line 235, in _send_message
    raise CommError("The comm is not connected.")
spyder_kernels.comms.commbase.CommError: The comm is not connected.

In [2]:
info_page

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <link rel="stylesheet" href="file:////build/spyder-jdg/build-area/spyder-5.2.1+dfsg1/spyder/plugins/help/utils/static/dark_css/default.css" type="text/css"/>

An error ocurred while starting the kernel

      <tt>[SpyderKernelApp] ERROR | Exception in comm_msg for dcdc3eea673611eca3d3049226da1b49
Traceback (most recent call last):
  File "/usr/lib/python3/dist&#8209packages/spyder_kernels/comms/commbase.py", line 344, in _handle_remote_call
    self._set_call_return_value(msg_dict, return_value)
  File "/usr/lib/python3/dist&#8209packages/spyder_kernels/comms/commbase.py", line 381, in _set_call_return_value
    self._send_message('remote_call_reply', content=content, data=data,
  File "/usr/lib/python3/dist&#8209packages/spyder_kernels/comms/frontendcomm.py", line 109, in _send_message
    return super(FrontendComm, self)._send_message(*args, **kwargs)
  File "/usr/lib/python3/dist&#8209packages/spyder_kernels/comms/commbase.py", line 235, in _send_message
    raise CommError("The comm is not connected.")
spyder_kernels.comms.commbase.CommError: The comm is not connected.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist&#8209packages/ipykernel/comm/manager.py", line 109, in comm_msg
    comm.handle_msg(msg)
  File "/usr/lib/python3/dist&#8209packages/spyder_kernels/comms/frontendcomm.py", line 256, in handle_msg
    comm._msg_callback(msg)
  File "/usr/lib/python3/dist&#8209packages/spyder_kernels/comms/commbase.py", line 330, in _comm_message
    self._message_handlers[spyder_msg_type](
  File "/usr/lib/python3/dist&#8209packages/spyder_kernels/comms/commbase.py", line 348, in _handle_remote_call
    self._set_call_return_value(msg_dict, exc_infos, is_error=True)
  File "/usr/lib/python3/dist&#8209packages/spyder_kernels/comms/commbase.py", line 381, in _set_call_return_value
    self._send_message('remote_call_reply', content=content, data=data,
  File "/usr/lib/python3/dist&#8209packages/spyder_kernels/comms/frontendcomm.py", line 109, in _send_message
    return super(FrontendComm, self)._send_message(*args, **kwargs)
  File "/usr/lib/python3/dist&#8209packages/spyder_kernels/comms/commbase.py", line 235, in _send_message
    raise CommError("The comm is not connected.")
spyder_kernels.comms.commbase.CommError: The comm is not connected.
</tt>

--------------------------- Captured stdout teardown ---------------------------
Python 3.10.1 (main, Dec 16 2021, 23:04:04) [GCC 11.2.0]
Type "copyright", "credits" or "license" for more information.

IPython 7.27.0 -- An enhanced Interactive Python.

In [1]: import matplotlib.pyplot as plt
   ...: fig, ax = plt.subplots()
   ...: fig.set_size_inches(6.000000, 4.000000)
   ...: ax.set_position([0.25, 0.25, 0.5, 0.5])
   ...: ax.set_xticks(range(10))
   ...: ax.xaxis.set_ticklabels([])
   ...: ax.set_yticks(range(10))
   ...: ax.yaxis.set_ticklabels([])
   ...: ax.tick_params(axis='both', length=0)
   ...: for loc in ax.spines:
   ...:     ax.spines[loc].set_color('#000000')
   ...:     ax.spines[loc].set_linewidth(2)
   ...: ax.axis([0, 9, 0, 9])
   ...: ax.plot(range(10), color='#000000', lw=2)
   ...: fig.savefig('/tmp/pytest-of-jdg/pytest-118/test_tight_layout_option_for_i1/savefig_bbox_inches_tight.png',
   ...:             bbox_inches='tight',
   ...:             dpi=72.000000)

￼
Exception in thread Thread-5 (poll_thread):
Traceback (most recent call last):
  File "/usr/lib/python3.10/threading.py", line 1009, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.10/threading.py", line 946, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/frontendcomm.py", line 124, in poll_thread
    self.poll_one()
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/frontendcomm.py", line 144, in poll_one
    self._comm_close(msg)
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/frontendcomm.py", line 241, in _comm_close
    self.close(comm_id)
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/frontendcomm.py", line 104, in close
    return super(FrontendComm, self).close(comm_id)
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/commbase.py", line 173, in close
    self._comms[comm_id]['comm'].close()
KeyError: 'eacdf5de673611eca3d3049226da1b49'
Task was destroyed but it is pending!
task: <Task pending name='Task-2' coro=<Kernel.poll_control_queue() running at /usr/lib/python3/dist-packages/ipykernel/kernelbase.py:227> wait_for=<Future finished result=<Future at 0x...state=pending>> cb=[_chain_future.<locals>._call_set_state() at /usr/lib/python3.10/asyncio/futures.py:391]>

[SpyderKernelApp] ERROR | Exception in comm_msg for eacdf5de673611eca3d3049226da1b49
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/commbase.py", line 344, in _handle_remote_call
    self._set_call_return_value(msg_dict, return_value)
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/commbase.py", line 381, in _set_call_return_value
    self._send_message('remote_call_reply', content=content, data=data,
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/frontendcomm.py", line 109, in _send_message
    return super(FrontendComm, self)._send_message(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/commbase.py", line 235, in _send_message
    raise CommError("The comm is not connected.")
spyder_kernels.comms.commbase.CommError: The comm is not connected.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/ipykernel/comm/manager.py", line 109, in comm_msg
    comm.handle_msg(msg)
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/frontendcomm.py", line 256, in handle_msg
    comm._msg_callback(msg)
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/commbase.py", line 330, in _comm_message
    self._message_handlers[spyder_msg_type](
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/commbase.py", line 348, in _handle_remote_call
    self._set_call_return_value(msg_dict, exc_infos, is_error=True)
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/commbase.py", line 381, in _set_call_return_value
    self._send_message('remote_call_reply', content=content, data=data,
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/frontendcomm.py", line 109, in _send_message
    return super(FrontendComm, self)._send_message(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/commbase.py", line 235, in _send_message
    raise CommError("The comm is not connected.")
spyder_kernels.comms.commbase.CommError: The comm is not connected.

In [2]:
info_page

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <link rel="stylesheet" href="file:////build/spyder-jdg/build-area/spyder-5.2.1+dfsg1/spyder/plugins/help/utils/static/dark_css/default.css" type="text/css"/>

An error ocurred while starting the kernel

      <tt>[SpyderKernelApp] ERROR | Exception in comm_msg for eacdf5de673611eca3d3049226da1b49
Traceback (most recent call last):
  File "/usr/lib/python3/dist&#8209packages/spyder_kernels/comms/commbase.py", line 344, in _handle_remote_call
    self._set_call_return_value(msg_dict, return_value)
  File "/usr/lib/python3/dist&#8209packages/spyder_kernels/comms/commbase.py", line 381, in _set_call_return_value
    self._send_message('remote_call_reply', content=content, data=data,
  File "/usr/lib/python3/dist&#8209packages/spyder_kernels/comms/frontendcomm.py", line 109, in _send_message
    return super(FrontendComm, self)._send_message(*args, **kwargs)
  File "/usr/lib/python3/dist&#8209packages/spyder_kernels/comms/commbase.py", line 235, in _send_message
    raise CommError("The comm is not connected.")
spyder_kernels.comms.commbase.CommError: The comm is not connected.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist&#8209packages/ipykernel/comm/manager.py", line 109, in comm_msg
    comm.handle_msg(msg)
  File "/usr/lib/python3/dist&#8209packages/spyder_kernels/comms/frontendcomm.py", line 256, in handle_msg
    comm._msg_callback(msg)
  File "/usr/lib/python3/dist&#8209packages/spyder_kernels/comms/commbase.py", line 330, in _comm_message
    self._message_handlers[spyder_msg_type](
  File "/usr/lib/python3/dist&#8209packages/spyder_kernels/comms/commbase.py", line 348, in _handle_remote_call
    self._set_call_return_value(msg_dict, exc_infos, is_error=True)
  File "/usr/lib/python3/dist&#8209packages/spyder_kernels/comms/commbase.py", line 381, in _set_call_return_value
    self._send_message('remote_call_reply', content=content, data=data,
  File "/usr/lib/python3/dist&#8209packages/spyder_kernels/comms/frontendcomm.py", line 109, in _send_message
    return super(FrontendComm, self)._send_message(*args, **kwargs)
  File "/usr/lib/python3/dist&#8209packages/spyder_kernels/comms/commbase.py", line 235, in _send_message
    raise CommError("The comm is not connected.")
spyder_kernels.comms.commbase.CommError: The comm is not connected.
</tt>

--------------------------- Captured stdout teardown ---------------------------
Python 3.10.1 (main, Dec 16 2021, 23:04:04) [GCC 11.2.0]
Type "copyright", "credits" or "license" for more information.

IPython 7.27.0 -- An enhanced Interactive Python.

In [1]: import matplotlib.pyplot as plt
   ...: fig, ax = plt.subplots()
   ...: fig.set_size_inches(6.000000, 4.000000)
   ...: ax.set_position([0.25, 0.25, 0.5, 0.5])
   ...: ax.set_xticks(range(10))
   ...: ax.xaxis.set_ticklabels([])
   ...: ax.set_yticks(range(10))
   ...: ax.yaxis.set_ticklabels([])
   ...: ax.tick_params(axis='both', length=0)
   ...: for loc in ax.spines:
   ...:     ax.spines[loc].set_color('#000000')
   ...:     ax.spines[loc].set_linewidth(2)
   ...: ax.axis([0, 9, 0, 9])
   ...: ax.plot(range(10), color='#000000', lw=2)
   ...: fig.savefig('/tmp/pytest-of-jdg/pytest-118/test_tight_layout_option_for_i0/savefig_bbox_inches_tight.png',
   ...:             bbox_inches='tight',
   ...:             dpi=72.000000)

￼
Exception in thread Thread-5 (poll_thread):
Traceback (most recent call last):
  File "/usr/lib/python3.10/threading.py", line 1009, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.10/threading.py", line 946, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/frontendcomm.py", line 124, in poll_thread
    self.poll_one()
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/frontendcomm.py", line 144, in poll_one
    self._comm_close(msg)
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/frontendcomm.py", line 241, in _comm_close
    self.close(comm_id)
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/frontendcomm.py", line 104, in close
    return super(FrontendComm, self).close(comm_id)
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/commbase.py", line 173, in close
    self._comms[comm_id]['comm'].close()
KeyError: 'dcdc3eea673611eca3d3049226da1b49'
Task was destroyed but it is pending!
task: <Task pending name='Task-2' coro=<Kernel.poll_control_queue() running at /usr/lib/python3/dist-packages/ipykernel/kernelbase.py:227> wait_for=<Future finished result=<Future at 0x...state=pending>> cb=[_chain_future.<locals>._call_set_state() at /usr/lib/python3.10/asyncio/futures.py:391]>

[SpyderKernelApp] ERROR | Exception in comm_msg for dcdc3eea673611eca3d3049226da1b49
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/commbase.py", line 344, in _handle_remote_call
    self._set_call_return_value(msg_dict, return_value)
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/commbase.py", line 381, in _set_call_return_value
    self._send_message('remote_call_reply', content=content, data=data,
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/frontendcomm.py", line 109, in _send_message
    return super(FrontendComm, self)._send_message(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/commbase.py", line 235, in _send_message
    raise CommError("The comm is not connected.")
spyder_kernels.comms.commbase.CommError: The comm is not connected.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/ipykernel/comm/manager.py", line 109, in comm_msg
    comm.handle_msg(msg)
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/frontendcomm.py", line 256, in handle_msg
    comm._msg_callback(msg)
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/commbase.py", line 330, in _comm_message
    self._message_handlers[spyder_msg_type](
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/commbase.py", line 348, in _handle_remote_call
    self._set_call_return_value(msg_dict, exc_infos, is_error=True)
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/commbase.py", line 381, in _set_call_return_value
    self._send_message('remote_call_reply', content=content, data=data,
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/frontendcomm.py", line 109, in _send_message
    return super(FrontendComm, self)._send_message(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/commbase.py", line 235, in _send_message
    raise CommError("The comm is not connected.")
spyder_kernels.comms.commbase.CommError: The comm is not connected.

In [2]:
info_page

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <link rel="stylesheet" href="file:////build/spyder-jdg/build-area/spyder-5.2.1+dfsg1/spyder/plugins/help/utils/static/dark_css/default.css" type="text/css"/>

An error ocurred while starting the kernel

      <tt>[SpyderKernelApp] ERROR | Exception in comm_msg for dcdc3eea673611eca3d3049226da1b49
Traceback (most recent call last):
  File "/usr/lib/python3/dist&#8209packages/spyder_kernels/comms/commbase.py", line 344, in _handle_remote_call
    self._set_call_return_value(msg_dict, return_value)
  File "/usr/lib/python3/dist&#8209packages/spyder_kernels/comms/commbase.py", line 381, in _set_call_return_value
    self._send_message('remote_call_reply', content=content, data=data,
  File "/usr/lib/python3/dist&#8209packages/spyder_kernels/comms/frontendcomm.py", line 109, in _send_message
    return super(FrontendComm, self)._send_message(*args, **kwargs)
  File "/usr/lib/python3/dist&#8209packages/spyder_kernels/comms/commbase.py", line 235, in _send_message
    raise CommError("The comm is not connected.")
spyder_kernels.comms.commbase.CommError: The comm is not connected.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist&#8209packages/ipykernel/comm/manager.py", line 109, in comm_msg
    comm.handle_msg(msg)
  File "/usr/lib/python3/dist&#8209packages/spyder_kernels/comms/frontendcomm.py", line 256, in handle_msg
    comm._msg_callback(msg)
  File "/usr/lib/python3/dist&#8209packages/spyder_kernels/comms/commbase.py", line 330, in _comm_message
    self._message_handlers[spyder_msg_type](
  File "/usr/lib/python3/dist&#8209packages/spyder_kernels/comms/commbase.py", line 348, in _handle_remote_call
    self._set_call_return_value(msg_dict, exc_infos, is_error=True)
  File "/usr/lib/python3/dist&#8209packages/spyder_kernels/comms/commbase.py", line 381, in _set_call_return_value
    self._send_message('remote_call_reply', content=content, data=data,
  File "/usr/lib/python3/dist&#8209packages/spyder_kernels/comms/frontendcomm.py", line 109, in _send_message
    return super(FrontendComm, self)._send_message(*args, **kwargs)
  File "/usr/lib/python3/dist&#8209packages/spyder_kernels/comms/commbase.py", line 235, in _send_message
    raise CommError("The comm is not connected.")
spyder_kernels.comms.commbase.CommError: The comm is not connected.
</tt>

--------------------------- Captured stdout teardown ---------------------------
Python 3.10.1 (main, Dec 16 2021, 23:04:04) [GCC 11.2.0]
Type "copyright", "credits" or "license" for more information.

IPython 7.27.0 -- An enhanced Interactive Python.

In [1]: import matplotlib.pyplot as plt
   ...: fig, ax = plt.subplots()
   ...: fig.set_size_inches(6.000000, 4.000000)
   ...: ax.set_position([0.25, 0.25, 0.5, 0.5])
   ...: ax.set_xticks(range(10))
   ...: ax.xaxis.set_ticklabels([])
   ...: ax.set_yticks(range(10))
   ...: ax.yaxis.set_ticklabels([])
   ...: ax.tick_params(axis='both', length=0)
   ...: for loc in ax.spines:
   ...:     ax.spines[loc].set_color('#000000')
   ...:     ax.spines[loc].set_linewidth(2)
   ...: ax.axis([0, 9, 0, 9])
   ...: ax.plot(range(10), color='#000000', lw=2)
   ...: fig.savefig('/tmp/pytest-of-jdg/pytest-118/test_tight_layout_option_for_i0/savefig_bbox_inches_tight.png',
   ...:             bbox_inches='tight',
   ...:             dpi=72.000000)

￼
Exception in thread Thread-5 (poll_thread):
Traceback (most recent call last):
  File "/usr/lib/python3.10/threading.py", line 1009, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.10/threading.py", line 946, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/frontendcomm.py", line 124, in poll_thread
    self.poll_one()
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/frontendcomm.py", line 144, in poll_one
    self._comm_close(msg)
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/frontendcomm.py", line 241, in _comm_close
    self.close(comm_id)
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/frontendcomm.py", line 104, in close
    return super(FrontendComm, self).close(comm_id)
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/commbase.py", line 173, in close
    self._comms[comm_id]['comm'].close()
KeyError: 'dcdc3eea673611eca3d3049226da1b49'
Task was destroyed but it is pending!
task: <Task pending name='Task-2' coro=<Kernel.poll_control_queue() running at /usr/lib/python3/dist-packages/ipykernel/kernelbase.py:227> wait_for=<Future finished result=<Future at 0x...state=pending>> cb=[_chain_future.<locals>._call_set_state() at /usr/lib/python3.10/asyncio/futures.py:391]>

[SpyderKernelApp] ERROR | Exception in comm_msg for dcdc3eea673611eca3d3049226da1b49
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/commbase.py", line 344, in _handle_remote_call
    self._set_call_return_value(msg_dict, return_value)
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/commbase.py", line 381, in _set_call_return_value
    self._send_message('remote_call_reply', content=content, data=data,
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/frontendcomm.py", line 109, in _send_message
    return super(FrontendComm, self)._send_message(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/commbase.py", line 235, in _send_message
    raise CommError("The comm is not connected.")
spyder_kernels.comms.commbase.CommError: The comm is not connected.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/ipykernel/comm/manager.py", line 109, in comm_msg
    comm.handle_msg(msg)
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/frontendcomm.py", line 256, in handle_msg
    comm._msg_callback(msg)
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/commbase.py", line 330, in _comm_message
    self._message_handlers[spyder_msg_type](
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/commbase.py", line 348, in _handle_remote_call
    self._set_call_return_value(msg_dict, exc_infos, is_error=True)
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/commbase.py", line 381, in _set_call_return_value
    self._send_message('remote_call_reply', content=content, data=data,
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/frontendcomm.py", line 109, in _send_message
    return super(FrontendComm, self)._send_message(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/commbase.py", line 235, in _send_message
    raise CommError("The comm is not connected.")
spyder_kernels.comms.commbase.CommError: The comm is not connected.

In [2]:
info_page

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <link rel="stylesheet" href="file:////build/spyder-jdg/build-area/spyder-5.2.1+dfsg1/spyder/plugins/help/utils/static/dark_css/default.css" type="text/css"/>

An error ocurred while starting the kernel

      <tt>[SpyderKernelApp] ERROR | Exception in comm_msg for dcdc3eea673611eca3d3049226da1b49
Traceback (most recent call last):
  File "/usr/lib/python3/dist&#8209packages/spyder_kernels/comms/commbase.py", line 344, in _handle_remote_call
    self._set_call_return_value(msg_dict, return_value)
  File "/usr/lib/python3/dist&#8209packages/spyder_kernels/comms/commbase.py", line 381, in _set_call_return_value
    self._send_message('remote_call_reply', content=content, data=data,
  File "/usr/lib/python3/dist&#8209packages/spyder_kernels/comms/frontendcomm.py", line 109, in _send_message
    return super(FrontendComm, self)._send_message(*args, **kwargs)
  File "/usr/lib/python3/dist&#8209packages/spyder_kernels/comms/commbase.py", line 235, in _send_message
    raise CommError("The comm is not connected.")
spyder_kernels.comms.commbase.CommError: The comm is not connected.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist&#8209packages/ipykernel/comm/manager.py", line 109, in comm_msg
    comm.handle_msg(msg)
  File "/usr/lib/python3/dist&#8209packages/spyder_kernels/comms/frontendcomm.py", line 256, in handle_msg
    comm._msg_callback(msg)
  File "/usr/lib/python3/dist&#8209packages/spyder_kernels/comms/commbase.py", line 330, in _comm_message
    self._message_handlers[spyder_msg_type](
  File "/usr/lib/python3/dist&#8209packages/spyder_kernels/comms/commbase.py", line 348, in _handle_remote_call
    self._set_call_return_value(msg_dict, exc_infos, is_error=True)
  File "/usr/lib/python3/dist&#8209packages/spyder_kernels/comms/commbase.py", line 381, in _set_call_return_value
    self._send_message('remote_call_reply', content=content, data=data,
  File "/usr/lib/python3/dist&#8209packages/spyder_kernels/comms/frontendcomm.py", line 109, in _send_message
    return super(FrontendComm, self)._send_message(*args, **kwargs)
  File "/usr/lib/python3/dist&#8209packages/spyder_kernels/comms/commbase.py", line 235, in _send_message
    raise CommError("The comm is not connected.")
spyder_kernels.comms.commbase.CommError: The comm is not connected.
</tt>

--------------------------- Captured stdout teardown ---------------------------
Python 3.10.1 (main, Dec 16 2021, 23:04:04) [GCC 11.2.0]
Type "copyright", "credits" or "license" for more information.

IPython 7.27.0 -- An enhanced Interactive Python.

In [1]: import matplotlib.pyplot as plt
   ...: fig, ax = plt.subplots()
   ...: fig.set_size_inches(6.000000, 4.000000)
   ...: ax.set_position([0.25, 0.25, 0.5, 0.5])
   ...: ax.set_xticks(range(10))
   ...: ax.xaxis.set_ticklabels([])
   ...: ax.set_yticks(range(10))
   ...: ax.yaxis.set_ticklabels([])
   ...: ax.tick_params(axis='both', length=0)
   ...: for loc in ax.spines:
   ...:     ax.spines[loc].set_color('#000000')
   ...:     ax.spines[loc].set_linewidth(2)
   ...: ax.axis([0, 9, 0, 9])
   ...: ax.plot(range(10), color='#000000', lw=2)
   ...: fig.savefig('/tmp/pytest-of-jdg/pytest-118/test_tight_layout_option_for_i1/savefig_bbox_inches_tight.png',
   ...:             bbox_inches='tight',
   ...:             dpi=72.000000)

￼
Exception in thread Thread-5 (poll_thread):
Traceback (most recent call last):
  File "/usr/lib/python3.10/threading.py", line 1009, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.10/threading.py", line 946, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/frontendcomm.py", line 124, in poll_thread
    self.poll_one()
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/frontendcomm.py", line 144, in poll_one
    self._comm_close(msg)
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/frontendcomm.py", line 241, in _comm_close
    self.close(comm_id)
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/frontendcomm.py", line 104, in close
    return super(FrontendComm, self).close(comm_id)
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/commbase.py", line 173, in close
    self._comms[comm_id]['comm'].close()
KeyError: 'eacdf5de673611eca3d3049226da1b49'
Task was destroyed but it is pending!
task: <Task pending name='Task-2' coro=<Kernel.poll_control_queue() running at /usr/lib/python3/dist-packages/ipykernel/kernelbase.py:227> wait_for=<Future finished result=<Future at 0x...state=pending>> cb=[_chain_future.<locals>._call_set_state() at /usr/lib/python3.10/asyncio/futures.py:391]>

[SpyderKernelApp] ERROR | Exception in comm_msg for eacdf5de673611eca3d3049226da1b49
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/commbase.py", line 344, in _handle_remote_call
    self._set_call_return_value(msg_dict, return_value)
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/commbase.py", line 381, in _set_call_return_value
    self._send_message('remote_call_reply', content=content, data=data,
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/frontendcomm.py", line 109, in _send_message
    return super(FrontendComm, self)._send_message(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/commbase.py", line 235, in _send_message
    raise CommError("The comm is not connected.")
spyder_kernels.comms.commbase.CommError: The comm is not connected.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/ipykernel/comm/manager.py", line 109, in comm_msg
    comm.handle_msg(msg)
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/frontendcomm.py", line 256, in handle_msg
    comm._msg_callback(msg)
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/commbase.py", line 330, in _comm_message
    self._message_handlers[spyder_msg_type](
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/commbase.py", line 348, in _handle_remote_call
    self._set_call_return_value(msg_dict, exc_infos, is_error=True)
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/commbase.py", line 381, in _set_call_return_value
    self._send_message('remote_call_reply', content=content, data=data,
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/frontendcomm.py", line 109, in _send_message
    return super(FrontendComm, self)._send_message(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/commbase.py", line 235, in _send_message
    raise CommError("The comm is not connected.")
spyder_kernels.comms.commbase.CommError: The comm is not connected.

In [2]:
info_page

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <link rel="stylesheet" href="file:////build/spyder-jdg/build-area/spyder-5.2.1+dfsg1/spyder/plugins/help/utils/static/dark_css/default.css" type="text/css"/>

An error ocurred while starting the kernel

      <tt>[SpyderKernelApp] ERROR | Exception in comm_msg for eacdf5de673611eca3d3049226da1b49
Traceback (most recent call last):
  File "/usr/lib/python3/dist&#8209packages/spyder_kernels/comms/commbase.py", line 344, in _handle_remote_call
    self._set_call_return_value(msg_dict, return_value)
  File "/usr/lib/python3/dist&#8209packages/spyder_kernels/comms/commbase.py", line 381, in _set_call_return_value
    self._send_message('remote_call_reply', content=content, data=data,
  File "/usr/lib/python3/dist&#8209packages/spyder_kernels/comms/frontendcomm.py", line 109, in _send_message
    return super(FrontendComm, self)._send_message(*args, **kwargs)
  File "/usr/lib/python3/dist&#8209packages/spyder_kernels/comms/commbase.py", line 235, in _send_message
    raise CommError("The comm is not connected.")
spyder_kernels.comms.commbase.CommError: The comm is not connected.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist&#8209packages/ipykernel/comm/manager.py", line 109, in comm_msg
    comm.handle_msg(msg)
  File "/usr/lib/python3/dist&#8209packages/spyder_kernels/comms/frontendcomm.py", line 256, in handle_msg
    comm._msg_callback(msg)
  File "/usr/lib/python3/dist&#8209packages/spyder_kernels/comms/commbase.py", line 330, in _comm_message
    self._message_handlers[spyder_msg_type](
  File "/usr/lib/python3/dist&#8209packages/spyder_kernels/comms/commbase.py", line 348, in _handle_remote_call
    self._set_call_return_value(msg_dict, exc_infos, is_error=True)
  File "/usr/lib/python3/dist&#8209packages/spyder_kernels/comms/commbase.py", line 381, in _set_call_return_value
    self._send_message('remote_call_reply', content=content, data=data,
  File "/usr/lib/python3/dist&#8209packages/spyder_kernels/comms/frontendcomm.py", line 109, in _send_message
    return super(FrontendComm, self)._send_message(*args, **kwargs)
  File "/usr/lib/python3/dist&#8209packages/spyder_kernels/comms/commbase.py", line 235, in _send_message
    raise CommError("The comm is not connected.")
spyder_kernels.comms.commbase.CommError: The comm is not connected.
</tt>

--------------------------- Captured stdout teardown ---------------------------
Python 3.10.1 (main, Dec 16 2021, 23:04:04) [GCC 11.2.0]
Type "copyright", "credits" or "license" for more information.

IPython 7.27.0 -- An enhanced Interactive Python.

In [1]: import matplotlib.pyplot as plt
   ...: fig, ax = plt.subplots()
   ...: fig.set_size_inches(6.000000, 4.000000)
   ...: ax.set_position([0.25, 0.25, 0.5, 0.5])
   ...: ax.set_xticks(range(10))
   ...: ax.xaxis.set_ticklabels([])
   ...: ax.set_yticks(range(10))
   ...: ax.yaxis.set_ticklabels([])
   ...: ax.tick_params(axis='both', length=0)
   ...: for loc in ax.spines:
   ...:     ax.spines[loc].set_color('#000000')
   ...:     ax.spines[loc].set_linewidth(2)
   ...: ax.axis([0, 9, 0, 9])
   ...: ax.plot(range(10), color='#000000', lw=2)
   ...: fig.savefig('/tmp/pytest-of-jdg/pytest-118/test_tight_layout_option_for_i0/savefig_bbox_inches_tight.png',
   ...:             bbox_inches='tight',
   ...:             dpi=72.000000)

￼
Exception in thread Thread-5 (poll_thread):
Traceback (most recent call last):
  File "/usr/lib/python3.10/threading.py", line 1009, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.10/threading.py", line 946, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/frontendcomm.py", line 124, in poll_thread
    self.poll_one()
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/frontendcomm.py", line 144, in poll_one
    self._comm_close(msg)
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/frontendcomm.py", line 241, in _comm_close
    self.close(comm_id)
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/frontendcomm.py", line 104, in close
    return super(FrontendComm, self).close(comm_id)
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/commbase.py", line 173, in close
    self._comms[comm_id]['comm'].close()
KeyError: 'dcdc3eea673611eca3d3049226da1b49'
Task was destroyed but it is pending!
task: <Task pending name='Task-2' coro=<Kernel.poll_control_queue() running at /usr/lib/python3/dist-packages/ipykernel/kernelbase.py:227> wait_for=<Future finished result=<Future at 0x...state=pending>> cb=[_chain_future.<locals>._call_set_state() at /usr/lib/python3.10/asyncio/futures.py:391]>

[SpyderKernelApp] ERROR | Exception in comm_msg for dcdc3eea673611eca3d3049226da1b49
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/commbase.py", line 344, in _handle_remote_call
    self._set_call_return_value(msg_dict, return_value)
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/commbase.py", line 381, in _set_call_return_value
    self._send_message('remote_call_reply', content=content, data=data,
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/frontendcomm.py", line 109, in _send_message
    return super(FrontendComm, self)._send_message(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/commbase.py", line 235, in _send_message
    raise CommError("The comm is not connected.")
spyder_kernels.comms.commbase.CommError: The comm is not connected.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/ipykernel/comm/manager.py", line 109, in comm_msg
    comm.handle_msg(msg)
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/frontendcomm.py", line 256, in handle_msg
    comm._msg_callback(msg)
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/commbase.py", line 330, in _comm_message
    self._message_handlers[spyder_msg_type](
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/commbase.py", line 348, in _handle_remote_call
    self._set_call_return_value(msg_dict, exc_infos, is_error=True)
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/commbase.py", line 381, in _set_call_return_value
    self._send_message('remote_call_reply', content=content, data=data,
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/frontendcomm.py", line 109, in _send_message
    return super(FrontendComm, self)._send_message(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/commbase.py", line 235, in _send_message
    raise CommError("The comm is not connected.")
spyder_kernels.comms.commbase.CommError: The comm is not connected.

In [2]:
info_page

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <link rel="stylesheet" href="file:////build/spyder-jdg/build-area/spyder-5.2.1+dfsg1/spyder/plugins/help/utils/static/dark_css/default.css" type="text/css"/>

An error ocurred while starting the kernel

      <tt>[SpyderKernelApp] ERROR | Exception in comm_msg for dcdc3eea673611eca3d3049226da1b49
Traceback (most recent call last):
  File "/usr/lib/python3/dist&#8209packages/spyder_kernels/comms/commbase.py", line 344, in _handle_remote_call
    self._set_call_return_value(msg_dict, return_value)
  File "/usr/lib/python3/dist&#8209packages/spyder_kernels/comms/commbase.py", line 381, in _set_call_return_value
    self._send_message('remote_call_reply', content=content, data=data,
  File "/usr/lib/python3/dist&#8209packages/spyder_kernels/comms/frontendcomm.py", line 109, in _send_message
    return super(FrontendComm, self)._send_message(*args, **kwargs)
  File "/usr/lib/python3/dist&#8209packages/spyder_kernels/comms/commbase.py", line 235, in _send_message
    raise CommError("The comm is not connected.")
spyder_kernels.comms.commbase.CommError: The comm is not connected.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist&#8209packages/ipykernel/comm/manager.py", line 109, in comm_msg
    comm.handle_msg(msg)
  File "/usr/lib/python3/dist&#8209packages/spyder_kernels/comms/frontendcomm.py", line 256, in handle_msg
    comm._msg_callback(msg)
  File "/usr/lib/python3/dist&#8209packages/spyder_kernels/comms/commbase.py", line 330, in _comm_message
    self._message_handlers[spyder_msg_type](
  File "/usr/lib/python3/dist&#8209packages/spyder_kernels/comms/commbase.py", line 348, in _handle_remote_call
    self._set_call_return_value(msg_dict, exc_infos, is_error=True)
  File "/usr/lib/python3/dist&#8209packages/spyder_kernels/comms/commbase.py", line 381, in _set_call_return_value
    self._send_message('remote_call_reply', content=content, data=data,
  File "/usr/lib/python3/dist&#8209packages/spyder_kernels/comms/frontendcomm.py", line 109, in _send_message
    return super(FrontendComm, self)._send_message(*args, **kwargs)
  File "/usr/lib/python3/dist&#8209packages/spyder_kernels/comms/commbase.py", line 235, in _send_message
    raise CommError("The comm is not connected.")
spyder_kernels.comms.commbase.CommError: The comm is not connected.
</tt>

--------------------------- Captured stdout teardown ---------------------------
Python 3.10.1 (main, Dec 16 2021, 23:04:04) [GCC 11.2.0]
Type "copyright", "credits" or "license" for more information.

IPython 7.27.0 -- An enhanced Interactive Python.

In [1]: import matplotlib.pyplot as plt
   ...: fig, ax = plt.subplots()
   ...: fig.set_size_inches(6.000000, 4.000000)
   ...: ax.set_position([0.25, 0.25, 0.5, 0.5])
   ...: ax.set_xticks(range(10))
   ...: ax.xaxis.set_ticklabels([])
   ...: ax.set_yticks(range(10))
   ...: ax.yaxis.set_ticklabels([])
   ...: ax.tick_params(axis='both', length=0)
   ...: for loc in ax.spines:
   ...:     ax.spines[loc].set_color('#000000')
   ...:     ax.spines[loc].set_linewidth(2)
   ...: ax.axis([0, 9, 0, 9])
   ...: ax.plot(range(10), color='#000000', lw=2)
   ...: fig.savefig('/tmp/pytest-of-jdg/pytest-118/test_tight_layout_option_for_i1/savefig_bbox_inches_tight.png',
   ...:             bbox_inches='tight',
   ...:             dpi=72.000000)

￼
Exception in thread Thread-5 (poll_thread):
Traceback (most recent call last):
  File "/usr/lib/python3.10/threading.py", line 1009, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.10/threading.py", line 946, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/frontendcomm.py", line 124, in poll_thread
    self.poll_one()
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/frontendcomm.py", line 144, in poll_one
    self._comm_close(msg)
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/frontendcomm.py", line 241, in _comm_close
    self.close(comm_id)
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/frontendcomm.py", line 104, in close
    return super(FrontendComm, self).close(comm_id)
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/commbase.py", line 173, in close
    self._comms[comm_id]['comm'].close()
KeyError: 'eacdf5de673611eca3d3049226da1b49'
Task was destroyed but it is pending!
task: <Task pending name='Task-2' coro=<Kernel.poll_control_queue() running at /usr/lib/python3/dist-packages/ipykernel/kernelbase.py:227> wait_for=<Future finished result=<Future at 0x...state=pending>> cb=[_chain_future.<locals>._call_set_state() at /usr/lib/python3.10/asyncio/futures.py:391]>

[SpyderKernelApp] ERROR | Exception in comm_msg for eacdf5de673611eca3d3049226da1b49
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/commbase.py", line 344, in _handle_remote_call
    self._set_call_return_value(msg_dict, return_value)
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/commbase.py", line 381, in _set_call_return_value
    self._send_message('remote_call_reply', content=content, data=data,
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/frontendcomm.py", line 109, in _send_message
    return super(FrontendComm, self)._send_message(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/commbase.py", line 235, in _send_message
    raise CommError("The comm is not connected.")
spyder_kernels.comms.commbase.CommError: The comm is not connected.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/ipykernel/comm/manager.py", line 109, in comm_msg
    comm.handle_msg(msg)
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/frontendcomm.py", line 256, in handle_msg
    comm._msg_callback(msg)
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/commbase.py", line 330, in _comm_message
    self._message_handlers[spyder_msg_type](
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/commbase.py", line 348, in _handle_remote_call
    self._set_call_return_value(msg_dict, exc_infos, is_error=True)
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/commbase.py", line 381, in _set_call_return_value
    self._send_message('remote_call_reply', content=content, data=data,
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/frontendcomm.py", line 109, in _send_message
    return super(FrontendComm, self)._send_message(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/commbase.py", line 235, in _send_message
    raise CommError("The comm is not connected.")
spyder_kernels.comms.commbase.CommError: The comm is not connected.

In [2]:
info_page

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <link rel="stylesheet" href="file:////build/spyder-jdg/build-area/spyder-5.2.1+dfsg1/spyder/plugins/help/utils/static/dark_css/default.css" type="text/css"/>

An error ocurred while starting the kernel

      <tt>[SpyderKernelApp] ERROR | Exception in comm_msg for eacdf5de673611eca3d3049226da1b49
Traceback (most recent call last):
  File "/usr/lib/python3/dist&#8209packages/spyder_kernels/comms/commbase.py", line 344, in _handle_remote_call
    self._set_call_return_value(msg_dict, return_value)
  File "/usr/lib/python3/dist&#8209packages/spyder_kernels/comms/commbase.py", line 381, in _set_call_return_value
    self._send_message('remote_call_reply', content=content, data=data,
  File "/usr/lib/python3/dist&#8209packages/spyder_kernels/comms/frontendcomm.py", line 109, in _send_message
    return super(FrontendComm, self)._send_message(*args, **kwargs)
  File "/usr/lib/python3/dist&#8209packages/spyder_kernels/comms/commbase.py", line 235, in _send_message
    raise CommError("The comm is not connected.")
spyder_kernels.comms.commbase.CommError: The comm is not connected.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist&#8209packages/ipykernel/comm/manager.py", line 109, in comm_msg
    comm.handle_msg(msg)
  File "/usr/lib/python3/dist&#8209packages/spyder_kernels/comms/frontendcomm.py", line 256, in handle_msg
    comm._msg_callback(msg)
  File "/usr/lib/python3/dist&#8209packages/spyder_kernels/comms/commbase.py", line 330, in _comm_message
    self._message_handlers[spyder_msg_type](
  File "/usr/lib/python3/dist&#8209packages/spyder_kernels/comms/commbase.py", line 348, in _handle_remote_call
    self._set_call_return_value(msg_dict, exc_infos, is_error=True)
  File "/usr/lib/python3/dist&#8209packages/spyder_kernels/comms/commbase.py", line 381, in _set_call_return_value
    self._send_message('remote_call_reply', content=content, data=data,
  File "/usr/lib/python3/dist&#8209packages/spyder_kernels/comms/frontendcomm.py", line 109, in _send_message
    return super(FrontendComm, self)._send_message(*args, **kwargs)
  File "/usr/lib/python3/dist&#8209packages/spyder_kernels/comms/commbase.py", line 235, in _send_message
    raise CommError("The comm is not connected.")
spyder_kernels.comms.commbase.CommError: The comm is not connected.
</tt>

--------------------------- Captured stdout teardown ---------------------------
Python 3.10.1 (main, Dec 16 2021, 23:04:04) [GCC 11.2.0]
Type "copyright", "credits" or "license" for more information.

IPython 7.27.0 -- An enhanced Interactive Python.

In [1]: import matplotlib.pyplot as plt
   ...: fig, ax = plt.subplots()
   ...: fig.set_size_inches(6.000000, 4.000000)
   ...: ax.set_position([0.25, 0.25, 0.5, 0.5])
   ...: ax.set_xticks(range(10))
   ...: ax.xaxis.set_ticklabels([])
   ...: ax.set_yticks(range(10))
   ...: ax.yaxis.set_ticklabels([])
   ...: ax.tick_params(axis='both', length=0)
   ...: for loc in ax.spines:
   ...:     ax.spines[loc].set_color('#000000')
   ...:     ax.spines[loc].set_linewidth(2)
   ...: ax.axis([0, 9, 0, 9])
   ...: ax.plot(range(10), color='#000000', lw=2)
   ...: fig.savefig('/tmp/pytest-of-jdg/pytest-118/test_tight_layout_option_for_i2/savefig_bbox_inches_tight.png',
   ...:             bbox_inches='tight',
   ...:             dpi=72.000000)

￼
Exception in thread Thread-5 (poll_thread):
Traceback (most recent call last):
  File "/usr/lib/python3.10/threading.py", line 1009, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.10/threading.py", line 946, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/frontendcomm.py", line 124, in poll_thread
    self.poll_one()
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/frontendcomm.py", line 144, in poll_one
    self._comm_close(msg)
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/frontendcomm.py", line 241, in _comm_close
    self.close(comm_id)
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/frontendcomm.py", line 104, in close
    return super(FrontendComm, self).close(comm_id)
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/commbase.py", line 173, in close
    self._comms[comm_id]['comm'].close()
KeyError: 'f8a07c72673611eca3d3049226da1b49'

[SpyderKernelApp] ERROR | Exception in comm_msg for f8a07c72673611eca3d3049226da1b49
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/commbase.py", line 344, in _handle_remote_call
    self._set_call_return_value(msg_dict, return_value)
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/commbase.py", line 381, in _set_call_return_value
    self._send_message('remote_call_reply', content=content, data=data,
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/frontendcomm.py", line 109, in _send_message
    return super(FrontendComm, self)._send_message(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/commbase.py", line 235, in _send_message
    raise CommError("The comm is not connected.")
spyder_kernels.comms.commbase.CommError: The comm is not connected.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/ipykernel/comm/manager.py", line 109, in comm_msg
    comm.handle_msg(msg)
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/frontendcomm.py", line 256, in handle_msg
    comm._msg_callback(msg)
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/commbase.py", line 330, in _comm_message
    self._message_handlers[spyder_msg_type](
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/commbase.py", line 348, in _handle_remote_call
    self._set_call_return_value(msg_dict, exc_infos, is_error=True)
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/commbase.py", line 381, in _set_call_return_value
    self._send_message('remote_call_reply', content=content, data=data,
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/frontendcomm.py", line 109, in _send_message
    return super(FrontendComm, self)._send_message(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/spyder_kernels/comms/commbase.py", line 235, in _send_message
    raise CommError("The comm is not connected.")
spyder_kernels.comms.commbase.CommError: The comm is not connected.

In [2]:
info_page

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <link rel="stylesheet" href="file:////build/spyder-jdg/build-area/spyder-5.2.1+dfsg1/spyder/plugins/help/utils/static/dark_css/default.css" type="text/css"/>

An error ocurred while starting the kernel

      <tt>[SpyderKernelApp] ERROR | Exception in comm_msg for f8a07c72673611eca3d3049226da1b49
Traceback (most recent call last):
  File "/usr/lib/python3/dist&#8209packages/spyder_kernels/comms/commbase.py", line 344, in _handle_remote_call
    self._set_call_return_value(msg_dict, return_value)
  File "/usr/lib/python3/dist&#8209packages/spyder_kernels/comms/commbase.py", line 381, in _set_call_return_value
    self._send_message('remote_call_reply', content=content, data=data,
  File "/usr/lib/python3/dist&#8209packages/spyder_kernels/comms/frontendcomm.py", line 109, in _send_message
    return super(FrontendComm, self)._send_message(*args, **kwargs)
  File "/usr/lib/python3/dist&#8209packages/spyder_kernels/comms/commbase.py", line 235, in _send_message
    raise CommError("The comm is not connected.")
spyder_kernels.comms.commbase.CommError: The comm is not connected.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist&#8209packages/ipykernel/comm/manager.py", line 109, in comm_msg
    comm.handle_msg(msg)
  File "/usr/lib/python3/dist&#8209packages/spyder_kernels/comms/frontendcomm.py", line 256, in handle_msg
    comm._msg_callback(msg)
  File "/usr/lib/python3/dist&#8209packages/spyder_kernels/comms/commbase.py", line 330, in _comm_message
    self._message_handlers[spyder_msg_type](
  File "/usr/lib/python3/dist&#8209packages/spyder_kernels/comms/commbase.py", line 348, in _handle_remote_call
    self._set_call_return_value(msg_dict, exc_infos, is_error=True)
  File "/usr/lib/python3/dist&#8209packages/spyder_kernels/comms/commbase.py", line 381, in _set_call_return_value
    self._send_message('remote_call_reply', content=content, data=data,
  File "/usr/lib/python3/dist&#8209packages/spyder_kernels/comms/frontendcomm.py", line 109, in _send_message
    return super(FrontendComm, self)._send_message(*args, **kwargs)
  File "/usr/lib/python3/dist&#8209packages/spyder_kernels/comms/commbase.py", line 235, in _send_message
    raise CommError("The comm is not connected.")
spyder_kernels.comms.commbase.CommError: The comm is not connected.
</tt>

=============================== warnings summary ===============================
spyder/app/tests/test_mainwindow.py::test_tight_layout_option_for_inline_plot
  /usr/lib/python3/dist-packages/astroid/modutils.py:51: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead
    from distutils.sysconfig import get_python_lib  # pylint: disable=import-error

spyder/app/tests/test_mainwindow.py::test_tight_layout_option_for_inline_plot
  /build/spyder-jdg/build-area/spyder-5.2.1+dfsg1/spyder/plugins/ipythonconsole/widgets/shell.py:937: DeprecationWarning: ShellWidget._syntax_style_changed is deprecated in traitlets 4.1: use @observe and @unobserve instead.
    def _syntax_style_changed(self):

spyder/app/tests/test_mainwindow.py::test_tight_layout_option_for_inline_plot
spyder/app/tests/test_mainwindow.py::test_tight_layout_option_for_inline_plot
spyder/app/tests/test_mainwindow.py::test_tight_layout_option_for_inline_plot
  /usr/lib/python3/dist-packages/jupyter_client/manager.py:64: DeprecationWarning: There is no current event loop
    self._ready = Future()

spyder/app/tests/test_mainwindow.py::test_tight_layout_option_for_inline_plot
spyder/app/tests/test_mainwindow.py::test_tight_layout_option_for_inline_plot
spyder/app/tests/test_mainwindow.py::test_tight_layout_option_for_inline_plot
spyder/app/tests/test_mainwindow.py::test_tight_layout_option_for_inline_plot
spyder/app/tests/test_mainwindow.py::test_tight_layout_option_for_inline_plot
spyder/app/tests/test_mainwindow.py::test_tight_layout_option_for_inline_plot
  /usr/lib/python3/dist-packages/jupyter_client/utils.py:14: DeprecationWarning: There is no current event loop
    loop = asyncio.get_event_loop()

spyder/app/tests/test_mainwindow.py::test_tight_layout_option_for_inline_plot
spyder/app/tests/test_mainwindow.py::test_tight_layout_option_for_inline_plot
spyder/app/tests/test_mainwindow.py::test_tight_layout_option_for_inline_plot
spyder/app/tests/test_mainwindow.py::test_tight_layout_option_for_inline_plot
spyder/app/tests/test_mainwindow.py::test_tight_layout_option_for_inline_plot
spyder/app/tests/test_mainwindow.py::test_tight_layout_option_for_inline_plot
  /usr/lib/python3/dist-packages/jupyter_client/utils.py:21: DeprecationWarning: There is no current event loop
    future = asyncio.ensure_future(coro(*args, **kwargs))

spyder/app/tests/test_mainwindow.py::test_tight_layout_option_for_inline_plot
spyder/app/tests/test_mainwindow.py::test_tight_layout_option_for_inline_plot
spyder/app/tests/test_mainwindow.py::test_tight_layout_option_for_inline_plot
spyder/app/tests/test_mainwindow.py::test_tight_layout_option_for_inline_plot
spyder/app/tests/test_mainwindow.py::test_tight_layout_option_for_inline_plot
spyder/app/tests/test_mainwindow.py::test_tight_layout_option_for_inline_plot
  /usr/lib/python3/dist-packages/tornado/ioloop.py:263: DeprecationWarning: There is no current event loop
    loop = asyncio.get_event_loop()

spyder/app/tests/test_mainwindow.py::test_tight_layout_option_for_inline_plot
spyder/app/tests/test_mainwindow.py::test_tight_layout_option_for_inline_plot
spyder/app/tests/test_mainwindow.py::test_tight_layout_option_for_inline_plot
  /usr/lib/python3/dist-packages/tornado/platform/asyncio.py:326: DeprecationWarning: There is no current event loop
    self.old_asyncio = asyncio.get_event_loop()

spyder/app/tests/test_mainwindow.py::test_tight_layout_option_for_inline_plot
spyder/app/tests/test_mainwindow.py::test_tight_layout_option_for_inline_plot
spyder/app/tests/test_mainwindow.py::test_tight_layout_option_for_inline_plot
  /usr/lib/python3/dist-packages/tornado/platform/asyncio.py:193: DeprecationWarning: There is no current event loop
    old_loop = asyncio.get_event_loop()

-- Docs: https://docs.pytest.org/en/stable/warnings.html
===Flaky Test Report===

test_tight_layout_option_for_inline_plot failed (2 runs remaining out of 3).
	<class 'pytestqt.exceptions.TimeoutError'>
	waitUntil timed out in 20000 milliseconds
	[<TracebackEntry /build/spyder-jdg/build-area/spyder-5.2.1+dfsg1/spyder/app/tests/test_mainwindow.py:2014>]
test_tight_layout_option_for_inline_plot failed (1 runs remaining out of 3).
	<class 'pytestqt.exceptions.TimeoutError'>
	waitUntil timed out in 20000 milliseconds
	[<TracebackEntry /build/spyder-jdg/build-area/spyder-5.2.1+dfsg1/spyder/app/tests/test_mainwindow.py:2014>]
test_tight_layout_option_for_inline_plot failed; it passed 0 out of the required 1 times.
	<class 'pytestqt.exceptions.TimeoutError'>
	waitUntil timed out in 20000 milliseconds
	[<TracebackEntry /build/spyder-jdg/build-area/spyder-5.2.1+dfsg1/spyder/app/tests/test_mainwindow.py:2014>]

===End Flaky Test Report===
============================= slowest 10 durations =============================
21.00s call     spyder/app/tests/test_mainwindow.py::test_tight_layout_option_for_inline_plot
3.43s setup    spyder/app/tests/test_mainwindow.py::test_tight_layout_option_for_inline_plot
2.15s setup    spyder/app/tests/test_mainwindow.py::test_tight_layout_option_for_inline_plot
1.95s setup    spyder/app/tests/test_mainwindow.py::test_tight_layout_option_for_inline_plot
0.05s teardown spyder/app/tests/test_mainwindow.py::test_tight_layout_option_for_inline_plot
0.04s teardown spyder/app/tests/test_mainwindow.py::test_tight_layout_option_for_inline_plot
0.03s teardown spyder/app/tests/test_mainwindow.py::test_tight_layout_option_for_inline_plot
================== 1 failed, 29 warnings in 72.30s (0:01:12) ===================
Fatal Python error: Segmentation fault

Current thread 0x00007f54cda08740 (most recent call first):
  <no Python frame>

Extension modules: PyQt5.QtCore, PyQt5.QtWebChannel, PyQt5.QtNetwork, PyQt5.QtGui, PyQt5.QtWebEngineCore, PyQt5.QtWidgets, PyQt5.QtPrintSupport, PyQt5.QtWebEngineWidgets, PyQt5.QtTest, zmq.backend.cython.constants, zmq.backend.cython.error, zmq.backend.cython.message, zmq.backend.cython.context, zmq.backend.cython.socket, zmq.backend.cython.utils, zmq.backend.cython._poll, zmq.backend.cython._version, zmq.backend.cython._device, zmq.backend.cython._proxy_steerable, tornado.speedups, numpy.core._multiarray_umath, numpy.core._multiarray_tests, numpy.linalg.lapack_lite, numpy.linalg._umath_linalg, numpy.fft._pocketfft_internal, numpy.random._common, numpy.random.bit_generator, numpy.random._bounded_integers, numpy.random._mt19937, numpy.random.mtrand, numpy.random._philox, numpy.random._pcg64, numpy.random._sfc64, numpy.random._generator, matplotlib._c_internal_utils, PIL._imaging, matplotlib._path, kiwisolver, markupsafe._speedups, psutil._psutil_linux, psutil._psutil_posix, _brotli, pvectorc, PyQt5.QtSvg, PyQt5.QtQml, PyQt5.QtQuick, lazy_object_proxy.cext (total: 47)
Segmentation fault

Versions

Spyder version: 5.2.1
Python version: 3.9 and 3.10
Qt version: 5.15.2
PyQt version: 5.15.6+dfsg-1+b1
Operating System name/version: Debian testing and unstable

Dependencies

# Mandatory:
atomicwrites >=1.2.0          :  1.4.0 (OK)
chardet >=2.0.0               :  4.0.0 (OK)
cloudpickle >=0.5.0           :  2.0.0 (OK)
cookiecutter >=1.6.0          :  1.7.3 (OK)
diff_match_patch >=20181111   :  20200713 (OK)
intervaltree >=3.0.2          :  3.0.2 (OK)
IPython >=7.6.0               :  7.27.0 (OK)
jedi >=0.17.2;<0.19.0         :  0.18.0 (OK)
jellyfish >=0.7               :  0.8.9 (OK)
jsonschema >=3.2.0            :  3.2.0 (OK)
keyring >=17.0.0              :  23.3.0 (OK)
nbconvert >=4.0               :  6.1.0 (OK)
numpydoc >=0.6.0              :  1.1.0 (OK)
parso >=0.7.0;<0.9.0          :  0.8.1 (OK)
pexpect >=4.4.0               :  4.8.0 (OK)
pickleshare >=0.4             :  0.7.5 (OK)
psutil >=5.3                  :  5.8.0 (OK)
pygments >=2.0                :  2.7.1 (OK)
pylint >=2.5.0                :  2.12.2 (OK)
pyls_spyder >=0.4.0           :  0.4.0 (OK)
pylsp >=1.3.2;<1.4.0          :  1.3.3 (OK)
pylsp_black >=1.0.0           :  1.0.1 (OK)
qdarkstyle =3.0.2             :  3.0.2 (OK)
qstylizer >=0.1.10            :  0.2.1 (OK)
qtawesome >=1.0.2             :  1.1.1 (OK)
qtconsole >=5.2.1;<5.3.0      :  5.2.1 (OK)
qtpy >=1.5.0                  :  1.9.0 (OK)
rtree >=0.9.7                 :  0.9.7 (OK)
setuptools >=49.6.0           :  58.2.0 (OK)
sphinx >=0.6.6                :  4.3.2 (OK)
spyder_kernels >=2.2.0;<2.3.0 :  2.2.0 (OK)
textdistance >=4.2.0          :  4.2.2 (OK)
three_merge >=0.1.1           :  0.1.1 (OK)
watchdog >=0.10.3             :  2.1.6 (OK)
xdg >=0.26                    :  0.27 (OK)
zmq >=17                      :  22.3.0 (OK)

# Optional:
cython >=0.21                 :  0.29.24 (OK)
matplotlib >=2.0.0            :  3.3.4 (OK)
numpy >=1.7                   :  1.21.5 (OK)
pandas >=1.1.1                :  1.3.4 (OK)
scipy >=0.17.0                :  1.7.1 (OK)
sympy >=0.7.3                 :  1.7.1 (OK)

I can't reproduce this problem on my side, sorry. Probably there's a mismatch of dependencies between ipykernel, jupyter-client, IPython and Matplotlib.
I suggest to skip it in your side.

OK, no problem - I'll skip it on my side.  Thanks for trying to reproduce it!
For the record, here are the versions of the packages you've just listed on my system:
python3-ipykernel 6.2.0-1
python3-jupyter-client 7.1.0-1
ipython3 7.27.0-1
python3-matplotlib 3.5.0-5

I tried those versions and the test still passes for me. So I'm going to close this one then.

OK, thanks!


GDScriptTokenizer: Fix token_names order

Fixes #23013
As you can see here:
https://github.com/godotengine/godot/blob/82ff99c18005f67c6d7692abf7594e31fc067f3c/modules/gdscript/gdscript_tokenizer.h#L137
The order of the tokens as string is wrong.

Thanks!


Enable index labels in method classifier.fit

Signed-off-by: Beat Buesser<EMAIL_ADDRESS>Description
This pull request enables index labels in method classifier.fit.
Fixes # (issue)
Type of change
Please check all relevant options.

[ ] Bug fix (non-breaking)
[x] New feature (non-breaking)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

Checklist

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code
[x]  I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes

@davidslater Thank you very much for your review!

Beat, I'm getting an error that art.estimators doesn't exist. I recently did a pip install of ART.


Update RollerCorner to use RigidBody for physics and UV shader rotation for animation

Closes #74 and wraps up #68.
Aside from the title, the big change was moving UV rotation logic from RollerCorner to CurvedRollerConveyor.
See 6c0ae54 for more on that.

Thanks!


Making Redactor’s field be resizable

Added the behaviour both to the regular and the code view.
Closes #729.

Weird CI error from paperclip... not related to this submission. @GBH Wanna give it a look? I think this feature is worth it for UX.

@hallaathrad In travis Rails version 4.2 is failing in ruby 2.0.0 because paperclip 5.1 requires in unsupported in ruby 2.0. That is what's causing the CI error

@elyalvarado but it not something related to my submission, right?

No, it's not. It will even fail on the master branch without any changes

👍


OSError: exception: access violation writing 0x0000000000000024

hello，I don't know why I print this exception

Did you try the latest libusb Windows 1.0.23 release and latest pyusb?

@mcuee

I think I should use the latest library

No you are not using the latest pyusb. You need to download latest git repo and install by yourself, not using pip.

Your issue may already got fixed in latest git.
https://github.com/pyusb/pyusb/issues/288

@mcuee

I have solved the problem by installing Git, thank you

@mcuee Hello, I found a bug in the new version. In 1.0.2, I called“ usb.util.dispose_ resources( self.dev ）”Release the resources and connect again next time. There is no problem
When I update to the latest version of GIT, I still call "dispose" for the same code_ Resources ", which is then triggered in the child thread“ self.dev.read (self.__ Again, I reported an exception in 64“ self.dev.set_ Configuration() "is stuck and cannot be connected,,,
Again, I didn't change a single line of code, just changed the version of the library

The same code, just switching to the latest version, causes an exception

Again, I didn't change a single line of code, just changed the version of the library

Can you git bisect to a specific commit that causes this problem?

Note that there's already a specific issue for the different behavior under git/1.1.0: #325.

Problem has been solved, as mentioned in #325.


Keep algorithm private checkbox fixes

Fixes #1160 && #1161

Checkbox now does something else unintended but looks like that's also happening on v4 branch so no clue what happened there:

That Compute Environment field should not be connected with the privacy checkbox in any way. But not even sure this should be present at all for algos.
@bogdanfazakas do we set compute environments for compute datasets AND algos, or just compute data sets?

Checkbox now does something else unintended but looks like that's also happening on v4 branch so no clue what happened there:

That Compute Environment field should not be connected with the privacy checkbox in any way. But not even sure this should be present at all for algos.
@bogdanfazakas do we set compute environments for compute data sets AND algos, or just compute data sets?

true,I think we should have had them set only on datasets, and as we handle things now we are setting compute environments by querying  the provider and getting the values from there. But i think we can keep them so the publisher would be able to set some values there like recommended compute env settings or something like so when you as a consumer when reserving the c2d environment have an idea on what to you would need

I missed something conceptionally, and yes because the environments are now set on the provider we do not set them anymore during publish. So that form field and all logic/code attached to it can be removed.
Later on we might want to still find some way to show those environments, like when you publish an algo we can show to publisher which resources are available from the provider but should not be made in a way which suggests those are set during publish, so no normal form field

Ok, I will remove the field

I discovered more where we still have the compute environments set during publish as current implementation, including ServiceComputeOptions coming from ocean.js does not reflect the current state of the spec: https://deploy-preview-819--docs-oceanprotocol.netlify.app/concepts/did-ddo/#compute-options
This applies to all compute assets, so most likely we want to do this in another PR. Or did @bogdanfazakas update this in #1069 somewhere?

I discovered more where we still have the compute environments set during publish as current implementation, including ServiceComputeOptions coming from ocean.js does not reflect the current state of the spec: https://deploy-preview-819--docs-oceanprotocol.netlify.app/concepts/did-ddo/#compute-options
This applies to all compute assets, so most likely we want to do this in another PR. Or did @bogdanfazakas update this in #1069 somewhere?

Good findings we need to update oceanjs typings first (remove namespace, cpu, gpu, gpuType, memory, and volumeSize from ServiceComputeOptions) and then update the market publish in #1069

On first tests, fixes original issues. But published algos would be now public by default (cause of access type default), and we want the other way around, checkbox should be ticked by default.

I see, I'm changing it now

also seeing I left comments so this would be alternative as the form data and the data in final DDO do not need to be the same, so we could do the transformation also in our utility method. But this has lots of logic already so probably best to keep more logic out of it
https://github.com/oceanprotocol/market/pull/1174/files#diff-ccc0182ce5c4d89f431f804248ab537210f99b7a800587f30ba6344d28321b3eR43-R44


Sticky header

On mobile, it would be very useful to have the header sticking to the top of the page while scrolling.
Ref: http://www.nngroup.com/articles/mobile-accordions/
The demo page doesn't seem to have this behaviour and couldn't find any reference about something similar.

Hi @nuthinking, thanks for the suggestion! We don't currently have this in our roadmap, but will consider it during feature planning, thanks!


Change namespace and nuget

Migrate from Criteo.Profiling.Tracing to zipkin4net
Fixes #117

I just changed namespaces and nugets for zipkin4net assembly, not aspnetcore nor owin.
This is intentional to migrate middleware projects when the nuget will be released.
Did I miss anything ?

I thought the scope was the entire Criteo.Profiling.Tracing namespace. Thanks for the explanation !


Add percona xtrabackup import from S3

what

Add percona xtrabackup import from S3

why

Allows importing from xtrabackups from an S3 bucket in the same region

references

https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_RestoreDBClusterFromS3.html

/rebuild-readme

/test all

@nitrocode thanks for the PR, looks good.
Did you test it with variable "s3_import" populated with some real values?
According to the docs:
The for_each meta-argument accepts a map or a set of strings

But you use a list of objects in the for_each. Does it work?
https://www.terraform.io/docs/configuration/resources.html#for_each-multiple-resource-instances-defined-by-a-map-or-set-of-strings

/rebuild-readme

@aknysh ah good call. I was wondering the same thing.

/test all

/rebuild-readme

/test all

/rebuild-readme

/test all

@aknysh how do I keep var.s3_import optional ? The terratest says
Error: Invalid dynamic for_each value
  on ../../main.tf line 77, in resource "aws_rds_cluster" "primary":
  77:     for_each = var.s3_import
   |----------------
   | var.s3_import is null

Cannot use a null value in for_each.

/test terratest

/test terratest

/test all


Remove C++17 deprecated features

This pull request also removes all references to the (deprecated) register keyword.
Please test this code, my pc overheats when compiling this code and shuts down due to bad wheater (and bad computer).

Maybe change on in ci.yml to
on:
  push:
    branches: [master]
  pull_request:

to make the CI run... Idk if we need to commit this change separately to master first...

I changed the cmake script. The compiler should now error on these throw and register declarations. There are still a few left @Drvanon, this should allow you to easily find them (given your computer is working again :fearful:). Let us know if this helps.

The compiler also throws errors for deprecation of std::auto_ptr on CI. How should we deal with this? I think in the Q-Chem libtensor version, these were converted to std::unique_ptr, right?

Ahhhh I forgot about that. Nah that conversion is in general not so simple (might be either unique_ptr or shared_ptr you want). But I saw that recently there appeared a branch on github with more recent qchem-side changes. We could port our code to that version as well in the medium run, but not for this PR I suppose. In that case I'll roll-back my changes ...

How about deprecated as warnings for now?

Cool, deprecated warnings are fine. I think removing the remaining throw () occurrences will also fix the CI.

I was going over what I saw yesterday at night and I realized I missed a few in the rest of the code which didn't give an error in the building process of libadcc because there only the header files are included. I will go hunt em' down now.

I have updated all files so that I have the following command/output combination:
$ grep -rnE 'throw[ ]?\(.*\)[ ]?[{;]'
core/mask.h:105:                other.sequence<N, bool>::at_nothrow(i);
core/mask.h:118:            other.sequence<N, bool>::at_nothrow(i);
core/mask.h:130:                other.sequence<N, bool>::at_nothrow(i);
core/mask.h:143:            other.sequence<N, bool>::at_nothrow(i);
core/mask.h:157:        os << (m.sequence<N, bool>::at_nothrop

To fix CI: what() needs to be noexcept, the libutil stuff I don't know haha

I just figured that one out. On my computer it runs quite far, but then I am getting into heating problems again, so I am pushing now in order to evaluate my progress.

I am very confused about why the build command failed. There seem to only be warnings, no errors...

/home/runner/work/libtensor/libtensor/libtensor/exception.C:118:13: error: declaration of ‘virtual const char* libtensor::exception::what() const’ has a different exception specifier
4088
  118 | const char *exception::what() const {

Just had a quick look. I think it generally makes sense to replace throw() by noexcept rather than completely removing the throw declaration. One theoretically should do this on a case-by-case basis, but to make things simple @Drvanon would you mind just blindly changing all throw() to noexcept instead of complete removal?

We are now at 330 files changed and 2151 replacements performed.

I just compiled it locally and only get deprecation warnings for auto_ptr stuff, so probably this is good to go.

Are you able to run the tests too? I can't get it to run on my side still, but I made some changes there that I have not confirmed are non-breaking.

Good work @Drvanon !

Exciting, this is my first contribution to a scientific package!

@maxscheurer I have to sign off for the day, but @maxscheurer feel free to do the version bump and shenanigans if you want.

I have to fix the conda pipeline first 🙄


can't build rust_kanban

Describe the bug
i have an issue with building this crate. this is the output of  the cargo build log.txt .
Its a issue when there are to different ratatui packages that create conflicts. I've had this issue in my project but it been resolved by rm -rf ~/.cargo/registry but its not the case with this crate.
To Reproduce
I've tried  to install using cargo install --git https://github.com/yashs662/rust_kanban and by forking and cloning this repo.
Desktop (please complete the following information):

OS: Pop!_OS 22.04 LTS x86_64
Browser  firefox
Version [e.g. 22]

Additional context
I've seen that the project wasn't updated in a while which tells me that it might be issue with changes in ratatui that need to be updated but I'm not sure as somewhat similar bug happens to me although methods to solve that problem don't work on this one.

I have been busy IRL so haven't updated the project in a while. Will look into your problem 😊


[Not for merge] Try to cache Docker images for tests with Travis

To save us downloading them each time. Experimental.

Didn't make a noticeable difference, discarding this experiment.


WIN-ACME 2.1.18 asking to repeat Azure values

I have been running WIN-ACME 2.1.14 for a little while now and it has worked great. I built a new IIS server last night and decide to install 2.1.18 instead . I am using the same PS1 script to start the application and connect to Azure AD however after I select AzureCloud I get asked for all the info for my Azure Tenant again. Is there something I need to update in my script?

I'm not sure what you mean. From inside of the program it's not possible to use any connection that you may have set up in the Powershell script calling it, but of course that was also not possible in 2.1.14. Can you please share some more information? E.g. the script that you're using and the log output from the program?

Here is what I am seeing

Here is the command I run to start:
./wacs.exe --validation azure --validationmode dns-01 --azuretenantid 3XXXXXXXXXXXXXXXXXXXXXX7 --azureclientid 3XXXXXXXXXXXXXXXXXXXX7 --azuresecret ****************** --azuresubscriptionid 7XXXXXXXXXXXXXXXXX8 --azureresourcegroupname gibbyoh.com --verbose
In 2.1.14 it would not ask me to reenter anything already in the command, it would just ask me which type of Key I want and which certificate store to save the cert to.

Your use case seems strange to me. You are automating part of the operation but not everything. Why not go all the way and run fully unattended?
But if I'm not mistaken, you should be able to simply press  to use the value provided from the command line, so you don't have to copy-paste it again.


Spindump should set correct content type for the remote reports

Currently spindump sends POSTS with JSON data. The content type however, is application/x-www-form-urlencoded. It should most appropriately be application/json.

Fixed in commit 4f640a8


⚠ Bofrost.at has degraded performance

In eaaa2c4, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 1869 ms

Resolved: Bofrost.at performance has improved in 6fac575 after 6 minutes.


Train on my custom dataset with no labels

Hi! Thank you for your amazing work!
I want to run the train_segmentation.py code, but I don't have labels. What do I need to change in the validation part(such as validation_step(), validation_epoch_end()) of the trainer?

Thanks for reaching out! Please follow the instructions here and omit the label directory
https://github.com/mhamilton723/STEGO#bringing-your-own-data


fixed links to template.json & site.css in 09 readme

I noticed the links on https://github.com/dotnet/dotnet-template-samples/tree/master/09-replace-onlyif-after were getting 404, updated to the proper files

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. We will now review your pull request.
Thanks,
.NET Foundation Pull Request Bot


Bluetooth: host: GATT: Lazyloading cleanup at disconnect

Mark the ram version of the ccc_cfg as free after ccc has been
stored when a bonded device disconnects.
If the device use lazy loading of settings then ccc_cfg was not
cleaned up properly when a bonded device disconnects. This
resulted in the ccc system ran out of ccc_cfg resources after
having disconnected CONFIG_BT_MAX_CONN times.
Signed-off-by: Kim Sekkelund<EMAIL_ADDRESS>

This fix might also address issue https://github.com/zephyrproject-rtos/zephyr/issues/26924

This fix might also address issue #26924

@johnsmithecon Can you check this?

This fix might also address issue #26924

@johnsmithecon Can you check this, if you have CONFIG_BT_SETTINGS_CCC_LAZY_LOADING enabled?

I don't have any mention of CONFIG_BT_SETTINGS_CCC_LAZY_LOADING in my proj.conf file. Does this mean that it is not enabled?

BT_SETTINGS_CCC_LAZY_LOADING is default y so that would probably mean that it is enabled. In build/zephyr/.config the final configuration can be seen.

@kimsekkelund It would be best to change the title of the first commit. It doesn't reflect the contents of the commit now.

@kimsekkelund It would be best to change the title of the first commit. It doesn't reflect the contents of the commit now.

I have changed the commit message for the first commit and pushed.
FYI: I will be out of office the next three weeks

@joerchan I can confirm that this does not fix the "No space to store CCC cfg" issue

@jhedberg This one is ready.

I am currently running into a very similar issue, sadly I'm bound to zephyr 2.2.1 due to Bluetooth SIG certification.
Why do you only clean up the CCCs when lazy loading is enabled? To me it seems like these should always be cleaned up, since that's exactly the issue I'm seeing - after disconnecting a bonded device, CCC configs are not available for the next (non-bonded) peer.

@BeckmaR Do you have LazyLoading enabled? Maybe you are running into the bug that this PR fixed?
Maybe cherry-pick the fixes (2 commits)?

@joerchan I do have lazy loading enabled, but I can sadly not cherry-pick these commits since our customer wants a clean zephyr due to BT certification issues.
However, the question I'm asking is basically whether the bug that this PR fixed isn't still there if lazy loading is disabled?
The way I understand it, in that case (let's call it static loading), there is an additional number of ccc cfgs allocated for the paired peers:
#if IS_ENABLED(CONFIG_BT_SETTINGS_CCC_LAZY_LOADING)
	#define BT_GATT_CCC_MAX (CONFIG_BT_MAX_CONN)
#else
	#define BT_GATT_CCC_MAX (CONFIG_BT_MAX_PAIRED + CONFIG_BT_MAX_CONN)
#endif

Let's say both values are 1, so we can store 1 paired, not connected peer's (Alice) CCCs and one currently connected, but not paired one (Bob). If Bob disconnects, his CCC config is not cleared, since lazy loading is disabled. If a third peer Carol now connects he can't store his CCC config, since Bob's is still there. So basically I think for lazy loading you can always clear all CCC configs, and for non-lazy loading you'd need to clear all CCCs of peers that are not paired - Bob - to make room for Carol.

@BeckmaR If you are running into the same problem that this PR fixed then disabling CCC_LAZY_LOADING should make it go away.
If it doesn't then you are facing a different issue.

@joerchan Disabling lazy loading did not help and I don't see any code that would reset CCCs of non-paired peers.