New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
InfoBar有时出现错误堆栈错误 #273
Comments
应该是因为 |
退出软件的时候偶尔也会触发这个问题,不过不影响正常运行 |
我也有偶尔遇见过,在pyside6上尤为严重,几乎100%复现且偶尔会出现infobar错位,已经开始怀疑是自己的问题了 |
我的 pyside6 不会这样,用的 6.4.2 |
可以提供一下最小复现代码吗? |
这个错误提示咋做的,没这思路 |
接管sys.excepthook,自己处理。 |
近期我是用InfoBar也出现了
有两种情况会引发RuntimeError
问题主要是出在这一段代码上 PyQt-Fluent-Widgets/qfluentwidgets/components/widgets/info_bar.py Lines 188 to 194 in d5aaa74
经过测试将代码改成这样,就不会触发RuntimeError(场景2已通过测试,但由于场景1具有偶发性,无法立即复现) def __fadeOut(self):
""" fade out """
try:
self.opacityAni.setDuration(200)
self.opacityAni.setStartValue(1)
self.opacityAni.setEndValue(0)
self.opacityAni.finished.connect(self.close)
self.opacityAni.start()
except RuntimeError:
pass 至于为什么会出现pyinstaller打包的程序不会出现,而nutika打包的程序会出现,目前原因不明,我猜测可能与GC有一定的关系。 如果有理解不对的地方,请大佬指正。 |
主要无法稳定复现,所以也不好修 |
直接使用Vscode运行程序,有时看到终端报以下错误,主程序未崩溃闪退
看错误提示应该是infobar的原因:
The text was updated successfully, but these errors were encountered: