Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-94827

[PoC patch] qt3d: render: crash / data race in OffscreenSurfaceHelper

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P1: Critical
    • None
    • 5.14.0 RC2, 5.15.0 RC2
    • Qt3D
    • None
    • Linux/X11, Windows

    Description

      OffscreenSurfaceHelper accesses AbstractRenderer which (I believe) lives in a rendering thread. Surface creation is done via a queued slot connection but there is no synchronisation to whether the renderer is still valid. It seems safer to queue the parameters instead.

      The proof-of-concept patch is attached. I've verified it fixes the crash for us. It's not particularly formatted according to guidelines (I can do it if the patch approach is approved as-is).

      Unfortunately I don't have a minimal example (it only happens under a heavy load, only on certain machines, and only when there are plenty of other business logic threads).

       

      Attachments

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

        Activity

          People

            seanharmer Sean Harmer
            jive Ievgen Liubymkin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes