Uploaded image for project: 'Nuxeo Drive '
  1. Nuxeo Drive
  2. NXDRIVE-1318

Fix Qt WebEngine component packaging on macOS

    XMLWordPrintable

    Details

      Description

      When trying to open the auth window, Drive will crash:

      2018-08-16 17:43:30 21946 140735890789312 DEBUG    nxdrive.gui.api    Web authentication is available on server http://192.168.0.100:8080/nuxeo, opening login window with URL http://192.168.0.100:8080/nuxeo/drive_login.jsp?deviceId=978f170a9ca411e8a5ada8206614d809&applicationName=Nuxeo+Drive&permission=ReadWrite&deviceDescription=macOS&forceAnonymousLogin=true&useProtocol=False
      Qt WebEngine ICU data not found at . Trying parent directory...
      Qt WebEngine ICU data not found at /Users/tiger-222/projects/nuxeo-drive/dist/Nuxeo Drive.app/Contents/MacOS/PyQt5/Qt. Trying application directory...
      Qt WebEngine ICU data not found at /Users/tiger-222/projects/nuxeo-drive/dist/Nuxeo Drive.app/Contents/MacOS. Trying fallback directory... The application MAY NOT work.
      Path override failed for key base::DIR_QT_LIBRARY_DATA and path '/Users/tiger-222/.Nuxeo Drive'
      Installed Qt WebEngine locales directory not found at location /qtwebengine_locales. Trying application directory...
      Qt WebEngine locales directory not found at location /Users/tiger-222/projects/nuxeo-drive/dist/Nuxeo Drive.app/Contents/MacOS/qtwebengine_locales. Trying fallback directory... Translations MAY NOT not be correct.
      Path override failed for key ui::DIR_LOCALES and path '/Users/tiger-222/.Nuxeo Drive'
      [0816/174331.033581:ERROR:icu_util.cc(179)] Invalid file descriptor to ICU data received.
      [0816/174331.033696:FATAL:content_main_delegate.cc(53)] Check failed: false.
      0   QtWebEngineCore                     0x00000001131ebee3 shape_detection::TextDetectionImplMac::Detect(SkBitmap const&, base::OnceCallback<void (std::__1::vector<mojo::StructPtr<shape_detection::mojom::TextDetectionResult>, std::__1::allocator<mojo::StructPtr<shape_detection::mojom::TextDetectionResult> > >)>) + 12383507
      1   QtWebEngineCore                     0x000000011320b557 shape_detection::TextDetectionImplMac::Detect(SkBitmap const&, base::OnceCallback<void (std::__1::vector<mojo::StructPtr<shape_detection::mojom::TextDetectionResult>, std::__1::allocator<mojo::StructPtr<shape_detection::mojom::TextDetectionResult> > >)>) + 12512135
      2   QtWebEngineCore                     0x000000011316ff26 shape_detection::TextDetectionImplMac::Detect(SkBitmap const&, base::OnceCallback<void (std::__1::vector<mojo::StructPtr<shape_detection::mojom::TextDetectionResult>, std::__1::allocator<mojo::StructPtr<shape_detection::mojom::TextDetectionResult> > >)>) + 11875670
      3   QtWebEngineCore                     0x0000000113171373 shape_detection::TextDetectionImplMac::Detect(SkBitmap const&, base::OnceCallback<void (std::__1::vector<mojo::StructPtr<shape_detection::mojom::TextDetectionResult>, std::__1::allocator<mojo::StructPtr<shape_detection::mojom::TextDetectionResult> > >)>) + 11880867
      4   QtWebEngineCore                     0x000000011176b162 QtWebEngineCore::WebContentsAdapter::canViewSource() + 36738
      5   QtWebEngineCore                     0x0000000111769c45 QtWebEngineCore::WebContentsAdapter::canViewSource() + 31333
      6   QtWebEngineCore                     0x0000000111703db4 QtWebEngineCore::BrowserContextAdapter::BrowserContextAdapter(QString const&) + 244
      7   QtWebEngineWidgets                  0x0000000117af0ea2 QWebEngineProfile::QWebEngineProfile(QString const&, QObject*) + 114
      8   QtWebEngineWidgets.so               0x0000000117a9eb06 init_type_QWebEngineProfile(_sipSimpleWrapper*, _object*, _object*, _object**, _object**, _object**) + 294
      9   sip.so                              0x000000010dce8f6e sipSimpleWrapper_init + 182
      10  libpython3.6m.dylib                 0x000000010ac6bf09 type_call + 313
      11  libpython3.6m.dylib                 0x000000010ac0e514 _PyObject_FastCallDict + 292
      12  libpython3.6m.dylib                 0x000000010ace0872 call_function + 434
      13  libpython3.6m.dylib                 0x000000010acd9823 _PyEval_EvalFrameDefault + 4851
      14  libpython3.6m.dylib                 0x000000010ace1376 _PyEval_EvalCodeWithName + 2566
      15  libpython3.6m.dylib                 0x000000010ace1b69 fast_function + 729
      16  libpython3.6m.dylib                 0x000000010ace0879 call_function + 441
      17  libpython3.6m.dylib                 0x000000010acd98ad _PyEval_EvalFrameDefault + 4989
      18  libpython3.6m.dylib                 0x000000010ace1376 _PyEval_EvalCodeWithName + 2566
      19  libpython3.6m.dylib                 0x000000010ace1e1d _PyFunction_FastCallDict + 669
      20  libpython3.6m.dylib                 0x000000010ac0e54a _PyObject_FastCallDict + 346
      21  libpython3.6m.dylib                 0x000000010ac0e67c _PyObject_Call_Prepend + 156
      22  libpython3.6m.dylib                 0x000000010ac0e2a5 PyObject_Call + 101
      23  libpython3.6m.dylib                 0x000000010ac6fc4e slot_tp_init + 158
      24  libpython3.6m.dylib                 0x000000010ac6bf09 type_call + 313
      25  libpython3.6m.dylib                 0x000000010ac0e514 _PyObject_FastCallDict + 292
      26  libpython3.6m.dylib                 0x000000010ace0872 call_function + 434
      27  libpython3.6m.dylib                 0x000000010acd9823 _PyEval_EvalFrameDefault + 4851
      28  libpython3.6m.dylib                 0x000000010ace1ac8 fast_function + 568
      29  libpython3.6m.dylib                 0x000000010ace0879 call_function + 441
      30  libpython3.6m.dylib                 0x000000010acd9823 _PyEval_EvalFrameDefault + 4851
      31  libpython3.6m.dylib                 0x000000010ace1f11 _PyFunction_FastCallDict + 913
      32  libpython3.6m.dylib                 0x000000010ac0e54a _PyObject_FastCallDict + 346
      33  libpython3.6m.dylib                 0x000000010ac0e67c _PyObject_Call_Prepend + 156
      34  libpython3.6m.dylib                 0x000000010ac0e2a5 PyObject_Call + 101
      35  QtCore.so                           0x000000010de269b8 PyQtSlot::call(_object*, _object*) const + 40
      36  QtCore.so                           0x000000010de268b7 PyQtSlot::invoke(void**, _object*, void*, bool) const + 375
      37  QtCore.so                           0x000000010de2695c PyQtSlot::invoke(void**, _object*, void*) const + 12
      38  QtCore.so                           0x000000010de298bc qt_metacall_worker(_sipSimpleWrapper*, _typeobject*, _sipTypeDef*, QMetaObject::Call, int, void**) + 668
      39  QtCore.so                           0x000000010de295f2 qpycore_qobject_qt_metacall(_sipSimpleWrapper*, _sipTypeDef*, QMetaObject::Call, int, void**) + 66
      40  QtCore                              0x000000010d9404c6 QMetaObject::activate(QObject*, int, int, void**) + 2230
      41  QtCore.so                           0x000000010de230a7 pyqtBoundSignal_emit(_object*, _object*) + 471
      42  libpython3.6m.dylib                 0x000000010ac57776 _PyCFunction_FastCallDict + 166
      43  libpython3.6m.dylib                 0x000000010ace089e call_function + 478
      44  libpython3.6m.dylib                 0x000000010acd9823 _PyEval_EvalFrameDefault + 4851
      45  libpython3.6m.dylib                 0x000000010ace1f11 _PyFunction_FastCallDict + 913
      46  libpython3.6m.dylib                 0x000000010ac0e54a _PyObject_FastCallDict + 346
      47  libpython3.6m.dylib                 0x000000010ac0e67c _PyObject_Call_Prepend + 156
      48  libpython3.6m.dylib                 0x000000010ac0e2a5 PyObject_Call + 101
      49  QtCore.so                           0x000000010de269b8 PyQtSlot::call(_object*, _object*) const + 40
      50  QtCore.so                           0x000000010de268b7 PyQtSlot::invoke(void**, _object*, void*, bool) const + 375
      51  QtCore.so                           0x000000010de2695c PyQtSlot::invoke(void**, _object*, void*) const + 12
      52  QtCore.so                           0x000000010de298bc qt_metacall_worker(_sipSimpleWrapper*, _typeobject*, _sipTypeDef*, QMetaObject::Call, int, void**) + 668
      53  QtCore.so                           0x000000010de295f2 qpycore_qobject_qt_metacall(_sipSimpleWrapper*, _sipTypeDef*, QMetaObject::Call, int, void**) + 66
      54  QtQml                               0x0000000110368c92 QV4::QMetaObjectWrapper::isEqualTo(QV4::Managed*, QV4::Managed*) + 8674
      55  QtQml                               0x000000011036552c QV4::QObjectMethod::callInternal(QV4::Value const*, QV4::Value const*, int) const + 3532
      56  QtQml                               0x0000000110364c9e QV4::QObjectMethod::callInternal(QV4::Value const*, QV4::Value const*, int) const + 1342
      57  QtQml                               0x000000011037aa4a QV4::Runtime::method_callProperty(QV4::ExecutionEngine*, QV4::Value*, int, QV4::Value*, int) + 906
      58  QtQml                               0x000000011037132d qt_v4DebuggerHook + 6877
      59  QtQml                               0x0000000110424722 QQmlJavaScriptExpression::evaluate(QV4::CallData*, bool*) + 594
      60  QtQml                               0x00000001103bbed8 QQmlBoundSignalExpression::evaluate(void**) + 1224
      61  QtQml                               0x00000001103bc6dd QQmlBoundSignal::setEnabled(bool) + 477
      

      The system console logs those lines:

      QObject::startTimer: Timers cannot be started from another thread	QtCore
      Qt WebEngine ICU data not found at . Trying parent directory...	QtCore
      Qt WebEngine ICU data not found at /Users/tiger-222/projects/nuxeo-drive/dist/Nuxeo Drive.app/Contents/MacOS/PyQt5/Qt. Trying application directory...	QtCore
      Qt WebEngine ICU data not found at /Users/tiger-222/projects/nuxeo-drive/dist/Nuxeo Drive.app/Contents/MacOS. Trying fallback directory... The application MAY NOT work.	QtCore
      Path override failed for key base::DIR_QT_LIBRARY_DATA and path '/Users/tiger-222/.Nuxeo Drive'	QtCore
      Installed Qt WebEngine locales directory not found at location /qtwebengine_locales. Trying application directory...	QtCore
      Qt WebEngine locales directory not found at location /Users/tiger-222/projects/nuxeo-drive/dist/Nuxeo Drive.app/Contents/MacOS/qtwebengine_locales. Trying fallback directory... Translations MAY NOT not be correct.	QtCore
      Path override failed for key ui::DIR_LOCALES and path '/Users/tiger-222/.Nuxeo Drive'	QtCore
      [0820/145458.291477:ERROR:icu_util.cc(179)] Invalid file descriptor to ICU data received.	QtWebEngineCore
      [0820/145458.292996:FATAL:content_main_delegate.cc(53)] Check failed: false. 
      0   QtWebEngineCore                     0x0000000111445ee3 shape_detection::TextDetectionImplMac::Detect(SkBitmap const&, base::OnceCallback<void (std::__1::vector<mojo::StructPtr<shape_detection::mojom::TextDetectionResult>, std::__1::allocator<mojo::StructPtr<shape_detection::mojom::TextDetectionResult> > >)>) + 12383507
      1   QtWebEngineCore                     0x0000000111465557 shape_detection::TextDetectionImplMac::Detect(SkBitmap const&, base::OnceCallback<void (std::__1::vector<mojo::StructPtr<shape_detection::mojom::TextDetectionResult>, std::__1::allocator<mojo::StructPtr<shape_detection::mojom::TextDetectionResult> > >)>) + 12512135
      2   QtWebEngineCore                     0x00000001113c9f26 shape_detection::TextDetectionImplMac::Detect(SkBitmap const&, base::OnceCallback<void (std::__1::vector<mojo::StructPtr<shape_detection::mojom::TextDetectionResult>, std::__1::allocator<mojo::StructPtr<shape_detection::mojom::T<…>	QtWebEngineCore
      

      It seems something important is missing when Drive is packaged.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mschoentgen Mickaël Schoentgen
                Reporter:
                mschoentgen Mickaël Schoentgen
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 6 hours
                  6h