This bug appears upstream and may be related to PyQt 5.12 per report on github (https://github.com/spyder-ide/spyder/issues/8748).