/srv/irclogs.ubuntu.com/2014/02/19/#ubuntu-mir.txt

=== duflu_ is now known as duflu
RAOFAh, bollocks.04:17
RAOFumockdev doesn't handle marking fds as readable, so poll/select/epoll etc don't.04:18
RAOFWhich is why I'm not getting any events.04:19
RAOFHUZZAH!06:46
dufluw00t? Bah.07:17
anpokalf__: could you have a look at https://code.launchpad.net/~andreas-pokorny/mir/report-namespace/+merge/20557708:24
alf__anpok: sure, I have it in my list for this morning08:25
duflualf__: Also https://bugs.launchpad.net/mir/+bug/1281938 ? :)08:37
alf__duflu: I wonder if calling glFinish() on the client has any effect (it shouldn't be needed since we are swapping the buffers, but...)08:42
duflualf__: Yeah, haven't tried08:42
dufluNow checking the old SessionMediator08:42
alf__duflu: Also if this is not present on Android, it could indicate a problem with our Mesa mir egl08:50
duflualf__: Yeah, I'm completely unfamiliar with that08:50
dufluAlthough we should have seen this bug sooner. Might have to try older Mesa08:51
duflualf_: Put a huge delay in the client. And the server still shows an old frame immediately, much sooner than the client has posted the frame. Somehow the compositor thinks it's been given a frame before it has09:10
alf__duflu: strange09:13
dufluWhich is weird, because just asking the server it shows it doesn't post until it gets a next_frame. Seems like perhaps the client is next_frame'ing prematurely09:14
anpokI believe mterry was looking into that topic last week09:16
anpokor is that bug ticket the result of that?09:16
dufluanpok: One is an enhancement request, the other is a bug :)09:27
dufluSo they're still separate for now09:28
duflualf__: Found the problem, but still don't understand the why. Mesa has decided that eglCreateWindowSurface will trigger a surface_advance_buffer immediately09:28
alf__duflu: hmm, sounds like an issue in our mesa mir egl layer09:30
duflualf__: Yep. But I'm still surprised I never saw it before09:30
alf__duflu: so, looking at https://github.com/RAOF/mesa/blob/egl-platform-mir/src/egl/drivers/dri2/platform_mir.c , we do a mir_advance_colour_buffer() @ line 201 when creating the egl surface09:33
alan_gduflu: is that what is causing 1280842?09:33
duflualf__: Excellent. Well if it's needed then we need to tell BasicSurface to ignore the first 2, not the first 1. Otherwise fix Mesa09:33
duflualan_g: Looks possible. But I'd like to keep the enhancement request separate to the bug report09:34
alan_gduflu: sure - especially until it is proven09:35
duflualan_g: I mean we wouldn't implement the enhancement if it's just a bug to fix09:35
alan_gack09:36
alf__duflu: MirMesaEGLNativeSurface only has surface_advance_buffer)(MirMesaEGLNativeSurface* surface, 50                                    MirBufferPackage* buffer_package)09:38
alf__duflu: which means that the only way mesa can currently get the buffer package is to advance the buffer09:38
duflualf__: Yeah I figured there was a reason. But still, buggy :)09:38
alf__duflu: so we need to fix that, so that that advancing and getting the buffer package are separate operations, like in the client api09:39
alan_gOr at least have it return the buffer it already has09:40
alf__alan_g: what do you mean?09:40
anpokat the first call of surface_advance_buffer let it behave like "get buffer package"?09:41
alan_galf__: it is a bad solution - but the first call to surface_advance_buffer() could just return the current buffer09:41
alf__alan_g: well, I wouldn't want to use this as our final solution, but it makes a good quick test to validate our hypothesis09:44
dufluYep, that seems to be how software surfaces work around it09:45
alan_galf__: yep09:45
dufluOn the other hand, I can't see how that's safe. It requires buffer_depository->current_buffer() which dereferences an empty front() value (end())09:48
dufluOops, not end() but it should throw09:48
alf__duflu: when the surface is created, it sends a buffer to the client, so that should be saved in the depository. Do you mean something different?09:50
dufluOh, I see. We do a dummy process_incoming_buffer on startup to ready the depository09:51
alf__duflu: it's not a dummy operation, there is a buffer there for real.09:54
duflualf__: Semantics... Anyway I think I have a simple workaround for mirclient09:54
dufluSigh. That's enough. Net zero bug progress. One found, one fixed.10:14
alan_ganpok: there are some merge conflicts to fix and then we can finally land: https://code.launchpad.net/~andreas-pokorny/mir/report-namespace/+merge/20557711:44
=== pete-woods is now known as pete-woods-lunch
=== alan_g is now known as alan_g|lunch
=== dandrader is now known as dandrader|afk
=== alan_g|lunch is now known as alan_g
=== dandrader|afk is now known as dandrader
=== Trevinho_ is now known as Trevinho
=== pete-woods-lunch is now known as pete-woods
alf__fginther: Hi! I want to try mir-mediumtests-trusty-touch/572 with a custom hook, is that possible? Basically, I want to enable valgrind on all architectures again for this build (i.e., remove the arch check in hook H15enable_testing), to see if everything works, before I push to trunk and amend H15enable_testing permanently.15:09
fgintheralf__, that job specifically isn't, but the mir-team-mir-development-branch-trusty-$arch-ci can be. That should provide a sufficient test15:14
alan_gfginther: can we get the tests run on the clang CI build?15:19
fgintheralan_g, this one ? https://bugs.launchpad.net/ubuntu-ci-services-itself/+bug/128159115:20
ubot5Launchpad bug 1281591 in Ubuntu CI Services "Mir build with clang doesn't run tests" [Undecided,New]15:20
alan_gfginther: yes15:20
alf__fginther: yes, that would be sufficient. What's the best way to achieve that? (e.g. add a temporary script that enables valgrind or perhaps temporarily amend H15enable_testing, or ...?)15:22
fgintheralf__, go ahead and prepare it as an MP to pbuilderjenkins15:36
alf__fginther: ok, I will add a new script so I don't affect other builds until we are sure this is fixed15:37
fgintheralan_g, i'll get back to you in a moment, in a meeting15:44
=== alan_g is now known as alan_g|tea
=== alan_g|tea is now known as alan_g
dednickgetting the following error on mir 0.1.515:56
dednick(process:13028): GLib-ERROR **: Creating pipes for GWakeup: Too many open files15:56
dednickanyone seen it before?15:56
dednickalthough i guess i'm not 100% sure it's mir that's causing it.15:57
=== dandrader is now known as dandrader|lunch
=== cyphermox_ is now known as cyphermox
alf__fginther: https://code.launchpad.net/~afrantzis/pbuilderjenkins/mir-enable-testing-temp/+merge/20725217:03
=== bschaefer_ is now known as bschaefer
fgintheralf__, thanks, I have a plan to test this today after lunch17:03
alf__fginther: great, thanks17:04
kdubalf__, trying to remember, why did our mg::GLContext not have a swap_buffers() method? kinda forces us to use eglGetCurrent*()17:12
kdubtrying to remember if that was intentional or not :)17:13
rsalvetialf__: hey, there's just one issue with mir trunk currently, that is not working nicely in nested mode17:17
alf__kdub: none of the mg::GLContext consumers (PixelBuffer,CompositingScreencast) need it17:17
rsalvetialf__: and not x86 specific, got the same crash on armhf as well17:17
rsalvetialf__: flashing latest on my n4 and will test that as well to see if I'm able to reproduce it17:18
alf__rsalveti: that's with the android platform or mesa?17:18
rsalvetialf__: android platform17:18
rsalvetialf__: http://paste.ubuntu.com/6957542/17:19
rsalvetithis is with the armhf emulator17:19
rsalvetialf__: and with the x86 one: http://paste.ubuntu.com/6952522/17:20
rsalvetialf__: http://paste.ubuntu.com/6951930/17:20
kdubalf__, I have a place where it would be useful to android... debating putting swap_buffers() in mg::GLContext or making a mga::SwappingGLContext interface17:20
rsalvetialf__: in case you want to try the x86 emulator https://plus.google.com/+RicardoSalveti/posts/1u7HSYjF2He17:20
rsalvetito use nested mode, just install ubuntu-touch-session from the archive (downgrade the package)17:21
rsalvetias I had to disable it in a ppa for now, to get unity8 to work17:21
alf__rsalveti: ok, can you please file a bug about this?17:25
rsalvetialf__: sure17:26
=== dandrader|lunch is now known as dandrader
rsalvetialf__: bug 128224820:12
ubot5bug 1282248 in Mir "Unity8 crashes when using latest mir/android backend with system-compositor" [Undecided,New] https://launchpad.net/bugs/128224820:12
rsalvetikgunn: from the mir perspective, I guess this is the last remaining blocker for the x86 emulator20:12
rsalvetikgunn: also know that without fixing this issue, we can't land current mir/devel, as it also affects every device20:13
rsalvetijust a heads up20:13
=== dandrader is now known as dandrader|afk
kgunnrsalveti: ack,thanks...i'll get someone on it20:25
rsalvetithanks20:26
fgintherkgunn, can someone help me with https://bugs.launchpad.net/ubuntu-ci-services-itself/+bug/1281591 ? I'm trying to figure out the correct build configuration to trigger running of the tests22:49
ubot5Launchpad bug 1281591 in Ubuntu CI Services "Mir build with clang doesn't run tests" [Undecided,New]22:49
=== dandrader|afk is now known as dandrader
kgunnracarr: can you help fginther ?23:08
racarrkgunn: fginther: Hi :)23:10
racarrso the default build options should enabe running the tests23:10
racarrso the way I thought it was set up was just the amd64 job runs ctest23:10
racarrand the clang job23:10
racarromits it23:10
racarrRAOF: p.s. about my recent user data mp...I have this vague memory of you talking with Gerry23:11
racarrand agreeing that surface user data was reasonable XD23:11
racarr1. Was that a dream.23:11
racarr2. Do you remember the context?23:11
fgintherracarr, thanks23:17
fgintherracarr, thanks, it appears to be working: http://s-jenkins.ubuntu-ci:8080/job/mir-clang-trusty-amd64-build-fjg/5/console23:37
RAOFracarr: I don't recall that conversation with Gerry.23:38
RAOFracarr: When would this have been?23:38
racarrRAOF: Haha cest la vie23:38
racarrI think in london23:38
RAOFAh.23:38
racarrdont worry about all I remember23:38
racarris this image of you being like So some sort of user data...thats reasonable23:38
racarr:p23:39
RAOFI certainly discussed a bunch of things with Gerry, and I'm not generally opposed to user data thingies :)23:39
racarrjust collecting thoughts23:39

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!