-
Notifications
You must be signed in to change notification settings - Fork 686
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
Increasing software buffer size results in seg-fault #198
Comments
Are you using the File Reader, by chance? For that source node, it seems like the problem is resulting in the hard-coded Also, the buffer size is set in the Audio Component (which interfaces with audio hardware), not the Audio Node (which outputs data for audio monitoring). You can change it in line 85 of AudioComponent.cpp, but that didn't fix the problem. |
Ahhh I see. Thanks a lot for the help! |
Is this fixed now? There were some changes to fix issue #217 that I think got rid of that 1024 constant. |
This bug is still present, if you change the buffer size while acquisition is active. We need to disable the settings interface during acquisition. |
The default software buffer size is 1024 samples. Users can change the software buffer size by clicking on the latency (default is "23ms"). When I try to increase the buffer size to say 2048 samples, open-ephys seg faults. My data source is "file reader". Interestingly, OE doesn't crash when I decrease the buffer size.
I thought that the recent commit titled "Fix destination channel of copying to temp buffer" might have fixed the issue. I implemented the change from this commit to my forked version of OE and it still crashes.
Also, I tried increasing the default buffer size to 1024 by changing line 185 in Audio Node.cpp
filters.add(new Dsp::SmoothedFilterDesign<Dsp::RBJ::Design::LowPass, 1> (1024*2))
but it does not appear to have had an affect on the buffer size.
The text was updated successfully, but these errors were encountered: