Skip to content

Conversation

@Natsoulas
Copy link
Contributor

Description

Fixed reference counting issue with SpiceInterface REQUIRED_KERNELS that was causing SPICE(NOLEAPSECONDS) errors in multi-instance scenarios. Added global reference counting for required kernels. Made kernel unloading more robust by using exact filename matching and ensuring required kernels stay loaded as long as any instance needs them.

Verification

Unit tests pass locally.
Requires further verification with BSK-RL by @Mark2000

Documentation

Updated release notes describing fix briefly.

Future work

Track and resolve any further issues with spiceInterface class.

@Natsoulas Natsoulas requested a review from a team as a code owner June 9, 2025 05:57
@Natsoulas Natsoulas linked an issue Jun 9, 2025 that may be closed by this pull request
@Natsoulas Natsoulas requested review from Mark2000 and schaubh June 9, 2025 05:57
@Natsoulas Natsoulas self-assigned this Jun 9, 2025
@Natsoulas Natsoulas added the bug Something isn't working label Jun 9, 2025
@Natsoulas Natsoulas moved this to 👀 In review in Basilisk Jun 9, 2025
schaubh
schaubh previously requested changes Jun 9, 2025
@Natsoulas Natsoulas force-pushed the bug/1010-reference-counting-issue-spice-interface branch from 4be8824 to 8f24ffd Compare June 10, 2025 06:10
@Natsoulas Natsoulas force-pushed the bug/1010-reference-counting-issue-spice-interface branch from 8f24ffd to 79c638b Compare June 10, 2025 06:11
@Natsoulas Natsoulas requested a review from schaubh June 10, 2025 06:19
@schaubh
Copy link
Contributor

schaubh commented Jun 10, 2025

@Mark2000 , I'll let you do final reviews of this PR while I'm on travel.

Copy link
Contributor

@Mark2000 Mark2000 left a comment

Choose a reason for hiding this comment

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

Verified that this fixes the bug I was encountering. Thanks for the quick fix @Natsoulas

@Mark2000 Mark2000 dismissed schaubh’s stale review June 10, 2025 17:54

Changes were addressed.

@Natsoulas
Copy link
Contributor Author

Sweet glad the spiceInterface issues saga I brought on is almost over. Could you rerun the tests that timed out? I'm afk.

@Natsoulas Natsoulas merged commit d49bf01 into develop Jun 10, 2025
86 of 99 checks passed
@Natsoulas Natsoulas deleted the bug/1010-reference-counting-issue-spice-interface branch June 10, 2025 23:01
@github-project-automation github-project-automation bot moved this from 👀 In review to ✅ Done in Basilisk Jun 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Reference counting issue with SpiceInterface REQUIRED_KERNELS

4 participants