Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-3016

Exception on gRPC channel closing, if using QtAsyncio loop.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 6.8.1
    • QtAsyncio
    • None
    • Python 3.12.3 on Linux Ubuntu 24.04.01 LTS
    • Linux/X11

    Description

      When trying to close a gRPC channel, it raises an exception: "QtTask.get_stack is not implemented".

      The problem only happens with a event loop created by QtAsyncio. If I use the standard "asyncio" everything is fine.

       

      import grpc
      import PySide6.QtAsyncio as QtAsyncio
      import asyncio

      async def test():
          try:
              channel = grpc.aio.insecure_channel("localhost:50051")

              await channel.close() # throws exception "QtTask.get_stack is not implemented"
          except Exception as e:
              print(f"{e}")  # prints "QtTask.get_stack is not implemented"

      if _name_ == "{}{}main__":
          #asyncio.run(test())            # works fine
          QtAsyncio.run(test())            # NOT WORKING

       

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            crmaurei Cristian Maureira-Fredes
            tradingdev Raulito Silva
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes