-
Notifications
You must be signed in to change notification settings - Fork 382
cupertino_http: Failure calling Dart_PostCObject_DL #785
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
Comments
|
This is a plausible explanation: https://developer.apple.com/forums/thread/47252 |
This was fixed in 0.0.6. Could you please try it out? |
I was just hit by it. It never occurred since today and it occurs on Hot Restart, almost at every app launch. Log
Flutter doctor, testing on iphone 13 pro ios 16.3.1
|
Updated from 1.0.0 to 1.1.0 and issue still occurs. |
Why can't we have concurrent operations regarding network calls? Is that a limitation of the Dart threading model? I am building a client with Cupertino HTTP, trying to improve my upload speed by making multiple concurrent calls, but this is limited due to the lack of this configuration. |
Hi @MateusHBR Could you explain in some more detail what you mean? |
Hey @brianquinlan I'm just trying to understand why we can't customize the My scenario is that I'm trying to promote concurrency over NSUrlSession Calls, and this setting that can't be updated prevents me from doing that. Implemented on this PR: #1033 |
We set Could you explain in detail what actual issue you are seeing? Maybe with some example code that doesn't behave as you'd want it to? |
Hey @brianquinlan During my reading of the thread: https://developer.apple.com/forums/thread/47252 I noticed that it could be customized the networkOperationQueue, which by default, NSOperationQueue will return a concurrent queue, that is, a queue on which multiple operations can run concurrently. However If I want the operations to be serialised, which is the only sane way to deal with NSURLSession callbacks, set the queue’s maxConcurrentOperationCount to 1. That reduces the throughput of my HTTP calls because they can be called from different threads, so I was trying to customize this setting together with my current settings that I already have defined:
|
Hey @MateusHBR I think that I'm still not understand you. The reason that If we have a If those are executed concurrently and |
From @lavinov-mercury:
Hi! Unfortunately, we are facing crash using
cupertino_http
. I couldn't find specific steps to reproduce it, for us it just happens sometimes after returning from the background or using Hot Restart. I tried to integrate it in 2 ways: with runWithClient (literally copied snippet from the README), and by replacing client in-place:In both cases after some time playing around, i could face the following crash:
The failed line is:
https://github.com/dart-lang/http/blob/master/pkgs/cupertino_http/src/CUPHTTPClientDelegate.m#L120
The text was updated successfully, but these errors were encountered: