[qtcomp] Random crash in Mir input when running AP tests: [terminate called after throwing an instance of '...' what(): assign: File exists] when constructing a mir::AsioMainLoop::FDHandler
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mir |
Fix Released
|
Critical
|
Andreas Pokorny | ||
0.5 |
Fix Released
|
Critical
|
Andreas Pokorny | ||
mir (Ubuntu) |
Fix Released
|
Critical
|
Unassigned | ||
qtmir (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Steps to repro:
1. Install QtCompositor - right now from silo6, see https:/
2. Use https:/
phablet-config edges-intro --disable
adb shell powerd-cli display on bright & #keeps the display on
3. Run an AP test. This one tends to expose the bug easily:
phablet-
The crash we get has this stack trace:
http://
"terminate called after throwing an instance of
'boost:
what(): assign: File exists"
Which points onto the constructor of boost::
Related branches
- PS Jenkins bot (community): Approve (continuous-integration)
- Alexandros Frantzis (community): Approve
- Daniel van Vugt: Approve
- Alberto Aguirre (community): Approve
- Alan Griffiths: Abstain
- Kevin DuBois (community): Approve
-
Diff: 153 lines (+41/-16)3 files modifiedsrc/server/input/android/input_sender.cpp (+15/-9)
src/server/input/android/input_sender.h (+4/-2)
tests/unit-tests/input/android/test_android_input_sender.cpp (+22/-5)
- PS Jenkins bot (community): Needs Fixing (continuous-integration)
- Kevin DuBois (community): Approve
- Gerry Boland (community): Approve
-
Diff: 153 lines (+41/-16)3 files modifiedsrc/server/input/android/input_sender.cpp (+15/-9)
src/server/input/android/input_sender.h (+4/-2)
tests/unit-tests/input/android/test_android_input_sender.cpp (+22/-5)
summary: |
- Random crash in Mir input when running AP tests + [qtcomp] Random crash in Mir input when running AP tests |
tags: | added: qtcomp |
description: | updated |
summary: |
- [qtcomp] Random crash in Mir input when running AP tests + [qtcomp] Random crash in Mir input when running AP tests: [terminate + called after throwing an instance of '...' what(): assign: File exists] |
Changed in mir: | |
importance: | Undecided → Critical |
milestone: | none → 0.6.0 |
summary: |
[qtcomp] Random crash in Mir input when running AP tests: [terminate called after throwing an instance of '...' what(): assign: File exists] + when constructing a mir::AsioMainLoop::FDHandler |
Changed in mir: | |
assignee: | nobody → Andreas Pokorny (andreas-pokorny) |
status: | New → In Progress |
Changed in qtmir: | |
status: | New → Invalid |
Changed in mir (Ubuntu): | |
importance: | Undecided → Critical |
status: | New → Triaged |
Changed in mir: | |
status: | Fix Committed → Fix Released |
affects: | qtmir → qtmir (Ubuntu) |
The crash happens because the autopilot test sends key events very fast, one right next to the other. If we change it so that it waits a bit before generating the next key event, there's no crash:
--- /usr/lib/ python2. 7/dist- packages/ ubuntu_ html5_ui_ toolkit/ tests/_ _init__ .py 2014-07-23 13:16:36.000000000 +0000 python2. 7/dist- packages/ ubuntu_ html5_ui_ toolkit/ tests/_ _init__ modified. py 2014-07-23 13:17:28.000000000 +0000 addressbar( )
self. assertThat( addressbar. activeFocus, Eventually( Equals( True)))
+++ /usr/lib/
@@ -187,7 +187,7 @@
addressbar = self.get_
- self.keyboard. type(url, 0.001) type(url, 0.2)
+ self.keyboard.
With that patch there's no crash but the typing is too slow (to the tests take way longer to complete). Some inbetween value should still work. Haven't tried any other though.