/srv/irclogs.ubuntu.com/2014/04/03/#ubuntu-mir.txt

=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
duflualan_g: Is there a rule of thumb for what to do in place of "static virtual"?09:41
dufluIt's been years since I needed one09:41
alan_gWhat do you want it to do?09:41
duflualan_g: Return a constant value. But that is configurable based on the class you ask09:42
dufluHmm09:42
dufluNot static09:42
alan_gDetermined at runtime or compile time?09:43
duflualan_g: Compile time09:44
dufluBut the implementation class isn't known till run time09:45
dufluI know it's theoretically reasonable but maybe not possible in C++09:45
dufluIt's just like querying RTTI in a way09:45
alan_gvirtual Value value() const = 0;09:46
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
=== dandrader is now known as dandrader|afk
=== dandrader|afk is now known as dandrader
=== ara is now known as Guest11257
alan_gdidrocks: is there a CI problem? Jenkins doesn't seem to have done anything for 10 hours or so: https://code.launchpad.net/mir/+activereviews11:35
didrocksalan_g: you should ping the vanguard from the CI team for that I guess11:36
didrockson #ubuntu-ci-eng11:36
didrocks(we are only doing the landings)11:36
=== 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
kgunnalf__: hey, so josharenson is working on getting glmark2 running as part of our ci...however, glmark2 that's in archive for arm is only for x1113:22
kgunnmy understanding is that there is a glmark2_es2_mir13:22
kgunnthat can be built, but its not in the archive13:22
kgunnso i was hoping to add it, do you see any problem there ?13:23
kgunnmir is in universe as well, so should be fine...right?13:23
kgunn(need to do this in order to have the ability for the jenkins job to apt-get install glmark2-es2-mir as part of the ci run)13:23
alf__kgunn: when I released 2014.03 I also updated a packaging branch so that it produces packages for all variants https://code.launchpad.net/~glmark2-dev/glmark2/glmark2-package13:26
Cimihello guys13:28
CimiI import Unity.Application 0.1 in my qml13:28
CimiI start this when unity8 is not running13:28
Cimibut still, my app crashes with this error13:28
Cimi[libprotobuf ERROR google/protobuf/descriptor_database.cc:57] File already exists in database: unityrpc.proto13:29
Cimi[libprotobuf FATAL google/protobuf/descriptor.cc:954] CHECK failed: generated_database_->Add(encoded_file_descriptor, size):13:29
Cimiterminate called after throwing an instance of 'google::protobuf::FatalException'13:29
Cimi  what():  CHECK failed: generated_database_->Add(encoded_file_descriptor, size):13:29
kgunnCimi: so you start before unity8...but are you using unity-mir ? or...rather...are you trying to launch the mir server ? or going through  u-s-c's instance of the mir server ?13:40
Cimikgunn, just running the app with upstart...13:41
Cimikgunn, don't know the internals13:41
Cimikgunn, so probably mir is already running13:41
kgunnCimi: mmm...do you see the greeter ?13:42
Cimikgunn, I'm starting on xsession-init13:42
Ciminope13:42
kgunnCimi: yeah...something needs to get you a mir server fired up...13:42
kgunnCimi: are you just doing this for testing ? or is this actually how you're planning on doing it ?13:42
kgunne.g. does the user see the greeter first? then dismiss into the welcome wizard ?13:43
Cimikgunn, I suppose the welcome wizard needs to be before unity13:43
kgunnCimi: sure...13:43
Cimibefore everything13:43
kgunnit can be..13:43
kgunnCimi: well....there's some effort there tho...13:43
kgunnwonder if you can just glom onto greeter ?13:43
kgunnmterry: ^13:43
kgunnseems Cimi needs a mir server....but wants to be "before everything else"13:44
kgunnshould he start his own mir server ?13:44
mterrykgunn, Cimi: my plan was to insert it right before greeter13:45
kgunnCimi: you're suffering since split hasn't landed yet13:45
kgunnCimi: today there is only 1 mir server....shared by unity8 (session) & greeter (system)13:46
mterrykgunn, Cimi: well, with split greeter, you'd have same problem13:46
Saviqkgunn, mterry, Cimi, he doesn't need a mir server, thouhg13:46
mterryWhy do we need a mir server?13:46
Saviqit could be just a client13:46
mterryThis is for notifications?13:46
Saviqmterry, no, no need for a server13:46
Saviqmterry, we can be just a client13:46
kgunnSaviq: client to u-s-c's server ? or a 3 rd instance?13:47
Saviqkgunn, client should be good13:47
Saviqthe current issue is that Cimi loads the Unity.Application API , which probably requires to be a mir server13:47
Saviqor well, wait13:47
SaviqI think he needs to be a server for the OSK13:47
Saviqwe don't want the OSK to go directly to u-s-c do we13:48
kgunnmmm13:48
kgunnhow is it handled in greeter for pin code before unity8 is started ?13:48
kgunnsame case isn't it?13:48
Saviqyeah13:48
Saviqmterry, ↑ ?13:48
Saviqin split greeter, that is13:48
mterrykgunn, Saviq: in split greeter, maliit talks to split greeter, which is a server13:49
greybackThe unity.Application  plugin can only be used by an application that instantiates a QMirServerApplication. Here's a simple example: lp:~gerboland/+junk/qml-demo-shell/13:50
mterrySaviq, out of curiosity, what is wrong with OSK talking to USC?13:50
Saviqmterry, you tell me :)13:50
greybackdifferent users could have different OSKs...13:51
mterryI don't know enough about differences between mirservers, but I'd guess nothing13:51
Saviqmterry, I think at least one thing is that shell, greeter, wizard needs to control the input routing13:51
mterrygreyback, yeah but this is a very special case (first boot wizard)13:51
greybackmterry: ah I was missing context, sorry13:51
Saviqmterry, greeter is not as special, though13:52
Saviqgreyback, that would include the input areas and such, right?13:52
mterrySaviq, sure.  But greeter acts like unity813:52
greybackSaviq: for USC, yes13:52
=== ara_ is now known as ara
Saviqmterry, in that sense welcome wizard does, too, 'cause it's the only "shell" running at the time, even if the only client would be the OSK13:52
Saviqgreyback, I mean if the welcome wizard wants to use import areas (which it needs for OSKController), it needs to be a QMirServerApplication?13:53
mterrySaviq, yeah...  but it's not a shell.  It's just a client itself13:53
mterryI mean, we can change it to be a server too.13:54
Saviqmterry, yeah, as long as it can control the input area of the OSK...13:54
kgunnbut wait...isn't Cimi finding out he alreaday needs more clients (following the shell argument...like notifications, settings app)13:54
greybackSaviq: yes13:54
mterrykgunn, I don't think notifications are clients...  I think shell renders those13:54
Cimikgunn, they are within the app13:54
mterry(Or whomever loads the Notifications plugin, which maybe could be wizard)13:54
Saviqnotifications is in-surface13:54
Saviqsettings? why?13:55
Saviqanyway, gtg for a bit13:55
Saviqactually, bringing the laptop with me...13:55
=== dandrader|afk is now known as dandrader
kgunnCimi: do you launch settings ? or just pirate pieces of it ?13:55
Cimikgunn, I import the plugins I need13:55
Cimikgunn, it's standalone app13:55
mterrySo looks like only client needed is OSK so far13:57
kgunnok...so sounds like we're settled.... mir client ? mterry ?13:57
kgunn;)13:57
mterryBut sounds like it needs to be a server to manage the OSK13:58
mterryCimi, we night need to make the wizard a little server...  greyback, do we have any experience with OSK and servers that aren't unity-mir?  Or should we just use unity-mir here too13:58
greybackthe server needs logic to show/hide the OSK surface, and do a little input filtering (top of OSK surface transparent, so should not steal events)13:59
mterrygreyback, is that stuff we get magically for being a server, or do we have to reimplement that logic?13:59
greybackmterry: you'll have to re-implement, if your server is not using unity-mir14:00
greybackwhich it isn't, it's using mostly default mir stuff, isn't it?14:00
mterrygreyback, do you remember how closely tied unity-mir is to the unity8 shell?  Last time I remember looking, it was checking surface names and such14:00
mterrygreyback, right now the wizard isn't a server at all14:01
mterrygreyback, we were hoping to get away with just being a client14:01
greybackmterry: but the wizard is a client, and should stay that way14:01
greybackmterry: what is the server here?14:01
greybackunity-mir needs one thing from a shell, that it names its surface something particular. That's all.14:02
mterrygreyback, well this is all up for debate.  But the plan I was envisioning was having wizard run under USC as a client with maliit server running beside it14:02
greybackmterry: that's fine. So USC needs logic to handle the OSK surface14:02
mterryHrm14:02
mterrygreyback, and that logic is stealable from unity-mir?14:03
mterryI don't know if I like USC adding that feature just for this one time wizard14:03
greybackmterry: it's mostly implemented in QML, but it's pretty easy14:03
mterryUgh or gaining QML14:03
greyback1) try to detect the OSK surface by its name14:03
mterryright now USC doesn't need to bother with the UI parts of Qt14:04
greyback2) listen for maximize/minimize evnets from that surface, and when they happen, show/hide the surface14:04
greyback3) set an input area on the OSK surface so the transparent part does not take events14:04
mterrygreyback, out of curiosity, why doesn't OSK just show/hide itself and such?14:06
mterryAnd set it's size itself14:06
greybackmterry: because surfaces cannot do that. That's a shell's decision14:07
mterryInstead of needing to have a transparent part14:07
greybackah the transparent part for hte top row of keys, when you press them, the letter pops up higher14:07
mterryAh OK14:07
mterryDetails details everywhere14:07
greybackindeed14:08
greybacksome keyboard too, a long press pops up a accent selector, which needs to receive events14:08
mterrygreyback, if we add those features to USC, I'd want to avoid QML.  How easy is it to do that input filtering without a nice Qml input area?14:08
greybackinput filtering a Mir concept, I've just wrapped it for use in QML14:09
mterryYar, just hoping it was easy14:09
mterryStill, feels weird to add this complexity to USC just for the wizard14:09
* mterry wishes wizard didn't need OSK14:10
greybackthink mir::shell::surface has a  installInputArea method, which takes a rectangle.14:10
mterrygreyback, how ugly do you feel it would be to make wizard use unity-mir?14:10
greybackinside that rectangle, the surface gets the events. Else it doesn't.14:10
greybackmterry: then you're making the wizard a mir server. Which would work, yeah14:11
mterrygreyback, we'd have to name the wizard surface like the shell does.  But it sounds like besides that, it'd work?14:11
greybackmterry: think so, yes. Maliit needs to connect to the wizard's mir socket, Then all should be good14:12
mterryCimi, ^ what do you think?14:12
* Cimi reads14:13
Cimimterry, I like your simpler solution :D14:15
mterryCimi, "simpler"  :)14:15
mterryCimi, so to do that...  unity8 has src/main.cpp which dlopens unity-mir14:19
Cimimterry, already saw it14:19
mterryCimi, we probably don't need all the complexity it has (in particular, we don't need to worry about non-mir instances)14:19
mterryCimi, and check unity-mir source.  Somewhere in there, it checks a surface name that we'll want to match to unity814:20
* Cimi looks14:21
alf__kgunn: greyback: https://code.launchpad.net/~afrantzis/mir/non-blocking-swap-buffers-spike , it's a spike not ready for an MP just yet, but it should work.14:28
greybackhave a look at lp:~gerboland/+junk/qml-demo-shell/ for a simple exmaple14:28
greybackalf__: wow nice! Will test straight away14:29
kdubjenkins traffic jam15:30
=== chihchun is now known as chihchun_afk
kdubanyone know what's going on with autolanding?16:55
alan_gkdub: yeah, there's problems with the phones16:56
kdubalan_g, thanks16:57
alan_gI asked on #ubuntu-ci-eng and found that it had been announced on a mailing list I didn't know about16:58
=== alan_g is now known as alan_g|EOD
* mterry is seeing odd input bug with mir/devel + unity8...18:19
mterryI'm testing further, but if anyone has played with full stack lately, let me know18:19
kgunnmterry: got a description ?19:23
kgunnracarr: anpok ^19:23
mterrykgunn, I was seeing the greeter session come up but wasn't able to interact with it19:23
mterrykgunn, still not sure which component's fault it is yet.19:23
kgunnmterry: so like osk wouldn't invoke ? as well, you couldn't swipe?19:24
mterrykgunn, right, couldn't swipe.  didn't get as far as OSK19:25
mterrykgunn, nm, can't reproduce now...  :-/19:25
mterrykgunn, I have some updates for silo 002 if you have time19:25
kgunnsure19:26
kgunnhey...crap, meant to ask you mterry about19:27
kgunnhttps://code.launchpad.net/~mterry/gsettings-ubuntu-touch-schemas/volume/+merge/20915819:27
kgunni have it in the landing sheet...but, i can't recall...did you want it landed in isolation or not ?19:27
anpokwasnt that one of the issues that crept in and got fixed with the surface restructuing? the thing that racarr looked at?19:27
anpok+r19:27
anpokhm most current greeter stuff is now in a different silo?19:28
mterrykgunn, it landed with indicator-sound in trusty already.  We can drop it19:28
mterrykgunn, for silo 002... add ~mterry/platform-api/mir-changes & ~alan-griffiths/unity-mir/compatibility-with-mir-changes & rebuild platform-api, unity-mir, and ubuntu-touch-session19:29
mterrykgunn, we can remove any indicator-sound or schema stuff in silo 002 now too, if any are lfet19:29
mterryanpok, we moved to silo 002 yeah19:30
mterry(from 004)19:30
anpokk19:30
mterryanpok, silo doesn't work right now due to mir churn, but it's about to because kgunn is a silo wizard19:31
kgunnmterry: building now19:49
kgunngotta reboot..19:51
mterryracarr, do you know about any changes that would affect raising/focusing sessions?19:52
mterryOr anybody really19:52
kdubmterry, yeah, SurfaceRanker is gone19:54
kdubthe raise() method moved to SurfaceConfigurator19:54
* kdub always thought "surface rancor" when reading that one19:56
racarrmm19:57
mterryMy USC changes to raise the spinner session don't seem to be working anymore19:57
racarrsomeone must have landed unity-mir/usc updates or it just wouldnt build right19:57
mterryhmm19:57
mterryracarr, my copy of mir/devel must be between re-organizations then19:58
mterryracarr, I don't see raise() in SurfaceConfigurator in mir/devel20:00
racarrmaybe20:00
racarrI think kdub is right with investigate SurfaceRAnker...lots landing so might be easier to just try and see what is going on with GDB rather than guess at what change could have caused it20:01
anpoksurface wanker removal has not landed yet20:01
racarrI can help tomorrow but right now am reloading chromium in to my head and doing updates etc20:01
mterryracarr, no worries20:01
anpokhttps://code.launchpad.net/~alan-griffiths/mir/make-use-of-scene-Surface/+merge/21389420:02
racarranpok: Top 10 typos of 201420:02
racarrMm20:02
anpok:)20:02
racarrmaybe something doesnt work20:02
racarrin the intermediate state20:02
racarrthough20:02
anpoknow i see it .. oh dear..20:03
racarrHahahahaha20:04
anpokmterry: but it could also be related to other changes..20:04
kdubwell, landing soon then :)20:04
kgunnbregma: so...i'm sure i did somethin' wrong...but, i added your unity8 desktop ppa, but i only installed indicator-session....as i wanted to test the usc thingy...20:52
kgunnand i am working off the assumption/knowledge that qtubuntu got update20:52
kgunnd20:52
bregmaI believe it did, let me check on my most updated machine....20:52
kgunnand that lightdm is fixed for cursor20:52
kgunnbregma: yeah...i just didn't have an "option" on the greeter ?20:53
kgunn( i assume its not guest...but that it would say "unity8 desktop" or some such)20:53
bregmais unity8-desktop-session-mir installed?  The one in universe is current20:54
bregmaI have the qtubuntu-desktop installed from universe (0.54+14.04.20140402-0ubuntu1) and it's working for me20:56
bregmalightdm is from main 1.9.14-0ubuntu120:57
bregmaunity8-desktop-session-mir is from universe 1.0.10+14.04.20140402-0ubuntu120:58
kgunnbregma: well i feel stupid....21:02
kgunnjust installed21:03
kgunnbregma: still no luck...here's my usc log22:00
kgunnhttps://pastebin.canonical.com/107762/22:00
kgunni gotta run...22:00
kgunnbut you might want to give usc from the silo ppa a shot22:00
kgunnhttps://launchpad.net/~ci-train-ppa-service/+archive/landing-01122:00
kgunnif it works for you...then its me22:01
kgunnif it doesn't then something else went wonky with usc22:01
bregmagood old "Failed to set DRM crtc"22:12
kdubunrelated :) but, its a real benefit for our interfaces that we have to look at things from the two platform's perspectives22:25
=== chihchun_afk is now known as chihchun

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