Skip to content

Attempt to fix crashes in NetworkTableInstance.close() - #111

Merged
kcooney merged 1 commit into
mainfrom
kcooney/work-around-8215
Jan 10, 2026
Merged

Attempt to fix crashes in NetworkTableInstance.close()#111
kcooney merged 1 commit into
mainfrom
kcooney/work-around-8215

Conversation

@kcooney

@kcooney kcooney commented Jan 4, 2026

Copy link
Copy Markdown
Contributor
  • Increase timeouts in calls to waitForListenerQueue()
  • Update IsolatedNetworkTablesExtension.afterEach() to remove the instance
    from the store (so JUnit does not try to close it)

The crashes are nondeterministic, so it's hard to tell if these changes will
eliminate the crashes in our GitHub action runs.

@kcooney kcooney changed the title Increase timeouts in calls to waitForListenerQueue() Attempt to fix crashes in NetworkTableInstance.close() Jan 4, 2026
@kcooney
kcooney requested a review from vdikov January 4, 2026 22:13
@kcooney
kcooney force-pushed the kcooney/work-around-8215 branch 2 times, most recently from 63df9e8 to d555eb6 Compare January 4, 2026 22:18
- Update `IsolatedNetworkTablesExtension.afterEach()` to remove the instance
  from the store (so JUnit does not try to close it)

The crashes are nondeterministic, so it's hard to tell if these changes will
eliminate the crashes in our GitHub action runs.
@kcooney
kcooney force-pushed the kcooney/work-around-8215 branch from d555eb6 to 683129d Compare January 5, 2026 02:25
@kcooney
kcooney requested review from cuttestkittensrule and removed request for vdikov January 10, 2026 18:45

@cuttestkittensrule cuttestkittensrule left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

lgtm. Out of curiosity, why is the default network table retrieved in IsolatedPreferences#before()? It seems to effectively do nothing...

@kcooney

kcooney commented Jan 10, 2026

Copy link
Copy Markdown
Contributor Author

Out of curiosity, why is the default network table retrieved in IsolatedPreferences#before()? It seems to effectively do nothing...

I wanted to make sure the default network table instance is always created before anything else. Probably not needed, but wanted to reduce changes of ordering changes affecting test behavior.

@kcooney
kcooney merged commit 04c074e into main Jan 10, 2026
1 check passed
@kcooney
kcooney deleted the kcooney/work-around-8215 branch February 1, 2026 04:13
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