Unity8 crashed right clicking on vlc [terminate called after throwing an instance of 'std::out_of_range' what(): map::at]

Bug #1672012 reported by dinamic
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Canonical System Image
Invalid
High
Stephen M. Webb
Mir
Invalid
High
Unassigned
0.26
Invalid
High
Unassigned
MirAL
Invalid
High
Unassigned
mir (Ubuntu)
Invalid
High
Unassigned
miral (Ubuntu)
Invalid
High
Unassigned
qtmir (Ubuntu)
Confirmed
High
Unassigned
unity8 (Ubuntu)
Confirmed
High
Unassigned

Bug Description

ubuntu 17.04 unity8

install vlc, launch it from app drawer or launcher
try to use the menu, the menu shows for a split second and closes
try to right click on vlc, here it just crashes/restarts unity8

Revision history for this message
dinamic (dinamic6661) wrote :
Revision history for this message
dinamic (dinamic6661) wrote :

from unity8.log (it's pretty hard to read the log :( too much debug spam)

[2017-03-11:11:56:48.152] qtmir.surfaces: MirSurface[0x55ab6bf156b0,"vlc"]::setRequestedPosition(QPoint(199,194))
[2017-03-11:11:56:48.152] qtmir.surfaces: MirSurface[0x55ab6bf156b0,"vlc"]::requestState(restored)
terminate called after throwing an instance of 'std::out_of_range'
  what(): map::at
[2017-03-11:11:56:4

summary: - [Xmir] vlc menus don't work, right clicking on vlc crashes unity8
+ Unity8 crashed right clicking on vlc [terminate called after throwing an
+ instance of 'std::out_of_range' what(): map::at]
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Alan recently said this was either fixed already (bug 1656727) or not relevant to U8 (bug 1668466). See also older bug 1497128.

Given we have four known bugs for menu-related things crashing the server in 'what(): map::at', and two of them still open, I feel we've possibly still missed the root cause here... Perhaps see: https://bugs.launchpad.net/mir/+bug/1668466/comments/5

Changed in canonical-devices-system-image:
importance: Undecided → High
milestone: none → u8c-1
Changed in mir:
importance: Undecided → High
Changed in miral:
importance: Undecided → High
Changed in unity8 (Ubuntu):
importance: Undecided → High
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

dinamic: That "debug spam" has a fix on the way; bug 1664151.

Changed in mir:
milestone: none → 1.0.0
Changed in miral (Ubuntu):
importance: Undecided → High
Changed in mir (Ubuntu):
importance: Undecided → High
Changed in qtmir (Ubuntu):
importance: Undecided → High
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in mir (Ubuntu):
status: New → Confirmed
Changed in miral (Ubuntu):
status: New → Confirmed
Changed in qtmir (Ubuntu):
status: New → Confirmed
Changed in unity8 (Ubuntu):
status: New → Confirmed
Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

Another /possible/ cause of "'std::out_of_range' what(): map::at]" is bug 1667645. That would imply that vlc is crashing and the server dies in closing the session.

Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

It would be good to get a log with MIR_SERVER_WINDOW_MANAGEMENT_TRACE=on as that ought to log the operation that propagates the exception.

Investigating this with miral-app: the server doesn't crash and nor does the client.

Which is suggestive of a QtMir issue. However, the server fails to shut down after this experiment which clearly can't be QtMir.

Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

MIR_SERVER_WINDOW_MANAGEMENT_TRACE shows that miral-shell doesn't provoke "'std::out_of_range' what(): map::at]" - but that doesn't explain the failure to exit. We either have two problems or two symptoms of one underlying issue.

Changed in miral:
status: New → Triaged
Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

Finally, mir_demo_server doesn't crash and exits successfully. (The menus don't display correctly, they disappear as soon as they get focus. But that's another issue.)

Changed in mir:
status: New → Incomplete
Changed in canonical-devices-system-image:
assignee: nobody → Stephen M. Webb (bregma)
Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

I've split off the miral-shell "hang on exit" as lp:1673038 since it looks entirely separate to the Unity8 crash.

Changed in miral:
status: Triaged → Incomplete
Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

It *is* also possible to crash miral-shell this way - after numerous runs where it "merely" hung on exit I have a crash.

Changed in miral:
status: Incomplete → Confirmed
Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

Correction to #14 - the miral-shell crash (and the hang on exit) seems to be entirely down to racy decorations code. Both the "tiling" window manage and miral-kiosk are entirely stable.

I *think* this is QtMir.

Changed in miral:
status: Confirmed → Incomplete
Revision history for this message
Daniel d'Andrada (dandrader) wrote :

Don't know what's different in my system but here vlc won't launch. I can launch firefox though which displays the same bug (menus immediately disappearing) but it doesn't cause unity8 to crash.

Changed in canonical-devices-system-image:
status: New → Confirmed
tags: added: unity8-desktop
Changed in canonical-devices-system-image:
milestone: u8c-1 → u8c-2
Changed in mir:
milestone: 0.27.0 → 0.28.0
Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

I can now see something like this with miral-shell:

[terminal 1]
$ miral-shell

[terminal 2]
$ miral-xrun vlc

Right click a few times in rapid succession.

Expect: nothing bad
Actual: [terminal 1] Aborted (core dumped)

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Is the client crashing? See bug 1668466

Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

Actually, I seem to be seeing a new bug: lp:1704949

Changed in miral:
status: Incomplete → Invalid
Changed in miral (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

We'll never see a fix in Unity8, so we'll never know if it also requires any change to Mir.

As we can not reproduce the problem in any current project: I declare this bug invalid.

Changed in mir:
status: Incomplete → Invalid
Changed in mir (Ubuntu):
status: Confirmed → Invalid
Changed in canonical-devices-system-image:
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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