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

Some sort of infinite loop in SqlDataReader.ReadAsync() ? #1058

Open
christian-ruud opened this issue May 3, 2021 · 3 comments
Open

Some sort of infinite loop in SqlDataReader.ReadAsync() ? #1058

christian-ruud opened this issue May 3, 2021 · 3 comments

Comments

@christian-ruud
Copy link

A customer reported that reading a single row from the database caused the process to consume 5 GB of memory and crash.

  1. The row beeing read has very few columns
  2. One of the columns is an xml-column
  3. The problem only occurs when the XML-column has large contents (the customer can reproduce with 7MB xml)
  4. Apparently Read() works fine, the problem only occurs with ReadAsync()

Attaching screenshot made by customer. I watched this over teams, and this is not the production error, but reproducing using a console app. The call hangs, and memory keeps building.

ReadAsync-Issue

@cheenamalhotra
Copy link
Member

Hi @christian-ruud

I'm aware ReadAsync() is extremely slow, we have been looking into it's performance issues as well.. but wasn't aware if it could crash like that, will investigate and get back to you.

In the meantime, please use Read() as a workaround.

@christian-ruud
Copy link
Author

christian-ruud commented May 3, 2021 via email

@MichelZ
Copy link
Contributor

MichelZ commented Nov 23, 2024

Also related to #593

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

No branches or pull requests

3 participants