-
Notifications
You must be signed in to change notification settings - Fork 4
Tie lifetime of oni.Context to that of ContextTask #409
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- Instead of disposing and recreating oni.Context when a reset occurs, issue a oni.Context.Refresh() to existing object
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems to be working with no apparent downside indeed.
- Make ContextTask.ctx readonly per @glopesdev's comments - Bump package version
Looks like there might be an issue with Miniscope documented by @ChucklesOnGitHub the red lines are indications of issues #406, #401, #408. So these changes might fix that, but the miniscope is now having issues. I will try to reproduce this. |
@ChucklesOnGitHub I am unable to reproduce this issue. This is the workflow im using: Note that miniscope voltage autodiscovery is being used. No issues running this and capturing analog data from breakout and image data from miniscope. Can you tell us exactly what error you're encountering? You can right click and copy the message at the bottom left of the bonsai editor when an exception occurs to get a detailed log. |
Hi @ChucklesOnGitHub, I need clarification about the word "issue". From the table, I think "issue" refers to the large issue that this PR is attempting to solve. Namely, that in some cases, after stopping the bonsai workflow, the hardware remains engaged as if it was acquiring data instead of stopping normally. Lets call this issue 1. The second issue that I see, is that with this PR applied, there is another secondary issue that appears which is a "Failure to write stream or register" exception. This is a problem, but one that is actually in line with normal operation and some communication issue happening. Let's call this issue 2. Is this assessment correct? If so, I am not able to reproduce issue 2. In order to figure out if its being created as a result of this PR, i need to know where its coming from. What is the Node in the workflow that produces the exception and if you can copy to the extended text of the exception that would be helpful. |
OK, so @ChucklesOnGitHub and I met out of context to clarify the situation. It turns out that there a couple of separate issues.
|
Hardware Tests
I tried to put this throgh the ringer