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

Running qml application with offscreen plugin causes crash on embedded device

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P2: Important
    • None
    • 5.15.0
    • Quick: SceneGraph
    • None
    • Linux/Wayland, Linux/X11, Linux/Yocto, Linux/Other display system

    Description

      Hello,

      I want to run a qml application with offscreen plugin since I do not have pyhsical screen connected to my embedded device and will transfer its screen color pixels to a linux pc.

      I tried to run SceneGraph Rendering QT example application with --platform=offscreen mode both on a linux pc and a nvidia based embedded device. On linux pc it is working fine but on nvidia device it is crashing on startup of the qml application.

      On nvidia device, I have activated loggings as exporting QT_LOGGING_RULES=qt.*=true and export QT_QPA_PLATFORM=offscreen.Following is the crash logs on startup after running the application with --platform=offscreen command:

      qt.scenegraph.general: threaded render loop
      qt.scenegraph.general: Using sg animation driver
      qt.scenegraph.general: Animation Driver: using vsync: 16.67 ms
      Listening...
      qt.quick.hover.trace: QQuickText(0x55b79dcb30, parent=0x0, geometry=0,0 0x0) false -> false
      qt.text.font.db: Adding font: familyName "DejaVu Sans" stylename "Oblique" weight 50 style QFont::StyleOblique pixelSize 0 antialiased true fixed false
      qt.text.font.db: Adding font: familyName "Liberation Sans" stylename "Bold Italic" weight 75 style QFont::StyleItalic pixelSize 0 antialiased true fixed false
      qt.text.font.db: Adding font: familyName "Liberation Mono" stylename "Italic" weight 50 style QFont::StyleItalic pixelSize 0 antialiased true fixed true
      qt.text.font.db: Adding font: familyName "DejaVu Sans Mono" stylename "Oblique" weight 50 style QFont::StyleOblique pixelSize 0 antialiased true fixed true
      qt.text.font.db: Adding font: familyName "Cantarell" stylename "Regular" weight 50 style QFont::StyleNormal pixelSize 0 antialiased true fixed false
      qt.text.font.db: Adding font: familyName "DejaVu Serif" stylename "Bold" weight 75 style QFont::StyleNormal pixelSize 0 antialiased true fixed false
      qt.text.font.db: Adding font: familyName "Cantarell" stylename "Oblique" weight 50 style QFont::StyleOblique pixelSize 0 antialiased true fixed false
      qt.text.font.db: Adding font: familyName "DejaVu Sans Mono" stylename "Book" weight 50 style QFont::StyleNormal pixelSize 0 antialiased true fixed true
      qt.text.font.db: Adding font: familyName "Cantarell" stylename "BoldOblique" weight 75 style QFont::StyleOblique pixelSize 0 antialiased true fixed false
      qt.text.font.db: Adding font: familyName "Liberation Sans" stylename "Italic" weight 50 style QFont::StyleItalic pixelSize 0 antialiased true fixed false
      qt.text.font.db: Adding font: familyName "Liberation Mono" stylename "Bold" weight 75 style QFont::StyleNormal pixelSize 0 antialiased true fixed true
      qt.text.font.db: Adding font: familyName "DejaVu Sans Mono" stylename "Bold Oblique" weight 75 style QFont::StyleOblique pixelSize 0 antialiased true fixed true
      qt.text.font.db: Adding font: familyName "DejaVu Sans" stylename "Bold" weight 75 style QFont::StyleNormal pixelSize 0 antialiased true fixed false
      qt.text.font.db: Adding font: familyName "DejaVu Math TeX Gyre" stylename "Regular" weight 50 style QFont::StyleNormal pixelSize 0 antialiased true fixed false
      qt.text.font.db: Adding font: familyName "DejaVu Sans" stylename "ExtraLight" weight 12 style QFont::StyleNormal pixelSize 0 antialiased true fixed false
      qt.text.font.db: Adding font: familyName "Liberation Sans" stylename "Regular" weight 50 style QFont::StyleNormal pixelSize 0 antialiased true fixed false
      qt.text.font.db: Adding font: familyName "Liberation Serif" stylename "Italic" weight 50 style QFont::StyleItalic pixelSize 0 antialiased true fixed false
      qt.text.font.db: Adding font: familyName "DejaVu Serif" stylename "Italic" weight 50 style QFont::StyleItalic pixelSize 0 antialiased true fixed false
      qt.text.font.db: Adding font: familyName "Liberation Serif" stylename "Regular" weight 50 style QFont::StyleNormal pixelSize 0 antialiased true fixed false
      qt.text.font.db: Adding font: familyName "DejaVu Sans" stylename "Bold Oblique" weight 75 style QFont::StyleOblique pixelSize 0 antialiased true fixed false
      qt.text.font.db: Adding font: familyName "Liberation Serif" stylename "Bold Italic" weight 75 style QFont::StyleItalic pixelSize 0 antialiased true fixed false
      qt.text.font.db: Adding font: familyName "Liberation Sans" stylename "Bold" weight 75 style QFont::StyleNormal pixelSize 0 antialiased true fixed false
      qt.text.font.db: Adding font: familyName "Cantarell" stylename "Bold" weight 75 style QFont::StyleNormal pixelSize 0 antialiased true fixed false
      qt.text.font.db: Adding font: familyName "DejaVu Serif" stylename "Bold Italic" weight 75 style QFont::StyleItalic pixelSize 0 antialiased true fixed false
      qt.text.font.db: Adding font: familyName "Liberation Mono" stylename "Bold Italic" weight 75 style QFont::StyleItalic pixelSize 0 antialiased true fixed true
      qt.text.font.db: Adding font: familyName "Liberation Mono" stylename "Regular" weight 50 style QFont::StyleNormal pixelSize 0 antialiased true fixed true
      qt.text.font.db: Adding font: familyName "DejaVu Sans" stylename "Book" weight 50 style QFont::StyleNormal pixelSize 0 antialiased true fixed false
      qt.text.font.db: Adding font: familyName "DejaVu Sans Mono" stylename "Bold" weight 75 style QFont::StyleNormal pixelSize 0 antialiased true fixed true
      qt.text.font.db: Adding font: familyName "Liberation Serif" stylename "Bold" weight 75 style QFont::StyleNormal pixelSize 0 antialiased true fixed false
      qt.text.font.db: Adding font: familyName "Serif" stylename "" weight 50 style QFont::StyleNormal pixelSize 0 antialiased true fixed false
      qt.text.font.db: Adding font: familyName "Serif" stylename "" weight 50 style QFont::StyleItalic pixelSize 0 antialiased true fixed false
      qt.text.font.db: Adding font: familyName "Serif" stylename "" weight 50 style QFont::StyleOblique pixelSize 0 antialiased true fixed false
      qt.text.font.db: Adding font: familyName "Sans Serif" stylename "" weight 50 style QFont::StyleNormal pixelSize 0 antialiased true fixed false
      qt.text.font.db: Adding font: familyName "Sans Serif" stylename "" weight 50 style QFont::StyleItalic pixelSize 0 antialiased true fixed false
      qt.text.font.db: Adding font: familyName "Sans Serif" stylename "" weight 50 style QFont::StyleOblique pixelSize 0 antialiased true fixed false
      qt.text.font.db: Adding font: familyName "Monospace" stylename "" weight 50 style QFont::StyleNormal pixelSize 0 antialiased true fixed true
      qt.text.font.db: Adding font: familyName "Monospace" stylename "" weight 50 style QFont::StyleItalic pixelSize 0 antialiased true fixed true
      qt.text.font.db: Adding font: familyName "Monospace" stylename "" weight 50 style QFont::StyleOblique pixelSize 0 antialiased true fixed true
      qt.text.font.match: QFontDatabase::match
      request:
      family: Bitstream Vera Sans [-- any --], script: 2
      weight: 50, style: 0
      stretch: 0
      pixelSize: 17
      pitch: *
      qt.text.font.match: NO MATCH FOUND

      qt.text.font.match: QFontDatabase::match
      request:
      family: DejaVu Sans [-- any --], script: 2
      weight: 50, style: 0
      stretch: 0
      pixelSize: 17
      pitch: *
      qt.text.font.match: REMARK: looking for best foundry for family 'DejaVu Sans' [1]
      qt.text.font.match: looking for matching style in foundry 'PfEd' 5
      qt.text.font.match: best style has distance 0x0
      qt.text.font.match: found smoothly scalable font (17 pixels)
      qt.text.font.match: found a match: score 0 best score so far ffffffff
      qt.text.font.match: returning box engine
      qt.quick.focus: QQuickWindowPrivate::setFocusInScope():
      qt.quick.focus: scope: QObject(0x0)
      qt.quick.focus: item: QQuickRootItem(0x55b79a98e0)
      qt.quick.focus: activeFocusItem: QObject(0x0)
      qt.accessibility.cache: insert - id: 2147483648 iface: QAccessibleInterface(0x55b79e0de0 name="" role=Window obj=QQuickView(0x7fe0e6b770)rect=QRect(2,2 1280x720))
      qt.scenegraph.renderloop: exposureChanged() QQuickView(0x7fe0e6b770 active exposed, visibility=QWindow::Windowed, flags=QFlags<Qt::WindowType>(Window), geometry=2,2 1280x720)
      qt.scenegraph.renderloop: handleExposure() QQuickView(0x7fe0e6b770 active exposed, visibility=QWindow::Windowed, flags=QFlags<Qt::WindowType>(Window), geometry=2,2 1280x720)
      qt.scenegraph.renderloop: - adding window to list
      qt.scenegraph.renderloop: - starting render thread
      Failed to create OpenGL context for format QSurfaceFormat(version 2.0, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize 8, samples -1, swapBehavior QSurfaceFormat::DoubleBuffer, swapInterval 1, colorSpace QSurfaceFormat::DefaultColorSpace, profile QSurfaceFormat::NoProfile)
      [ 269.381628] audit: type=1701 audit(1613112433.530:8): auid=4294967295 uid=0 gid=0 ses=4294967295 pid=4999 comm="socket_fb_serve" exe="/home/socket_fb_server" sig=6
      Aborted

      Could you please check the issue?

      Regards

      Attachments

        1. rendercontrol.zip
          67 kB
          Ekrem Şahin
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            lagocs Laszlo Agocs
            ekrems Ekrem Şahin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes