Skip to content

Conversation

@jtmaxwell3
Copy link
Contributor

@jtmaxwell3 jtmaxwell3 commented May 2, 2025

If a Segment is no longer valid, then Segment.AnalysesRS crashes. This tends to happen if the user edits the baseline text after analyzing some of the text. This happens to Mark Bean a lot. I fixed all of the places that he got a crash, but there are more than a hundred references to Segent.AnalysesRS in liblcm. It would be nice if Segment.AnalysesRS could return a dummy AnalysesRS or something when the Segment is not valid to avoid crashes.


This change is Reviewable

@github-actions
Copy link

github-actions bot commented May 2, 2025

LCM Tests

    16 files  ±0      16 suites  ±0   3m 5s ⏱️ +10s
 2 830 tests ±0   2 810 ✅ ±0   20 💤 ±0  0 ❌ ±0 
11 268 runs  ±0  11 100 ✅ ±0  168 💤 ±0  0 ❌ ±0 

Results for commit e7769ec. ± Comparison against base commit 27a891c.

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:

(sigh)
More evidence that a model change which versions the text so that analyses are never invalidated is warrented.

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

@jtmaxwell3 jtmaxwell3 merged commit 69b6c0a into master May 2, 2025
5 checks passed
@jtmaxwell3 jtmaxwell3 deleted the LT-22110 branch May 2, 2025 18:47
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