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. Slow performance and large memory usage with QTableView in Qt 5.15
Forum Updated to NodeBB v4.3 + New Features

Slow performance and large memory usage with QTableView in Qt 5.15

Scheduled Pinned Locked Moved Solved General and Desktop
qtableviewperformance
24 Posts 5 Posters 6.2k 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.
  • K KaoN

    After rebooting my pc.. everything works fine....
    still cant get why...

    Christian EhrlicherC Online
    Christian EhrlicherC Online
    Christian Ehrlicher
    Lifetime Qt Champion
    wrote on last edited by
    #9

    @KaoN Then please mark this topic as solved

    Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
    Visit the Qt Academy at https://academy.qt.io/catalog

    K 1 Reply Last reply
    0
    • Christian EhrlicherC Christian Ehrlicher

      @KaoN Then please mark this topic as solved

      K Offline
      K Offline
      KaoN
      wrote on last edited by
      #10

      @Christian-Ehrlicher done, but can't figure out what made that 'bug' happen

      JonBJ 1 Reply Last reply
      0
      • K KaoN

        @Christian-Ehrlicher done, but can't figure out what made that 'bug' happen

        JonBJ Offline
        JonBJ Offline
        JonB
        wrote on last edited by
        #11

        @KaoN Windows

        1 Reply Last reply
        0
        • K Offline
          K Offline
          KaoN
          wrote on last edited by
          #12

          After hibernating my desktop for a night, it slows again.. and...reboot does not work anymore..TT

          1 Reply Last reply
          0
          • K Offline
            K Offline
            KaoN
            wrote on last edited by
            #13

            I deploy two version of the testapp to another laptop, win10 20H2, 5.9 perform good and 5.15 with no luck

            JKSHJ 1 Reply Last reply
            0
            • K KaoN

              I deploy two version of the testapp to another laptop, win10 20H2, 5.9 perform good and 5.15 with no luck

              JKSHJ Offline
              JKSHJ Offline
              JKSH
              Moderators
              wrote on last edited by
              #14

              @KaoN said in Slow performance and large memory usage with QTableView in Qt 5.15:

              After hibernating my desktop for a night, it slows again.. and...reboot does not work anymore..TT

              Are you running out of RAM? I'm guessing that the slowdown happens when your PC is busy transferring data between your physical RAM and your Pagefile. That is a very slow process.

              Run Resource Monitor (https://www.thewindowsclub.com/use-resource-monitor-windows-10 ) and see what is using up all your memory and your disk I/O.

              Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

              K 1 Reply Last reply
              1
              • JKSHJ JKSH

                @KaoN said in Slow performance and large memory usage with QTableView in Qt 5.15:

                After hibernating my desktop for a night, it slows again.. and...reboot does not work anymore..TT

                Are you running out of RAM? I'm guessing that the slowdown happens when your PC is busy transferring data between your physical RAM and your Pagefile. That is a very slow process.

                Run Resource Monitor (https://www.thewindowsclub.com/use-resource-monitor-windows-10 ) and see what is using up all your memory and your disk I/O.

                K Offline
                K Offline
                KaoN
                wrote on last edited by KaoN
                #15

                @JKSH Thank you for your reply, but my desktop has 64GB memory, I don't think it cause the problem.
                The question is with 5.9.9, it works fine, with only 10MB memory consumption.

                JKSHJ 1 Reply Last reply
                0
                • K KaoN

                  @JKSH Thank you for your reply, but my desktop has 64GB memory, I don't think it cause the problem.
                  The question is with 5.9.9, it works fine, with only 10MB memory consumption.

                  JKSHJ Offline
                  JKSHJ Offline
                  JKSH
                  Moderators
                  wrote on last edited by
                  #16

                  @KaoN said in Slow performance and large memory usage with QTableView in Qt 5.15:

                  The question is with 5.9.9, it works fine, with only 10MB memory consumption.

                  It's possible that the implementation of QTableView changed between Qt 5.9 and Qt 5.15 which provides better performance in some use-cases but worse performance in other use-cases.

                  Do you have Qt 5.12 LTS installed? How does it perform with that version?

                  You can post your minimal test code and provide instructions on how to cause the slowdown to https://bugreports.qt.io/. However, it is still not clear to me whether it is a bug/regression or not.

                  Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                  K 2 Replies Last reply
                  0
                  • JKSHJ JKSH

                    @KaoN said in Slow performance and large memory usage with QTableView in Qt 5.15:

                    The question is with 5.9.9, it works fine, with only 10MB memory consumption.

                    It's possible that the implementation of QTableView changed between Qt 5.9 and Qt 5.15 which provides better performance in some use-cases but worse performance in other use-cases.

                    Do you have Qt 5.12 LTS installed? How does it perform with that version?

                    You can post your minimal test code and provide instructions on how to cause the slowdown to https://bugreports.qt.io/. However, it is still not clear to me whether it is a bug/regression or not.

                    K Offline
                    K Offline
                    KaoN
                    wrote on last edited by
                    #17

                    @JKSH Yes, I tried 5.12.7, slow too.
                    Bug is reported with minimal code: https://bugreports.qt.io/browse/QTBUG-86069?filter=16824

                    1 Reply Last reply
                    0
                    • JKSHJ JKSH

                      @KaoN said in Slow performance and large memory usage with QTableView in Qt 5.15:

                      The question is with 5.9.9, it works fine, with only 10MB memory consumption.

                      It's possible that the implementation of QTableView changed between Qt 5.9 and Qt 5.15 which provides better performance in some use-cases but worse performance in other use-cases.

                      Do you have Qt 5.12 LTS installed? How does it perform with that version?

                      You can post your minimal test code and provide instructions on how to cause the slowdown to https://bugreports.qt.io/. However, it is still not clear to me whether it is a bug/regression or not.

                      K Offline
                      K Offline
                      KaoN
                      wrote on last edited by
                      #18

                      @JKSH The weird thing is that I did get good performance after I reboot my desktop, but it did not always working..actually, it only works once.

                      J.HilkJ 1 Reply Last reply
                      0
                      • Christian EhrlicherC Online
                        Christian EhrlicherC Online
                        Christian Ehrlicher
                        Lifetime Qt Champion
                        wrote on last edited by
                        #19

                        I'm pretty sure your Qt example has nothing to do with this.

                        Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                        Visit the Qt Academy at https://academy.qt.io/catalog

                        1 Reply Last reply
                        0
                        • K KaoN

                          @JKSH The weird thing is that I did get good performance after I reboot my desktop, but it did not always working..actually, it only works once.

                          J.HilkJ Offline
                          J.HilkJ Offline
                          J.Hilk
                          Moderators
                          wrote on last edited by
                          #20

                          @KaoN have you done a full hard shutdown or only the soft one that comes when opening the start menu ?

                          hit win + r
                          
                          then type:
                          shutdown /s /f /t 0
                          

                          Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


                          Q: What's that?
                          A: It's blue light.
                          Q: What does it do?
                          A: It turns blue.

                          K 1 Reply Last reply
                          2
                          • J.HilkJ J.Hilk

                            @KaoN have you done a full hard shutdown or only the soft one that comes when opening the start menu ?

                            hit win + r
                            
                            then type:
                            shutdown /s /f /t 0
                            
                            K Offline
                            K Offline
                            KaoN
                            wrote on last edited by
                            #21

                            @J-Hilk It did help to get everything work well again...but could you plz explain a bit, is it a system bug?

                            J.HilkJ 1 Reply Last reply
                            0
                            • K KaoN

                              @J-Hilk It did help to get everything work well again...but could you plz explain a bit, is it a system bug?

                              J.HilkJ Offline
                              J.HilkJ Offline
                              J.Hilk
                              Moderators
                              wrote on last edited by J.Hilk
                              #22

                              @KaoN Microsoft made this change a while ago when the UWP, Windows for mobile/tablet was a thing and windows required faster reboots/boots/wakeups

                              As a result all modern Windows system have a "soft reboot /shutdown" these days

                              Usually you don't notice this, until some day, fundamental stuff starts behaving strangely.

                              I for once managed it (with Qt no less) to get my bluetooth driver in an undefined state, so nothing, bluetooth worked anymore, and a reboot did not fix it, because the normal reboot does not reinitialize and clear everything. That's how I learned about it.

                              Your case, smells like a bug hard to tell if Qt is at fault or not.
                              Have you tried updating your windows ? My Bluetooth story fixed itself with a windows update.

                              And have you tried it on a 2nd, different windows pc ?

                              If yes, and behavior is the same (in both cases) than it may be a Qt issue


                              Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


                              Q: What's that?
                              A: It's blue light.
                              Q: What does it do?
                              A: It turns blue.

                              K 1 Reply Last reply
                              3
                              • J.HilkJ J.Hilk

                                @KaoN Microsoft made this change a while ago when the UWP, Windows for mobile/tablet was a thing and windows required faster reboots/boots/wakeups

                                As a result all modern Windows system have a "soft reboot /shutdown" these days

                                Usually you don't notice this, until some day, fundamental stuff starts behaving strangely.

                                I for once managed it (with Qt no less) to get my bluetooth driver in an undefined state, so nothing, bluetooth worked anymore, and a reboot did not fix it, because the normal reboot does not reinitialize and clear everything. That's how I learned about it.

                                Your case, smells like a bug hard to tell if Qt is at fault or not.
                                Have you tried updating your windows ? My Bluetooth story fixed itself with a windows update.

                                And have you tried it on a 2nd, different windows pc ?

                                If yes, and behavior is the same (in both cases) than it may be a Qt issue

                                K Offline
                                K Offline
                                KaoN
                                wrote on last edited by KaoN
                                #23

                                @J-Hilk Thanks for the information. Generally I find one case that if the application run through windows remote desktop, it will slow, even it was good before, and it will not recovery until hard reboot.
                                But another my laptop perform badly what ever I reboot or hard shutdown.
                                Only 5.9 works perfectly on every situation.

                                J.HilkJ 1 Reply Last reply
                                0
                                • K KaoN

                                  @J-Hilk Thanks for the information. Generally I find one case that if the application run through windows remote desktop, it will slow, even it was good before, and it will not recovery until hard reboot.
                                  But another my laptop perform badly what ever I reboot or hard shutdown.
                                  Only 5.9 works perfectly on every situation.

                                  J.HilkJ Offline
                                  J.HilkJ Offline
                                  J.Hilk
                                  Moderators
                                  wrote on last edited by
                                  #24

                                  @KaoN
                                  mmh the last Idea I have, would be updating your graphics drivers, those are most often an issue. After that, bring it to https://bugreports.qt.io


                                  Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


                                  Q: What's that?
                                  A: It's blue light.
                                  Q: What does it do?
                                  A: It turns blue.

                                  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