samples icon indicating copy to clipboard operation
samples copied to clipboard

The asynchronous operation has not completed

Open dxq0126 opened this issue 3 years ago • 8 comments

Unhandled Exception: System.InvalidOperationException: The asynchronous operation has not completed. at System.Threading.Channels.AsyncOperation.ThrowIncompleteOperationException() at System.Threading.Channels.AsyncOperation1.GetResult(Int16 token) at Microsoft.ML.Transforms.RowShufflingTransformer.Cursor.MoveNextCore() at Microsoft.ML.Data.RootCursorBase.MoveNext() at Microsoft.ML.Trainers.TrainingCursorBase.MoveNext() at Microsoft.ML.Trainers.SdcaTrainerBase3.TrainCore(IChannel ch, RoleMappedData data, LinearModelParameters predictor, Int32 weightSetCount) at Microsoft.ML.Trainers.StochasticTrainerBase2.TrainModelCore(TrainContext context) at Microsoft.ML.Trainers.TrainerEstimatorBase2.TrainTransformer(IDataView trainSet, IDataView validationSet, IPredictor initPredictor) at Microsoft.ML.Data.EstimatorChain1.Fit(IDataView input) at GitHubIssueClassification.Program.BuildAndTrainModel(IDataView trainingDataView, IEstimator1 pipeline) in E:\MyProject\GitHubIssueClassification\GitHubIssueClassification\Program.cs:line 103 at GitHubIssueClassification.Program.Main(String[] args) in E:\MyProject\GitHubIssueClassification\GitHubIssueClassification\Program.cs:line 51

dxq0126 avatar Jul 31 '20 03:07 dxq0126

The same has happened to me. =============== Loading Dataset =============== =============== Finished Loading Dataset =============== =============== Processing Data =============== =============== Finished Processing Data =============== =============== Training the model =============== Unhandled exception. System.InvalidOperationException: The asynchronous operation has not completed. at System.Threading.Channels.AsyncOperation.ThrowIncompleteOperationException() at System.Threading.Channels.AsyncOperation1.GetResult(Int16 token) at Microsoft.ML.Transforms.RowShufflingTransformer.Cursor.MoveNextCore() at Microsoft.ML.Data.RootCursorBase.MoveNext() at Microsoft.ML.Trainers.TrainingCursorBase.MoveNext() at Microsoft.ML.Trainers.SdcaTrainerBase3.TrainCore(IChannel ch, RoleMappedData data, LinearModelParameters predictor, Int32 weightSetCount) at Microsoft.ML.Trainers.StochasticTrainerBase2.TrainModelCore(TrainContext context) at Microsoft.ML.Trainers.TrainerEstimatorBase2.TrainTransformer(IDataView trainSet, IDataView validationSet, IPredictor initPredictor) at Microsoft.ML.Trainers.TrainerEstimatorBase2.Fit(IDataView input) at Microsoft.ML.Data.EstimatorChain1.Fit(IDataView input) at GitHubIssueClassification.Program.BuildAndTrainModel(IDataView trainingDataView, IEstimator`1 pipeline) in C:\Users\milan\Source\Repos\GitHubIssueClassification\Program.cs:line 102 at GitHubIssueClassification.Program.Main(String[] args) in C:\Users\milan\Source\Repos\GitHubIssueClassification\Program.cs:line 50

MilanHajicek avatar Aug 07 '20 09:08 MilanHajicek

Same here.

System.InvalidOperationException HResult=0x80131509 Message=The asynchronous operation has not completed. Source=System.Threading.Channels StackTrace: at System.Threading.Channels.AsyncOperation.ThrowIncompleteOperationException() at System.Threading.Channels.AsyncOperation 1.GetResult(Int16 token) at Microsoft.ML.Transforms.RowShufflingTransformer.Cursor.MoveNextCore() at Microsoft.ML.Data.RootCursorBase.MoveNext() at Microsoft.ML.Trainers.TrainingCursorBase.MoveNext() at Microsoft.ML.Trainers.SdcaTrainerBase 3.TrainCore(IChannel ch, RoleMappedData data, LinearModelParameters predictor, Int32 weightSetCount) at Microsoft.ML.Trainers.StochasticTrainerBase 2.TrainModelCore(TrainContext context) at Microsoft.ML.Trainers.TrainerEstimatorBase 2.TrainTransformer(IDataView trainSet, IDataView validationSet, IPredictor initPredictor) at Microsoft.ML.Trainers.TrainerEstimatorBase 2.Fit(IDataView input) at Microsoft.ML.Data.EstimatorChain 1.Fit(IDataView input) at xxx.SmartSuggestions.BuildAndTrainModel(IDataView trainingDataView, IEstimator`1 pipeline) in XXXXX.cs:line 116 at xx.Init() in XXXXX.cs:line 64 at xx.ConfigureServices(IServiceCollection services) in XXXXX.cs:line 98 at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.InvokeCore(Object instance, IServiceCollection services) at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass9_0.<Invoke>g__Startup|0(IServiceCollection serviceCollection) at Microsoft.AspNetCore.Hosting.StartupLoader.ConfigureServicesDelegateBuilder1.<>c__DisplayClass15_0.<BuildStartupServicesFilterPipeline>g__RunPipeline|0(IServiceCollection services) at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.Invoke(Object instance, IServiceCollection services) at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass8_0.<Build>b__0(IServiceCollection services) at Microsoft.AspNetCore.Hosting.StartupLoader.ConfigureServicesDelegateBuilder1.<>c__DisplayClass14_0.<ConfigureServices>g__ConfigureServicesWithContainerConfiguration|0(IServiceCollection services) at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.ConfigureServices(IServiceCollection services)

54mu3l avatar Aug 24 '20 12:08 54mu3l

Hi @dxq0126, @MilanHajicek, and @54mu3l - could you please tell me what project you're seeing this issue in?

IEvangelist avatar Aug 24 '20 14:08 IEvangelist

Hi David,

It goes about the GitHubIssueClassification

Have a look at the error details when running in the VS2019.

System.InvalidOperationException

HResult=0x80131509

Zpráva=The asynchronous operation has not completed.

Zdroj=System.Threading.Channels

StackTrace:

at System.Threading.Channels.AsyncOperation.ThrowIncompleteOperationException()

at System.Threading.Channels.AsyncOperation`1.GetResult(Int16 token)

at Microsoft.ML.Transforms.RowShufflingTransformer.Cursor.MoveNextCore()

at Microsoft.ML.Data.RootCursorBase.MoveNext()

at Microsoft.ML.Trainers.TrainingCursorBase.MoveNext()

at Microsoft.ML.Trainers.SdcaTrainerBase`3.TrainCore(IChannel ch, RoleMappedData data, LinearModelParameters predictor, Int32 weightSetCount)

at Microsoft.ML.Trainers.StochasticTrainerBase`2.TrainModelCore(TrainContext context)

at Microsoft.ML.Trainers.TrainerEstimatorBase`2.TrainTransformer(IDataView trainSet, IDataView validationSet, IPredictor initPredictor)

at Microsoft.ML.Trainers.TrainerEstimatorBase`2.Fit(IDataView input)

at Microsoft.ML.Data.EstimatorChain`1.Fit(IDataView input)

at GitHubIssueClassification.Program.BuildAndTrainModel(IDataView trainingDataView, IEstimator`1 pipeline) in C:\Users\milan\Source\Repos\GitHubIssueClassification\Program.cs:line 102

at GitHubIssueClassification.Program.Main(String[] args) in C:\Users\milan\Source\Repos\GitHubIssueClassification\Program.cs:line 50

Thanks you for your feedback,

Milan

From: David Pine [email protected] Sent: Monday, August 24, 2020 4:13 PM To: dotnet/samples [email protected] Cc: MilanHajicek [email protected]; Mention [email protected] Subject: Re: [dotnet/samples] The asynchronous operation has not completed (#3763)

Hi @dxq0126 https://github.com/dxq0126 , @MilanHajicek https://github.com/MilanHajicek , and @54mu3l https://github.com/54mu3l - could you please tell me what project you're seeing this issue in?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/dotnet/samples/issues/3763#issuecomment-679152060 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ANXLHPXFFWCFNH62QPWQC43SCJYQJANCNFSM4PPITYYA . https://github.com/notifications/beacon/ANXLHPS6VYRRQOH4SBGLKO3SCJYQJA5CNFSM4PPITYYKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFB5QTPA.gif

MilanHajicek avatar Aug 24 '20 15:08 MilanHajicek

Hi @dxq0126, @MilanHajicek, and @54mu3l - could you please tell me what project you're seeing this issue in?

the project is at machine-learning/tutorials/GitHubIssueClassification/GitHubIssueClassification

and the environment is .net core 2.1 Microsoft.ML(1.5.1)

dxq0126 avatar Aug 24 '20 15:08 dxq0126

Hi @dxq0126, @MilanHajicek, and @54mu3l - could you please tell me what project you're seeing this issue in?

same project as mentioned above

with .net core 3.1 Microsoft.ML (1.5.1) VS2019

54mu3l avatar Aug 25 '20 08:08 54mu3l

Hello, the same error here using: .net core 3.1 Microsoft.ML 1.5.1 VS2019 16.6.5

cesarlinux avatar Aug 25 '20 13:08 cesarlinux

The same code is working with the Microsoft.ML 1.5.2-29219-1 from the daily NuGet feed

cesarlinux avatar Aug 25 '20 15:08 cesarlinux