dotnet / dotnet/machinelearning-samples

[DetectSpikeBySsa] System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

Open
#1,008 0 comments 2 reactions 0 assignees View on GitHub
Dominant language
PowerShell
Stars
4.7k
Forks
2.7k
Avg merge
2d 22h
Merged PRs (30d)
1

Description

I get the following error when using ML.NET's DetectSpikeBySsa method. I run the project in a docker container running Kubernetes. I'm using the latest stable versions 2.0.1 of Microsoft.ML and Microsoft.ML.TimeSeries


![DetectSpikeBySsa](https://github.com/dotnet/machinelearning-samples/assets/147151461/b5a48b3a-e943-448b-a566-98a38283a029)

Fatal error. System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at Microsoft.ML.Internal.CpuMath.AvxIntrinsics.MatMulTran(Microsoft.ML.Internal.CpuMath.AlignedArray, Microsoft.ML.Internal.CpuMath.AlignedArray, Microsoft.ML.Internal.CpuMath.AlignedArray, Int32, Int32)
at Microsoft.ML.Transforms.TimeSeries.AdaptiveSingularSpectrumSequenceModelerInternal.Consume(Single ByRef, Boolean)
at Microsoft.ML.Transforms.TimeSeries.SsaAnomalyDetectionBaseWrapper+SsaAnomalyDetectionBase+State.ComputeRawAnomalyScore(Single ByRef, Microsoft.ML.Internal.Utilities.FixedSizeQueue`1, Int64)
at Microsoft.ML.Transforms.TimeSeries.SequentialAnomalyDetectionTransformBase`2+AnomalyDetectionStateBase[[System.Single, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].TransformCore(Single ByRef, Microsoft.ML.Internal.Utilities.FixedSizeQueue`1, Int64, Microsoft.ML.Data.VBuffer`1 ByRef)
at Microsoft.ML.Transforms.LambdaTransform+<>c__DisplayClass5_0`3[[System.__Canon, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].b__0(System.__Canon, System.__Canon, System.__Canon)
at Microsoft.ML.Transforms.StatefulFilterTransform`3+Cursor[[System.__Canon, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].RunLambda(Boolean ByRef)
at Microsoft.ML.Transforms.StatefulFilterTransform`3+Cursor[[System.__Canon, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].MoveNextCore()
at Microsoft.ML.Data.RootCursorBase.MoveNext()
at Microsoft.ML.PipeEngine`1+d__2[[System.__Canon, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].MoveNext()
at System.Collections.Generic.List`1[[System.__Canon, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]..ctor(System.Collections.Generic.IEnumerable`1)
at System.Linq.Enumerable.ToList[[System.__Canon, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]](System.Collections.Generic.IEnumerable`1)
at

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.