Sticky notes widget "freezes" - caused by binding loop in ScrollView.qml?

GPT analysis of the given ScrollView error & code:

assuming that the loop indicated by journalctl:

plasmashell[6317]: qrc:/qt/qml/org/kde/plasma/components/ScrollView.qml:45:27: QML ScrollBar: Binding loop detected for property “visible”

is referring to this file:

/usr/lib/x86_64-linux-gnu/qt6/qml/org/kde/plasma/components/ScrollView.qml

the relevant code would be:

    T.ScrollBar.vertical: PlasmaComponents3.ScrollBar {
        parent: controlRoot
        x: controlRoot.mirrored ? 0 : controlRoot.width - width
        y: controlRoot.topPadding
        height: controlRoot.availableHeight
        active: controlRoot.T.ScrollBar.horizontal.active
    }

    T.ScrollBar.horizontal: PlasmaComponents3.ScrollBar {
        parent: controlRoot
        x: controlRoot.leftPadding
        y: controlRoot.height - height
        width: controlRoot.availableWidth
        active: controlRoot.T.ScrollBar.vertical.active
    }

and this is what GPT recognises:

Breakdown of the Problem:

  1. Binding the active property:
  • You are binding the active property of the vertical scrollbar (T.ScrollBar.vertical) to the horizontal scrollbar’s active state (controlRoot.T.ScrollBar.horizontal.active) and vice versa. This could potentially lead to a situation where the vertical scrollbar’s active state is dependent on the horizontal scrollbar, which in turn might be dependent on the vertical scrollbar’s state.
  1. Cyclic dependency:
  • If the active state of one scrollbar triggers a change in the visibility of the other (or itself), and this change is tied to the active state of the other scrollbar, you could create a situation where the system continuously tries to resolve these values, leading to the “binding loop” error.

p.s. i tried to substitute the given logic with a GPT suggested modified code as solution, but that didn’t work, the error and log entry still persists.