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

got index out of range exception in osx #43

Open
andy840119 opened this issue Apr 21, 2021 · 4 comments
Open

got index out of range exception in osx #43

andy840119 opened this issue Apr 21, 2021 · 4 comments
Labels
bug Something isn't working osx Only appear in osx

Comments

@andy840119
Copy link
Member

Here's the log:

[runtime] 2021-04-21 13:18:34 [error]: An unhandled error has occurred.
[runtime] 2021-04-21 13:18:34 [error]: System.IndexOutOfRangeException: Index was outside the bounds of the array.
[runtime] 2021-04-21 13:18:34 [error]: at NWaves.Features.Pitch.FromYin(Single[] signal, Int32 samplingRate, Int32 startPos, Int32 endPos, Single low, Single high, Single cmdfThreshold)
[runtime] 2021-04-21 13:18:34 [error]: at osu.Framework.Input.Handlers.Microphone.OsuTKMicrophoneHandler.procedure(Int32 handle, IntPtr buffer, Int32 length, IntPtr user)
Unhandled exception.Unhandled exception.  System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at NWaves.Features.Pitch.FromYin(Single[] signal, Int32 samplingRate, Int32 startPos, Int32 endPos, Single low, Single high, Single cmdfThreshold)
   at osu.Framework.Input.Handlers.Microphone.OsuTKMicrophoneHandler.procedure(Int32 handle, IntPtr buffer, Int32 length, IntPtr user)
--- End of stack trace from previous location ---
   at osu.Framework.Platform.GameHost.<>c__DisplayClass103_0.<abortExecutionFromException>b__0()
   at osu.Framework.Threading.ScheduledDelegate.RunTaskInternal()
   at osu.Framework.Threading.Scheduler.Update()
   at osu.Framework.Threading.GameThread.ProcessFrame()
   at osu.Framework.Platform.ThreadRunner.RunMainLoop()
   at osu.Framework.Platform.GameHost.windowUpdate()
   at osu.Framework.Platform.SDL2DesktopWindow.Run()
   at osu.Framework.Platform.GameHost.Run(Game game)
   at osu.Game.Rulesets.Karaoke.Tests.VisualTestRunner.Main(String[] args) in /Volumes/Data/Github/karaoke-dev/karaoke/osu.Game.Rulesets.Karaoke.Tests/VisualTestRunner.cs:line 18System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at NWaves.Features.Pitch.FromYin(Single[] signal, Int32 samplingRate, Int32 startPos, Int32 endPos, Single low, Single high, Single cmdfThreshold)
   at osu.Framework.Input.Handlers.Microphone.OsuTKMicrophoneHandler.procedure(Int32 handle, IntPtr buffer, Int32 length, IntPtr user)
--- End of stack trace from previous location ---
   at osu.Framework.Platform.GameHost.<>c__DisplayClass103_0.<abortExecutionFromException>b__0()
   at osu.Framework.Threading.ScheduledDelegate.RunTaskInternal()
   at osu.Framework.Threading.Scheduler.Update()
   at osu.Framework.Threading.GameThread.ProcessFrame()
   at osu.Framework.Platform.ThreadRunner.RunMainLoop()
   at osu.Framework.Platform.GameHost.windowUpdate()
   at osu.Framework.Platform.SDL2DesktopWindow.Run()
   at osu.Framework.Platform.GameHost.Run(Game game)
   at osu.Game.Rulesets.Karaoke.Tests.VisualTestRunner.Mai
n(String[] args) in /Volumes/Data/Github/karaoke-dev/karaoke/osu.Game.Rulesets.Karaoke.Tests/VisualTestRunner.cs:line 18

Need to check about that.

@andy840119
Copy link
Member Author

Highlight :
NWaves.Features.Pitch.FromYi

@andy840119
Copy link
Member Author

andy840119 commented Apr 21, 2021

Maybe run this project in osx then try again.
update : not run smoothly in osx.
Also got no idea why led in camera not lighting.

@andy840119
Copy link
Member Author

https://www.nuget.org/packages/ManagedBass/
maybe should upgrade manageBass to 3.0.0
wait for osu-framework to update that then try again.

@andy840119
Copy link
Member Author

Not really sure only caused in big sur.
Need to tested in older version.

@andy840119 andy840119 added bug Something isn't working osx Only appear in osx labels Apr 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working osx Only appear in osx
Projects
None yet
Development

No branches or pull requests

1 participant