Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QDomDocument makes Ubuntu unresponsive -> had to reboot

QDomDocument makes Ubuntu unresponsive -> had to reboot

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 770 Views 2 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.
  • ModelTechM Offline
    ModelTechM Offline
    ModelTech
    wrote on last edited by ModelTech
    #1

    In a case of a rather stupid error in looping over a childs of a QDomElement, I got the effect that Ubuntu become unresponsive due to accessing the harddisk like crazy. After I finally succeeded to kill my application by means of activating the closeEvent event of my main window, Ubuntu stayed unresponsive and the only solution was to reboot the system! Rebooting made Ubuntu do some clean or repair actions for the harddisk...

    Only after several occurrences I observed my mistake. I used the following code

    for (QDomElement ChildNode = ParentNode.firstChildElement("child"); !ChildNode.isNotation(); ChildNode = ChildNode.nextSiblingElement("child"))
    

    where the call to isNotation was probably a result of the autocompletion facility of Qt Creator. This however caused the issue as it should have been a call to toNull.

    The reason for putting this here is that I was rather surprised by the fact that the system remained unresponsive after exiting my application. Not sure whether Qt could have prevented that.

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

      Hi,

      Likely not.

      You probably have exhausted the RAM of your system that switched to SWAP which might also have been exhausted and IIRC it takes much time to recover from that.

      Out of curiosity, what kind of HDD do you have in your system ?

      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
      3
      • ModelTechM Offline
        ModelTechM Offline
        ModelTech
        wrote on last edited by
        #3

        An ordinary mechanical SATA HDD

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

          Depending on the motor speed it is also to account on the recovery time.

          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