/srv/irclogs.ubuntu.com/2015/04/03/#ubuntu-unity.txt

=== cyphase is now known as Guest54587
=== dkessel_ is now known as dkessel
boghisonHi! Can I ask questions about scopes here?13:15
Saviqboghison, sure, note that today is a public holiday in a lot of places though13:18
boghisonSaviq: Are you willing to help? :)13:19
Saviqboghison, I'm willing to try :)13:19
boghisonSaviq: OK, thanks :) I need to learn more about the scope runtime system, specifically how scopes are started. I am writing bindings for Rust and can't start my scope13:20
Saviqit's best to just ask, if someone knowledgeable comes around, they'll try and answer13:20
Saviqboghison, and this is about the new scopes system for the Ubuntu Phone, right?13:20
boghisonSaviq: Yes, but also about the scope tool for the desktop13:21
Saviqsure, that's the same thing13:21
Saviqyou probbaly saw this, but for completeness https://developer.ubuntu.com/api/devel/ubuntu-14.10/cplusplus/unity-scopes/13:21
boghisonyes, of course, that's what I am researching, specifically the Runtime class13:22
Saviqboghison, the scope registry is a long-running process in the user session that starts the queried scopes on demand13:22
Saviqit starts them via the scope runner, which loads the scope's shared object file and starts the machine rolling13:23
boghisonSaviq: Yes, but there's a difference with Rust (and Go for that matter, which has bindings for the scopes api)13:23
boghisonThere's no .so13:23
boghisonIt's the app that has to start13:23
boghisonand the ini file has a field for that13:23
Saviqyeah, they need a different runner (or a custom binary altogether)13:24
boghisonYes, the Runtime class is used13:24
boghisonthe problem is that the scope tool doesn't see my scope and just searches for something generic, therefore providing me with this Unable to add overview scope, can't find with ID: "scopes"13:25
Saviqthat's actually a non-fatal warning13:26
Saviq"scopes" is what's responsible for the "Manage dash" page that you can reach by a bottom swipe on the phone13:27
boghisonAny idea why the scope doesn't start then13:27
boghisonIt gives me some timing errors as well13:27
Saviqhave you checked the scope registry logs in ~/.cache/upstart/?13:27
Saviqis the registry even started? (that could explain the timeout errors)13:28
Saviqi.e. `initctl status scope-registry`?13:28
SaviqI'm afraid this is the extent of my knowledge there, you might need to wait until next week when some of the guys that know more about that part of the system are around13:28
SaviqI think jamesh__ wrote the Go bindings, so he might help if around13:29
boghisonSaviq: C++ scopes work fine13:29
boghisonwhat file do I have to look for in the logs?13:29
Saviqscope-registry.log13:29
boghisonthere's no such file13:29
Saviqthat's the upstart session job responsible for keeping the registry going13:29
Saviqmight be that it didn't log anything13:30
boghisonHmm, there are mostly gzipped files13:30
Saviqthose are rotated logs from before13:30
boghisonthere's this: update-notifier-crash-_var_crash__usr_lib_x86_64-linux-gnu_unity-scopes_scoperunner.1000.crash.log.7.gz13:31
Saviqthat's likely unrelated13:31
boghison:(13:32
Saviqah13:32
Saviqhttps://launchpad.net/go-unityscopes here's the relevant project for go, but I imagine you've seen that already13:33
boghisonYes, I have, the most important files are shim.* and unityscopes.go13:33
boghisonBut I am mostly doing the same13:33
boghisonAnd it still doesn't work13:33
Saviqhow are you starting the tool btw? are you passing the scope id to the tool, or letting it list you all the scopes?13:33
boghisonI am doing unity-scope-tool inifile.ini13:34
boghisonwhich has this field13:34
boghisonScopeRunner=./rust-test --runtime %R --scope %S13:34
boghisonalthough those flags don't do much13:35
boghisonactually, I wanted to tell you13:35
boghisonthe binary doesn't start13:35
boghisonin the main function I log all the arguments13:35
boghisonand nothing gets printed to the console13:35
SaviqI'm not sure, but stdout should be redirected to the scope-registry.log file13:36
Saviqwhen it is started, it's started as a child of the registry, so stdout you get from the test tool is only coming from QML and the plugin from lp:unity-scopes-shell13:37
Saviqhmm or wait, I think if you pass the .ini file, the tool actually creates a custom internal registry13:38
Saviqso whether the session-wide one runs or not is irrelevant, and I'm not sure where stdout goes...13:39
boghison:(13:39
Saviqyou could try printing to a file instead of stdout to confirm it's not being run13:39
boghisonprinting what13:39
boghisonif I redirect the output13:39
boghisonit's just gonna be the scope runner's output13:40
boghisonno?13:40
Saviqno, I mean in your scope runner13:40
Saviqprint to a file13:40
Saviqinstead of to stdout13:40
boghisonyou mean in the binary?13:40
Saviqin your Rust code13:40
boghisonoh, ok13:41
Saviqbecause I'm not sure if stdout from it would ever get printed anywhere13:41
boghisonthis is gonna take a while13:41
SaviqI'm afraid that's as far as I can take you anyway, you'll need to come back when more of my colleagues are online (Tuesday morning AU time probably)13:43
boghisonbut it did print to the file13:47
boghisonat least that is working13:48
Saviq\o/13:51
boghisonI am going to try hacking a bit more13:52
boghisonThanks for your idea13:52
boghison:)13:52
Saviqmterry, hey, you working today?14:18
Saviqmterry, hey, you working today?14:18
mterrySaviq, yes, just slow start to it14:19
Saviqmterry, can you resubmit one of your tutorial branches on the other14:19
Saviqmterry, they're conflicting14:19
mterrySaviq, oh sure, didn't realize I had overlapped14:19
Saviqmterry, for reference https://ci-train.ubuntu.com/job/ubuntu-landing-025-1-build/51/console14:19
Saviqmterry, Josh touched qml/Shell.qml, too, but I'd say there's chance the two tutorial-related ones are the culprit14:21
mterrySaviq, yup, i get a conflict14:21
Saviqt14:21
Saviqx14:21
greybackSaviq: any word on a landing strategy while FF in effect?14:22
Saviqgreyback, FF well past, we're in Beta Freeze now14:22
Saviqgreyback, anyway, I'm still hoping for a global PPA to land into14:23
greybackSaviq: well freeze14:23
Saviqyour well froze?14:23
greybacksounds like by the time it might be ready, we'll be on w-release14:23
Saviqgreyback, sil2100 is still thinking whether a complete derived archive would be better, if anything will happen, earliest next week14:24
Saviqhopefully we'd have a ready-made strategy for next time14:24
mterrySaviq, done14:24
Saviqmterry, tx14:24
sil2100Yeah, although I seem to be leaning towards the PPA option14:24
sil2100Just need to confirm the train codwe14:25
sil2100*code14:25
Saviqin theory this should be just another upload target for publishing14:26
Saviqthe problematic bits is probably migration and publish monitoring14:26
sil2100This part of the train worked fine in the past, but not sure now as we didn't use it for ages14:29
greybackmterry: in summary, I think your fix will do for now.15:05
mterrygreyback, fair enough15:05
mterrygreyback, "Note, the mirserver QPA does not have this "eglcontext" native resource exported. That may cause issues" -- is that an issue with ubuntumirclient too or specific to unity8's use of "mirserver"15:11
mterry?15:11
greybackmterry: just mirserver15:12
mterrygreyback, ok will adjust patch then15:12
greybackmterry: *may* - you tested it, it'll probably be ok15:13
mterrygreyback, haven't tested it yet!  :)  I'm building my patch as we speak15:13
mterrygreyback, took me forever to find a way to build it that didn't die on me15:13
mterrygreyback, can't do it on tiny phones15:13
greybackah ok. well the code checks if it gets a shared context back or not, so it shouldn't break anything15:13
mterrygreyback, ok cool15:14
greybackmterry: does it cross compile in sbuild?15:14
mterrygreyback, I'm testing it in pbuilder15:14
mterrygreyback, we'll see15:14
greybackok15:14
mterrygreyback, I was hoping jenkins would do it overnight, but no luck15:14
greybackouch15:14
mterrygreyback, you say the fix isn't future proof.  Do we have a smarter fix we can implement now, or are you just saying "we know we'll have to come back and edit this in the future"15:17
greybackmterry: sadly I don't15:17
mterrygreyback, cool15:17
mterrywell, cool isn't right word  :)15:17
greybackI've not come up with a reliable way to figure out if qt compiled at runtime with gl or gles15:17
mterrygreyback, I agree that qt should totally already expose that15:20
Trevinhogreyback: hey, I've reproposed your branch https://code.launchpad.net/~3v1n0/unity/switcher-first-selection-mode/+merge/255195, so give it a look please...15:43
greybackTrevinho: ah sweet, I totally forgot about that15:44

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