Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. QtWebEngine app cannot be started in Docker with Windows Servercore base image.
Forum Updated to NodeBB v4.3 + New Features

QtWebEngine app cannot be started in Docker with Windows Servercore base image.

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
3 Posts 1 Posters 356 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MetinCan
    wrote on last edited by MetinCan
    #1

    I have a Docker image based on Windows Server Core (mcr.microsoft.com/dotnet/framework/sdk:4.8-windowsservercore-ltsc2019). Additionally, the 2019 redistributable and directx_Jun2010_redist.exe is also installed. My Qt UnitTest app runs on this image without integrated QtWebengine but with QtGui and QtCore. Now I want to run a Qt UnitTest app with integrated QtWebengineWidgets and Core. For this, I have also copied additional dependencies such as the resources and translations folder, as well as QWebengineProcess.exe into the image. Basically, all dependencies that windeployqt found are in a separate folder. Additionally, I have also copied the entire Qt installation folder into a separate directory. So I have three directories:

    UnitTest-App
    platform
    Qt
    Following variables are set in dockerfile:
    ENV QTWEBENGINE_CHROMIUM_FLAGS="--no-sandbox --disable-gpu --disable-software-rasterizer --disable-accelerated-2d-canvas --disable-accelerated-video-decode --disable-accelerated-video-encode --disable-threaded-compositing --single-process --enable-logging --v=1 --enable-logging=stderr --v=1"
    ENV QTWEBENGINE_DISABLE_SANDBOX=1

    I add the directories one by one to the PATH variable after starting the container and try to start the app after each addition. The app without QWebengine runs. However, unfortunately, it does not run with it. I also receive no feedback from the app, as if there might still be missing dependencies. In the container, I also ran windeployqt again, it ran without errors, and still, the app cannot be started. I request support. Thank you.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      MetinCan
      wrote on last edited by MetinCan
      #2

      Qr 5.15.17 is being used

      1 Reply Last reply
      0
      • M Offline
        M Offline
        MetinCan
        wrote on last edited by
        #3

        Okay, I have now built a minimal QtWebengineCore and QtCore app. This also does not run, and I receive no feedback when I call it from the console. However, the environment is suitable for a large QtGui app.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved