Skip to content
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

Prevents creating two loadingListeners. #193

Merged
merged 1 commit into from
Feb 27, 2022

Conversation

balazsracz
Copy link
Collaborator

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.

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.
@balazsracz balazsracz requested a review from pabender February 13, 2022 11:36
@balazsracz balazsracz merged commit 116567a into master Feb 27, 2022
@balazsracz balazsracz deleted the bracz-fix-duplicate-callback branch February 27, 2022 10:52
balazsracz added a commit that referenced this pull request Mar 6, 2022
* master:
  Decodes traction request and reply messages for the monitor window (#195)
  Adds keyboard navigation between segments (#192)
  Prevents creating two loadingListeners. (#193)
balazsracz added a commit that referenced this pull request Mar 7, 2022
# By Balazs Racz (3) and dependabot[bot] (1)
# Via GitHub
* 'master' of github.com:openlcb/OpenLCB_Java:
  Decodes traction request and reply messages for the monitor window (#195)
  Adds keyboard navigation between segments (#192)
  Prevents creating two loadingListeners. (#193)
  Bump xercesImpl from 2.12.0 to 2.12.2 (#190)

# Conflicts:
#	src/org/openlcb/cdi/swing/CdiPanel.java
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants