Mir server seems to spin at 100% and steals focus from everything until the server shutdown
Bug #1625401 reported by
Brandon Schaefer
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mir |
Fix Released
|
High
|
Alan Griffiths | ||
0.24 |
Fix Released
|
High
|
Alan Griffiths | ||
MirAL |
Invalid
|
High
|
Alan Griffiths | ||
mir (Ubuntu) |
Fix Released
|
High
|
Unassigned |
Bug Description
Start a Mir server (doesn't have to be miral-shell, but we'll use that example) with gnome-terminal:
$ miral-shell --startup gnome-terminal
In the terminal start and detach Xmir:
$ Xmir -rootless :1&
Close the terminal.
When I do hit this, unable to do anything key focus wise. (I can open a terminal ctrl+alt+t but i cant type into, mouse events work fine)
Related branches
lp://qastaging/~alan-griffiths/mir/fix-1625401
- Mir CI Bot: Approve (continuous-integration)
- Alexandros Frantzis (community): Approve
- Daniel van Vugt: Approve
-
Diff: 66 lines (+29/-3)2 files modifiedsrc/server/shell/abstract_shell.cpp (+3/-1)
tests/unit-tests/scene/test_abstract_shell.cpp (+26/-2)
description: | updated |
description: | updated |
summary: |
- Miral on X seems to spin at 100% and steals focus from everything until - the server shutdown + Miral seems to spin at 100% and steals focus from everything until the + server shutdown |
Changed in miral: | |
importance: | Undecided → Critical |
assignee: | nobody → Alan Griffiths (alan-griffiths) |
Changed in mir: | |
importance: | Critical → High |
status: | Confirmed → In Progress |
Changed in miral: | |
importance: | Critical → High |
description: | updated |
Changed in miral: | |
status: | Confirmed → Invalid |
summary: |
- Miral seems to spin at 100% and steals focus from everything until the - server shutdown + Mir server seems to spin at 100% and steals focus from everything until + the server shutdown |
Changed in mir: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
I've not seen this but... the only active thread is deep in Mir code:
Thread 4 (Thread 0x7ffbca8b1700 (LWP 4472)): std::shared_ ptr<mir: :scene: :Session> , std::allocator< std::shared_ ptr<mir: :scene: :Session> > >::begin (this=0x55bdec7 b03a8) at /usr/include/ c++/6/bits/ stl_vector. h:558 :DefaultSession Container: :successor_ of (this=0x55bdec7 b03a0, session= std::shared_ ptr (count 3, weak 4) 0x7ffbb4000b30) /src/trunk- pure-mir/ src/server/ scene/default_ session_ container. cpp:69 :SessionManager ::successor_ of (this=0x55bdec7 b11a0, session= std::shared_ ptr (count 3, weak 4) 0x7ffbb4000b30) at /home/bschaefer /src/trunk- pure-mir/ src/server/ scene/session_ manager. cpp:149 :AbstractShell: :focus_ next_session (this=0x55bdec7 b1260) at /home/bschaefer /src/trunk- pure-mir/ src/server/ shell/abstract_ shell.cpp: 244
#0 0x00007ffbd2ff65c3 in std::vector<
#1 0x00007ffbd2ff60b6 in mir::scene:
at /home/bschaefer
#2 0x00007ffbd3005492 in mir::scene:
#3 0x00007ffbd30fa2e7 in mir::shell:
But I don't see any reason for this to be in an infinite loop. My only thought is that *if* this is an "invalid session" this *might* throw an exception and provoke odd behavior. Next time you see it could you set a breakpoint and step through this code?