UI freezing phenomenon in macos. [pyside6]
-
Hello
I am developing a GUI the first time with pyside6 library on Macos-monterey, and the UI is freezing when running for about 1 to 4 hours.
When I test the operation for a long week in a Windows 10 environment with the same code, it works well.(I don't know why.)The current state is permanently connected for long-term testing and is set to sleep-free on the battery power adapter in Mac OS.
At first, I tried many exceptions because it seemed to be a Pyside6 code problem, but the symptoms were reproduced as QThread, ProcessEvent. Then, it seemed to freeze by Mac OS, so I forced UI to run a mouse event such as 'click' once a minute, but the phenomenon did not occur.
The current code structure is that the code associated with the test runs within Thread, and the UI has a separate structure. The UI is supposed to receive the data delivered from the Test Thread and display it in the UI, and it is separate from the Test Thread.
When the UI is Freezing, the Test Thread continues to operate and is not affected by UI freezing.In the above problem, I wonder if additional exception code insertion is required in pyside6 or other settings in Mac O/S.
-
Hi and welcome to devnet,
Did you try to sample your application from the Activity Monitor ? It might give you some additional information about what is happening in your application.