New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
java.lang.StackOverflowError during "fast" scrolling in OutlineView of a Netbeans Platform application #6835
Comments
hmm. The loop is actually quite tight:
and there were no code changes in that area for quite a while. my only explanation I can come up with right now is that: netbeans/platform/openide.explorer/src/org/openide/explorer/view/OutlineView.java Lines 2196 to 2200 in ac3936a
is creating a cycle in some situations (fast scrolling?), when Are you sure your application calls UI code on EDT? Some |
The dialog is invoked from a NodeAction by calling This problem is also hard to debug since all the involved methods are called so many times without any problem. |
We had the same problem and we found it is caused by FlatLaf. We fixed it by patching FlatTableHeaderUI as follows in the paint() method:
|
@hclerx interesting, thanks for posting your workaround! cc @DevCharly |
I've reworked FlatLaf's Please try latest FlatLaf |
This seems to fix the problem. It would be great to have this version available with one of the next Netbeans releases. |
@DevCharly do you have an ETA for when FlatLAF v3.3 will be released or maybe a v3.2.6 bug fix release? It would be nice to get this fix in NetBeans 21. |
Apache NetBeans version
Apache NetBeans 20 release candidate
What happened
In my Netbeans Platform based application there is a special dialog to select some kind of modules and sub-modules.
This dialog uses an OutlineView with one column and a CheckRenderDataProvider to display/manage selection.
The dialog looks like this:
If there are "many" nodes contained and if user scrolles really "fast" a java.lang.StackOverflowError occurs:
It seems that this behavior has been introduced in Netbeans 18. All versions below do not show this error.
How to reproduce
Currently i have no idea how to reproduce this issue outside of my application.
Did this work correctly in an earlier version?
Apache NetBeans 17
Operating System
Unix
JDK
JDK 8, 17, 21
Apache NetBeans packaging
Apache NetBeans platform
Anything else
No response
Are you willing to submit a pull request?
Yes
The text was updated successfully, but these errors were encountered: