Two underscores in .desktop file name causes assumption that this is an appId and app is rejected.
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | Ubuntu Application Launcher |
Fix Released
|
Critical
|
Unassigned | |
| | Ubuntu UI Toolkit |
Fix Released
|
Critical
|
Christian Dywan | |
| | unity-mir |
Undecided
|
Unassigned | ||
| | qtmir (Ubuntu) |
Undecided
|
Unassigned | ||
| | qtubuntu (Ubuntu) |
Undecided
|
Unassigned | ||
| | unity8 (Ubuntu) |
Undecided
|
Unassigned | ||
Bug Description
On the daily image testing for mako, image#78, one of the lifecycle management tests in unity failed because of a qmlscene crash (see attachment).
21:15:34.162 INFO _launcher:116 - Attempting to launch application 'tmp991xm1vf' with URIs '' via upstart-app-launch
21:15:36.367 INFO _launcher:116 - Attempting to launch application 'tmpbeb_op_3' with URIs '' via upstart-app-launch
21:16:08.689 ERROR _launcher:202 - Timed out waiting for Application with app_id 'tmpbeb_op_3' to stop.
http://
Related branches
- PS Jenkins bot: Needs Fixing (continuous-integration) on 2014-07-22
- Leo Arias (community): Approve on 2014-07-22
- Zoltan Balogh (community): Approve on 2014-07-21
-
Diff: 49 lines (+16/-4)2 files modifiedtests/autopilot/ubuntuuitoolkit/fixture_setup.py (+12/-4)
tests/autopilot/ubuntuuitoolkit/tests/__init__.py (+4/-0)
| Leo Arias (elopio) wrote : | #1 |
| no longer affects: | unity8 |
| Leo Arias (elopio) wrote : | #3 |
Marking as incomplete because the crash file lacks information. Andy is hacking the phablet-test-run script to run whoopsie-
| Changed in qtdeclarative-opensource-src (Ubuntu): | |
| status: | New → Incomplete |
| Leo Arias (elopio) wrote : | #4 |
This has happened again on image #124.
http://
Attached is the crash.
The application log only says:
QUbuntu: Could not create application instance
| Timo Jyrinki (timo-jyrinki) wrote : | #5 |
Retraced at bug #1340571 - leans towards qtubuntu.
| affects: | qtdeclarative-opensource-src (Ubuntu) → qtubuntu (Ubuntu) |
| Leo Arias (elopio) wrote : | #6 |
Thanks Timo. I'm seeing qmlscene crashes more often this week, so it would be nice if somebody can investigate.
| Tim Peeters (tpeeters) wrote : | #7 |
We get a lot of failures in autolanding lately, with errors like:
File "/usr/lib/
raise NoSuchProcess(pid, None, msg)
NoSuchProcess: no process found with pid 4908
Is it caused by this bug?
| Tim Peeters (tpeeters) wrote : | #8 |
We have almost all of our MRs failing on autolanding with NoSuchProcess errors so I confirmed the bug and changed the importance to Critical. If someone more knowledgable about this issue thinks it is another bug, please let me know (timp/t1mp on irc).
| Changed in ubuntu-app-launch: | |
| importance: | Undecided → Critical |
| Changed in qtubuntu (Ubuntu): | |
| status: | Incomplete → Confirmed |
| Changed in ubuntu-app-launch: | |
| status: | Invalid → Confirmed |
| Changed in ubuntu-ui-toolkit: | |
| importance: | Undecided → Critical |
| tags: | added: lt-category-noimpact lt-date-20140717 lt-prio-high |
| tags: | added: lt-blocker |
| Alexandros Frantzis (afrantzis) wrote : | #9 |
The crash as retraced in https:/
| Leo Arias (elopio) wrote : | #10 |
| Leo Arias (elopio) wrote : | #11 |
To reproduce the crash on mako:
$ phablet-shell
$ sudo mount -o remount,rw /
$ sudo apt-get install ubuntu-
$ wget https:/
$ while autopilot3 run test; do :; done
I've just run it on a freshly flashed mako with devel-proposed, and it failed in 3 minutes.
| Gerry Boland (gerboland) wrote : | #12 |
The output of unity8.log would help, as it would show if unity8 rejected the client connection (and thus causing client to crash) or not. That's usually the reason for this error.
| Christian Dywan (kalikiana) wrote : | #13 |
This one crashed like that, but I can't seem to get the logs out of it https:/
| Michał Sawicz (saviq) wrote : | #14 |
After running the test for 15 mins or so I got the log, attached.
| Michał Sawicz (saviq) wrote : | #15 |
OK I think I found what happens here:
WARNING: long App ID encountered: tmpu_5uhy_8
** (process:2551): WARNING **: Unable to get manifest for 'tmpu' package: tmpu does not exist in any database for user phablet
** (process:2551): CRITICAL **: manifest_version: assertion '*manifest != NULL' failed
** (process:2551): CRITICAL **: ubuntu_
ApplicationManager REJECTED connection from app with pid 13154 as desktop_file_hint file not found
The random tmp application name sometimes includes underscores, and at some point it randomizes to two underscores, at which point it's assumed that this is an app id and things go haywire.
Simple solution: stop the tmp app name from having underscores.
Needs investigation: can we be more robust in unity-mir/unity8 here?
| Changed in qtubuntu (Ubuntu): | |
| status: | Confirmed → Invalid |
| summary: |
- qmlscene crashed while running test_can_launch_multiple_applications + Two underscores in .desktop file name causes assumption that this is an + appId and app is rejected. |
| Michał Sawicz (saviq) wrote : | #16 |
The temp file is created in:
http://
Unfortunately NamedTemporaryFile does not let you to tell it not to use underscores... We should be able to rename it after creation, though. It's not a great solution unfortunately.
We still need to verify what caused this to start happening.
| Michał Sawicz (saviq) wrote : | #17 |
| Michał Sawicz (saviq) wrote : | #18 |
To reproduce with the two attached files:
$ qmlscene foo_bar_baz.qml --desktop_
| Changed in ubuntu-ui-toolkit: | |
| assignee: | nobody → Christian Dywan (kalikiana) |
| Leo Arias (elopio) wrote : | #19 |
Wow, intersting. Thanks for the investigation saviq.
Christian's branch is looking good as a workaround.
| Alejandro J. Cura (alecu) wrote : | #20 |
A simpler solution might be to remove _ from the list of chars that tempfile uses to create filenames, with something like:
tempfile.
It seems to work ok: http://
| no longer affects: | unity8 |
| Ted Gould (ted) wrote : | #21 |
We're using whether the click hook created a link for us to determine whether it's a click package today, so I think this is fixed.
| Changed in ubuntu-app-launch: | |
| status: | Confirmed → Fix Released |
| Changed in ubuntu-ui-toolkit: | |
| status: | New → Fix Released |
| Changed in ubuntu-ui-toolkit: | |
| status: | Fix Released → Fix Committed |
| Changed in ubuntu-ui-toolkit: | |
| status: | Fix Committed → Fix Released |
| Changed in unity8 (Ubuntu): | |
| status: | New → Invalid |
| Changed in unity-mir: | |
| status: | New → Won't Fix |
| Launchpad Janitor (janitor) wrote : | #22 |
Status changed to 'Confirmed' because the bug affects multiple users.
| affects: | qtmir → qtmir (Ubuntu) |
| Changed in qtmir (Ubuntu): | |
| status: | New → Confirmed |
| Changed in qtmir (Ubuntu): | |
| status: | New → Confirmed |


Doesn't look like something UAL would be effecting. Seems to be a crash in the QML Scene binary itself.