Server::override_the_coordinate_translator() cannot be effectively used downstream
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mir |
Fix Released
|
High
|
Alan Griffiths | ||
0.25 |
Fix Released
|
High
|
Alan Griffiths | ||
mir (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Being able to switch the debug APIs on at runtime is needed by Unity8 to address autopilot issues.
According to the documentation in include/
* \note It is acceptable for this call to unconditionally throw a std::runtime_error.
* It is not required for normal functioning of the server or clients; clients which
* use the debug extension will receive an appropriate failure notice.
However, the relevant code in src/server/
try
{
...
}
catch (mir::frontend:
{
...
}
As mir::frontend:
Further, as unsupported_feature is not a public class, this can't be thrown by downstream code. (Although I suspect throwing an identical class with the same name will trick the RTTI implementation.)
Related branches
- Andreas Pokorny (community): Approve
- Mir CI Bot: Approve (continuous-integration)
- Stephen M. Webb (community): Approve
-
Diff: 90 lines (+4/-45)3 files modifiedsrc/include/server/mir/frontend/unsupported_feature_exception.h (+0/-41)
src/server/frontend/protobuf_message_processor.cpp (+1/-2)
src/server/scene/unsupported_coordinate_translator.cpp (+3/-2)
- Brandon Schaefer (community): Approve
- Andreas Pokorny (community): Approve
- Daniel van Vugt: Needs Fixing
-
Diff: 103 lines (+6/-45)4 files modifieddebian/changelog (+2/-0)
src/include/server/mir/frontend/unsupported_feature_exception.h (+0/-41)
src/server/frontend/protobuf_message_processor.cpp (+1/-2)
src/server/scene/unsupported_coordinate_translator.cpp (+3/-2)
Changed in mir: | |
milestone: | none → 0.26.0 |
Changed in mir: | |
status: | Fix Committed → Fix Released |
Fix committed into lp:mir at revision None, scheduled for release in mir, milestone 0.26.0