Skip to content

Conversation

@jtmaxwell3
Copy link
Contributor

@jtmaxwell3 jtmaxwell3 commented Mar 13, 2025

Deleting a phonological feature set from a rule caused a crash if one of the feature values is "agree" because in the process of deleting the feature set context RemoveObjectSideEffectsInternal deletes the feature values with "agree" and "disagree" from LanguageProject.PhonologicalDataOA.FeatConstraintsOS, and the code for doing that deletes the referring feature set context. So the feature set context gets deleted twice, causing a crash. I avoid this by removing the feature constraint from the context before deleting it from FeatConstraintsOS.


This change is Reviewable

@github-actions
Copy link

LCM Tests

    16 files  ±0      16 suites  ±0   2m 50s ⏱️ -3s
 2 830 tests ±0   2 810 ✅ ±0   20 💤 ±0  0 ❌ ±0 
11 268 runs  ±0  11 089 ✅ ±0  179 💤 ±0  0 ❌ ±0 

Results for commit ce62c32. ± Comparison against base commit 44f3bfc.

Copy link
Contributor

@jasonleenaylor jasonleenaylor left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @jtmaxwell3)

@jtmaxwell3 jtmaxwell3 merged commit c0eb609 into master Mar 13, 2025
5 checks passed
@jtmaxwell3 jtmaxwell3 deleted the LT-21729 branch March 13, 2025 20:36
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.

3 participants