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

QML WebEngine crashes on destruction

    XMLWordPrintable

Details

    • macOS

    Description

      WebEngine crashes on descturction with the following stacktrace when using QML components such as WebChannel and WebEngineView.

      The stack trace usually looks like:

      Crashed Thread:        26  Chrome_ProcessLauncherThread
      
      Thread 26 Crashed:: Chrome_ProcessLauncherThread
      0   org.qt-project.Qt.QtWebEngineCore	0x000000010639e6d1 base::debug::BreakDebugger() + 17 (debugger_posix.cc:260)
      1   org.qt-project.Qt.QtWebEngineCore	0x00000001063bba8f logging::LogMessage::~LogMessage() + 1359 (logging.cc:748)
      2   org.qt-project.Qt.QtWebEngineCore	0x00000001063bbe7d logging::ErrnoLogMessage::~ErrnoLogMessage() + 109 (logging.cc:880)
      3   org.qt-project.Qt.QtWebEngineCore	0x00000001063b3709 base::internal::ScopedFDCloseTraits::Free(int) + 137 (scoped_file.cc:41)
      4   org.qt-project.Qt.QtWebEngineCore	0x00000001063e6617 base::EnsureProcessTerminated(base::Process) + 519 (kill_mac.cc:171)
      5   org.qt-project.Qt.QtWebEngineCore	0x0000000105ac4dd1 content::(anonymous namespace)::TerminateOnLauncherThread(std::nullptr_t, base::Process) + 49 (child_process_launcher.cc:368)
      6   org.qt-project.Qt.QtWebEngineCore	0x0000000105ac5d43 base::internal::Invoker<base::internal::BindState<void (*)(std::nullptr_t, base::Process), std::nullptr_t, base::internal::PassedWrapper<base::Process> >, void ()>::Run(base::internal::BindStateBase*) + 131 (bind_internal.h:164)
      7   org.qt-project.Qt.QtWebEngineCore	0x000000010639ff61 base::debug::TaskAnnotator::RunTask(char const*, base::PendingTask*) + 225 (callback_forward.h:29)
      8   org.qt-project.Qt.QtWebEngineCore	0x00000001063c85a6 base::MessageLoop::RunTask(base::PendingTask*) + 390 (vector:648)
      9   org.qt-project.Qt.QtWebEngineCore	0x00000001063c886c base::MessageLoop::DeferOrRunPendingTask(base::PendingTask) + 44 (message_loop.cc:422)
      10  org.qt-project.Qt.QtWebEngineCore	0x00000001063c8c23 base::MessageLoop::DoWork() + 371 (message_loop.cc:515)
      11  org.qt-project.Qt.QtWebEngineCore	0x00000001063cb63d base::MessagePumpCFRunLoopBase::RunWork() + 45 (message_pump_mac.mm:302)
      12  org.qt-project.Qt.QtWebEngineCore	0x00000001063bc4fa base::mac::CallWithEHFrame(void () block_pointer) + 10
      13  org.qt-project.Qt.QtWebEngineCore	0x00000001063cb054 base::MessagePumpCFRunLoopBase::RunWorkSource(void*) + 68 (message_pump_mac.mm:281)
      14  com.apple.CoreFoundation      	0x00007fffa3380981 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
      15  com.apple.CoreFoundation      	0x00007fffa3361a7d __CFRunLoopDoSources0 + 557
      16  com.apple.CoreFoundation      	0x00007fffa3360f76 __CFRunLoopRun + 934
      17  com.apple.CoreFoundation      	0x00007fffa3360974 CFRunLoopRunSpecific + 420
      18  org.qt-project.Qt.QtWebEngineCore	0x00000001063cbb0f base::MessagePumpCFRunLoop::DoRun(base::MessagePump::Delegate*) + 79 (message_pump_mac.mm:526)
      19  org.qt-project.Qt.QtWebEngineCore	0x00000001063cb4a4 base::MessagePumpCFRunLoopBase::Run(base::MessagePump::Delegate*) + 100 (message_pump_mac.mm:218)
      20  org.qt-project.Qt.QtWebEngineCore	0x00000001063c830e base::MessageLoop::RunHandler() + 94 (message_loop.cc:379)
      21  org.qt-project.Qt.QtWebEngineCore	0x00000001063ec731 base::RunLoop::Run() + 113 (run_loop.cc:36)
      22  org.qt-project.Qt.QtWebEngineCore	0x0000000105a98cd8 content::BrowserThreadImpl::ProcessLauncherThreadRun(base::RunLoop*) + 24 (browser_thread_impl.cc:242)
      23  org.qt-project.Qt.QtWebEngineCore	0x0000000105a98f4c content::BrowserThreadImpl::Run(base::RunLoop*) + 268 (browser_thread_impl.cc:284)
      24  org.qt-project.Qt.QtWebEngineCore	0x000000010642056b base::Thread::ThreadMain() + 299 (lock.h:26)
      25  org.qt-project.Qt.QtWebEngineCore	0x0000000106419867 base::(anonymous namespace)::ThreadFunc(void*) + 87 (platform_thread_posix.cc:73)
      26  libsystem_pthread.dylib       	0x00007fffb8ad7aab _pthread_body + 180
      27  libsystem_pthread.dylib       	0x00007fffb8ad79f7 _pthread_start + 286
      28  libsystem_pthread.dylib       	0x00007fffb8ad71fd thread_start + 13
      

      The crash is not 100% reproducible so it is hard to create a sample application for it.

      Attachments

        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
            jussi_witick Jussi Witick
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes