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. [QT 4.6] QTBUG-11658 (Crash from stylesheet due to dangling widget pointers in cache)
QtWS25 Last Chance

[QT 4.6] QTBUG-11658 (Crash from stylesheet due to dangling widget pointers in cache)

Scheduled Pinned Locked Moved Unsolved General and Desktop
7 Posts 6 Posters 730 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.
  • B Offline
    B Offline
    Ben35
    wrote on last edited by
    #1

    Hello,

    I have a big problem in my software. I am obliged to use Qt4.6 and i'm using a big stylesheet.

    I have this bug (https://bugreports.qt.io/browse/QTBUG-11658) that causes crashes when closing tabs or mainwindows for example. Does anyone had the same issue ? Is there a way to avoid those crashes ?

    Thanks a lot,

    Benoit

    1 Reply Last reply
    0
    • Christian EhrlicherC Online
      Christian EhrlicherC Online
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Upgrade to Qt4.8 since it's fixed there. Or even better - upgrade to Qt5.
      If you can't upgrade you have to check the difference between 4.7.x and 4.8.0 so you can maybe find out what changed and apply the patch to your old Qt version.

      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
      4
      • B Offline
        B Offline
        Ben35
        wrote on last edited by
        #3

        OK. Thanks for answering.

        No other solutions ?

        JonBJ aha_1980A 2 Replies Last reply
        0
        • B Ben35

          OK. Thanks for answering.

          No other solutions ?

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

          @Ben35
          It's a bug that was reported and resolved 8 years ago. No workaround is offered in the bug report. @Christian-Ehrlicher has suggested you compare the relevant differences in the solved release. I don't see that you're likely to get a better solution....

          1 Reply Last reply
          2
          • B Ben35

            OK. Thanks for answering.

            No other solutions ?

            aha_1980A Offline
            aha_1980A Offline
            aha_1980
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @Ben35

            There is even the commit referenced in the bug report, which leads you to https://github.com/qt/qt/commit/7b63ce043dfaec5ec83d938b1cea8ee0ead614ff

            So if you don't want to update, you can compile Qt 4.6 from source with this patch applied.

            Qt has to stay free or it will die.

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

              Hi,

              Just in case, the official source tree is : http://code.qt.io/cgit/qt/qt.git/commit/?id=7b63ce043dfaec5ec83d938b1cea8ee0ead614ff

              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
              • R Offline
                R Offline
                rookie 0
                wrote on last edited by
                #7

                Hi @Ben35 ,
                Can you provide demo code to reproduce this issue?
                I use the code in QTGUI-11658 to link qt_4.7.4. But it can't reproduce this crash. I want to verify crash root cause in company product.
                Thanks.

                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