Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. UI freezing phenomenon in macos. [pyside6]
Qt 6.11 is out! See what's new in the release blog

UI freezing phenomenon in macos. [pyside6]

Scheduled Pinned Locked Moved Unsolved Qt for Python
2 Posts 2 Posters 775 Views 1 Watching
  • 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.
  • S Offline
    S Offline
    SalaryLupin
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      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