Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. Chinese
  4. 【PyQt5】求救 程序偶发白屏卡死闪退BUG
Forum Updated to NodeBB v4.3 + New Features

【PyQt5】求救 程序偶发白屏卡死闪退BUG

Scheduled Pinned Locked Moved Unsolved Chinese
1 Posts 1 Posters 402 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    Haruka_Qt
    wrote on last edited by
    #1

    微信截图_20241029202149.png
    如图,会偶然出现这种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 _bootstrap

    Thread 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 _bootstrap

    Thread 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 _bootstrap

    Current 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:
    微信截图_20241029202613.png

    微信截图_20241029202728.png

        def setLabelText(self, text):
            self.text_label.setText(text)
    

    最开始重复打开对话框一切正常,但重复十几分钟后,比较大改率出现这种白屏,然后卡死闪退的现象, try-catch也捕捉不到, 求教可能的原因,感谢~

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved