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

Assert when loading web page due to a selection change

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P2: Important
    • 5.7.1
    • 5.6.0 Beta, 5.10
    • WebEngine
    • None

    Description

      Run the following code, and select rapidly text in the loaded web page.

      #include <QtWebEngineWidgets>
      #include <QTimer>
      
      int main(int argc, char* argv[])
      {
          QApplication app(argc, argv);
      
          QWebEngineView * contentWidget = new QWebEngineView();
          contentWidget->load(QUrl("http://google.at"));
          contentWidget->show();
          QObject::connect(contentWidget, &QWebEngineView::selectionChanged, [=] () {
              contentWidget->load(QUrl("http://google.at"));
          });
          return app.exec();
      }
      

      This will eventually trigger the following DCHECK:

      [0126/183320:FATAL:url_request.cc(570)] Check failed: !job_.get(). 
      #0 0x7fa4f17d8bff base::debug::StackTrace::StackTrace()
      #1 0x7fa4f18030f5 logging::LogMessage::~LogMessage()
      #2 0x7fa4f01ec58c net::URLRequest::BeforeRequestComplete()
      #3 0x7fa4f01f2e8a base::internal::RunnableAdapter<>::Run()
      #4 0x7fa4f01f2731 base::internal::InvokeHelper<>::MakeItSo()
      #5 0x7fa4f01f1ab6 base::internal::Invoker<>::Run()
      #6 0x7fa4ef0ced11 base::Callback<>::Run()
      #7 0x7fa4ef0ce436 QtWebEngineCore::NetworkDelegateQt::CompleteURLRequestOnIOThread()
      #8 0x7fa4ef0d01ea base::internal::RunnableAdapter<>::Run()
      #9 0x7fa4ef0cfe23 base::internal::InvokeHelper<>::MakeItSo()
      #10 0x7fa4ef0cf91c base::internal::Invoker<>::Run()
      #11 0x7fa4ef128622 base::Callback<>::Run()
      #12 0x7fa4f18e0d0a base::debug::TaskAnnotator::RunTask()
      #13 0x7fa4f1812419 base::MessageLoop::RunTask()
      #14 0x7fa4f181250e base::MessageLoop::DeferOrRunPendingTask()
      #15 0x7fa4f1812a08 base::MessageLoop::DoWork()
      #16 0x7fa4f17bfafa base::MessagePumpLibevent::Run()
      #17 0x7fa4f18121ce base::MessageLoop::RunHandler()
      #18 0x7fa4f1845c4a base::RunLoop::Run()
      #19 0x7fa4f181104a base::MessageLoop::Run()
      #20 0x7fa4f1886af6 base::Thread::Run()
      #21 0x7fa4f055d0a8 content::BrowserThreadImpl::IOThreadRun()
      #22 0x7fa4f055d26f content::BrowserThreadImpl::Run()
      #23 0x7fa4f1886e44 base::Thread::ThreadMain()
      #24 0x7fa4f187aba0 base::(anonymous namespace)::ThreadFunc()
      #25 0x7fa4ebcbc0a4 start_thread
      #26 0x7fa4eb1cf9cd clone
      

      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
              jbornema Joerg Bornemann
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes