Merge lp:~vanvugt/mir/reply-buffer-allocation-failures into lp:mir
Status: | Rejected |
---|---|
Rejected by: | Daniel van Vugt |
Proposed branch: | lp:~vanvugt/mir/reply-buffer-allocation-failures |
Merge into: | lp:mir |
Diff against target: |
135 lines (+75/-17) 2 files modified
src/server/frontend/session_mediator.cpp (+42/-16) tests/unit-tests/frontend/test_session_mediator.cpp (+33/-1) |
To merge this branch: | bzr merge lp:~vanvugt/mir/reply-buffer-allocation-failures |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Daniel van Vugt | Needs Information | ||
Alan Griffiths | Abstain | ||
Mir CI Bot | continuous-integration | Approve | |
Review via email: mp+310753@code.launchpad.net |
Commit message
If buffer allocation fails, remember to tell the client by setting
the error fields in the reply.
Also log a warning to the server log, since buffer allocation failure
means either the server is out of resources or the graphics driver
is not working yet (VirtualBox). Both of those are more problems with
the server than with the client.
For now, clients will still (since NBS was introduced anyway) ignore
such error reports and just hang forever waiting for their buffers (in
swap) that didn't get created. So more work is required still to make
clients recognise the error fields in buffer replies.
Unmerged revisions
- 3823. By Daniel van Vugt
-
Enable the fix and the test now passes
- 3822. By Daniel van Vugt
-
Disable the fix and introduce a regression test
- 3821. By Daniel van Vugt
-
Cherry pick the bit that works from today's branch (just the server side)
PASSED: Continuous integration, rev:3823 /mir-jenkins. ubuntu. com/job/ mir-ci/ 2158/ /mir-jenkins. ubuntu. com/job/ build-mir/ 2796 /mir-jenkins. ubuntu. com/job/ build-0- fetch/2861 /mir-jenkins. ubuntu. com/job/ build-1- sourcepkg/ release= vivid+overlay/ 2853 /mir-jenkins. ubuntu. com/job/ build-1- sourcepkg/ release= xenial+ overlay/ 2853 /mir-jenkins. ubuntu. com/job/ build-1- sourcepkg/ release= yakkety/ 2853 /mir-jenkins. ubuntu. com/job/ build-2- binpkg- mir/arch= amd64,compiler= clang,platform= mesa,release= yakkety/ 2825 /mir-jenkins. ubuntu. com/job/ build-2- binpkg- mir/arch= amd64,compiler= clang,platform= mesa,release= yakkety/ 2825/artifact/ output/ *zip*/output. zip /mir-jenkins. ubuntu. com/job/ build-2- binpkg- mir/arch= amd64,compiler= gcc,platform= mesa,release= xenial+ overlay/ 2825 /mir-jenkins. ubuntu. com/job/ build-2- binpkg- mir/arch= amd64,compiler= gcc,platform= mesa,release= xenial+ overlay/ 2825/artifact/ output/ *zip*/output. zip /mir-jenkins. ubuntu. com/job/ build-2- binpkg- mir/arch= amd64,compiler= gcc,platform= mesa,release= yakkety/ 2825 /mir-jenkins. ubuntu. com/job/ build-2- binpkg- mir/arch= amd64,compiler= gcc,platform= mesa,release= yakkety/ 2825/artifact/ output/ *zip*/output. zip /mir-jenkins. ubuntu. com/job/ build-2- binpkg- mir/arch= cross-armhf, compiler= gcc,platform= android, release= vivid+overlay/ 2825 /mir-jenkins. ubuntu. com/job/ build-2- binpkg- mir/arch= cross-armhf, compiler= gcc,platform= android, release= vivid+overlay/ 2825/artifact/ output/ *zip*/output. zip /mir-jenkins. ubuntu. com/job/ build-2- binpkg- mir/arch= i386,compiler= gcc,platform= android, release= vivid+overlay/ 2825 /mir-jenkins. ubuntu. com/job/ build-2- binpkg- mir/arch= i386,compiler= gcc,platform= android, release= vivid+overlay/ 2825/artifact/ output/ *zip*/output. zip /mir-jenkins. ubuntu. com/job/ build-2- binpkg- mir/arch= i386,compiler= gcc,platform= mesa,release= xenial+ overlay/ 2825 /mir-jenkins. ubuntu. com/job/ build-2- binpkg- mir/arch= i386,compiler= gcc,platform= mesa,release= xenial+ overlay/ 2825/artifact/ output/ *zip*/output. zip
https:/
Executed test runs:
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
Click here to trigger a rebuild: /mir-jenkins. ubuntu. com/job/ mir-ci/ 2158/rebuild
https:/