Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved qnetwork hibernate macos freezes

    General and Desktop
    qnetwork hibernate freeze
    2
    4
    1128
    Loading More Posts
    • 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.
    • G
      geostein8888 last edited by

      Hello,
      I have a mac application what polls with the qnetworkaccessmanager every minute to a server to get updates form him. this all works fine, up to the moment the mac goes into hibernate mode. If this happens, after a wakeup 90% of the time the application freezes completely and needs to be forced quit and restarted.
      What can cause this? It looks like there was going out a request shortly before the hibernate, what comes back (reply) when the mac woke up.

      I tried already to delete the qnam after wake up and create a new instance of it before a new request is send out, but here most of the time the app is also freezing

      with regards
      Georg

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi,

        By hibernate do you mean closing a MacBook Pro screen ? Or put it to sleep from the Apple menu ?

        In any case, can you reproduce that with a minimal project ?

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

        G 1 Reply Last reply Reply Quote 0
        • G
          geostein8888 @SGaist last edited by

          I mean, the hibernate of a notebook what is not used after a defined time and goes to hibernate, or while closing the MacBook. Not sure if I can make here a small project to simulate this, will try

          georg

          1 Reply Last reply Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            You don't need to simulate, just have something that small and exhibit the same behavior.

            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 Reply Quote 0
            • First post
              Last post