Skip to content

(Qml): Qml Project crashes when adding activities as requirement

Summary

When we try to add activities with qml project, it crashes because we create a qml application and a qt application.

Steps to reproduce

Add the bundle activities inside a qml project

Dev environment

  • OS: Linux, Windows, MacOS
  • CMake version: 3.13.4
  • Compiler: gcc7
  • Build type: debug
  • Commit: 18.1.0

What is the current bug behavior?

It crashes saying there is two application

What is the expected correct behavior?

Launches the qml application without error

Relevant logs and/or screenshots

ASSERT failure in QCoreApplication: "there should be only one application object", file /home/sight/.conan/data/qt/5.12.2/sight/stable/build/e8080d3d2ff5777b2b561f000db2b6e4fd41ebb1/qt5/qtbase/src/corelib/kernel/qcoreapplication.cpp, line 791

Possible fixes

Create a new bundle with SCreateActivity in another bundle