Skip to content

Hacks to avoid SIGSEGV in tests that call Preferences.setNetworkTableInstance() - #129

Merged
kcooney merged 4 commits into
mainfrom
kcooney/hack-to-avoid-sigsegv
Feb 9, 2026
Merged

Hacks to avoid SIGSEGV in tests that call Preferences.setNetworkTableInstance()#129
kcooney merged 4 commits into
mainfrom
kcooney/hack-to-avoid-sigsegv

Conversation

@kcooney

@kcooney kcooney commented Feb 9, 2026

Copy link
Copy Markdown
Contributor

Includes the following changes:

  • Close the Listener installed by Preferences.setNetworkTableInstance()
  • Do not close the previous NetworkTableInstance if the queue cannot be
    flushed
  • Remove call to NetworkTableInstance.startLocal()

@kcooney
kcooney force-pushed the kcooney/hack-to-avoid-sigsegv branch from 7d49726 to 08c9b5a Compare February 9, 2026 03:49

@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, though the javadoc should probably use @link. I will re-run the checks a few times though to see if it runs into a SISEGV, just to see if this fixes the issue for now (either way this probably reduces the chances so the change is good).

Comment thread lib/src/test/java/com/team2813/lib2813/preferences/IsolatedPreferences.java Outdated
@kcooney
kcooney merged commit 4875b76 into main Feb 9, 2026
1 check failed
@kcooney
kcooney deleted the kcooney/hack-to-avoid-sigsegv branch February 9, 2026 07:57
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