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

[macOS] QQuickWebEngineProfile::defaultProfile() in main thread causes runtime warning "This method should not be called on the main thread as it may lead to UI unresponsiveness."

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P2: Important
    • None
    • 6.5.1
    • WebEngine
    • None
    • Qt 6.5.1
      macOS 13.4
      Xcode 14.3
    • macOS

    Description

      Please see attached project.
      Configure with CMake for Xcode generator, run with Xcode.

      Just put the code in main.cpp before app.exec()

          QQuickWebEngineProfile *profile = QQuickWebEngineProfile::defaultProfile();
          Q_UNUSED(profile);
      
      Security
      /Users/sergei.nevdakh/Qt/6.5.1.universal/qt_src_6.5.1/qtwebengine/src/3rdparty/chromium/media/gpu/mac/vt_video_decode_accelerator_mac.cc:328 This method should not be called on the main thread as it may lead to UI unresponsiveness.
      
      Thread 1
      #0	0x0000000000000000 in SecTrustEvaluateIfNecessary ()
      #1	0x0000000000000000 in SecTrustEvaluateInternal ()
      #2	0x0000000000000000 in Security::CodeSigning::SecStaticCode::validateDirectory() ()
      #3	0x0000000000000000 in Security::CodeSigning::SecStaticCode::validateNonResourceComponents() ()
      #4	0x0000000000000000 in Security::CodeSigning::SecStaticCode::staticValidateCore(unsigned int, Security::CodeSigning::SecRequirement const*) ()
      #5	0x0000000000000000 in Security::CodeSigning::SecStaticCode::staticValidate(unsigned int, Security::CodeSigning::SecRequirement const*) ()
      #6	0x0000000000000000 in SecStaticCodeCheckValidityWithErrors ()
      #7	0x0000000000000000 in figRegistryAddResultItem ()
      #8	0x0000000000000000 in __CFSetApplyFunction_block_invoke ()
      #9	0x0000000000000000 in CFBasicHashApply ()
      #10	0x0000000000000000 in CFSetApplyFunction ()
      #11	0x0000000000000000 in FigRegistryCopyFilteredItemList ()
      #12	0x0000000000000000 in ___lldb_unnamed_symbol4803 ()
      #13	0x0000000000000000 in VTDecompressionSessionCreateWithOptions ()
      #14	0x0000000000000000 in media::(anonymous namespace)::CreateVideoToolboxSession(opaqueCMFormatDescription const*, bool, bool, bool, VTDecompressionOutputCallbackRecord const*, base::ScopedTypeRef<OpaqueVTDecompressionSession*, base::internal::ScopedCFTypeRefTraits<OpaqueVTDecompressionSession*> >*, gfx::Size*) at /Users/sergei.nevdakh/Qt/6.5.1.universal/qt_src_6.5.1/qtwebengine/src/3rdparty/chromium/media/gpu/mac/vt_video_decode_accelerator_mac.cc:328
      #15	0x0000000000000000 in media::(anonymous namespace)::InitializeVideoToolboxInternal() at /Users/sergei.nevdakh/Qt/6.5.1.universal/qt_src_6.5.1/qtwebengine/src/3rdparty/chromium/media/gpu/mac/vt_video_decode_accelerator_mac.cc:363
      #16	0x0000000000000000 in media::InitializeVideoToolbox() at /Users/sergei.nevdakh/Qt/6.5.1.universal/qt_src_6.5.1/qtwebengine/src/3rdparty/chromium/media/gpu/mac/vt_video_decode_accelerator_mac.cc:586
      #17	0x0000000000000000 in QtWebEngineCore::ContentMainDelegateQt::PreSandboxStartup() at /Users/sergei.nevdakh/Qt/6.5.1.universal/qt_src_6.5.1/qtwebengine/src/core/content_main_delegate_qt.cpp:186
      #18	0x0000000000000000 in content::ContentMainRunnerImpl::Initialize(content::ContentMainParams) at /Users/sergei.nevdakh/Qt/6.5.1.universal/qt_src_6.5.1/qtwebengine/src/3rdparty/chromium/content/app/content_main_runner_impl.cc:1004
      #19	0x0000000000000000 in QtWebEngineCore::WebEngineContext::WebEngineContext() at /Users/sergei.nevdakh/Qt/6.5.1.universal/qt_src_6.5.1/qtwebengine/src/core/web_engine_context.cpp:779
      #20	0x0000000000000000 in QtWebEngineCore::WebEngineContext::current() at /Users/sergei.nevdakh/Qt/6.5.1.universal/qt_src_6.5.1/qtwebengine/src/core/web_engine_context.cpp:635
      #21	0x0000000000000000 in QtWebEngineCore::ProfileAdapter::createDefaultProfileAdapter() at /Users/sergei.nevdakh/Qt/6.5.1.universal/qt_src_6.5.1/qtwebengine/src/core/profile_adapter.cpp:226
      #22	0x0000000000000000 in QQuickWebEngineProfile::defaultProfile() at /Users/sergei.nevdakh/Qt/6.5.1.universal/qt_src_6.5.1/qtwebengine/src/webenginequick/api/qquickwebengineprofile.cpp:707
      #23	0x0000000000000000 in main at /Users/sergei.nevdakh/Dev/Projects/WebEngineProfileUiThread/main.cpp:19
      #24	0x0000000000000000 in start ()
      

      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
              sergei.nevdakh Sergei Nevdakh
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes