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

Exception in ParseTruncSqlInfo or ParseTruncSqlInfoAsync #1212

Open
ftrl opened this issue Feb 24, 2025 · 3 comments
Open

Exception in ParseTruncSqlInfo or ParseTruncSqlInfoAsync #1212

ftrl opened this issue Feb 24, 2025 · 3 comments

Comments

@ftrl
Copy link

ftrl commented Feb 24, 2025

In our application, in a fairly busy environment, we randomly notice errors occurring in FirebirdSql.Data.Client.

Here's the typical stackTrace of the problem that occurs:

Exception Msg: Index was outside the bounds of the array.

StackTrace:
   at FirebirdSql.Data.Client.Managed.Version10.GdsStatement.ParseTruncSqlInfo(Byte[] info, Byte[] items, Descriptor[] rowDescs)
   at FirebirdSql.Data.Client.Managed.Version10.GdsStatement.ProcessPrepareResponse(GenericResponse response)
   at FirebirdSql.Data.Client.Managed.Version11.GdsStatement.Prepare(String commandText)
   at FirebirdSql.Data.FirebirdClient.FbCommand.Prepare(Boolean returnsSet)
   at FirebirdSql.Data.FirebirdClient.FbCommand.ExecuteCommand(CommandBehavior behavior, Boolean returnsSet)
   at FirebirdSql.Data.FirebirdClient.FbCommand.ExecuteReader(CommandBehavior behavior)
   at LinqToDB.Data.DataConnection.ExecuteReader(CommandBehavior commandBehavior)
   at LinqToDB.Data.DataConnection.ExecuteDataReader(CommandBehavior commandBehavior)
   at LinqToDB.Linq.QueryRunner.ExecuteQuery[T](Query query, IDataContext dataContext, Mapper`1 mapper, Expression expression, Object[] ps, Object[] preambles, Int32 queryNumber)+MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Business.TablesReference.TVAImpl.GetList(String connectionString, Int32 company, TVAType type)

The query is very simple and returns very little data.

Any idea what might be causing the problem?

Thanks

@cincuranet
Copy link
Member

I need reproducible scenario.

@ftrl
Copy link
Author

ftrl commented Feb 24, 2025

I understand, but unfortunately it's impossible.
It's totally random.
And I don't know where to look for a clue.

@cincuranet
Copy link
Member

Without repro chances for fix are very slim. At least create memory dump and I can try to have a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants