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

Qtwebenginewidgets doesn't work with platform wayland

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.5.1
    • 5.4.2, 5.5.0
    • QPA: Wayland, WebEngine
    • None
    • Linux debian 4.1.2 #1 SMP Tue Jul 14 01:22:38 CST 2015 x86_64 GNU/Linux
    • 6e6e2655bf03f2cc903f17d9e5283a81a4a837c2

    Description

      applied the patch:

      GNU gdb (Debian 7.7.1+dfsg-5) 7.7.1
      Copyright (C) 2014 Free Software Foundation, Inc.
      License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
      This is free software: you are free to change and redistribute it.
      There is NO WARRANTY, to the extent permitted by law. Type "show copying"
      and "show warranty" for details.
      This GDB was configured as "x86_64-linux-gnu".
      Type "show configuration" for configuration details.
      For bug reporting instructions, please see:
      <http://www.gnu.org/software/gdb/bugs/>.
      Find the GDB manual and other documentation resources online at:
      <http://www.gnu.org/software/gdb/documentation/>.
      For help, type "help".
      Type "apropos word" to search for commands related to "word"...
      Reading symbols from ./fancybrowser...done.
      (gdb) r -platform wayland
      Starting program: /media/choury/39ee5957-e8c7-404d-90b1-f31f764872af/qt-build/qtwebengine/examples/webenginewidgets/fancybrowser/fancybrowser -platform wayland
      [Thread debugging using libthread_db enabled]
      Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
      [New Thread 0x7fffe1542700 (LWP 3612)]
      Using Wayland-EGL
      [New Thread 0x7fffd95f9700 (LWP 3613)]

      Program received signal SIGSEGV, Segmentation fault.
      0x00007ffff12fec33 in base::RunLoop::BeforeRun (this=0x5a4060) at ../../../src/3rdparty/chromium/base/run_loop.cc:87
      87 previous_run_loop_ = loop_->run_loop_;
      (gdb) bt
      #0 0x00007ffff12fec33 in base::RunLoop::BeforeRun (this=0x5a4060) at ../../../src/3rdparty/chromium/base/run_loop.cc:87
      #1 0x00007fffed35fccf in WebEngineContext::WebEngineContext (this=0xce9e80) at ../../../src/core/web_engine_context.cpp:250
      #2 0x00007fffed35f4bc in WebEngineContext::current () at ../../../src/core/web_engine_context.cpp:154
      #3 0x00007fffed3527b6 in QtWebEngineCore::WebContentsAdapterPrivate::WebContentsAdapterPrivate (this=0xce7fe0) at ../../../src/core/web_contents_adapter.cpp:327
      #4 0x00007fffed352b5c in QtWebEngineCore::WebContentsAdapter::WebContentsAdapter (this=0x6792c0, webContents=0x0) at ../../../src/core/web_contents_adapter.cpp:364
      #5 0x00007ffff7fcc46b in QWebEnginePagePrivate::QWebEnginePagePrivate (this=0xce9d90, _profile=0x0) at api/qwebenginepage.cpp:181
      #6 0x00007ffff7fcd210 in QWebEnginePage::QWebEnginePage (this=0x677dd0, parent=0x505f20) at api/qwebenginepage.cpp:461
      #7 0x00007ffff7fdbd54 in QWebEngineView::page (this=0x505f20) at api/qwebengineview.cpp:136
      #8 0x00007ffff7fdbdb4 in QWebEngineView::load (this=0x505f20, url=...) at api/qwebengineview.cpp:148
      #9 0x000000000040444c in MainWindow::MainWindow (this=0xbd0c20, url=...) at mainwindow.cpp:77
      #10 0x000000000040410f in main (argc=1, argv=0x7fffffffe3d8) at main.cpp:54
      (gdb) p loop_
      $1 = (base::MessageLoop *) 0x0
      (gdb) l
      82 // Allow Quit to be called before Run.
      83 if (quit_called_)
      84 return false;
      85
      86 // Push RunLoop stack:
      87 previous_run_loop_ = loop_->run_loop_;
      88 run_depth_ = previous_run_loop_? previous_run_loop_->run_depth_ + 1 : 1;
      89 loop_->run_loop_ = this;
      90
      91 running_ = true;
      (gdb) fr 1
      #1 0x00007fffed35fccf in WebEngineContext::WebEngineContext (this=0xce9e80) at ../../../src/core/web_engine_context.cpp:250
      250 m_runLoop->BeforeRun();
      (gdb) p m_runLoop
      $2 = {impl_ = {data_ = {<base::DefaultDeleter<base::RunLoop>> =

      {<No data fields>}

      , ptr = 0x5a4060}}}
      (gdb) l
      245 m_contentRunner->Initialize(contentMainParams);
      246 m_browserRunner->Initialize(content::MainFunctionParams(*CommandLine::ForCurrentProcess()));
      247
      248 // Once the MessageLoop has been created, attach a top-level RunLoop.
      249 m_runLoop.reset(new base::RunLoop);
      250 m_runLoop->BeforeRun();
      251
      252 m_devtools.reset(new DevToolsHttpHandlerDelegateQt);
      253 // Force the initialization of MediaCaptureDevicesDispatcher on the UI
      254 // thread to avoid a thread check assertion in its constructor when it
      (gdb) q
      A debugging session is active.

      Inferior 1 [process 3608] will be killed.

      Quit anyway? (y or n)

      Attachments

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

        Activity

          People

            allan.jensen Allan Sandfeld Jensen
            choury choury
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes