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

WebEngine check fails against dummy threads

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P3: Somewhat important
    • None
    • 5.11.0, 5.11.1
    • PySide
    • None
    • Python 3.6 64Bit
    • Windows

    Description

      So, within a sys.excepthook callback I need to create an error menu with Qt and have that run on the mainthread. The slot mechanism appears to work just fine, as it ends up running on a DummyThread under MainThread:

      <_DummyThread(Dummy-1, started daemon 17148)>

      is the result of threading.current_thread()

      I can also call Qt Methods just fine and make a Dialog.

      However, the Dialog contains a WebView and then everything thinks it is breaking:

      https://pastebin.com/KhGkprjJ

      This looks like the Embedded Chromium doesn't know what a Dummy Thread is and falsely assumes it isn't the Main Thread. Or I could be completely off.

      I've tried for two hours to make a minimal example also exhibit this issue and have failed to replicate it in a small example. No idea how to get you the information you probably need to fix this. The actual error seems to be send by the Chromium Process, as it seems to be coming in async, so trying to find a precise line where things go wrong isn't working out.

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes