openlcb / OpenLCB_Java

A git-managed copy of the SVN-based Java prototype implementation of OpenLCB. This implementation operates inside JMRI.
6 stars 9 forks source link

Prevents creating two loadingListeners. #193

Closed balazsracz closed 2 years ago

balazsracz commented 2 years ago

In one of the two typical paths the displayLoadingProgress is called twice. If we create two loadingListeners, we leak one and this causes the CdiPanel to be never garbage collected. As a result the java VM heap grows a lot and eventually JMRI crashes with out of memory.