Game crashed when dragging on a scroll container.
zly2006 opened this issue · 3 comments
Reproduce:
Dragging out of the screen
Screen recording:
QQ20231225-233644-HD.mp4
Crash report:
crash-2023-12-25_23.33.44-client.txt
I am not using stable owo versions, I built one from the 1.20.3 branch myself to develop mods on mc 1.20.4.
While I haven't reverse-engineered your entire screen, this problem smells strongly like you nested some part of your component hierarchy into itself - there isn't (or shouldn't be) any other way for this kind of infinite recursion to appear given the framework's implementation of the mouse dragging handler
Cheers
Hmm, I attached the debugger and found that this
here is a scroll container. When I drag the scrollbar out of the screen, it set scrollbaring
to true the first time onMouseDrag
is called, after that the mouse x/y coordinate is no longer inside the scrollbar, so onMouseDrag goes to super (BaseParentComponent), and it checks the focused element, but the element is scroll container itself.
So I believe it could be an owolib bug