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

WebEngine incompatible with plugin-based architectures

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Reported
    • Priority: Not Evaluated
    • Resolution: Unresolved
    • Affects Version/s: 6.2.2
    • Fix Version/s: None
    • Component/s: Active Qt, WebEngine
    • Labels:
      None
    • Environment:

      VS2019

    • Platform/s:
      Windows

      Description

      I'm working in a plugin-based SW architecture where a parent Qt application will dynamically load shared libraries (DLLs on Widows) containing SW extension "plugins" implemented in Qt through the ActiveQt module. This works well for most Qt modules. However, the requirement for explicitly initializing WebEngine through QtWebEngineQuick::initialize() prior to creating QCoreApplication in web-based plugins is proving problematic, since the QCoreApplication object have already been initialized by the parent Qt application that is not aware of any WebEngine usage.

      Observed warning in the Visual Studio "Output" window:

      QtWebEngineQuick::initialize() called with QCoreApplication object already created and should be call before. This is depreciated and may fail in the future.
      

      I'm also observing a

      [19360:13208:1226/113557.951:FATAL:v8_initializer.cc(95)] V8 error: Entering the V8 API without proper locking in place (HandleScope::HandleScope).
      

      ... crash a bit later during startup that I'm suspect might be related.

      Would it be possible to somehow relax the requirement of having to explicitly initialize WebEngine prior to creating QCoreApplication, so that it becomes more compatible with plugin-based architectures?
       

       

        Attachments

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

          Activity

            People

            Assignee:
            qt_webengine_team Qt WebEngine Team
            Reporter:
            forderud Fredrik Orderud
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes