-
-
Notifications
You must be signed in to change notification settings - Fork 53
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
Random "Index Out of range" crash in FloatPlot #69
Comments
My guess would be that samples[j + 1] is out of range. It would be helpful to put
before that line to see if that is the crash. Can you make a simple example project to recreate the issue? |
|
Quoted reply
Try following the stack trace in the debugger. Xcode will show the error on every instruction leading up to where the error actually occurred.
Edit: Looking at this with a fresh set of eyes, now I can see how this involves |
I have experienced this bug as well. I use NodeOutputView, and sometimes it would crash with an error similar to the above. @emurray2, I saw you asking about buffer size...I noticed that for NodeOutputView, the default buffer is 1024. I had been using a buffer of 150. I'm still testing, but so far It seems that changing the buffer to 1024 has eliminated the crashes. |
I don't think buffer size matters i have experienced it also with default buffer size or 2048 |
What I've noticed when I got this error is the node I was using was not stereo, and I was trying to access a buffer which was not there. You may want to double check the node format or wherever the data inside But definitely make an example project if you can with 1 node and the |
macOS Version(s) Used to Build
macOS 13 Ventura, macOS 12 Monterey
Xcode Version(s)
Xcode 14
Description
I'm working on an iOS app that uses NodeOutputView
Randomly I get this "Index Out of range" as you can see in the screen shot
Crash Logs, Screenshots or Other Attachments (if applicable)
The text was updated successfully, but these errors were encountered: