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

crash in scenegraph with material() being nullptr with gles on linux

    XMLWordPrintable

Details

    • Linux/Wayland, Linux/X11

    Description

      Crash is observed when qt 5.15.9 is compiled for opengles only. No crash was observed qith debian 11  own qt 5.15.2 with gles packgages

      The intention is to render texts using QSGGlyphNode, QSGGeometryNode and QSGTransformNode for a trend control implemenation.

      Attached a sample application where we can reproduce the issue. When we start the application, a continuous switch between two texts "Hi" and "Hello" is expected with an interval of 100 msecs.

      QSGNode are used to achieve that.

      crash is here:
      Thread 1 "Trend2" received signal SIGSEGV, Segmentation fault.
      QSGBatchRenderer::hasMaterialWithBlending (n=0xaaaaaad0ab80) at scenegraph/coreapi/qsgbatchrenderer_p.h:221
      221                                     : n->material()->flags() & QSGMaterial::Blending);
      (gdb) p n->m_material
      $5 = (QSGMaterial *) 0x0

       

      we observed  QSGGeometryNode::setMaterial has not been called  for QSGGeometryNode

      No crash was observed qith debian 11  own qt 5.15.2

      Attachments

        Issue Links

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

          Activity

            People

              tokorpip Tomi Korpipää
              gunnar_roth gunnar_roth
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes