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

Default QWebEngineProfile constructor asserts in chromium

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P1: Critical P1: Critical
    • None
    • 6.5
    • WebEngine
    • None
    • Visual Studio v17.2.6; cl.exe 19.32.31332; qt5 commit c1a1e65cdc478a12a726ae2c0132c9eea9c9995d
    • Windows

      Configured with:

      ..\qt_git\configure -shared -nomake tests -nomake examples -submodules qtbase,qtdeclarative,qtwebengine -prefix C:\qt_install\git-dev-debug\msvc2022_64 -debug -force-debug-info
      

      So essentially a full debug build.

      This program crashes on startup:

      #include <QApplication>
      #include <QWebEngineProfile>
      
      int main(int argc, char *argv[])
      {
          QApplication a(argc, argv);
          QWebEngineProfile profile;
          return a.exec();
      }
      

      This is the log from the QtCreator output window:

      00:17:40: Starting C:/qtbug88514/qtbug88514.exe...
      qt.webenginecontext: 
      
      GL Type: desktop
      Surface Type: OpenGL
      Surface Profile: CompatibilityProfile
      Surface Version: 4.6
      QSG RHI Backend: OpenGL
      Using Supported QSG Backend: yes
      Using Software Dynamic GL: no
      Using Multithreaded OpenGL: yes
      
      Init Parameters:
        *  application-name qtbug88514 
        *  browser-subprocess-path C:\qt_install\git-dev-debug\msvc2022_64\bin\QtWebEngineProcess.exe 
        *  create-default-gl-context  
        *  disable-es3-gl-context  
        *  disable-features ConsolidatedMovementXY,InstalledApp,BackgroundFetch,WebOTP,WebPayments,WebUSB,PictureInPicture 
        *  disable-speech-api  
        *  enable-features NetworkServiceInProcess,TracingServiceInProcess 
        *  enable-threaded-compositing  
        *  in-process-gpu  
        *  use-gl desktop 
      
      [0926/001740.444:FATAL:ref_counted.cc(34)] Check failed: in_dtor_. 
      Backtrace:
      	base::debug::CollectStackTrace [0x00007FFC54BCDFE2+34] (C:\qt_git\qtwebengine\src\3rdparty\chromium\base\debug\stack_trace_win.cc:305)
      	base::debug::StackTrace::StackTrace [0x00007FFC54DC331C+60] (C:\qt_git\qtwebengine\src\3rdparty\chromium\base\debug\stack_trace.cc:221)
      	base::debug::StackTrace::StackTrace [0x00007FFC54DC32C3+35] (C:\qt_git\qtwebengine\src\3rdparty\chromium\base\debug\stack_trace.cc:218)
      	logging::LogMessage::~LogMessage [0x00007FFC54D306C8+152] (C:\qt_git\qtwebengine\src\3rdparty\chromium\base\logging.cc:601)
      	logging::LogMessage::`scalar deleting destructor' [0x00007FFC54D31F67+23]
      	logging::CheckError::~CheckError [0x00007FFC54B93FBC+60] (C:\qt_git\qtwebengine\src\3rdparty\chromium\base\check.cc:108)
      	logging::CheckError::DCheck [0x00007FFC54B972E4+180] (C:\qt_git\qtwebengine\src\3rdparty\chromium\base\check.cc:45)
      	base::subtle::RefCountedThreadSafeBase::~RefCountedThreadSafeBase [0x00007FFC54C0DA6E+62] (C:\qt_git\qtwebengine\src\3rdparty\chromium\base\memory\ref_counted.cc:34)
      	base::RefCountedThreadSafe<base::internal::BindStateBase,base::internal::BindStateBaseRefCountTraits>::~RefCountedThreadSafe<base::internal::BindStateBase,base::internal::BindStateBaseRefCountTraits> [0x00007FFC45312C53+19] (C:\qt_git\qtwebengine\src\3rdparty\chromium\base\memory\ref_counted.h:413)
      	base::internal::BindStateBase::~BindStateBase [0x00007FFC45312E83+19] (C:\qt_git\qtwebengine\src\3rdparty\chromium\base\callback_internal.h:76)
      	base::internal::BindState<<lambda_f1736088a36a7f41c02370b5c505e154> >::~BindState<<lambda_f1736088a36a7f41c02370b5c505e154> > [0x00007FFC4AAEC8C3+19] (C:\qt_git\qtwebengine\src\3rdparty\chromium\base\bind_internal.h:978)
      	base::internal::BindState<<lambda_f1736088a36a7f41c02370b5c505e154> >::`scalar deleting destructor' [0x00007FFC4AAF0297+23]
      	base::internal::BindState<<lambda_f1736088a36a7f41c02370b5c505e154> >::Destroy [0x00007FFC4AAF23AA+42] (C:\qt_git\qtwebengine\src\3rdparty\chromium\base\bind_internal.h:981)
      	base::internal::BindStateBaseRefCountTraits::Destruct [0x00007FFC54B97570+32] (C:\qt_git\qtwebengine\src\3rdparty\chromium\base\callback_internal.cc:31)
      	scoped_refptr<base::internal::BindStateBase>::~scoped_refptr<base::internal::BindStateBase> [0x00007FFC529B4292+34]
      	scoped_refptr<base::internal::BindStateBase>::operator= [0x00007FFC54B94241+49] (C:\qt_git\qtwebengine\src\3rdparty\chromium\base\memory\scoped_refptr.h:248)
      	base::internal::CallbackBaseCopyable::operator= [0x00007FFC54B94484+52] (C:\qt_git\qtwebengine\src\3rdparty\chromium\base\callback_internal.cc:94)
      	base::RepeatingCallback<blink::OriginTrialPolicy * __cdecl(void)>::operator= [0x00007FFC4AAED36D+29] (C:\qt_git\qtwebengine\src\3rdparty\chromium\base\callback.h:227)
      	blink::TrialTokenValidator::SetOriginTrialPolicyGetter [0x00007FFC4AAFD775+37] (C:\qt_git\qtwebengine\src\3rdparty\chromium\third_party\blink\common\origin_trials\trial_token_validator.cc:67)
      	content::ContentMainRunnerImpl::Initialize [0x00007FFC5321510D+1261] (C:\qt_git\qtwebengine\src\3rdparty\chromium\content\app\content_main_runner_impl.cc:906)
      	QtWebEngineCore::WebEngineContext::WebEngineContext [0x00007FFC455F11A6+4102] (C:\qt_git\qtwebengine\src\core\web_engine_context.cpp:739)
      	QtWebEngineCore::WebEngineContext::current [0x00007FFC455F67C8+72] (C:\qt_git\qtwebengine\src\core\web_engine_context.cpp:472)
      	QtWebEngineCore::ProfileAdapter::ProfileAdapter [0x00007FFC454E7DA2+642] (C:\qt_git\qtwebengine\src\core\profile_adapter.cpp:68)
      	QWebEngineProfile::QWebEngineProfile [0x00007FFC452EB6C2+162] (C:\qt_git\qtwebengine\src\core\api\qwebengineprofile.cpp:269)
      	main [0x00007FF6824015E6+54] (C:\qtbug88514\main.cpp:7)
      	WinMain [0x00007FF682403D42+274] (C:\qt_git\qtbase\src\entrypoint\qtentrypoint_win.cpp:50)
      	invoke_main [0x00007FF682401A12+50] (D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:107)
      	__scrt_common_main_seh [0x00007FF6824018BE+302] (D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288)
      	__scrt_common_main [0x00007FF68240177E+14] (D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:331)
      	WinMainCRTStartup [0x00007FF682401AAE+14] (D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_winmain.cpp:17)
      	BaseThreadInitThunk [0x00007FFCFD167034+20]
      	RtlUserThreadStart [0x00007FFCFEAA26A1+33]
      

      Might be related to QTBUG-88514, but the backtrace is different.

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

            qt_webengine_team Qt WebEngine Team
            jkauffmann Johannes Kauffmann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes