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

Custom WebEngineProfile causes error when deleting WebEngineView

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P1: Critical
    • None
    • 5.11.0 Beta 4
    • WebEngine
    • None
    • MSVC 2015 64bit

    Description

      I could reproduce this error by adding a custom profile in the "WebEngine Content Manipulation" example.

      1. Adapt line 66 of mainwindow.cpp:

      QWebEngineProfile * pro = new QWebEngineProfile("qtprofiledir", this);
      view = new QWebEngineView(this);
      QWebEnginePage* p = new QWebEnginePage(pro, view);
      view->setPage(p);

      2. Run
      3. Close window

      [7984:17312:0424/144912.668:FATAL:supports_user_data.cc(25)] Check failed: sequence_checker_.CalledOnValidSequence(). Backtrace: QEnableSharedFromThis<QtWebEngineCore::WebContentsAdapter>::QEnableSharedFromThis<QtWebEngineCore::WebContentsAdapter> [0x000000018268CE35+335893] QEnableSharedFromThis<QtWebEngineCore::WebContentsAdapter>::QEnableSharedFromThis<QtWebEngineCore::WebContentsAdapter> [0x00000001826974F8+378584] QWebEngineUrlSchemeHandler::_q_destroyedUrlSchemeHandler [0x0000000182565D80+3472] QWebEngineUrlSchemeHandler::_q_destroyedUrlSchemeHandler [0x00000001825B814D+340317] QtWebEngineCore::FilePickerController::mode [0x00000001814CEC90+2618992] QtWebEngineCore::FilePickerController::mode [0x00000001816837CF+4407727] QtWebEngineCore::FilePickerController::mode [0x0000000181683156+4406070] CertificateErrorController::CertificateErrorController [0x0000000180D7F17D+927885] CertificateErrorController::CertificateErrorController [0x0000000180D7EFEE+927486] CertificateErrorController::CertificateErrorController [0x0000000180D7EB15+926245] QtWebEngineCore::FilePickerController::mode [0x0000000181480642+2297890] QtWebEngineCore::FilePickerController::mode [0x0000000181480498+2297464] QtWebEngineCore::FilePickerController::mode [0x000000018147E757+2289975] QtWebEngineCore::PdfiumDocumentWrapperQt::pageCount [0x0000000181061F14+1232580] QtWebEngineCore::PdfiumDocumentWrapperQt::pageCount [0x0000000181045D0D+1117373] QtWebEngineCore::PdfiumDocumentWrapperQt::pageCount [0x000000018104ABB7+1137511] QtWebEngineCore::FilePickerController::mode [0x00000001816C7ECF+4688047] QtWebEngineCore::FilePickerController::mode [0x000000018149D651+2416689] QtWebEngineCore::PdfiumDocumentWrapperQt::pageCount [0x000000018106FCC6+1289334] QtWebEngineCore::PdfiumDocumentWrapperQt::pageCount [0x0000000180FF8909+800953] QtWebEngineCore::PdfiumDocumentWrapperQt::pageCount [0x0000000180FF1677+771623] QtWebEngineCore::PdfiumDocumentWrapperQt::pageCount [0x0000000180FF0938+768232] QtWebEngineCore::FilePickerController::mode [0x00000001816C50F2+4676306] QtWebEngineCore::FilePickerController::mode [0x00000001816C85E7+4689863] IsSandboxedProcess [0x00000001845ACC0E+4415966] QEnableSharedFromThis<QtWebEngineCore::WebContentsAdapter>::QEnableSharedFromThis<QtWebEngineCore::WebContentsAdapter> [0x00000001826C9CBE+585374] QtWebEngineCore::WebContentsAdapter::~WebContentsAdapter [0x000000018017E52C+76] QtWebEngineCore::WebContentsAdapter::~WebContentsAdapter [0x000000018017F497+4023] QtWebEngineCore::WebContentsAdapter::changedFullScreen [0x00000001801809A4+132] QtWebEngineCore::WebContentsAdapter::WebContentsAdapter [0x000000018017E230+992] QtWebEngineCore::WebContentsAdapter::~WebContentsAdapter [0x000000018017E4FA+26] QWebEngineDownloadItem::isPaused [0x00007FFCB724F0D8+115246] QWebEngineDownloadItem::isPaused [0x00007FFCB72505B6+120588] QWebEngineDownloadItem::isPaused [0x00007FFCB7238226+21372] QWebEngineDownloadItem::isPaused [0x00007FFCB7250A95+121835] QWebEngineDownloadItem::isPaused [0x00007FFCB7250A47+121757] QWebEngineDownloadItem::isPaused [0x00007FFCB724CF23+106617] QWebEngineDownloadItem::isPaused [0x00007FFCB7243E58+69550] QWebEngineDownloadItem::isPaused [0x00007FFCB724F037+115085] QWebEngineDownloadItem::isPaused [0x00007FFCB724F889+117215] QWebEngineDownloadItem::isPaused [0x00007FFCB724CE60+106422] QWebEngineDownloadItem::isPaused [0x00007FFCB723D0E4+41530] QWebEnginePage::`scalar deleting destructor' [0x00007FF7E44559D8+24] QStringRef::rend [0x00007FFC941F88C1+5151178] operator<< [0x00007FFC953FF722+835504] QWebEngineDownloadItem::isPaused [0x00007FFCB725DE78+176078] QWebEngineView::`scalar deleting destructor' [0x00007FF7E4455CB8+24] QStringRef::rend [0x00007FFC941F88C1+5151178] operator<< [0x00007FFC953FF722+835504] operator<< [0x00007FFC95639F42+3172304] MainWindow::~MainWindow [0x00007FF7E44568D6+38] MainWindow::`scalar deleting destructor' [0x00007FF7E4455557+23] QStringRef::rend [0x00007FFC941FA23A+5157699] QStringRef::rend [0x00007FFC941F2B98+5127329]

      I could not create example code to reproduce an error similar to QTBUG-66081 which I have in our production code since 5.11. In this code is also a custom profile involved.

      [11332:12796:0424/145501.423:FATAL:browser_context.cc(547)] Check failed: !GetUserData(kStoragePartitionMapKeyName). StoragePartitionMap is not shut down properlyBacktrace: QEnableSharedFromThis<QtWebEngineCore::WebContentsAdapter>::QEnableSharedFromThis<QtWebEngineCore::WebContentsAdapter> [0x000000018268CE35+335893] QEnableSharedFromThis<QtWebEngineCore::WebContentsAdapter>::QEnableSharedFromThis<QtWebEngineCore::WebContentsAdapter> [0x00000001826974F8+378584] QWebEngineUrlSchemeHandler::_q_destroyedUrlSchemeHandler [0x0000000182565D80+3472] CertificateErrorController::CertificateErrorController [0x0000000180D7D335+920133] QtWebEngineCore::BrowserContextAdapterClient::downloadInterruptReasonToString [0x00000001800DA6C3+4211] QtWebEngineCore::BrowserContextAdapterClient::downloadInterruptReasonToString [0x00000001800DA634+4068] QtWebEngineCore::BrowserContextAdapterClient::downloadInterruptReasonToString [0x00000001800DAA47+5111] QtWebEngineCore::FilePickerController::mode [0x0000000181764529+5328649] QtWebEngineCore::CustomProtocolHandler::MaybeCreateJob [0x000000018010A0D0+9824] QtWebEngineCore::BrowserContextAdapter::~BrowserContextAdapter [0x00000001800D3EB2+290] QWebEngineDownloadItem::isPaused [0x00007FFCB47772F8+148558] QWebEngineDownloadItem::isPaused [0x00007FFCB4777E96+151532] QWebEngineUrlRequestInfo::d_func [0x00000001800CD706+86] QtWebEngineCore::CustomProtocolHandler::MaybeCreateJob [0x000000018010EDC5+29525] QtWebEngineCore::CustomProtocolHandler::MaybeCreateJob [0x000000018010ED87+29463] QtWebEngineCore::CustomProtocolHandler::MaybeCreateJob [0x000000018010A0F3+9859] QtWebEngineCore::WebContentsAdapter::~WebContentsAdapter [0x000000018017E5A5+197] QtWebEngineCore::WebContentsAdapter::~WebContentsAdapter [0x000000018017F497+4023] QtWebEngineCore::WebContentsAdapter::changedFullScreen [0x00000001801809A4+132] QtWebEngineCore::WebContentsAdapter::WebContentsAdapter [0x000000018017E230+992] QtWebEngineCore::WebContentsAdapter::~WebContentsAdapter [0x000000018017E4FA+26] QWebEngineDownloadItem::isPaused [0x00007FFCB476F0D8+115246] QWebEngineDownloadItem::isPaused [0x00007FFCB47705B6+120588] QWebEngineDownloadItem::isPaused [0x00007FFCB4758226+21372] QWebEngineDownloadItem::isPaused [0x00007FFCB4770A95+121835] QWebEngineDownloadItem::isPaused [0x00007FFCB4770A47+121757] QWebEngineDownloadItem::isPaused [0x00007FFCB476CF23+106617] QWebEngineDownloadItem::isPaused [0x00007FFCB4763E58+69550] QWebEngineDownloadItem::isPaused [0x00007FFCB476F037+115085] QWebEngineDownloadItem::isPaused [0x00007FFCB476F889+117215] QWebEngineDownloadItem::isPaused [0x00007FFCB476CE60+106422] QWebEngineDownloadItem::isPaused {{}}

       

       

      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
              schaef Christoph Schaefer
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes