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

Fix ScriptEngine not removed if created by ScriptAction #2886

Merged
merged 1 commit into from
Apr 1, 2022

Conversation

J-N-K
Copy link
Member

@J-N-K J-N-K commented Mar 31, 2022

Fixes #2885

Signed-off-by: Jan N. Klug github@klug.nrw

Signed-off-by: Jan N. Klug <github@klug.nrw>
@J-N-K J-N-K requested a review from a team as a code owner March 31, 2022 13:47
@digitaldan
Copy link
Contributor

Good catch, i'm pretty sure we have had reports of memory issues with UI rules that we have been unable to track down, this sounds like it could be one of the factors for that.

@J-N-K
Copy link
Member Author

J-N-K commented Mar 31, 2022

Found it by chance when I tried to implement something to solve #2881 and tried to track the access to the cache objects. It worked nicely up to the point where the ScriptExtensionPRovider was never notified of the unloading of a script.

Copy link
Member

@wborn wborn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix!

@wborn wborn merged commit eec80f0 into openhab:main Apr 1, 2022
@wborn wborn added the bug An unexpected problem or unintended behavior of the Core label Apr 1, 2022
@wborn wborn added this to the 3.3 milestone Apr 1, 2022
@J-N-K J-N-K deleted the bug-scriptenginenotdisposed branch April 2, 2022 10:27
wborn pushed a commit that referenced this pull request Apr 6, 2022
Signed-off-by: Jan N. Klug <github@klug.nrw>
@wborn wborn added the patch A PR that has been cherry-picked to a patch release branch label Apr 6, 2022
splatch pushed a commit to ConnectorIO/copybara-hab-core that referenced this pull request Jul 12, 2023
Signed-off-by: Jan N. Klug <github@klug.nrw>
GitOrigin-RevId: eec80f0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An unexpected problem or unintended behavior of the Core patch A PR that has been cherry-picked to a patch release branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Script engines created in UI rules are never removed from the ScriptEngineManager
3 participants