-
Notifications
You must be signed in to change notification settings - Fork 746
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
FAILURE IN SERVER /b_getn index out of range #3873
Comments
The full message I'm getting on branch
|
I don't know. When I evaluate Server.supernova sc returns
then evaluating
returns
|
i found that this is sufficient:
strangely, this bug appears to be sensitive to the plot duration. this consistently works for me:
conjecture: the duration must translate to an integer number of samples. if you check the ...wait a minute, i could have sworn it was actually
@telephon mind looking into this? thanks :) |
Sure it did, in the commit you refer to. I'll take a look. |
Interesting. // works fine
(
{
var src= SinOsc.ar(440), amp= SinOsc.ar(440/20, 0, 2);
[src, amp, src * amp, (src * amp).clip(-1, 1)]
}.plot(2 * 1633 + 67 / s.sampleRate)
)
/*
[ 'b_getn', 1, 0, 1633 ]
[ 'b_getn', 1, 1633, 1633 ]
[ 'b_getn', 1, 3266, 1633 ]
[ 'b_getn', 1, 4899, 1633 ]
[ 'b_getn', 1, 6532, 1633 ]
[ 'b_getn', 1, 8165, 1633 ]
[ 'b_getn', 1, 9798, 1633 ]
[ 'b_getn', 1, 11431, 1633 ]
[ 'b_getn', 1, 13064, 267 ]
*/
// fails
(
{
var src= SinOsc.ar(440), amp= SinOsc.ar(440/20, 0, 2);
[src, amp, src * amp, (src * amp).clip(-1, 1)]
}.plot(2 * 1633 + 69 / s.sampleRate)
)
/*
[ 'b_getn', 1, 0, 1633 ]
[ 'b_getn', 1, 1633, 1633 ]
[ 'b_getn', 1, 3266, 1633 ]
[ 'b_getn', 1, 4899, 1633 ]
[ 'b_getn', 1, 6532, 1633 ]
[ 'b_getn', 1, 8165, 1633 ]
[ 'b_getn', 1, 9798, 1633 ]
[ 'b_getn', 1, 11431, 1633 ]
[ 'b_getn', 1, 13064, 274 ]
FAILURE IN SERVER /b_getn in
*/
no time to check further. Maybe someone spots an off by one error somewhere here in |
|
Because getToFloatArray is broken in some specific boundary case, for now we just use loadToFloatArray instead. This used to be the case in previous versions of the method, so this change doesn’t break expected functionality. Note that for now this again limits plotting to local servers. By curing the symptom, this fixes supercollider#3873. getToFloatArray still needs to be fixed.
We need to make sure that the numFrames variable of the buffer is an integer. This fixes supercollider#3873.
Closed in #3875. |
We need to make sure that the numFrames variable of the buffer is an integer. This fixes supercollider#3873.
While testing the latetst version which I rendered under OS X, I experienced the error
after evaluating the following code:
In 3.9.3, the code works well.
If the error occurs because 3.10 is not yet completed, Please close this issue.
The text was updated successfully, but these errors were encountered: