** Description changed:

+ [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
+   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

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

Title:
  pentobi fails to startup in Ubuntu 19.04 beta

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to