/srv/irclogs.ubuntu.com/2013/11/14/#ubuntu-mir.txt

RAOFOh, *that's* what valgrind is complaining about!00:48
=== chihchun_afk is now known as chihchun
mickgardnerI have a couple of questions with regards to Mir if anyone is able to answer (more high level than code level...):03:28
duflumickgardner: Yes, the Australian shift is online at least :)03:29
mickgardner1. When is Mir currently scheduled to be released as stable into PC land? (or is it already?)03:29
mickgardner:-) Melbourne here...03:29
RAOFDepends on what you mean, really.03:29
RAOFWe've had a number of releases :)03:30
duflumickgardner: Mir technically released for real in Ubuntu 13.10. The packages are not installed by default though. "Stable" is something we're always improving03:30
RAOFProbably what you mean, though, is ‘when will I be able to use Unity8 on the desktop’03:30
mickgardnerokay then lets ask number 2 and get back to 1. duflu...thats fine.03:30
mickgardner2. I'm developing a multi-seat, multi-touch table based on Linux.03:30
RAOFTo which the answer is “should be soon” - AFAIK the current plan is Unity8 as an opt-in for 14.04.03:30
mickgardnerI want to be able to have multiple inputs03:31
mickgardneron the screen at the same time.03:31
mickgardnerapologies if this if vague...03:31
duflumickgardner: Mir's multi-touch is working well right now. Although it's only well-tested on the phone/tablet03:31
RAOFYou mean something like multi-pointer X?03:31
mickgardneryes basically.03:31
duflu... and in theory it accepts all input devices simultaneously03:32
mickgardnerI guess the main use case here is:  Two browser windows open, each person typing in something to their browser window at the same time (using some sort of on screen keyboard).03:33
RAOFI don't believe that anything in Mir prohibits that.03:33
RAOFHm, actually, maybe it does.03:33
duflumickgardner: The code is there already to handle multiple pointers at once. What's missing is (1) multiple cursors drawn on screen and (2) multiple simultaneous focuses03:34
RAOFAnd it'd need a shell that supported those features, too.03:34
dufluActually (1) isn't missing if you just mean touch :)03:35
dufluand (2) is probably irrelevant if you just mean touch.03:35
dufluI think drag-to-scroll would become very confused in the multi-user case. That would need some work03:36
dufluMaybe...?03:36
mickgardnerThanks guys!03:37
mickgardnersorry, multi-tasking here...03:37
RAOFMultiple keyboard foci *is* something that'd need support.03:37
duflumickgardner: No problem03:37
dufluRAOF: Sounds like keyboards are not involved anyway03:37
RAOFOSKs are.03:38
dufluRAOF: Oh, oops. Yes, still true for OSK03:38
=== kgunn is now known as Guest15371
=== brainwash_ is now known as brainwash
=== dandrader is now known as dandrader|afk
=== chihchun is now known as chihchun_afk
=== alan_g is now known as alan_g|lunch
=== dandrader|afk is now known as dandrader
=== alan_g|lunch is now known as alan_g
=== dandrader is now known as dandrader|afk
=== dandrader|afk is now known as dandrader
=== dandrader is now known as dandrader|lunch
alan_gdidrocks: I'm not sure I understand the current process for updating lp:mir so I'm asking what I hope is a simple question. There's a change needed to avoid lp:~mir-team/mir/v0.1.1 breaking lp:unity-mir can we just merge that into the proposed branch and re-top-approve, or is there anything else needed?  https://code.launchpad.net/~alan-griffiths/mir/urgent-fix-unity-mir-build/+merge/19523214:52
alan_gdidrocks: (repeated in case you missed it) I'm not sure I understand the current process for updating lp:mir so I'm asking what I hope is a simple question. There's a change needed to avoid lp:~mir-team/mir/v0.1.1 breaking lp:unity-mir can we just merge that into the proposed branch and re-top-approve, or is there anything else needed?  https://code.launchpad.net/~alan-griffiths/mir/urgent-fix-unity-mir-build/+merge/19523214:57
alan_galf_: can you check this MP?  ^14:59
alf_alan_g: looking15:00
didrocks1grrr connexion…15:09
didrocks116:07:33  didrocks | alan_g: just ensure all branches with MP set to approved are coherent15:10
didrocks116:07:46  didrocks | meaning if there is an ABI break, everything has version bumped and so on15:10
didrocks116:07:53  didrocks | once the CI will be back, things will get merged again15:10
alan_gdidrocks: thanks15:11
=== didrocks1 is now known as didrocks
alan_gdidrocks: (repeated in case you missed it) thanks15:13
alan_g;)15:13
didrocksyw! ;)15:13
alf_alan_g: ok, validated fix locally15:31
alan_galf_: thanks - if you approve then I'll merge into v0.1.115:32
alf_alan_g: ok, top approved15:32
racarrMorning16:03
=== greyback is now known as greyback|away
=== dandrader|lunch is now known as dandrader
=== greyback|away is now known as greyback
tvoss_kdub_, ping17:29
kdub_pong17:29
mterrygreyback, hello!  I have to run out for a little errand, but I wanted to ask you a question that I've started looking at.  It seems that in nested mode, I'm seeing crashes in unity8 when using right-swipe or left-swipe *only* when an app is focused.  Does that make any sense?18:41
mterryI can answer questions or read feedback in a bit.  Just wanted to start your brain thinking18:41
greybackmterry: nothing obvious comes to mind. dandrader would be a better person to ask about this18:42
mterrygreyback, ah OK.  dandrader ^ then  :)18:42
kdub_mterry, greyback i know the focus mechanism has changed a bit, maybe needs a recompile or something?18:42
greybackhe understands the edge swipe detection code. It's black magic as far as I'm concerned :)18:42
greybackkdub_: good point. mterry, did you recompile unity-mir18:42
* greyback recalls unity-mir fails to compile against mir1018:43
mterrykdub_, greyback, I'm running mir-in-trusty recompiled for extra debugging18:43
mterryso it shouldn't cause a problem with trusy unity-mir18:44
* mterry has to run18:44
greybackok18:44
* dandrader reads the backlog18:47
dandradermterry, greyback, hmm, I don't think the edge gesture code itself has anything to do with the crash...18:51
greybackmterry: I guess a backtrace would help18:52
racarrlunch19:35
racarrBack20:16
mterryback, want to test something first, then will try for a backtrace20:24
kgunnkdub_: nice work on n720:41
kgunnmterry: hey...just been a few days...any luck on unity/mir-on-mir ?20:41
kdub_thanks kgunn!20:41
mterrykgunn, a little bit.  I figured the problem with autopilot not working at all.  Now I'm seeing a crash when you've got an app open, but you swipe the launcher in or swipe from the right...20:43
mterrykgunn, working on getting a trace20:43
mterryracarr, speaking of nested mir, did you get a chance to look at the u-s-c branches?20:43
mterrykgunn, performance numbers seem fine so far (was waiting on autopilot fix to get in-use numbers)20:44
kgunnmterry: "seem" = eyeball ?? (still a good sign even if so)20:46
mterrykgunn, no, using 'time' to time autopilot runs20:46
mterrykgunn, I'll add the numbers to the merge request, but first these crashes are stopping me from running the unity8 tests to completion  :-/20:47
mterryAlso, they are crashes which are bad in their own right.  :)20:47
kgunnuh-oh mterry ...you mean just crashes due to unity?20:48
mterrykgunn, not sure why yet.  But the unity8 process crashes, yeha20:48
mterrykgunn, only seen on nested so far20:49
mterrykgunn, so many yaks!20:49
kgunnmmmm, i'll leave you be to debug mterry20:50
mterrykgunn, sorry it's taking so long, but progress is being made, albeit slowly20:51
kgunnhey...as long as you guys are on it...i got faith20:51
mterrykdub_, greyback, racarr: hey Mir folks.  the crash I'm seeing with nested Mir and swiping from right is a thrown "cannot bind buffer to texture without EGL context".  Ring any bells or do you want full core?20:53
kgunnalf_: ^ just in case no answer20:54
kdub_eglGetCurrentDisplay is failing in mga::Buffer::bind_to_texture20:54
kgunnkdub_: at about what time in your video is the crash from glreadpixels ?20:54
kdub_that video does not have the crash20:54
kdub_the bugreport has one though20:55
kgunnah... yeah saw that one...sorry, just misread ur mail....still...great work20:58
kdub_mterry, make sure a context is active before trying to bind the buffer20:59
mterrykdub_, only difference I'm doing is nested vs standalone.  Why might a context not be active?21:01
mterryHow is a context normally set active?21:02
kdub_eglMakeCurrent()21:02
kdub_mterry, are you doing development, or just debugging a crash that autopilot brought out?21:03
mterrykdub_, guh, this looks like some 'fun' tracing of both nested and standalone and seeing where the fork is21:03
mterrykdub_, the latter21:03
mterrykdub_, this isn't even autopilot related21:03
mterrykdub_, this is just when running nested21:03
mterry(but autopilot hits it)21:03
mterrykdub_, which of the various report modes do you recommend to debug egl?21:04
kdub_ --display-report log will print out some information21:04
kdub_but it sounds to me like we're missing a call to eglMakeCurrent somewhere21:05
kdub_mterry, is the host or the nested server complaining?21:06
mterrysure...  those look sprinkled throughout the code though21:06
mterrykdub_, nested server (unity8)21:06
mterrykdub_, hmm..  Will retest to make sure, but in nested mode, I don't get any output from the --display-report=log bits.  But in standalone I do get a chunk of them at the beginning21:49
mterrykdub_, presumably the host server is managing those bits?21:50
* mterry adds the displayreport bit to u-s-sc21:50
kdub_mterry, i know the host server display class has the logging implemented, not so sure about the nested server display class21:51
mterrykdub_, ah interesting.  So there might be relevant code there, it might just not be logging it21:51
kdub_mterry, it looks like... the display report is in the constructor of mgn::NestedDisplay, but the functions just aren't called21:53
kdub_what concerns me is... (looking up line)21:53
mterrykdub_, yup, u-s-c shows all the normal graphics output from the report21:54
mterryas we'd expect21:54
kdub_http://bazaar.launchpad.net/~mir-team/mir/trusty/view/head:/src/server/graphics/nested/nested_display.cpp#L28021:55
kdub_i think you need the egl extension EGL_KHR_surfaceless_context21:56
kdub_to do that... not sure if n4 has that extension21:56
mterrykdub_, you're saying you think that line is being called, but with the wrong EGL flags?21:57
kdub_mterry, in http://bazaar.launchpad.net/~mir-team/mir/trusty/view/head:/src/server/graphics/android/android_display.cpp#L7921:58
kdub_mterry, i'm suggesting that22:00
kdub_http://bazaar.launchpad.net/~mir-team/mir/trusty/view/head:/src/server/graphics/nested/nested_display.cpp#L28022:00
kdub_fails silently22:00
kdub_we should check that returns EGL_TRUE22:01
mterrykdub_, hrm.  OK.  I can compile and test what that returns.  What was the bit about EGL_KHR_surfaceless_context ?22:06
kdub_mterry, if that fails silently, we can just make a dummy pbuffer surface for the nested display's context22:07
kdub_much like the host display class does22:07
mterrykdub_, yup, it's returning EGL_FALSE.  OK, will try with a dummy pbuffer surface22:19
* mterry looks at how host display does it22:20
mterrykdub_, thanks for the help, btw!22:20
kdub_mterry, no problem22:23
mterrykdub_, so you're suggesting that NestedGLContext should create a pbuffer surface and always try to use that instead of EGL_NO_SURFACE, right?  (sorry if being a bit obtuse, but GL is relatively new to me)22:26
kdub_mterry, exactly :)22:27
mterrykdub_, both of these calls, NO_SURFACE or dummy, seem like they aren't intended to work.  Are these just fallback settings?22:28
RAOFGrr.22:29
RAOFDo we really need -pedantic?22:29
kdub_they're not fallback settings, we just want an context that has been shared with the display without a surface behind it22:29
RAOFEvery compiler we care about is happy to provide C99 designated initialisers.22:30
kdub_RAOF, those would be nice, but i think pedantic is useful overall22:32
kdub_if its really useful :) we could push a pragma for a file22:33
kdub_i've wanted to do that for hwc in the past22:33
RAOFWhat does pedantic catch that our other -Werrors don't?22:33
* RAOF is genuinely interested.22:33
kdub_not sure22:35
RAOFI don't believe (from the gcc manpage description) that it catches any *coding* errors. It explicitly *doesn't* guarantee that code that builds with -pedantic will build on any ISO C-compliant compiler, and having the clang build covers both of the compilers that we're reasonably likely to want to build with anyway.22:37
mterrykdub_, BAM, no crash.  You're the best22:41
mterrykdub_, will propose a branch22:41
kdub_mterry, yay \o/22:41
mterrykdub_, https://code.launchpad.net/~mterry/mir/fix-nested-crash/+merge/19532022:50
RAOFmterry: Hey, was that crash happening on the desktop or on android?22:58
kdub_racarr, do you know the magic build combo for the day (with unity mir?)23:00
mterryRAOF, android23:02
RAOFAh, that'd be why.23:02
mterryRAOF, didn't try desktop23:02
RAOFIt'd work on desktop.23:02
RAOFkdub_: Do you think we should gate that codepath on the presence of EGL_KHR_surfaceless_context?23:02
kdub_RAOF, alf_ has done some work with that23:03
kdub_https://code.launchpad.net/~afrantzis/mir/offscreen-display/+merge/19490623:03
kdub_about line 109423:03
kdub_we have many places of mg::GLContext in the code... should be shared23:03
kdub_alf_ has a new GLContext for the offscreen display... and i have a branch that condenses the 3 different android mg::GLContexts into one23:05
kdub_so after that, i think we should go and mop all of them up23:05
RAOFSounds reasonable.23:05

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