I have put together a patch that seems to address the issue:

https://github.com/cmcantalupo/grpc/commit/b04fc3aac8f0d42283091681cafad78b8030f0b2.patch

The branch containing this patch is here:

    https://github.com/cmcantalupo/grpc/tree/ubuntu-bug-1971114

is derived from tag v1.30.2 of the grpc repo.  I'm not sure of the best
process to upstream this patch into ubuntu, but I have also posted the
patch here:

https://git.launchpad.net/~cmcantal/ubuntu/+source/grpc/commit/?h=ubuntu/jammy&id=658a0a228fd8a21bd4971267de22c058cb58099c

To test I built the debian package files locally after adding the patch,
installed them and made sure that the command:

    python3 -c 'import grpc; from concurrent import futures;
grpc.server(futures.ThreadPoolExecutor())'

returns without hanging.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1971114

Title:
  Ubuntu 22.04 python3-grpcio causes some apps to use 100% of the CPU

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grpc/+bug/1971114/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to