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

Minimal WebEngineView crash (in PlatformFontSkia) using eglfs on i.MX6

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P1: Critical
    • None
    • 5.13.2
    • WebEngine
    • None
    • BSP build on Zeus branches of Yocto including meta-qt5
    • Linux/Yocto

    Description

      This is a continuation of QTBUG-76857.

      I have the same crash, but was able to reproduce a stack trace.

      My application that is little more than a WebEngineView wrapped in a Window is started on the target as follows:

      export="QT_QPA_FB_TSLIB=1"
      export="QT_QPA_EGLFS_PHYSICAL_WIDTH=304"
      export="QT_QPA_EGLFS_PHYSICAL_HEIGHT=228"
      export="QT_QPA_EGLFS_NO_LIBINPUT=1"
      export="QT_QPA_GENERIC_PLUGINS=tslib:/dev/input/event0"
      export="QT_QPA_EGLFS_TSLIB=1"
      export="FB_MULTI_BUFFER=2"
      
      ./utsbrowser -platform eglfs
      

      It crashes during startup with:

      Unhandled prefetch abort: breakpoint debug exception (0x002) at 0x7235c544
      Trace/breakpoint trap

      backtrace:

      #0 operator() () at ./../../../../git/src/3rdparty/chromium/ui/gfx/platform_font_skia.cc:82
      #1 gfx::PlatformFontSkia::PlatformFontSkia () at ./../../../../git/src/3rdparty/chromium/ui/gfx/platform_font_skia.cc:82
      #2 gfx::PlatformFontSkia::PlatformFontSkia () at ./../../../../git/src/3rdparty/chromium/ui/gfx/platform_font_skia.cc:81
      #3 0x73b23d30 in gfx::PlatformFont::CreateDefault () at ./../../../../git/src/3rdparty/chromium/ui/gfx/platform_font_skia.cc:329
      #4 0x73b1d0fe in gfx::Font::Font () at ./../../../../git/src/3rdparty/chromium/ui/gfx/font.cc:16
      #5 0x73378f3c in GetPlatformSpecificPrefs () at ../../../../git/src/3rdparty/chromium/content/browser/renderer_host/render_view_host_impl.cc:165
      #6 0x733798b0 in content::RenderViewHostImpl::SyncRendererPrefs ()
       at ../../../../git/src/3rdparty/chromium/content/browser/renderer_host/render_view_host_impl.cc:411
      #7 0x7214724c in QtWebEngineCore::WebContentsAdapter::initialize (this=this@entry=0x243df68, site=<optimized out>)
       at ../../../../recipe-sysroot/usr/include/c++/9.2.0/bits/unique_ptr.h:352
      #8 0x7214862a in QtWebEngineCore::WebContentsAdapter::load (this=0x0, this@entry=0x243df68, request=...)
       at /usr/src/debug/qtwebengine/5.13.2+gitAUTOINC+556576b55f_843d70ac87-r0/git/src/core/web_contents_adapter.cpp:602
      #9 0x72149064 in QtWebEngineCore::WebContentsAdapter::load (this=0x243df68, url=...)
       at /usr/src/debug/qtwebengine/5.13.2+gitAUTOINC+556576b55f_843d70ac87-r0/git/src/core/web_contents_adapter.cpp:593
      #10 0x76f59786 in QQuickWebEngineViewPrivate::ensureContentsAdapter (this=0x241e5b8) at /usr/include/QtCore/qsharedpointer_impl.h:312
      #11 0x764fd306 in QtPrivate::QSlotObjectBase::call (a=0x7ea74940, r=0x241e550, this=<optimized out>)
       at ../../include/QtCore/../../../git/src/corelib/kernel/qobjectdefs_impl.h:394
      #12 QSingleShotTimer::timerEvent (this=0x24854c0) at /usr/src/debug/qtbase/5.13.2+gitAUTOINC+a7a24784ee-r0/git/src/corelib/kernel/qtimer.cpp:318
      #13 0x764f434a in QObject::event (this=0x24854c0, e=<optimized out>)
       at /usr/src/debug/qtbase/5.13.2+gitAUTOINC+a7a24784ee-r0/git/src/corelib/kernel/qobject.cpp:1241
      #14 0x764d2dfc in QCoreApplication::notifyInternal2 (receiver=0x24854c0, event=0x7ea74aa4)
       at ../../include/QtCore/5.13.2/QtCore/private/../../../../../../git/src/corelib/thread/qthread_p.h:325
      #15 0x765154bc in QTimerInfoList::activateTimers (this=this@entry=0x21973ac)
       at /usr/src/debug/qtbase/5.13.2+gitAUTOINC+a7a24784ee-r0/git/src/corelib/kernel/qtimerinfo_unix.cpp:643
      #16 0x76513542 in QEventDispatcherUNIXPrivate::activateTimers (this=this@entry=0x2197350)
       at /usr/src/debug/qtbase/5.13.2+gitAUTOINC+a7a24784ee-r0/git/src/corelib/kernel/qeventdispatcher_unix.cpp:249
      #17 0x76513f12 in QEventDispatcherUNIX::processEvents (this=<optimized out>, flags=...)
       at /usr/src/debug/qtbase/5.13.2+gitAUTOINC+a7a24784ee-r0/git/src/corelib/kernel/qeventdispatcher_unix.cpp:514
      #18 0x7020bedc in QUnixEventDispatcherQPA::processEvents (this=<optimized out>, flags=...)
       at /usr/src/debug/qtbase/5.13.2+gitAUTOINC+a7a24784ee-r0/git/src/platformsupport/eventdispatchers/qunixeventdispatcher.cpp:63
      #19 0x764d1d44 in QEventLoop::exec (this=this@entry=0x7ea74b98, flags=..., flags@entry=...)
       at ../../include/QtCore/../../../git/src/corelib/global/qflags.h:140
      #20 0x764d80b0 in QCoreApplication::exec () at ../../include/QtCore/../../../git/src/corelib/global/qflags.h:120
      #21 0x00437b40 in main (argc=<optimized out>, argv=<optimized out>) at /home/wdobbe/git/utsbrowser/implementation/src/main.cpp:69
      

       

      Note: I build also a BSP with Qt 15.0 but that didn't make a difference, application still crashes with Unhandled prefetch abort.

       

      Attachments

        Issue Links

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

          Activity

            People

              qt_webengine_team Qt WebEngine Team
              arthurd Arthur Dobbe
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes