/srv/irclogs.ubuntu.com/2014/11/24/#ubuntu-unity.txt

=== jzheng is now known as jzheng_afk
* tsdgeos is confused because he gets an email saying his mir landing is stuck08:10
* tsdgeos then realizes the email was supposed to be for AlbertA and not for me08:11
tsdgeostoo many Albert* A* people08:11
tsdgeos:D08:11
Saviqtsdgeos, hey, plugins/Dash/croppedimagesizerasyncworker.cpp:22:27: fatal error: QtConcurrentRun: No such file or directory09:50
Saviq #include <QtConcurrentRun> ¿?09:50
tsdgeoshmmm09:50
tsdgeosi guess09:50
tsdgeoshow does that compile here?09:50
tsdgeosSaviq: which branch?09:50
Saviqtsdgeos, asyncCropped, I imagine09:51
Saviqtsdgeos, https://code.launchpad.net/~unity-team/unity8/rtm-dash-staging/+merge/24151309:51
Saviqthat's what it was trying to build from09:51
tsdgeos./Dash/croppedimagesizerasyncworker.cpp:22:#include <QtConcurrentRun>09:52
Saviqtsdgeos, yeah, -I wrong?09:52
Saviqqt5_use_module needs Concurrent, I think09:53
Saviqso I failed the merge did I09:53
Saviqhmm or not09:54
Saviqwell, I must've, somehow, since your diff includes the find_package, and mine does not09:54
tsdgeosyeah09:54
tsdgeosthe find_package is missing from CMakeLsits.txt09:54
Saviqtsdgeos, still, http://paste.ubuntu.com/9211842/ is better09:55
Saviq'innit09:55
tsdgeosi have no idea what¡s the difference tbh09:56
Saviqtsdgeos, qt5_use_modules actually takes care of checking if the module exists09:56
Saviqhttp://paste.ubuntu.com/9211866/09:57
Saviqand it's more readable09:57
* Saviq wonders how the find_package got lost09:57
mzanettiit was added in two branches. maybe that messed up the merge09:58
tsdgeosSaviq: well the find package also makes sure the module exists09:58
Saviqtsdgeos, yes, but in an unrelated place (in the top-level CMakeLists.txt)09:58
Saviqtsdgeos, which means that you add the _INCLUDE that might not exist, and instead of getting a cmake error early, you get ENOFOUND09:59
tsdgeoswhich is good so all dependencies are checked in the same place ;)09:59
Saviqtsdgeos, I disagree09:59
tsdgeosbut if you want me to apply that change i can09:59
Saviqtsdgeos, fook bzr, somehow the CMakeLists.txt change gets lost when I merge the fucker10:04
Saviqwell, it's there, but not included in the diff ¿?10:04
tsdgeos^_^10:05
Saviqtsdgeos, ah!10:05
Saviqtsdgeos, that's actually an argument for including the dependency change in the same file10:05
Saviqtsdgeos, you added the Concurrent check in CMakeLists.txt in the "get rid of warning" branch10:05
Saviqso it's there in trunk, not in rtm10:05
tsdgeoshow is that an argument for that?10:06
tsdgeosit'd say it's an argument for "merges can't be applied directly from trunk to rtm"10:06
Saviqtsdgeos, but  but!10:07
Saviqtsdgeos, basically, IMO a CMakeLists.txt file (especially for QML plugins) should be as self-contained as possible10:07
Saviqtsdgeos, with as little assumptions as possible10:08
tsdgeosbut none of our files is like that10:08
tsdgeosbut sure, i'll change that  in the async branch10:08
SaviqI'd say most of them are like that (sure, not completely, but at least10:09
Saviqwe should keep that in mind)10:09
tsdgeosSaviq: pushed10:11
Saviqtsdgeos, tx10:12
tsdgeosMacSlow: there?10:18
MacSlowtsdgeos, yup10:19
tsdgeosMacSlow: i do not understand http://bazaar.launchpad.net/~macslow/unity8/swipe-dismiss-snap-decisions/revision/124310:19
tsdgeosthat needs some change in the backend no?10:19
MacSlowno10:21
MacSlowit does not10:21
tsdgeosMacSlow: why?10:22
tsdgeosSaviq: are you going to review https://code.launchpad.net/~mzanetti/unity8/fix-appdelegate-jumping/+merge/241930 regarding the problem you found or want me to?10:22
Saviqtsdgeos, I'll test it with the silo after rebuilding10:22
tsdgeosSaviq: ok10:22
tsdgeosmzanetti: change10:22
tsdgeos verify(Math.abs(Math.abs(appWindowWithShadow.y) - dragDistance) == threshold);10:22
tsdgeosto a compare?10:23
MacSlowtsdgeos, the close() method was always already part of the libnotify-API we support for ages now10:23
tsdgeosmzanetti: and you have added a parameter now10:23
tsdgeosdamn that was for MacSlow10:24
tsdgeosMacSlow: and you have added a new parameter, no?10:24
mzanettiwhat?10:24
mzanettiah10:24
tsdgeosSaviq: https://code.launchpad.net/~larsu/unity8/stop-using-statusicon/+merge/234502 has a serious isssue with jenkins, haven't run in days after a commit :S10:24
tsdgeosmzanetti: for you only the verify -> compare10:24
larsutsdgeos: do you have the powers to nudge jenkins a bit on that10:25
tsdgeosi do i guess10:25
tsdgeoslet me try10:25
Saviqtsdgeos, I'll take care of that10:25
tsdgeosSaviq: tx10:25
* Saviq wonders why it didn't run "/10:26
Saviq:/10:26
MacSlowtsdgeos, well yes... it's only really used (and needed) for the qmltest10:26
MacSlowtsdgeos, the real backend ignores it10:26
tsdgeosignore what?10:27
MacSlowtsdgeos, the passed paramter (as used in the qmltest)10:28
tsdgeosMacSlow: but does it already have the paramater and it's just unused? or is not there at all?10:28
* Saviq back in 1h or so10:29
MacSlowtsdgeos, not there at all10:31
MacSlowtsdgeos, it's only used in the qmltest10:31
MacSlowtsdgeos, and close() is most unlikely to be be needing a parameter in the real backend... especially considering it's public API... for the qmltest I'm slightly bending "the rules" a bit, but the amount of code and effort (in the NotificationMocks plugin) this saves is considerable.10:34
tsdgeosMacSlow: i think relying on the JS->C++ binding ignoring the extra parameter to call an invokable function with less parameters is a bit on the too much side to be honest10:40
tsdgeosSaviq: ↑ ?10:40
MacSlowtsdgeos, Saviq: The alternative is a lot of code to be added to the NotificationMocks plugin (and possibly adjustment of existing and working notification qmltests) for just one single method (close()) to work as expected in the qmltests.10:45
tsdgeosthe mock doing what it should do10:46
tsdgeosis what mocks are about10:46
tsdgeosyou're not supposed to add extra code to your code10:46
MacSlowtsdgeos, Saviq: with my cost-benefit understanding, I'm in favour of the less-impactful solution, which is currently in the swipe-dismiss-snap-decisions unity8-branch.10:47
MacSlowtsdgeos, mzanetti: so no approval until I replicate all of the backend in the NotificationMocks and can the current solution?10:50
tsdgeosMacSlow: i don't fell calling close(moo) and then the C++ method being only close() is good10:51
tsdgeosbut if Saviq thinks it's fine i'll approve it10:51
MacSlowtsdgeos, I understand the concern to some extend, but also wanted to avoid blowing up the diff for the sake of one single method being needed.10:52
tsdgeosi'm unconvinced tbh11:04
tsdgeosare we back to qmluitests failing in trunk?11:04
mzanettiMacSlow: yeah, I tend to agree with tsdgeos here11:05
MacSlowtsdgeos, mzanetti: ok... two against one... I guess I lose :)11:06
mzanettitsdgeos: btw, I pushed the verify -> compare thing11:07
tsdgeosMacSlow: tx11:07
MacSlowtsdgeos, mzanetti: I'll resurrect the older stuff I did for NotificationMocks before11:07
tsdgeosmzanetti: tx11:07
tsdgeosyes we are (qmluitests failing in trunk)11:09
tsdgeosi'll fix some11:09
tsdgeossdk broke us again :/11:19
=== _salem is now known as salem_
=== Malsasa_ is now known as Malsasa
tsdgeosQQmlExpression: Expression file:///home/tsdgeos_work/phablet/unity8/qmluitestsfix/qml/Components/LazyImage.qml:115:19 depends on non-NOTIFYable properties:11:29
tsdgeos    QQuickImage_QML_10::source11:29
tsdgeosthat looks bad11:29
Saviquuuugrh11:45
* Saviq will work on moving our qmluitests to autopkgtests this week, will block UITK from releasing things that break our tests :P11:46
tsdgeosSaviq: dednick: https://code.launchpad.net/~aacid/unity8/qmluitestsfix/+merge/24265212:11
tsdgeosfixes 3 out of the 4 qmltests failingg12:12
tsdgeosthe other one is the source property12:12
tsdgeoswhich can't fix12:12
tsdgeosSaviq: how will it fix it? are all autopkgtests run after sdk landing?12:12
Saviqtsdgeos, autopkgtests are ran for _the package_ and any dependants12:12
tsdgeosnice12:13
Saviqindeed12:13
dandradermzanetti, in TabletStage, spreadRepeater.itemAt(0) will always be the focused one on the main stage?12:16
mzanettidandrader: no12:17
mzanettidandrader: if there is only a side stage app running not. atm the dash can only be main stage but that is to be changed according to designers12:18
mzanettidandrader: also there might be other cases...12:19
dandradermzanetti, erm.. couldn't parse your last sentence.12:19
mzanettibottomline: no, don't rely on itemAt(0) to be neither the focused one, nor always in main stage12:19
dandradermzanetti, so if the main stage is empty and there's only an app in the side stage then itemAt(0) will be that side-stage guy. but if there's someone focusedon the main stage, he will be at itemAt(0), right?12:20
mzanettinot noecessarily I think12:21
=== MacSlow is now known as MacSlow|lunch
mzanettidandrader: index in model != z index12:21
mzanettidandrader: there is priv.mainStageAppId12:24
=== dandrader is now known as dandrader|afk
=== Malsasa_ is now known as Malsasa
cwayne-afkmzanetti: finally got my site back up and running, guess it got 'hacked' by some script kiddies or somethin'12:47
mzanettiouch12:52
=== dandrader|afk is now known as dandrader
dandraderSaviq, greyback_, we should support upside down in tablets, right (unlike with phones)?13:19
dandraderie, inverted landcape13:19
* greyback_ looks to see if spec said anything13:20
greyback_dandrader: I don't see anything in the spec, so I say do whatever is easiest for you13:21
=== MacSlow|lunch is now known as MacSlow
greyback_allowing all orientations probably makes most sense13:21
Saviqgreyback_, dandrader, even on phone it's controversial to disable it13:24
greyback_it's what the spec says. And I agree, you're less likely to hold phone upside-down to your face to answer a call13:24
Saviqagreed13:24
Saviqbut then there's the case of all the sockets13:25
Saviqwhere you suddenly can't rotate your phone to what's more convenient (when charging or with headset connected etc.)13:25
mzanettitsdgeos: hmm in here: https://code.launchpad.net/~aacid/unity8/qmluitestsfix/+merge/24265213:25
dandraderSaviq, greyback_, My idea is to have a device config file or something from where unity8 reads things such as what is the primary orientation and the supported device orientations13:26
* greyback_ thinks 3 out of 4 orientations enough to find something comfortable13:26
mzanettitsdgeos: doesn't the change in tst_Indicators basically come down to a wait(100), and if it doesn't match to wait(200)13:26
mzanetti?13:26
mzanettitsdgeos: what I mean is that if you do "mappedPosition = aux", wouldn't this always be true afterwards? "mappedPosition.x == aux.x"13:27
dandraderjust don't know yet what's the best/easiest way to achieve such thing. ideas welcome13:27
greyback_dandrader: +1 on file setting primary device orientation. -1 on it defining supported orientations, as that's more code-paths to support and unused ones likely to bitrot13:27
dandradergreyback_, do you remember what to we do to reade the device name?13:27
Saviqgreyback_, well, that's the thing, if your power connector is on the bottom13:27
Saviqgreyback_, and you still want it portrait13:28
greyback_we've had this argument :)13:28
Saviqgreyback_, you only get one13:28
SaviqIMO it should be user-overridable even13:28
greyback_dandrader: yeah was via the library for adb13:28
* greyback_ hunts for code13:28
Saviqdandrader, libandroid-properties13:28
dandradergreyback_, about your -1. it's no big deal. it's just a Qt.ScreenOrientations var that will be &ed with the apps supported orientations to define the final shell rotation. that logic is there and must work regardless of the actual value of the supported device orientations var13:31
dandraderSaviq, thanks13:31
greyback_dandrader: if you say so. I'm not gonna block on it, but I'm not fond of the idea13:31
=== cwayne-afk is now known as cwayne
greyback_dandrader: yeah I musta deleted the code I had using android-properties, but it's pretty straight forward13:32
=== Malsasa_ is now known as Malsasa
dandraderhmmm, I wonder what libandroid-properties will say when running on a desktop...13:35
Saviqmterry, re: shutdown dialog on suspend, lp:~mterry/unity8/cache-greeter-bg fixes it then?13:36
mterrySaviq, it does, but at the cost of memory13:36
mterrySaviq, I tried a naive "make greeter load async" but it had problems, looks like that would need a smart-ish fix13:37
Saviqmterry, but we have ideas (like dropping in a black overlay straight away and having an async image on top)?13:37
mterrySaviq, so I just tried to cache bg.  But we apparently explicitly wanted to save that memory in the past13:37
Saviqmterry, yeah, let's find out what the impact really is13:37
mterrySaviq, we could do something like that yeah, and make the greeter load async.  I don't recall what exactly the bugs were when I simply added async: true.  But I abandoned that path to just cache the bg13:38
Saviqmterry, kk13:38
mterrySaviq, but we should look at async again, I'm sure it's solvable  :)13:39
mterrySaviq, the confusing part to me is that CrossFadeImage marks its internal Image objects as async13:39
mterrySaviq, maybe I don't know much about qml image loading, but I would have assumed that would solve the problem for us13:40
Saviqmterry, maybe it's not the images then but creating the greeter itself13:40
Saviqwith the infographics and all13:40
mterrySaviq, but when I simply moved the image out, it fixed the problem (and greeter load was instant)13:40
Saviqmterry, right, so that could simply be IO13:41
Saviqmterry, which, apparently, is *really* slow on mobile13:41
Saviqmterry, that we could fix by caching a pre-cropped, pre-scaled image13:41
mterrySaviq, but async, right?  Wouldn't the async bits of CrossFadeImage mean that we'd return from greeter.show() immediately and load in background?13:41
Saviqmterry, well, that's assuming your whole phone isn't IO-blocked...13:41
mzanettiSaviq: the impact was ~35MB on a Nexus10 and around 10MB on a Nexus413:42
mzanettithat's what I recall from when I moved it to a loader13:42
Saviqmhm13:42
Saviqdandrader, so I can release the silo without your touch postEvent branch even, now that UAL got fixed to not spin our mainloop?13:43
dandraderSaviq, yes. I even pulled out its merge proposal13:44
Saviqdandrader, ah I thought you left it WiP is why I couldn't find it13:44
Saviqdandrader, we don't want that change then?13:44
dandraderSaviq, it's really not needed. I will come back to it later, after the shellRotation work13:45
Saviqdandrader, o13:45
Saviqk13:45
Saviqtsdgeos, FYI I'll wait for your MP to silo things, please prio it13:50
mterryCimi, any feedback so far on the wizard-plugin stuff?  I can make some changes in response to early review comments as you finish the review13:58
Cimimterry, I am bad in C++13:59
Cimimterry, but I can submit the qml things I saw for now13:59
mterryCimi, sure, would let us work in parallel a bit13:59
mterryCimi, do you want another reviewer for the c++ stuff or are you just saying you're chewing through it, just slower than the qml stuff?14:00
Cimimterry, chewing14:00
Cimibut as always I might not be able to spot everything14:00
mterryCimi, cool :)14:00
mterryCimi, eh, that's true for every review by anyone  :)14:00
tsdgeosSaviq: which one?14:01
Saviqtsdgeos, sorry ;)14:02
tsdgeosSaviq: the one for tests?14:02
Saviqtsdgeos, the qml tests one14:02
Saviqyup14:02
tsdgeosSaviq: it's up already14:02
Saviqtsdgeos, but mzanetti NeedsFixin' it14:02
tsdgeosah14:02
* tsdgeos reads14:02
mzanettineedsinfo actually, but yeah14:02
Cimicooking now, catch you in 2014:02
dednicktsdgeos: comment attached14:05
tsdgeostx14:05
Saviqpaulliu, hey, are you proposing https://code.launchpad.net/~paulliu/unity8/lp1350891_ScrollBackground or still working on it?14:06
mzanettidednick: hmm... tryCompareFunction does execute the function repeatedly14:06
tsdgeosdednick: mzanetti: you're right i missed updating aux again14:06
tsdgeosdednick: mzanetti: pushed something new14:06
mzanettitsdgeos: as I constantly tell Mirco he's not allowed to use wait() I'd prefer we follow that too (even though I understand the difference in your use case) :D14:07
tsdgeosdednick: i can move to the dowhile you mentioned, i'm not a fan of do whiles14:07
tsdgeosdednick: i can move to the dowhile you mentioned, i'm not a fan of do whiles14:07
tsdgeosmzanetti: then suggest something that works :D14:07
mzanettitryCompareFunction, no?14:07
tsdgeosno14:07
tsdgeoshow do i check it has stopped moving?14:08
dednicktsdgeos: neither am i, but it was less code lines to give the example;)14:08
tsdgeoswith a tryCompareFunction?14:08
tsdgeosat most i can try to guess that's the value14:08
tsdgeosand compare for that14:08
paulliuSaviq: ah. I'll need to ask an image from designers.14:08
paulliuSaviq: to tile it. Not yet done.14:08
dednicktsdgeos: well, i guess if you stall before the trycompre it may work.14:08
dednickerm, actually no14:09
mzanettitsdgeos: ohh, now I get what you're doing.. the new line you pushed changed it significantly14:09
paulliuSaviq: context switching to another branch now. I'll go to the designer and ask what to do now.14:09
mzanettiyeah, tryCompare won't work in this case14:10
tsdgeosmzanetti: but i'm with you14:10
tsdgeosi should try comparing the final vale14:10
tsdgeosit's always 59.514:10
mzanettiif possible, please do so, yes14:10
tsdgeosso i guess i can try to find out what 59.5 is :D14:10
mzanetti:)14:10
dednicklol. why is it moving?!14:10
tsdgeosdednick: well it's just created, they grow from the right14:11
dednickoh. think it's some behaviour in the14:11
dednickpanel14:11
Saviqpaulliu, ok, one thing I noticed there, you don't need the additional Flickable, just fill GenericScopeView or so14:12
paulliuSaviq: ok.14:13
Saviqpaulliu, did you request the new asset? remember we'll need a background that will work for different aspect ratios14:14
paulliuSaviq: ok. BTW, who is the best one I should ping?14:15
Saviqpaulliu, the bug's assigned to Esti, so her14:17
paulliuok14:17
Saviqmzanetti, is bug #1368668 handled by your reversible spread branch maybe?14:25
ubot5bug 1368668 in unity8 (Ubuntu RTM) "[Apps switcher] Visual feedback of user's finger movement needed throughout the gesture" [Medium,Triaged] https://launchpad.net/bugs/136866814:25
* mzanetti reads14:26
mzanettiSaviq: yea... a bit surprised vesar creates duplicates of his own bugs :)14:27
Saviqmzanetti, well I think what he means is the short span where you move your finger and nothing's moving on screen14:27
Saviqmzanetti, that not the case after reversible spread?14:27
mzanettiSaviq: well, it is for 2 gus on the left edge14:28
Saviqmzanetti, no, I meant between toggle and spread14:28
mzanettiSaviq: so if you move the finger all across the screen the leftmost 2gus don't move anything any more14:28
* Saviq tries14:28
Saviqmzanetti, nope, still there14:29
mzanettithen I don't get it14:30
mzanettiwait.14:30
Saviqmzanetti, try moving your from the right edge so that it takes like 5s to span the scree14:30
mzanettiis that about the snapping in the middle?14:30
mzanettiSaviq: ^14:30
Saviqmzanetti, roughly in the middle, the "next" app stops and both start moving after some 4gus later14:30
mzanettiffs14:30
mzanettithat's the next one I told them is bad when we first did it :D14:31
mzanettiok... well then14:31
mzanettiassign it to me14:31
Saviqsee, you should be a UX designer ;P14:31
mzanettiyeah14:31
mzanettitotally14:31
mzanettithey should just tell me: we want a right edge spread, to whatever you like :D14:32
tsdgeosmzanetti: dednick: so adding a waitForRendering makes it work on valgrind for me, so pushed that at the end14:47
tsdgeosSaviq: ↑14:47
Saviqkk14:52
mzanettitsdgeos: jenkins still complained about a fail in testLazyImage, but I couldn't repro14:55
tsdgeosmzanetti: that's sdj14:56
tsdgeosmzanetti: it's been reported and fix is incoming14:56
tsdgeosmzanetti: i guess your sdk is too old :D14:57
mzanettiah ok14:57
mzanettitsdgeos: approved14:57
tsdgeosany idea where all those "Using blocking call!" come from?15:05
tsdgeosah maybe it's the qtdbus patches?15:05
tsdgeosMirv: do you know if the patches you added to dbus add a "Using blocking call!" debu?15:06
tsdgeosmterry: i think you're eatly-disable has lots of badtags15:10
mterrytsdgeos, guh I can't get these tags right today15:10
tsdgeoslet me re-branch15:10
tsdgeosjust to make sure15:10
mterrytsdgeos, I'm running the strip script on it now15:10
tsdgeosok15:10
mterrytsdgeos, yeah it has some bad tags15:10
tsdgeoscltr+c15:10
mterrytsdgeos, they keep slipping into my remote branches despite being clean locally.  I must be doing something wrong when merging15:11
mterrytsdgeos, ok clean15:17
=== dandrader is now known as dandrader|lunch
Cimimterry, don't we have anything better than using a blank space to check an unset license path?16:35
mterryCimi, we could use a separate property probably16:35
Cimimterry, even empty is not good enough?16:36
mterryCimi, no because empty is a valid return if HERE isn't installed16:36
mterryCimi, but we need to distinguish between "got empty back" or "haven't heard back yet"16:36
Cimimmm16:36
mterryCimi, I agree it's a bit of a hack.  A separate property is probably cleaner, but I got a bit lazy there16:37
Cimimterry, have a coffee :) no rush16:38
=== dandrader|lunch is now known as dandrader
mzanettiSaviq: ping17:09
Cimimterry, we should move to a new path for wizard has run18:00
Cimimterry, maybe move the file if the old is detected?18:01
mterryCimi, we could sure... but I didn't think it was worth the complexity18:01
mterryCimi, no one touches that file by hand (should go through phablet-config welcome-wizard --enable)18:02
Cimimterry, we should do it now since we are still beta18:02
mterrywe'd have to update phablet-tools as well18:02
Cimimterry, yeah we can do that...18:02
Cimimterry, or move the file from upstart or what18:02
mterryCimi, we're not really.  This is for vivid.  Rtm has already branched18:03
mterryCimi, but who cares what the filename is?18:03
Cimimterry, probably Saviq :P18:04
CimiI'd put it under a more generic or unity8 path if we decide to move it to unity818:04
Cimiit kinda changes app so we could move it, that was my though18:04
mterryCimi, I agree that it *should* live in a unity8 path or what not -- I even have a comment in the C++ saying that it's only the current path for historical reasons.  I just don't think it's worth the complexity of the code change to support migration18:07
Cimimterry, valid point18:08
Cimimterry, let's double check with saviq tomorrow, we can always migrate in a branch in the future18:08
mterryCimi, but I'm willing to be out-voted :)18:08
=== alan_g is now known as alan_g|EOD
=== salem_ is now known as _salem
=== greyback__ is now known as greyback
=== _salem is now known as salem_
=== salem_ is now known as _salem
balloonsmzanetti, I have a present for you if you are about22:54
mzanettiballoons: terminal app?23:01
balloonsmzanetti, file manager and terminal are in the store. indeed23:01
mzanettiawesome :)23:01
balloonsI can't add my ubuntu one account though, so I can't install :-(23:01
mzanettihmm... iirc that worked for me... will try tomorrow23:02
balloonsindeed.. good stuff. I want to try your windowing with it23:02

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