Invalid qmlscene invocation -- invalid option -- 'I'

Bug #1338979 reported by Martin Pitt
This bug report is a duplicate of:  Bug #1298659: qmlscene reports invalid option -I. Edit Remove
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
notes-app
Confirmed
Undecided
Unassigned

Bug Description

I tried to run the autopilot tests of notes-app on current image 177, and this utterly failed. I suppose the reason is "qmlscene: invalid option -- 'I' "?

ERROR: notes_app.tests.test_delete.TestDelete.test_slide_to_delete_left(with touch)
----------------------------------------------------------------------
Application Log (com.ubuntu.notes_notes_1.4.269): {{{
libust[4648/4651]: Error: Error opening shm /lttng-ust-wait-5-32011 (in get_wait_shm() at lttng-ust-comm.c:886)
libust[4648/4651]: Error: Error opening shm /lttng-ust-wait-5-32011 (in get_wait_shm() at lttng-ust-comm.c:886)
/usr/lib/arm-linux-gnueabihf/qt5/bin/qmlscene: invalid option -- 'I'
Testability driver loaded. Wire protocol version is "1.4".
[...]
autopilot.exceptions.ProcessSearchError: Search criteria (object path = '/com/canonical/Autopilot/Introspection', pid = 5951) returned no results

I can reproduce this manually on the phone. It seems the CMakeList has a rather bogus command:

$ grep Exec .cache/ubuntu-app-launch/desktop/com.ubuntu.notes_notes_1.4.269.desktop
Exec=qmlscene $@ -I ./usr/lib/arm-linux-gnueabihf/qt5/qml NotesApp.qml

The -I certainly shouldn't be hardcoded, and other apps just do something like this:

$ grep Exec .cache/ubuntu-app-launch/desktop/com.ubuntu.sudoku_sudoku_1.1.207.desktop
Exec=qmlscene -qt5 ./sudoku-app.qml

Related branches

Revision history for this message
Nicholas Skaggs (nskaggs) wrote :

Notes app is using older methods for setting up and launching the app. We can migrate this to current best practices; however, I'm not sure notes app is still intending to ship on devices?

Changed in notes-app:
status: New → Confirmed
Revision history for this message
Nicholas Skaggs (nskaggs) wrote :

I'll propose an MP since it's still running on ci dashboard. . .

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.