[01:12] kgunn: Wait so whattimeisitnow? Not sure ifitupdated in my calendar [01:12] i.e. dont remember when it was last week [01:13] racarr: hey...so...i forgot to make it a repeat anyway...so i had to just send a new invite [01:13] racarr: so its, 3hr 15 min from now [01:17] kgunn: Ok [01:17] depending on how my soon to start bus bound adventure goes I may be a little late. [01:17] racarr: np [01:29] kgunn: Make it earlier perhaps? As in 90 minutes? === chihchun_afk is now known as chihchun [03:10] duflu, good job on the resizing work :) all my devices seem to work with it [03:13] kdub: Thanks, but it's still laggy without events [03:14] kdub: BTW, even Nexus7? I've found Mir on N7 hasn't responded to touch properly (if at all) for some time [03:15] --> bug 1239501 [03:15] bug 1239501 in Mir "Nexus 7 does not respond to touch" [High,Triaged] https://launchpad.net/bugs/1239501 [09:35] Hmm, hanging the server with a broken client is bad, right? [09:39] yep [09:41] Argh. So. Many. Deadlocks [09:41] . [09:41] Want to talk about it? [09:43] alan_g: If I had the words to describe them I would have logged bugs. But for now it's easy to blame myself, since they only happen on my branch [09:44] Although me finding deadlocks is different to me causing deadlocks :/ [09:44] so true [09:45] One of the major problems I have encountered is our client event callbacks coming in on their own thread. That's quite a problem for simple single-threaded clients. [09:47] Hmm. We don't have control of the single tread to execute callbacks on it - so what would you do instead? [09:49] alan_g: I presently have to use pthreads in the single threaded client to signal the primary rendering thread from the event thread. That's not ideal [09:50] Why does the simple single-threaded client need to use callbacks? Doesn't the ..._sync API cover it? [09:51] alan_g: How else do you get immediate notification of resizing? [09:51] ... or input etc [09:52] Or do you mean we need a mir_wait_for(mir_next_event(&e)) ? :) [09:52] So, you'd want to poll an event queue? [09:52] * alan_g bad memories of the Windows event loop [09:53] alan_g: Not poll. I'm happy to have everything event driven and sleeping nicely. But whatever it takes to get clients back to one thread would be excellent [09:54] or perhaps: what = mir_wait_for_either(mir_sleep(n), mir_next_event(&e)) [09:55] mir_get_event_sync(...)? [09:56] alan_g: You really need support for waiting on multiple handles simultaneously to do it properly. Like Win32's WaitForMultipleObjects [09:57] mir_wait_for_any(a, b, c, NULL) [09:59] Perhaps - but doesn't that go further than the "simple" single-threaded client case needs? [10:00] BTW How does this hang the server? [10:03] alan_g: I have the server hung in send() sending a trivial resize notification, while the client is somehow deadlocked. [10:03] I'll just avoid that path for now and if I can describe the problem in terms of existing logic, then log a bug [10:04] duflu: that's clearly a server side bug - I can look at that later [10:13] duflu: if the default event callback were to push events into a queue and we provided an optionally blocking call to pull off the queue doesn't that cover the simple case? [10:15] alan_g: Essentially yes. I would want to fuss over the client-side API we expose though. In the least you need to be able to wait for any-and-all Mir things that could be happening, including a timeout/sleep to animate the client [10:18] Even more weird... it's safe for an event callback to swap_buffers on motion events, but not on resize events which originated from motion events [10:20] Does "safe" mean guaranteed by a standard? Or just "doesn't break on my machine"? [10:20] What if the standard is doesn't break on my machine? ;) [10:20] alan_g: Doesn't *seem* to break and has worked for most of the year [10:21] (as in fingerpaint) [10:21] Ah [10:27] alan_g: It appears my hanging send() contains a TODO :) [mfd::SocketMessenger::send()] [10:30] That TODO is a typical comment - it disagrees with the code [10:31] the send_fds it refers to is now part of that function [10:31] alan_g: I mean that I need it to be async. It's not. [10:32] What are the "fds" we're passing around all the time?? [10:32] duflu: It shouldn't block anyway - so being async would be at best an optimization [10:33] alan_g: It seems a broken client can block it :) [10:33] the fds are handles from gbm or android [10:33] alan_g: Why do we use them on every message? That's weird [10:33] They're optional on all messages. Only a few send them [10:34] The wire protocol is blob+optional fds [10:34] alan_g: Oh, I see. Empty if not provided [10:34] ack [10:37] So you think we're writing bytes to a socket and get throttled because the client isn't reading the other end? === chihchun is now known as chihchun_afk [10:51] alan_g: Yes, I think so. Another (probably different) problem I have now is that the surface events come in on a different thread to input events. Yet they share the same callback so it's very confusing [10:52] I suspect we'll need to solve this before resize events can be usefully demonstrated. Unless I instrument all the examples with pthread magic, but that's bad [10:55] @"on a different thread" - that's weird. I though there was just the comms thread (and any threads the client code has) [10:56] alan_g: Weird, but I just remembered I documented that when I discovered it -- http://unity.ubuntu.com/mir/group__mir__toolkit.html#ga171267b0c507a17b2d76a8e927f2d959 [10:57] "and locking" should say "any locking" [11:04] * duflu closes the can of worms and wanders off [11:41] alf_: How strong is your preference for references? gmock is throwing up a bunch of errors when I set expectations on a mock of fill_ipc_package(BufferIPCPacker& packer, Buffer const& buffer) - it can't check anything for equality and doesn't like incomplete types. [11:41] * alan_g thinks pointers are fine anyway [11:46] alan_g: My preference is strong, but if references are causing problems I am OK with pointers. [11:57] pointers it is then. [11:59] tvoss_: when you have a moment: https://code.launchpad.net/~alan-griffiths/unity-system-compositor/dont-use-ApplicationSession/+merge/193070 [12:08] alan_g, looking === alan_g is now known as alan_g|afk === alan_g|afk is now known as alan_g [13:32] kgunn: Mir in -proposed! (thanks to the restless Mirv) [13:32] let me cry of joy for a minute :) [13:36] :) [13:37] didrocks, :) [13:38] could someone please check that Mir in daily-proposed works on the Nexus10? It's failing for me with http://pastebin.ubuntu.com/6448151/ [13:46] addition to above, Mir almost in -release pocket as well (visible in LP that it's already accepted, waiting for publisher run) [13:48] Must be time to try landing another batch of updates. ;) [13:57] :) rmadison now tells it's in archives for real [13:58] kgunn, are https://bugs.launchpad.net/ubuntu-ci-services-itself/+bug/1252933 and https://bugs.launchpad.net/ubuntu-ci-services-itself/+bug/1252857 duplicates? [13:58] Ubuntu bug 1252933 in Ubuntu CI Services "Mir performance testing as a merge requirement" [Undecided,New] [13:58] Ubuntu bug 1252857 in Ubuntu CI Services "mir performance baseline, tracking, & blocking" [Undecided,New] [13:58] kgunn, I received 1252933 from thomi === dandrader is now known as dandrader|afk [14:03] Mirv: didrocks ...thanks both! [14:03] * kgunn will be laughing all day imagining didrocks crying tears of joy [14:03] fginther: lemme look [14:04] kgunn: rohhhh! you have no idea about the pain we endure ;) [14:05] fginther: yes...those seem to be duplicates, i guess thomi thot mine sucked :) [14:05] kgunn, I filed the second bug, didn't think to look for one first :-) [14:05] fginther: np === dandrader|afk is now known as dandradee === dandradee is now known as dandrader [14:28] greyback: I don't have one to test - but I think you need -r 1228 of dev branch for N10. trunk is based on r1192 [14:32] alan_g: okay [14:33] greyback: and to use dev-branch we need to land https://code.launchpad.net/~alan-griffiths/unity-mir/dont-use-ApplicationSession/+merge/195242 (hint hint) [14:34] alan_g: sure. I'm trying to test it as I type, just bad luck I chose nexus10 to test it on [14:34] alan_g: I've added 2 little comments to that MR just now [14:36] greyback: fixing... [14:37] tvoss_: when you have a moment: https://code.launchpad.net/~alan-griffiths/unity-system-compositor/dont-use-ApplicationSession/+merge/193070 [14:39] alan_g, yup, still looking [14:39] kgunn: you're welcome [14:40] greyback: ...pushd [14:40] alan_g: thanks === alex-abreu|afk is now known as alex-abreu === chihchun_afk is now known as chihchun === chihchun is now known as chihchun_afk === alan_g is now known as alan_g|tea [15:45] alan_g|tea: https://code.launchpad.net/~alan-griffiths/unity-mir/dont-use-ApplicationSession/+merge/195242? approved, top approve at your desire === alan_g|tea is now known as alan_g [15:46] greyback: top-approved. Thanks [16:18] alan_g, can I just use your branch of usc, latest Mir and whatever X drivers we have and give it a spin? [16:20] tvoss_: I would hope so. === dandrader is now known as dandrader|lunch [16:20] alan_g, building right now, just wanted to check before I kill my local setup :) [16:21] * alan_g assumes that the trunk usc is working (hasn't tried it yet) [16:26] alan_g, can you give it a spin, too? [16:28] tvoss_: I'm not really set up for it right now. Too many versions in flight [16:29] alan_g, ack, I will give it a spin on two machines then. I'm hesitant to approve as usc has no no tests in place [16:29] that's something I'd like to get fixed. But only one set of hands [16:35] alan_g, sure, not saying it's your fault :) just explaining high latency for the review here [16:36] tvoss_: I know. === dandrader|lunch is now known as dandrader === dandrader is now known as dandrader|afk === RoddieKieley1 is now known as RoddieKieley === dandrader|afk is now known as dandrader [19:37] Heyo! Can someone help me with a nested-mir issue? "Nested Mir failed to find an opaque surface format" [19:37] I can reproduce with just mir-demos [19:38] mterry: Oh this is the transparentstuff [19:39] mterry: https://code.launchpad.net/~robertcarr/mir/alpha-for-nested-servers/+merge/193162 will unblock you for nowbut it wont land [19:39] racarr, yeah. I realized today I've been testing all this time with that branch in place [19:39] racarr, assumed it would have landed by now. But I see that feedback is needed on that branch [19:40] racarr, what can I do to move that branch (or something like it) along? [19:40] racarr, at this point, it's not even what the greeter needs. This error is just preventing nested Mir at all [19:41] I guess I need to redo it to expose an option or something [19:41] oratleast pick a transparent format if there is an opaque one in plac [19:41] eerr [19:41] if there is no opaque one [19:44] racarr, also... is there not an automated test involving nested Mir? I would have expected such a test to hit this, although maybe this is android specific [19:44] no automated testing on actual android devices [19:46] racarr, well, once we land nested, I guess it will get tested all the time [19:47] racarr, well, if this could get highish priority, I'd give you a hug [19:47] racarr, I'm *so* close to landing nested mode [19:51] racarr, so why can't a nested Mir find an opaque surface format anyway? Why would that change in nested mode? [19:51] mterry: Oh it's just that nothing else insists on having an opaque surface. [19:52] racarr, oh [19:52] racarr, and android can't provide one? [19:58] mterry: Apparently not that seems like it must be abug though [19:59] racarr, OK, well if there's anything I can do to help, let me know [20:01] mterry: Ok thanks. I will get on it in like [20:01] 30mins [20:02] I forgot about the underlying bug when the branch was abandoned because we dont need alpha anymore [20:09] * kdub wades into composition options [20:11] racarr, me too :) [20:11] racarr, and we do need alpha... just not immediately [20:11] racarr, greeter will still want to be semi-transparent [20:29] i don't really know why we even have that error [20:30] maybe gbm can't bypass buffers with alpha? [20:48] kdub: Ithink it was [20:48] "optimization" [20:48] and a weird strategy ;) [21:26] kdub: so, one more device, the emulator :-) [21:26] 5 "android"-based devices [21:27] rsalveti, yeah [21:27] is that working with mir? [21:27] kdub: yup [21:28] oh :) thats good news [21:53] Just had a fun idea...trying to figure out how to make the focus mechanism make sense,the idea of customizing behavior doesn't make so much sense anymore, but it's nice for testing the default shell/system compositor, i.e. EXPECT(focus_setter, set_focus), v. EXPECT(surface_controller,raise) EXPECT(input_targeter, target) [21:56] so I had the idea that maybe there is a 'FocusTracker' which handles the bit of defocusing the focused surface (i.e. updating the attribute) when we focus a new surface [21:56] but rather than a 'FocusTracker' it could just be a callback [21:57] i.e. mf::Shell::create_surface(Session, SurfaceParameters, std::function track_focus) [21:57] the more I type the less im sure :p [21:59] You can test instead with an integration test by acting on the event sink... [21:59] and thats probably more clear [22:04] mterry: https://code.launchpad.net/~robertcarr/mir/nested-dont-require-opaque-surface/+merge/196026 [22:04] should have just dont that right away :p its tiny [22:04] sorry [22:04] racarr, heh. why does nested mode want an opaque surface anyway? [22:05] racarr, the performance aspect? [22:15] racarr, oh, just noticed that you want me to review that branch. I can test on my device, sure. But should probably have an actual mir dev actually review [22:15] * mterry goes to test [22:37] racarr, btw, I'm a little confused by the issues of performance around the alpha branch. If the background is alpha, but opaque things cover that background (like would happen in unity8), why would there be a performance hit? I figured that alpha bg would be optimized out [23:00] rsalveti, how does the emulator work? [23:00] kinda a vague question [23:01] but is it using a software egl for the android platform? [23:26] kdub: emulator is the same one as for android. there are egl libraries in android-container, which do pass-through to hypervisor, where a traslation from egl -> host gl is done, host's drivers are used to process gl, and it gets fed back into the emulator. [23:28] hmm, interesting [23:29] and the host is X... [23:29] xnox, how about the display? [23:30] kdub: there is no host X involved at all. [23:30] kdub: it's a virtual machine, based on goldfish kernel. so there is goldfish framebuffer which is what mir paints on. [23:30] to the user it is magically projected over vnc. [23:31] and that's how humans look at it =) [23:31] the egl -> gl -> egl translator is very cunning. [23:32] you can run emulator head-less, as in without projecting the vnc window anywhere. [23:32] so the emulator does the translation from android platform egl to the host platform's egl? [23:33] and the other curiosity is that mir only paints the fb via the android HAL surrounding the fb.... so there must be some goldfish friendly hwc somewhere [23:39] neat... [23:39] * kdub pokes around android code in this area [23:49] okay, i see how this all works from a high level then.. very cool