[Bug 1824560] Re: pentobi fails to startup in Ubuntu 19.04 beta

Mathew Hodson mathew.hodson at gmail.com
Fri Apr 26 01:05:51 UTC 2019


** Changed in: pentobi (Ubuntu Disco)
   Importance: Undecided => High

** Changed in: pentobi (Ubuntu Eoan)
   Importance: Undecided => High

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1824560

Title:
  pentobi fails to startup in Ubuntu 19.04 beta

Status in pentobi package in Ubuntu:
  Fix Released
Status in pentobi source package in Disco:
  Confirmed
Status in pentobi source package in Eoan:
  Fix Released

Bug description:
  [Impact]

  The application fails to start up.

  This is because the executable contains precompiled QML code that will
  only work with a certain version of Qt. As a package maintainer, I was
  unaware of the dependency and did not know a rebuild after any Qt
  update would be necessary.

  The fix is to disable QML precompilation.

  [Test Case]

  1. Open a console window.
  2. Start the application by giving the command `pentobi`.
  3. The game window should open.

  [Regression Potential]

  The patch changes how QML files are embedded in the executable:
  precompiled code to source form. If something were wrong with e.g. qrc
  paths (Qt Resource Compiler) in the patch, the game window would still
  not be displayed. However, that is not any worse that the current
  state of the package.

  
  [Original Report by Upstream Maintainer enz]

  I just installed the pentobi package in Ubuntu 19.04 beta and it fails
  to start up with the error message

    QQmlApplicationEngine failed to load component
    qrc:/qml/Main.qml:-1 File was compiled ahead of time with an incompatible
    version of Qt and the original file cannot be found. Please recompile

  I'm not sure if this is a temporary problem or if something needs to
  be fixed in the packaging. Pentobi 16.2 uses the QtQuickCompiler,
  which requires that the QML files are precompiled with the exact same
  version of Qt as is used at runtime, so pentobi needs to be recompiled
  whenever the Qt libraries are changed.

  If using the QtQuickCompiler is inconvenient for packaging, it can be
  disabled by replacing "qtquick_compiler_add_resources" by
  "qt5_add_resources" in src/pentobi/CMakeLists.txt

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pentobi/+bug/1824560/+subscriptions



More information about the Ubuntu-sponsors mailing list