-
Notifications
You must be signed in to change notification settings - Fork 526
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
"Cannot access a disposed object" when reading large JSON from Web #9262
Comments
Hi I'm an AI powered bot that finds similar issues based off the issue title. Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you! Open similar issues:
|
We have just been able to verify that the exception does not occur in .NET MAUI 8.0.61! The following makes our app work in Android again: dotnet workload install maui --from-rollback-file https://maui.blob.core.windows.net/metadata/rollbacks/8.0.61.json
dotnet workload list
Installierte Workload-ID Manifestversion Installationsquelle
------------------------------------------------------------------------------------
android 34.0.79/8.0.100 SDK 8.0.400, VS 17.11.35222.181
aspire 8.1.0/8.0.100 SDK 8.0.400, VS 17.11.35222.181
ios 17.2.8022/8.0.100 SDK 8.0.400, VS 17.11.35222.181
maccatalyst 17.2.8022/8.0.100 SDK 8.0.400, VS 17.11.35222.181
maui 8.0.61/8.0.100 SDK 8.0.400
maui-windows 8.0.61/8.0.100 SDK 8.0.400, VS 17.11.35222.181 This is a major show stopper for our next release in october... |
We are facing the same issue in our application. This issue is a blocker for our upcoming release as well. During my analysis I saw that within the .NET MAUI SR7 there was a tiny PR merged into it: Bump to Android 34.0.114 The bump of the .NET Android pulled the following into it: In my point of view this PR looks very suspicious 👀 There is an issue about that in the dotnet/android repo: #9039 |
Description
Hello everyone,
we are deserializing a large JSON reply from our web server. The source code has been generated with
NSwag.CodeGeneration.CSharp
and used to work fine with WPF, .NET MAUI iOS and .NET MAUI Android. Since a few weeks ago, the functionality has stopped working with .NET MAUI Android and sporadically throwsObjectDisposedException
exceptions. Both WPF and iOS work fine.We have not found out why and how this occurs. The only big change we had in the last few weeks was updating Visual Studio and .NET MAUI workloads.
EDIT: The error does not occur in .NET MAUI 8.0.61
Steps to Reproduce
The exception occurs on
return new ObjectResponseResult<T>(typedBody, string.Empty);
.Link to public reproduction project repository
No response
Version with bug
8.0.72
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
8.0.61
Affected platforms
Android
Affected platform versions
Android 13
Did you find any workaround?
Unfortunately, we could not find any workaround.
Relevant log output
The text was updated successfully, but these errors were encountered: