/srv/irclogs.ubuntu.com/2017/02/10/#ubuntu-app-devel.txt

=== _salem is now known as salem_
=== salem_ is now known as _salem
=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
renatumhall119, hi could you review this mr? https://code.launchpad.net/~renatofilho/ubuntu-docviewer-app/no-file-hint/+merge/31686511:31
renatumhall119, and this one? https://code.launchpad.net/~renatofilho/ubuntu-calculator-app/snap-mir/+merge/31688911:32
=== _salem is now known as salem_
* Mirv updates qt58 cloud part description a bit now that Qt 5.8.0 is actually released13:52
ltinklkalikiana, so to continue, I branched trunk and submitted against staging, is that correct?13:55
kalikianaltinkl: Aha. I was about to ask that. You need to branch lp:ubuntu-ui-toolkit/staging - not trunk13:56
kalikianaOtherwise your diff includes all the changes since the latest stable trunk13:56
ltinklkalikiana, that explains it :) ok, will resubmit13:56
ltinklkalikiana, now it looks better: https://code.launchpad.net/~lukas-kde/ubuntu-ui-toolkit/asyncDbusClipboard/+merge/31696514:09
kalikianaThanks!14:16
kalikianaartmello: ^^14:19
kalikianaltinkl: Did you consider how this could be unit-tested?14:21
ltinklkalikiana, well hard to do imo - as it's a race condition14:23
ltinklkalikiana, and the MockContentService used in the test won't cut it14:24
kalikianaltinkl: How about making the mock service sleep when it initializes or responds? And then one could see if the test slows down when initializing the QML14:26
kalikianaSimplifying the problem, the service shouldn't affect creating the component, right?14:26
ltinklkalikiana, but it does, since it's a singleton and it's used in a Connections from QML14:28
kalikianaltinkl: Well, I'm trying to narrow down what's affecting startup of Unity in the context of the bug report14:29
kalikianaThat's what you're trying to fix14:29
kalikianaIt can affect startup so long as initialization is synchronous14:29
kalikianaRight?14:30
ltinklkalikiana, the problem is: unity8/qtmir is starting up, we have a TextField somewhere in our GUI which contains the call to UCContentHub, calls content-hub over DBUS, but at the same time content-hub is asking qtmir for authorization14:30
ltinklkalikiana, I assume content-hub somehow also queries the clipboard, but the implementation of QPlatformClipboard is in qtmir :) so we get a nice circular dependency and DBUS gets stuck, until one of the calls times out14:33
kalikianaHmmm14:34
ltinklkalikiana, the tricky (blocking) part is creating QDBusInterface in your CTOR, you don't even have to make any calls14:35
kalikianaltinkl: Maybe the mock service should actually just time out the first call? To mimic what's happening at login, regardless of the actual reason14:38
* ltinkl thinking if it would really prove anything14:38
kalikianaltinkl: Do you know if the real content hub eventually returns anything useful right now?14:41
kalikianaOr does it just timeout with an error14:41
ltinklkalikiana, heh ye, that's another prob - your implementation uses calls that (at least here) do not even exist on dbus14:41
kalikianaltinkl: How do you mean don't exist?14:42
ltinklkalikiana, if I introspect my content-hub, it e.g. doesn't have "RequestPasteByAppId"14:42
ltinklkalikiana, or the "PasteSelected" signal14:43
kalikianaInteresting.14:43
ltinklkalikiana, PasteboardChanged and PasteFormats is there14:44
kalikianaMaybe let's wait til artmello could provide some input - I don't actually know that much about contenthub14:44
ltinklkalikiana, yeah, me neither14:46
=== LiQiong_Lee1 is now known as LiQiong_Lee
kalikianaltinkl: Do you mind if I copy your explanations into the MR description?14:48
ltinklkalikiana, sure. go ahead14:48
kalikianaThanks14:50
ltinklkalikiana, hmm, the popover is also wrong: if I select some text and do Ctrl+C, it gets copied to clipboard which I can paste using Ctrl+V; but the Paste icon is disabled (because content-hub doesn't have it)14:53
artmelloltinkl, kalikiana: hey, sorry was afk14:55
artmelloltinkl, kalikiana: reading. content-hub still do not return anything because silo 2179 still did not land14:56
artmelloltinkl, kalikiana: we hoped it would land together with uitk changes but we got delayed after mir update. right now we are blocked with bug #166170414:57
ubot5bug 1661704 in mir (Ubuntu) "mir_window_request_persistent_id_sync seg faults when called twice" [Critical,Triaged] https://launchpad.net/bugs/166170414:57
=== LiQiong_Lee1 is now known as LiQiong_Lee
artmelloltinkl, kalikiana: so, yeah, none of those dbus calls are available on content-hub so far14:58
ltinklartmello, I see, thx; please have a look at my branch, it blocks u8 startup, quite severe14:59
artmelloltinkl: sure, checking it right now15:00
kalikianaltinkl: You've got some unit test failures16:10
ltinklkalikiana, yup, looking into it16:11
=== JanC_ is now known as JanC
ltinklkalikiana, do you have an easy way to run a single test (instead of the "make test" beast)?16:31
kalikianaltinkl: Sure. Change into the folder of the test and run 'make check' (assuming you're using Make). See also the file README, section Tests.17:13
=== LiQiong_Lee1 is now known as LiQiong_Lee
=== salem_ is now known as _salem
=== _salem is now known as salem_
=== salem_ is now known as _salem
=== _salem is now known as salem_
=== salem_ is now known as _salem

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