Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.15.1
-
4f8041b01445fd4eec0beb133719645d00d0b2ac (qt/qtdeclarative/dev) 0b5ae19f733c7d59e6138c677fe432a0e6f25938 (qt/qtdeclarative/6.0) 8b9bac7125021b57ffc2edecc8482adafcb0b398 (qt/tqtc-qtdeclarative/tqtc/lts-5.15)
Description
If for example RowLayout or ColumnLayout contains an item with the attached property Layout.preferredWidth bound to the layout width (e.g. Layout.preferredWidth: (parent.width - 30) / 3), the layout will keep changing it's width rapidly and the app will crash shortly.
Steps to reproduce the issue:
- Run the attached project
The example would work fine if Layout.preferredWidth is not bound to the layout width OR that the layout has width set (e.g. width: 600).
Attachments
Issue Links
- relates to
-
QTBUG-77337 Unbounded recursion in QQuickGridLayoutBase::rearrange leading to stack exhaustion and 100% reproducible crash (segfault)
- Closed