-
Notifications
You must be signed in to change notification settings - Fork 420
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
Channel gets deinitialized on main thread #96
Comments
Hi, could you share your client code with me (timburks at google dot com) or try a newer version? The generated code now contains blocking versions of all unary (nonstreaming) API client handlers. |
Hi Tim, thanks for the response! I'm not sure I could share the client code, but I could definitely try upgrading the version. Does the newer one still supports Swift 3? |
I'm not testing with Swift 3 but don't recall any significant changes for Swift 4 (apart from the Datastore example, which uses Codable). |
@timburks, I forgot to update this thread until this issue bits me again recently :| I tried to update to 0.3.3... and yeah, the problem is still there. I tried to dig in a little bit, and found out that the Is there any way to send this process to background? I tried to wrap the process of assigning nil to the GRPC property inside a background DispatchQueue, but it still came back to main thread... |
Closing this now; please open a new issue if the issue persists in Swift gRPC 0.9.0. |
Hi all,
I'm currently using the 0.1.13 version, and I got some issue on Channel's deinitialization.
The issue occurs intermittently. On my source code, I wrapped the Protobuf-generated GRPC services, and each time the wrapper object gets deinitialized, the same thing happens on the opened Channel. Based on the stack I captured, it calls the
cgrpc_channel_destroy
, which calls blockinggrpc_pollset_work
.Here's a screenshot of the stack:
Is there a way to make the process non-blocking? Or is it already fixed on the newer versions?
Thanks in advance!
The text was updated successfully, but these errors were encountered: