【PyQt5】求救 程序偶发白屏卡死闪退BUG
-
如图,会偶然出现这种QDialog全白,然后卡死闪退的问题. 出错的调用栈有各种情况, 但基本一眼看去都是Qt的正常调用.Windows fatal exception: access violation
Thread 0x00007144 (most recent call first):
File "C:\Users\17865\PycharmProjects\labeldetect_py\src\gui\thread\mes_socket.py", line 53 in _heartBeat
File "C:\Users\17865\AppData\Local\Programs\Python\Python36\lib\threading.py", line 864 in run
File "C:\Users\17865\AppData\Local\Programs\Python\Python36\lib\threading.py", line 916 in _bootstrap_inner
File "C:\Users\17865\AppData\Local\Programs\Python\Python36\lib\threading.py", line 884 in _bootstrapThread 0x00003e78 (most recent call first):
File "C:\Users\17865\AppData\Local\Programs\Python\Python36\lib\socket.py", line 205 in accept
File "C:\Users\17865\PycharmProjects\labeldetect_py\src\gui\thread\mes_socket.py", line 32 in _acceptClient
File "C:\Users\17865\AppData\Local\Programs\Python\Python36\lib\threading.py", line 864 in run
File "C:\Users\17865\AppData\Local\Programs\Python\Python36\lib\threading.py", line 916 in _bootstrap_inner
File "C:\Users\17865\AppData\Local\Programs\Python\Python36\lib\threading.py", line 884 in _bootstrapThread 0x0000755c (most recent call first):
File "C:\Users\17865\PycharmProjects\labeldetect_py\run_gui.py", line 196 in monitor
File "C:\Users\17865\AppData\Local\Programs\Python\Python36\lib\threading.py", line 864 in run
File "C:\Users\17865\AppData\Local\Programs\Python\Python36\lib\threading.py", line 916 in _bootstrap_inner
File "C:\Users\17865\AppData\Local\Programs\Python\Python36\lib\threading.py", line 884 in _bootstrapCurrent thread 0x00005aa0 (most recent call first):
File "C:\Users\17865\PycharmProjects\labeldetect_py\src\gui\basecontrol\progressdialog.py", line 51 in setLabelText
File "C:\Users\17865\PycharmProjects\labeldetect_py\src\gui\debug_gui\debugwindow\debugmainwindow.py", line 2343 in onClickDebugModelBtn
File "C:\Users\17865\PycharmProjects\labeldetect_py\src\gui\debug_gui\debugwindow\debugmainwindow.py", line 389 in setDefaultCurDetecter
File "C:\Users\17865\PycharmProjects\labeldetect_py\src\gui\debug_gui\debugwindow\debugmainwindow.py", line 335 in _updateWindowByProject
File "C:\Users\17865\PycharmProjects\labeldetect_py\src\gui\debug_gui\debugwindow\debugmainwindow.py", line 194 in initView
File "C:\Users\17865\PycharmProjects\labeldetect_py\src\gui\debug_gui\debugwindow\debugmainwindow.py", line 163 in init
File "C:\Users\17865\PycharmProjects\labeldetect_py\src\gui\run_gui\runwindow\runmainwindow.py", line 1556 in onActionOpenDebugWindow
File "C:\Users\17865\PycharmProjects\labeldetect_py\run_gui.py", line 334 in RunWindow
File "C:\Users\17865\PycharmProjects\labeldetect_py\run_gui.py", line 362 in <module>最后一个调用在这里, 是继承QDialog自定义的ProgressDialog:
def setLabelText(self, text): self.text_label.setText(text)
最开始重复打开对话框一切正常,但重复十几分钟后,比较大改率出现这种白屏,然后卡死闪退的现象, try-catch也捕捉不到, 求教可能的原因,感谢~