Skip to content
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

memory leak on trials with reward #52

Open
ransona opened this issue Jul 26, 2024 · 1 comment
Open

memory leak on trials with reward #52

ransona opened this issue Jul 26, 2024 · 1 comment

Comments

@ransona
Copy link
Collaborator

ransona commented Jul 26, 2024

There memory leak that seems to be associated with the new version of bonsai or new workflow and causes a crash after about 20-30 stimuli. If we run the following to generate 30 trials with the same grating the memory usage gradually creeps up until the computer crashes. As you see I tried putting a rig.clear() in the loop after each stimulus is requested but this makes no difference. As you can see this happens over a few mins and depends upon actually showing stimuli - i.e. if you pause stim requests the memory usage stops going up.

Minimal example with python attached.

readamransonandneurogearsltd.zip

@ransona
Copy link
Collaborator Author

ransona commented Jul 26, 2024

update: on the old workflow / old bonsai version if you start a gratings trial with rig.go(100,100,100,1) instead of the passive rig.start() then you also get the memory leak. I guess that by making passive trials rewardable in the latest version you have caused it to have this behaviour with passive gratings.

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

No branches or pull requests

1 participant