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

Linux: WebEngine is not deployable

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P1: Critical
    • None
    • 5.10.1
    • WebEngine
    • Ubuntu 16.04

    Description

      Deployed application crashes as soon as started. I tried following approaches to deploy:

      1)

      • copying all Qt libraries next to application
      • removed Qt installation
      • changed rpaths of application executable, QtWebEngineProcess and platforms/libqxcb.so to point to the same directory
      • added qt.conf that contains:
        [Paths]
        Prefix = .
        

      2)

      • as above but without qt.conf
      • removed qt_prfxpath= from libQt5Core.so

      3)

      • both cases, qt.conf is present and modified libQt5Core.so

      4)

      • QTWEBENGINEPROCESS_PATH pointing to the QtWebEngine executable (see at the bottom)

      There is following output (#2):

      QML debugging is enabled. Only use this in a safe environment.
      Qt WebEngine ICU data not found at //resources. Trying parent directory...
      Qt WebEngine ICU data not found at /. Trying application directory...
      Installed Qt WebEngine locales directory not found at location /translations/qtwebengine_locales. Trying application directory...
      [0312/193841.007255:WARNING:stack_trace_posix.cc(648)] Failed to open file: /tmp/.gldUbewc (deleted)
        Error: No such file or directory
      Qt WebEngine resources not found at //resources. Trying parent directory...
      Qt WebEngine resources not found at /. Trying application directory...
      Qt WebEngine ICU data not found at //resources. Trying parent directory...
      Qt WebEngine ICU data not found at /. Trying application directory...
      Qt WebEngine ICU data not found at . Trying fallback directory... The application MAY NOT work.
      Path override failed for key base::DIR_QT_LIBRARY_DATA and path '/home/jopoikel/.QtWebEngineProcess'
      Installed Qt WebEngine locales directory not found at location /translations/qtwebengine_locales. Trying application directory...
      Qt WebEngine locales directory not found at location /qtwebengine_locales. Trying fallback directory... Translations MAY NOT not be correct.
      Path override failed for key ui::DIR_LOCALES and path '/home/jopoikel/.QtWebEngineProcess'
      Qt WebEngine resources not found at //resources. Trying parent directory...
      Qt WebEngine resources not found at /. Trying application directory...
      Qt WebEngine resources not found at . Trying fallback directory... The application MAY NOT work.
      [0312/193841.182338:ERROR:resource_bundle.cc(811)] Failed to load /home/jopoikel/.QtWebEngineProcess/qtwebengine_resources.pak
      Some features may not be available.
      [0312/193841.182421:ERROR:resource_bundle.cc(811)] Failed to load /home/jopoikel/.QtWebEngineProcess/qtwebengine_resources_100p.pak
      Some features may not be available.
      [0312/193841.182458:ERROR:resource_bundle.cc(811)] Failed to load /home/jopoikel/.QtWebEngineProcess/qtwebengine_resources_200p.pak
      Some features may not be available.
      [0312/193841.183246:WARNING:resource_bundle_qt.cpp(115)] locale_file_path.empty() for locale 
      [1:1:0312/193841.679304:FATAL:blink_platform_impl.cc(604)] Check failed: compression::GzipUncompress(resource.as_string(), &uncompressed). 
      #0 0x7fa761ed50a5 <unknown>
      #1 0x7fa761eeaeca <unknown>
      #2 0x7fa762f492e0 <unknown>
      #3 0x7fa764848bbe <unknown>
      #4 0x7fa7635189ed <unknown>
      #5 0x7fa764a520cd <unknown>
      #6 0x7fa764a5228e <unknown>
      #7 0x7fa764b2463e <unknown>
      #8 0x7fa764b2470d <unknown>
      #9 0x7fa764bea8c9 <unknown>
      #10 0x7fa764b5e6b5 <unknown>
      #11 0x7fa764b81589 <unknown>
      #12 0x7fa76317bc16 <unknown>
      #13 0x7fa76317c094 <unknown>
      #14 0x7fa76317c1cd <unknown>
      #15 0x7fa76358b16e <unknown>
      #16 0x7fa763bf4823 <unknown>
      #17 0x7fa763bf4bb3 <unknown>
      #18 0x7fa763bf4df8 <unknown>
      #19 0x7fa763cc1743 <unknown>
      #20 0x7fa763cd0694 <unknown>
      #21 0x7fa763cc33c0 <unknown>
      #22 0x7fa763cd74ba <unknown>
      #23 0x7fa763cc97b1 <unknown>
      #24 0x7fa764184d47 <unknown>
      #25 0x7fa762f4d69c <unknown>
      #26 0x7fa7628988e6 <unknown>
      #27 0x7fa761f58319 <unknown>
      #28 0x7fa7630ac1b9 <unknown>
      #29 0x7fa7630acd65 <unknown>
      #30 0x7fa761f58319 <unknown>
      #31 0x7fa761ef1648 <unknown>
      #32 0x7fa761ef2d6f <unknown>
      #33 0x7fa761ef32c0 <unknown>
      #34 0x7fa761ef4169 <unknown>
      #35 0x7fa761f11e5a <unknown>
      #36 0x7fa763ce53db <unknown>
      #37 0x7fa761e9fbc7 <unknown>
      #38 0x7fa761ea0079 <unknown>
      #39 0x7fa762dedf46 <unknown>
      #40 0x7fa761e9ed81 <unknown>
      #41 0x7fa760c62c1c QtWebEngine::processMain()
      #42 0x0000004009f3 <unknown>
      #43 0x7fa75cf51830 __libc_start_main
      #44 0x000000400a2f <unknown>
      
      Received signal 6
      #0 0x7fa761ed50a5 <unknown>
      #1 0x7fa760c16141 <unknown>
      #2 0x7fa761ed543d <unknown>
      #3 0x7fa75dbad390 <unknown>
      #4 0x7fa75cf66428 gsignal
      #5 0x7fa75cf6802a abort
      #6 0x7fa761ed4dc5 <unknown>
      #7 0x7fa761eeb1ed <unknown>
      #8 0x7fa762f492e0 <unknown>
      #9 0x7fa764848bbe <unknown>
      #10 0x7fa7635189ed <unknown>
      #11 0x7fa764a520cd <unknown>
      #12 0x7fa764a5228e <unknown>
      #13 0x7fa764b2463e <unknown>
      #14 0x7fa764b2470d <unknown>
      #15 0x7fa764bea8c9 <unknown>
      #16 0x7fa764b5e6b5 <unknown>
      #17 0x7fa764b81589 <unknown>
      #18 0x7fa76317bc16 <unknown>
      #19 0x7fa76317c094 <unknown>
      #20 0x7fa76317c1cd <unknown>
      #21 0x7fa76358b16e <unknown>
      #22 0x7fa763bf4823 <unknown>
      #23 0x7fa763bf4bb3 <unknown>
      #24 0x7fa763bf4df8 <unknown>
      #25 0x7fa763cc1743 <unknown>
      #26 0x7fa763cd0694 <unknown>
      #27 0x7fa763cc33c0 <unknown>
      #28 0x7fa763cd74ba <unknown>
      #29 0x7fa763cc97b1 <unknown>
      #30 0x7fa764184d47 <unknown>
      #31 0x7fa762f4d69c <unknown>
      #32 0x7fa7628988e6 <unknown>
      #33 0x7fa761f58319 <unknown>
      #34 0x7fa7630ac1b9 <unknown>
      #35 0x7fa7630acd65 <unknown>
      #36 0x7fa761f58319 <unknown>
      #37 0x7fa761ef1648 <unknown>
      #38 0x7fa761ef2d6f <unknown>
      #39 0x7fa761ef32c0 <unknown>
      #40 0x7fa761ef4169 <unknown>
      #41 0x7fa761f11e5a <unknown>
      #42 0x7fa763ce53db <unknown>
      #43 0x7fa761e9fbc7 <unknown>
      #44 0x7fa761ea0079 <unknown>
      #45 0x7fa762dedf46 <unknown>
      #46 0x7fa761e9ed81 <unknown>
      #47 0x7fa760c62c1c QtWebEngine::processMain()
      #48 0x0000004009f3 <unknown>
      #49 0x7fa75cf51830 __libc_start_main
      #50 0x000000400a2f <unknown>
        r8: 00007ffce16a0be0  r9: 00007fa766d15900 r10: 0000000000000008 r11: 0000000000000202
       r12: 00007ffce16a09b0 r13: 000000000000008b r14: 00007ffce16a0be0 r15: 00007ffce16a12b0
        di: 0000000000000001  si: 0000000000000001  bp: 00007fa75db9b140  bx: 00007ffce16a1060
        dx: 0000000000000006  ax: 0000000000000000  cx: 00007fa75cf66428  sp: 00007ffce16a0848
        ip: 00007fa75cf66428 efl: 0000000000000202 cgf: 0000000000000033 erf: 0000000000000000
       trp: 0000000000000000 msk: 0000000000000000 cr2: 0000000000000000
      [end of stack trace]
      Calling _exit(1). Core file will not be generated.
      

      The important part is "Could not find QtWebEngineProcess" message. This comes from QtWebEngineProcess itself as we can see from output of these commands:

      strace -e write,execve,access,stat -f -o log ./untitled
      grep QtWebEngineProcess log
      
      21018 access("/libexec/QtWebEngineProcess", F_OK) = -1 ENOENT (No such file or directory)
      21018 access("/home/jopoikel/work/tests/build-untitled-Desktop_Qt_5_10_1_GCC_64bit12-Debug/QtWebEngineProcess", F_OK) = 0
      21018 lstat("/home/jopoikel/work/tests/build-untitled-Desktop_Qt_5_10_1_GCC_64bit12-Debug/QtWebEngineProcess", {st_mode=S_IFREG|0775, st_size=10280, ...}) = 0
      21022 execve("/home/jopoikel/work/tests/build-untitled-Desktop_Qt_5_10_1_GCC_64bit12-Debug/QtWebEngineProcess", ["/home/jopoikel/work/tests/build-"..., "--type=zygote", "--lang=en-US"], [/* 74 vars */]) = 0
      21022 access("/home/jopoikel/work/tests/build-untitled-Desktop_Qt_5_10_1_GCC_64bit12-Debug/QtWebEngineProcess --type=zygote --lang=en-US", F_OK) = -1 ENOENT (No such file or directory)
      21022 access("/libexec/QtWebEngineProcess", F_OK) = -1 ENOENT (No such file or directory)
      21022 access("/QtWebEngineProcess", F_OK) = -1 ENOENT (No such file or directory)
      21022 write(2, "Could not find QtWebEngineProces"..., 34) = 34
      

      Paths indicate that QLibraryInfo/applicationDirPath() returns nothing.

      When starting the application with QTWEBENGINEPROCESS_PATH, it does start, but renders nothing and throws this (perhaps because of resources not found as the environment variable is not considered in there?):

      QML debugging is enabled. Only use this in a safe environment.
      Qt WebEngine ICU data not found at //resources. Trying parent directory...
      Qt WebEngine ICU data not found at /. Trying application directory...
      Installed Qt WebEngine locales directory not found at location /translations/qtwebengine_locales. Trying application directory...
      [0312/193841.007255:WARNING:stack_trace_posix.cc(648)] Failed to open file: /tmp/.gldUbewc (deleted)
        Error: No such file or directory
      Qt WebEngine resources not found at //resources. Trying parent directory...
      Qt WebEngine resources not found at /. Trying application directory...
      Qt WebEngine ICU data not found at //resources. Trying parent directory...
      Qt WebEngine ICU data not found at /. Trying application directory...
      Qt WebEngine ICU data not found at . Trying fallback directory... The application MAY NOT work.
      Path override failed for key base::DIR_QT_LIBRARY_DATA and path '/home/jopoikel/.QtWebEngineProcess'
      Installed Qt WebEngine locales directory not found at location /translations/qtwebengine_locales. Trying application directory...
      Qt WebEngine locales directory not found at location /qtwebengine_locales. Trying fallback directory... Translations MAY NOT not be correct.
      Path override failed for key ui::DIR_LOCALES and path '/home/jopoikel/.QtWebEngineProcess'
      Qt WebEngine resources not found at //resources. Trying parent directory...
      Qt WebEngine resources not found at /. Trying application directory...
      Qt WebEngine resources not found at . Trying fallback directory... The application MAY NOT work.
      [0312/193841.182338:ERROR:resource_bundle.cc(811)] Failed to load /home/jopoikel/.QtWebEngineProcess/qtwebengine_resources.pak
      Some features may not be available.
      [0312/193841.182421:ERROR:resource_bundle.cc(811)] Failed to load /home/jopoikel/.QtWebEngineProcess/qtwebengine_resources_100p.pak
      Some features may not be available.
      [0312/193841.182458:ERROR:resource_bundle.cc(811)] Failed to load /home/jopoikel/.QtWebEngineProcess/qtwebengine_resources_200p.pak
      Some features may not be available.
      [0312/193841.183246:WARNING:resource_bundle_qt.cpp(115)] locale_file_path.empty() for locale 
      [1:1:0312/193841.679304:FATAL:blink_platform_impl.cc(604)] Check failed: compression::GzipUncompress(resource.as_string(), &uncompressed). 
      #0 0x7fa761ed50a5 <unknown>
      #1 0x7fa761eeaeca <unknown>
      #2 0x7fa762f492e0 <unknown>
      #3 0x7fa764848bbe <unknown>
      #4 0x7fa7635189ed <unknown>
      #5 0x7fa764a520cd <unknown>
      #6 0x7fa764a5228e <unknown>
      #7 0x7fa764b2463e <unknown>
      #8 0x7fa764b2470d <unknown>
      #9 0x7fa764bea8c9 <unknown>
      #10 0x7fa764b5e6b5 <unknown>
      #11 0x7fa764b81589 <unknown>
      #12 0x7fa76317bc16 <unknown>
      #13 0x7fa76317c094 <unknown>
      #14 0x7fa76317c1cd <unknown>
      #15 0x7fa76358b16e <unknown>
      #16 0x7fa763bf4823 <unknown>
      #17 0x7fa763bf4bb3 <unknown>
      #18 0x7fa763bf4df8 <unknown>
      #19 0x7fa763cc1743 <unknown>
      #20 0x7fa763cd0694 <unknown>
      #21 0x7fa763cc33c0 <unknown>
      #22 0x7fa763cd74ba <unknown>
      #23 0x7fa763cc97b1 <unknown>
      #24 0x7fa764184d47 <unknown>
      #25 0x7fa762f4d69c <unknown>
      #26 0x7fa7628988e6 <unknown>
      #27 0x7fa761f58319 <unknown>
      #28 0x7fa7630ac1b9 <unknown>
      #29 0x7fa7630acd65 <unknown>
      #30 0x7fa761f58319 <unknown>
      #31 0x7fa761ef1648 <unknown>
      #32 0x7fa761ef2d6f <unknown>
      #33 0x7fa761ef32c0 <unknown>
      #34 0x7fa761ef4169 <unknown>
      #35 0x7fa761f11e5a <unknown>
      #36 0x7fa763ce53db <unknown>
      #37 0x7fa761e9fbc7 <unknown>
      #38 0x7fa761ea0079 <unknown>
      #39 0x7fa762dedf46 <unknown>
      #40 0x7fa761e9ed81 <unknown>
      #41 0x7fa760c62c1c QtWebEngine::processMain()
      #42 0x0000004009f3 <unknown>
      #43 0x7fa75cf51830 __libc_start_main
      #44 0x000000400a2f <unknown>
      
      Received signal 6
      #0 0x7fa761ed50a5 <unknown>
      #1 0x7fa760c16141 <unknown>
      #2 0x7fa761ed543d <unknown>
      #3 0x7fa75dbad390 <unknown>
      #4 0x7fa75cf66428 gsignal
      #5 0x7fa75cf6802a abort
      #6 0x7fa761ed4dc5 <unknown>
      #7 0x7fa761eeb1ed <unknown>
      #8 0x7fa762f492e0 <unknown>
      #9 0x7fa764848bbe <unknown>
      #10 0x7fa7635189ed <unknown>
      #11 0x7fa764a520cd <unknown>
      #12 0x7fa764a5228e <unknown>
      #13 0x7fa764b2463e <unknown>
      #14 0x7fa764b2470d <unknown>
      #15 0x7fa764bea8c9 <unknown>
      #16 0x7fa764b5e6b5 <unknown>
      #17 0x7fa764b81589 <unknown>
      #18 0x7fa76317bc16 <unknown>
      #19 0x7fa76317c094 <unknown>
      #20 0x7fa76317c1cd <unknown>
      #21 0x7fa76358b16e <unknown>
      #22 0x7fa763bf4823 <unknown>
      #23 0x7fa763bf4bb3 <unknown>
      #24 0x7fa763bf4df8 <unknown>
      #25 0x7fa763cc1743 <unknown>
      #26 0x7fa763cd0694 <unknown>
      #27 0x7fa763cc33c0 <unknown>
      #28 0x7fa763cd74ba <unknown>
      #29 0x7fa763cc97b1 <unknown>
      #30 0x7fa764184d47 <unknown>
      #31 0x7fa762f4d69c <unknown>
      #32 0x7fa7628988e6 <unknown>
      #33 0x7fa761f58319 <unknown>
      #34 0x7fa7630ac1b9 <unknown>
      #35 0x7fa7630acd65 <unknown>
      #36 0x7fa761f58319 <unknown>
      #37 0x7fa761ef1648 <unknown>
      #38 0x7fa761ef2d6f <unknown>
      #39 0x7fa761ef32c0 <unknown>
      #40 0x7fa761ef4169 <unknown>
      #41 0x7fa761f11e5a <unknown>
      #42 0x7fa763ce53db <unknown>
      #43 0x7fa761e9fbc7 <unknown>
      #44 0x7fa761ea0079 <unknown>
      #45 0x7fa762dedf46 <unknown>
      #46 0x7fa761e9ed81 <unknown>
      #47 0x7fa760c62c1c QtWebEngine::processMain()
      #48 0x0000004009f3 <unknown>
      #49 0x7fa75cf51830 __libc_start_main
      #50 0x000000400a2f <unknown>
        r8: 00007ffce16a0be0  r9: 00007fa766d15900 r10: 0000000000000008 r11: 0000000000000202
       r12: 00007ffce16a09b0 r13: 000000000000008b r14: 00007ffce16a0be0 r15: 00007ffce16a12b0
        di: 0000000000000001  si: 0000000000000001  bp: 00007fa75db9b140  bx: 00007ffce16a1060
        dx: 0000000000000006  ax: 0000000000000000  cx: 00007fa75cf66428  sp: 00007ffce16a0848
        ip: 00007fa75cf66428 efl: 0000000000000202 cgf: 0000000000000033 erf: 0000000000000000
       trp: 0000000000000000 msk: 0000000000000000 cr2: 0000000000000000
      [end of stack trace]
      Calling _exit(1). Core file will not be generated.
      

      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
              poikelin Joni Poikelin
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes