Segmentation fault when exiting when linked against Qt 6.9.1
-
Great reproducer!
Someone decades ago felt like storing unused tab bars for later re-usage inQMainWindowLayout
.
Those were soft-leaked and taken care off, whenQApplication
got destroyed.
Reading the state back from settings causes the original tab bar (created in the C++ part) to become unused, but not removed from itsQMainWindow
parent. That ultimately lead to a double delete and the crash.
Let's see, if my thorough reviewers let me get away without writing an autotest ;-) -
Wow, that was fast :-) Thanks for the immediate fix! Nice to see my stuff helped here!
That was quite deep inside Qt apparently … where will this land? Qt 6.10.0? Or will it be backported?
I tried to cherry-pick it to a 6.9.1 checkout to test it, but it seems that's no trivial task …
-
Wow, that was fast :-) Thanks for the immediate fix! Nice to see my stuff helped here!
That was quite deep inside Qt apparently … where will this land? Qt 6.10.0? Or will it be backported?
I tried to cherry-pick it to a 6.9.1 checkout to test it, but it seems that's no trivial task …
-
Ah okay. So no 6.9 backport? I just wondered, because in the respective "Change ID" https://codereview.qt-project.org/c/qt/qtbase/+/653727, it's listed: "Fixes: QTBUG-137755 Pick-to: 6.10 6.9"
-
Ah okay. So no 6.9 backport? I just wondered, because in the respective "Change ID" https://codereview.qt-project.org/c/qt/qtbase/+/653727, it's listed: "Fixes: QTBUG-137755 Pick-to: 6.10 6.9"
-
The fix will land in 6.9.2, which we plan to release on August 14th.
If you want to cherry pick and compile locally, please make sure to pick the following 5 commits in the right order:
-
Great that you are using dock widgets! As you may have suspected:
QDockWidget
is slightly closer to my heart than other creatures in the widget zoo ;-) -
First, it was just a
QTabBar
interface. But over the years, it got more and more complex, and at some point, I learned aboutQDockWidget
s – and I loved them at first sight ;-) The same as the tab bar if you want – but way more if you need it. The possibility to arrange them as you like and need is really nice. This is actually a powerful tool, with a great user experience.QDockWidget
s really rock! They do, from time to time, cause some headache (this is actually not the first bug I filed about them ;-) – but they are really cool. -
@l3u_
Could you mark this thread as solved, please?