Giter VIP home page Giter VIP logo

Comments (7)

kirill-grouchnikov avatar kirill-grouchnikov commented on May 24, 2024

I'll need to see a small standalone test app that shows this memory leak after a JOptionPane has been dismissed.

from radiance.

stefan-reich avatar stefan-reich commented on May 24, 2024

Sure.

Same result in VisualVM as before (JButtons "Yes", "No", "Cancel" retained after GC).

from radiance.

kirill-grouchnikov avatar kirill-grouchnikov commented on May 24, 2024

Emphasis on standalone. I can't do anything with that sample.

from radiance.

stefan-reich avatar stefan-reich commented on May 24, 2024

The gist of it is very clear though, isn't it? It loads Substance and calls that one line, then sleeps.

You can run it using tinybrain.de/x30.jar and "java -jar x30.jar 1016301".

from radiance.

kirill-grouchnikov avatar kirill-grouchnikov commented on May 24, 2024

I can only look at pure Swing samples. Otherwise it's not clear if JOptionPane is being considered a valid strong reference.

Without a standalone pure Swing sample there's going to be no traction on this report.

from radiance.

kirill-grouchnikov avatar kirill-grouchnikov commented on May 24, 2024

Looking at the historical snapshot of the pre-hiatus Substance, the pulsating of the default button has been effectively a visual no-op, as the value of cyclePos in line 126 is ignored afterwards. This is the same in the latest iteration of that class in line 107.

So given that this has been not doing anything in at least 8 years (java.net history is gone), I'm just going to remove the whole tracking of default buttons.

from radiance.

kirill-grouchnikov avatar kirill-grouchnikov commented on May 24, 2024

Note that ComponentState still has states for default and disabled default buttons, and skins can use those to provide distinctive visuals to such buttons.

from radiance.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.