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. Possible infinite recursion during toolbar layout on macOS

Possible infinite recursion during toolbar layout on macOS

Scheduled Pinned Locked Moved Unsolved General and Desktop
macoslayouttoolbar
5 Posts 2 Posters 695 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.
  • _ Offline
    _ Offline
    __lehew
    wrote on last edited by
    #1

    Recently started getting reports from a Qt 5.6 application I help maintain about performance/responsiveness issues on MacOS. I've advised to get samples (via Activity Monitor / Sample Process), I see what looks like cycle in the hierarchy. I wanted to write to ask here to see if that is indeed a reasonable read of the involved frames:

    ... everything above here is just normal runloop source notification stuff...
        +   2383 QLayout::widgetEvent(QEvent*)  (in QtWidgets) + 81  [0x10a675521]
        +     2383 QLayout::activate()  (in QtWidgets) + 106  [0x10a6755ba]
        +       2383 QLayout::activateRecursiveHelper(QLayoutItem*)  (in QtWidgets) + 86  [0x10a676776]
        +         2383 QMainWindowLayout::itemAt(int) const  (in QtWidgets) + 40  [0x10a79ea28]
        +           2383 QToolBarAreaLayout::itemAt(int*, int) const  (in QtWidgets) + 380,384,...  [0x10a82f85c,0x10a82f860,...]
    

    The numbers 2383 are the sample count, 1ms between samples. From my research so far, activateRecursiveHelper appears to exist to help avoid blowing the stack for deep hierarchies.

    Does any one have any advice for digging into a matter such as this?

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

      Hi and welcome to devnet,

      What version of Qt exactly ?
      On what version of macOS ?

      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
      1
      • _ Offline
        _ Offline
        __lehew
        wrote on last edited by
        #3

        Hi thank you for the welcome! :)

        Using Qt 5.6.1 and seen on macOS 10.15.3

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

          Qt 5.6.1 is really old. Can you update at least the latest version of that series ?
          If possible, Qt 5.14 would be better but if you want to stay on LTS then the 5.12 series.

          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
          • _ Offline
            _ Offline
            __lehew
            wrote on last edited by
            #5

            Indeed it is! :( It is something that we are looking into doing for certain this FY.

            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