[android] std::exception::what: error during hwc set() when unplugging external monitor
Bug #1498550 reported by
Alberto Aguirre
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mir |
Fix Released
|
High
|
Alberto Aguirre | ||
mir (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Occasionally when unplugging an external monitor an exception is thrown during hwc set().
"
ERROR: Dynamic exception type: St13runtime_error
std::exception:
"
Related branches
lp://qastaging/~albaguirre/mir/minimize-1498550
- Alan Griffiths: Approve
- PS Jenkins bot (community): Approve (continuous-integration)
-
Diff: 220 lines (+64/-27)7 files modifiedsrc/platforms/android/server/display.cpp (+0/-1)
src/platforms/android/server/display_disconnected_exception.h (+41/-0)
src/platforms/android/server/display_group.cpp (+4/-13)
src/platforms/android/server/display_group.h (+0/-2)
src/platforms/android/server/real_hwc_wrapper.cpp (+14/-1)
src/platforms/android/server/real_hwc_wrapper.h (+2/-0)
tests/unit-tests/graphics/android/test_display_group.cpp (+3/-10)
lp://qastaging/~albaguirre/mir/fix-1498550
- PS Jenkins bot (community): Approve (continuous-integration)
- Kevin DuBois (community): Approve
- Alan Griffiths: Approve
- Alexandros Frantzis (community): Approve
-
Diff: 219 lines (+74/-24)6 files modifiedsrc/platforms/android/server/display.cpp (+2/-1)
src/platforms/android/server/display_device_exceptions.h (+17/-10)
src/platforms/android/server/display_group.cpp (+21/-4)
src/platforms/android/server/display_group.h (+7/-1)
src/platforms/android/server/real_hwc_wrapper.cpp (+10/-6)
tests/unit-tests/graphics/android/test_display_group.cpp (+17/-2)
description: | updated |
tags: | added: android multimonitor |
Changed in mir: | |
assignee: | nobody → Alberto Aguirre (albaguirre) |
status: | New → In Progress |
Changed in mir: | |
status: | Fix Committed → In Progress |
Changed in mir: | |
status: | In Progress → Fix Committed |
Changed in mir: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
This is possibly a dup of https:/ /bugs.launchpad .net/mir/ +bug/1474891 but with mir 0.15.
The fix in lp:1474891 is not sufficient as the android platform may be already in the middle of waiting for HWC->set call with a list that includes the external display at the time the external display is unplugged. In which case, set can return -1, but before HWC sends the hotplug event so the exception is thrown.