Skip to content

No user code in async stack traces #5747

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

Closed
vasily-kirichenko opened this issue Oct 9, 2018 · 3 comments
Closed

No user code in async stack traces #5747

vasily-kirichenko opened this issue Oct 9, 2018 · 3 comments
Labels

Comments

@vasily-kirichenko
Copy link
Contributor

F# 4.5, FSharp.Core 4.5.2

A severe error occurred on the current command.  The results, if any, should be discarded.
   at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
   at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
   at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted)
   at System.Data.SqlClient.SqlCommand.CompleteAsyncExecuteReader(Boolean isInternal, Boolean forDescribeParameterEncryption)
   at System.Data.SqlClient.SqlCommand.InternalEndExecuteNonQuery(IAsyncResult asyncResult, String endMethod, Boolean isInternal)
   at System.Data.SqlClient.SqlCommand.EndExecuteNonQueryInternal(IAsyncResult asyncResult)
   at System.Data.SqlClient.SqlCommand.EndExecuteNonQuery(IAsyncResult asyncResult)
   at <StartupCode$FSharp-Core>.$Async.callback@1523.Invoke(IAsyncResult iar)
ClientConnectionId:60d2afad-6d79-42eb-9bbf-33a8997abe80
Error Number:916,State:1,Class:14 

I cannot determine the code that throws this exception, I mean, I have absolutely no way to find my code that caused this.

@dsyme
Copy link
Contributor

dsyme commented Oct 12, 2018

@vasily-kirichenko Do you have a repro for this please? Also is it Release of Debug? The F# 4.5 work was primarily focused on better stack traces for Debug code.

thanks

@vasily-kirichenko
Copy link
Contributor Author

It's Release because it's from production. No, I don't have a repro because I still don't have any clue what code causes this.

@dsyme dsyme added the Bug label Sep 1, 2020
@dsyme
Copy link
Contributor

dsyme commented Sep 1, 2020

Covered by #2741

@dsyme dsyme closed this as completed Sep 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants