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

ashadiqican i chat now?07:05
anpokwhat is the cross-compilation safe way of querying QT_INSTALL_QML path within cmake?09:43
anpoki have seen scripts calling qmake -query QT_INSTALL_QML? But that seems to fail in sbuild09:43
anpokoh ok Saviq already reported that09:53
anpokboneheads /o\10:01
Saviqanpok, yeah, the "safe" way is ${CMAKE_INSTALL_LIBDIR}/qt5/qml10:24
SaviqAlbertA, could you please confirm in bug #1364453 what needs to happen10:29
ubot5`bug 1364453 in unity8 (Ubuntu) "Brightness setting does not persist across reboots" [High,Confirmed] https://launchpad.net/bugs/136445310:29
anpokSaviq: thx works10:41
facundobatistaBuenas11:01
=== MacSlow is now known as MacSlow|lunch
=== _salem is now known as salem_
=== ubot5` is now known as ubot5
=== MacSlow|lunch is now known as MacSlow
dandraderdednick, I wonder how come this wasn't crashing http://paste.ubuntu.com/8318782/   As was doing some qtmir changes this test was crashing and I did this change to fix it.13:05
greyback   Actual   (): USD0.9913:19
greyback   Expected (): 0.99USD13:19
greybackwhat do I set to fix that test?13:19
Saviqgreyback, LC_ALL=C13:24
greybackSaviq: I guessed that, thanks13:24
greybackjust wanted confirmation while I waited :)13:25
dednickdandrader: erm.13:48
dednickdandrader: i guess the memory was still valid13:49
dednickdandrader: were you doing test in a debug build maybe?13:50
dandraderdednick, yeah. maybe debug builds clear out freed memory right away13:51
dandraderbut release ones don't just bother (aka optimization)13:51
dandrader*just don't13:52
dednickdandrader: ya. probably13:52
kgunnpopey: hey, so these are both yours...kinda feels like a dup...wonder if there's a slight nuance diff i'm missing (before i dup)13:57
kgunnbug 135542213:57
ubot5bug 1355422 in unity8 (Ubuntu) "[notifications] Can't dismiss notification bubbles" [High,In progress] https://launchpad.net/bugs/135542213:57
kgunnbug 133485513:58
ubot5bug 1334855 in Ubuntu UX "[design] Can't use toolbar while notifications on screen" [Undecided,New] https://launchpad.net/bugs/133485513:58
popeyyeah, they're same13:58
popeyi expect i forgot i filed one13:59
popeyyeah, 2 months between them, i certainly forgot ☻13:59
popeyfeel free to dupe them.13:59
Saviqkarni, https://bugs.launchpad.net/ubuntu/+source/unity-scopes-api/+bug/1368243/comments/214:02
ubot5Ubuntu bug 1368243 in unity-scopes-api (Ubuntu) "Scope consistently causes scope runner crash" [Undecided,New]14:02
karniSaviq: yes14:03
karniSaviq: I'm supposed to run this on the device, or can I adb pull the log and run it on it?14:06
karnion my PC14:06
Saviqkarni, device14:06
Saviqkarni, although at this point (I assume it's uploaded to errors.u.c it already has all the data)14:06
karnithere's no .uploaded file yet14:07
Saviqkarni, enough if there's an .upload one14:07
Saviqkarni, in general if you have a .crash file, use apport-cli to file it to LP14:07
karninot either14:07
Saviqkarni, then yeah, on device14:07
karniok14:07
Saviqkarni, 'cause the .crash doesn't have info from the device yet14:07
karniSaviq: Can I force the upload of the crash files? I'm reading apport-cli and apport-collect manual, and I've got other important work to do as well :(14:10
karniI don't know what's the package name of scope runner14:10
karniand apport-collect won't just take the crash file14:10
Saviqkarni, just apport-cli /path/to/crash14:10
Saviqkarni, let me know the bug number and I'll dupe as needed (you'll have to subscribe me 'cause bug will be private initially)14:11
karniSaviq: https://bugs.launchpad.net/ubuntu/+source/unity-scopes-api/+bug/1368243/comments/314:11
ubot5Ubuntu bug 1368243 in unity-scopes-api (Ubuntu) "Scope consistently causes scope runner crash" [Undecided,New]14:11
Saviqkarni, you can remove the "Reason" line from the .crash file14:12
Saviqkarni, you should be able to upload then14:12
karniSaviq: the crash file does not contain a "Reason" word14:13
Saviqkarni, looks like the crash collection didn't work then14:13
Saviqkarni, steps to repro would be great (or removing the .crash and getting it to crash again, hoping the core will be good)14:13
karniSaviq: repro is very simple. fresh flash (as of today), and open Photos scope14:14
karniI'll include that in the report14:14
Saviqkarni, k14:14
seb128you guys know qml right? do you see anything wrong in http://paste.ubuntu.com/8319172/14:15
seb128taht's driving me crazy14:15
seb128why isn't a text entry widget in a mainview with nothing else getting the keyboard focus by default, even with "focus: true" set14:15
Saviqseb128, because you don't have a FocusScope with focus: true14:15
seb128Saviq, I though the scope was useful when you had groups of widgets14:16
Saviqseb128, you need at least one, but in any case I'd recommend Component.onCompleted: forceActiveFocus()14:16
seb128Saviq, thanks, I guess that works, but it still seems qml is being overly complex there14:18
seb128those sort of things should just work :/14:18
Saviqseb128, yeah, but setting focus: true without a FocusScope doesn't do much14:19
seb128Saviq, the concept of focusscope is not easy to grasp, at least to me14:20
seb128on a normal column layout, there should be one scope and whatever widget has focus: true should get the focus14:20
Saviqseb128, http://qt-project.org/doc/qt-5/qtquick-input-focus.html14:20
seb128without needing of magic14:20
seb128Saviq, I read that in the past, I guess I need to read it again14:20
seb128that's the sort of things that seem to just work in other toolkit, I wonder why it doesn't in qt :/14:21
Saviqseb128, within a FocusScope there's a chain/hierarchy of items, only one on each hierarchy level can have focus: true14:21
Saviqseb128, that's basically a "cache" of focus14:21
Saviqseb128, meaning that when the FocusScope gets focus, the last child to have focus: true gains activeFocus14:21
seb128Saviq, well, in my example there is nothing else that could get focus14:22
Saviqseb128, this way you can move focus between FocusScopes while maintaining the focus chain within them14:22
seb128well I can change the pastbin to MainView { TextInput { }}14:22
Saviqseb128, but only FocusScope handles these14:22
* Saviq has no idea how MainView deals with that14:22
seb128Saviq, I appreciate it allows for complex scenarios to work14:22
seb128but it makes simple cases not work14:23
seb128like one widget on a page14:23
seb128and focus: true does nothing14:23
seb128I'm sure I'm not the only appdev to struggle with that ;-)14:23
seb128Saviq, thanks for the help/explanations!14:23
seb128Saviq, also on the same example, clicking on the button unfocus the entry, is that normal or a bug?14:24
seb128http://qt-project.org/doc/qt-5/qml-qtquick-controls-button.html states14:24
seb128"This property specifies whether the button should gain active focus when pressed.14:24
seb128The default value is false.14:24
seb128"14:24
Saviqseb128, you most probably need to set focus: true on the MainView, too14:25
seb128setting that property to false works14:25
seb128so I guess the "default value is false" has an iossue14:25
seb128Saviq, oh, that works indeed ;-)14:25
Saviqseb128, wonder if MainView is a FocusScope actually14:26
=== shiznix_ is now known as shiznix
dednickCimi: hey. can you look over the changes i've made to https://code.launchpad.net/~nick-dedekind/ubuntu-settings-components/indicator-polishing/+merge/229083 since you approved?14:49
Cimidednick, why are you not in the hangout? :)14:49
dednickCimi: i am!14:50
dednickseb128: with the datetime sync issue in u8 indicators, how long does it take to resync once the screen is back on?14:55
Saviqdednick, under a minute15:03
Saviqdednick, it looks like it doesn't get the update until it changes again15:03
dednickSaviq: hm.15:04
Saviqdednick, but folks confirmed that if they dbus-query it, it's correct there15:04
seb128dednick, yeah, less than a minute usually15:04
seb128but it doesn't seem to be on minute changes15:04
dednickseb128: after the dbus query does the indicator ui sync? or still wrong for a bit?15:05
dednickseb128: you see the datetime thing on krillin?15:33
seb128dednick, yes15:33
seb128dednick, that's the device I'm testing on15:33
dednickseb128: can't seem to get it to fail on mako15:33
dednickseb128: will try on krillin15:33
seb128thanks15:33
seb128how much did you try?15:33
seb128it's not consistently happening15:33
seb128but I can see it several time a day15:33
dednick2 or 3 times now. bit painfull waiting constantly :)15:34
=== dandrader is now known as dandrader|afk
seb128well, I don't think waiting/trying after a few minutes is going to work15:35
seb128though it might, who knows15:35
Saviqdednick, you did disconnect it from usb did you?15:35
dednickSaviq: ya15:35
seb128typically I pick my krillin from my pocket after an hour not using it, to look at the time15:35
dednickseb128: my last try was about 20 minutes, but no sync issue i could see15:36
dednickbut if it's random...15:36
seb128yeah15:36
seb128what sort of info would you need when it happens?15:36
seb128the dbus call to the indicator display the right time15:36
seb128the greeter/lock and panel are off though15:36
dednickseb128: doesn't it sync straight after you reconnect usb?15:38
seb128dednick, not sure, going to tell you next time15:39
dednickseb128: how did you check that the datetime was in sync while the indicator was since it's re-syncing quickly15:39
seb128oh, good point, so "no, it's not resyncing my plugged"15:39
dednickseb128: or did you just connect it, then check15:39
seb128I did connect and check15:39
dednickah15:39
dednickmh15:40
seb128it took like 45 seconds before having it updated15:40
seb128I had time to poke around and run the command several times15:40
seb128dednick, ok, in fact just having it15:41
dednickseb128: i know that indicator-datetime goes to sleep sometimes when the screen is off (charles, this is correct right?). So i'm just wondering if it's that.15:41
seb128my device says :3915:41
seb128I connected to usb, no update15:41
seb128still outdated15:41
dednickseb128: can check process state of indicator-datetime?15:41
charlesseb128, is this the issue? https://bugs.launchpad.net/ubuntu/+source/indicator-datetime/+bug/135980215:42
ubot5Ubuntu bug 1359802 in indicator-datetime (Ubuntu) "header's timestamp can take a minute to update after resume from suspend" [High,In progress]15:42
seb128dednick, if the indicator was not running, then the "--object-path /com/canonical/indicator/datetime --method org.gtk.Actions.Describe phone-header" would be outdated15:42
seb128charles, yes15:42
charlesseb128, dednick, that one's on my short-term TODO after the brightness slider in i-power15:43
dednickseb128: erm, well it would resume the process through dbus call no?15:43
seb128dednick, well, that's not enough to have the unity synced thoguh15:43
seb128I can call the dbus check, get a result15:43
seb128and still see unity outdated15:43
charlesseb128, if unity is out of sync with the service, that's not the same as 135980215:44
seb128charles, indeed not15:44
dednickcharles: yeah, the header seems to be correct15:44
Saviqdednick, one other thing I noticed that might be related15:44
seb128dednick, charles, https://bugs.launchpad.net/ubuntu/+source/unity8/+bug/136553015:44
ubot5Ubuntu bug 1365530 in unity8 (Ubuntu) "Time in indicator out of sync on resume from suspend" [High,Triaged]15:44
Saviqdednick, when you get a push notification in the notification center menu15:44
dednickseb128: and calling that dbus method doesn't cause the resync?15:44
=== alecu is now known as PyAr
seb128dednick, need to check again to be sure, but iirc no15:45
=== PyAr is now known as alecu
dednickseb128: ok. thanks15:45
Saviqdednick, the LED doesn't light up until you turn the screen on15:45
dednickLED?15:45
dednickSaviq: ah.15:45
dednickSaviq: you mean the notification LED?15:46
seb128dednick, charles: hum, just tried, in that case the indicator dbus info was outdated15:47
seb128so maybe several issues there15:47
charlesseb128, how far out of date?15:48
charles>1 minute?15:48
seb128charles, 3 minutes15:48
Saviqdednick, yeah15:49
seb128it displayed 44 where time was 4715:49
charlesseb128, you queried indicator-datetime on dbus and it returned a time that was 3 minutes off from the wall clock?15:49
seb128charles, correct15:49
seb128$ gdbus call --session --dest com.canonical.indicator.datetime --object-path /com/canonical/indicator/datetime --method org.gtk.Actions.Describe phone-header15:49
seb128((true, signature '', [<{'title': <'Upcoming events'>, 'visible': <true>, 'label': <'17:44'>, 'accessible-desc': <'17:44 (a retourné des alertes)'>, 'icon': <('themed', <['alarm-clock', 'alarm']>)>}>]),)15:49
seb128 15:49
seb128where computer was on 17:4715:49
charlesseb128: !15:49
seb128which is the time the phone displayed 15 seconds later15:49
dednicki'm going to start blaming indicator-datetime ;)15:50
charleslol15:50
charlesseb128, that's a variation on this theme that I haven't seen before. Is it still happening for you?15:50
seb128dednick, well, I had cases where the indicator info was right but the unity ui was behind15:50
seb128charles, "still"?15:50
seb128the phone is awake now15:50
seb128let me a few minutes15:50
seb128but it happens consistently enough15:50
seb128like I've been 3 occurences in the 15 minutes where we started discussing that15:51
charlesseb128, we've discussed this before but in the past iiuc it's always been unity8 and indicator-datetime being out of sync with each other15:51
charlesrather than datetime being (>1 min) out of sync with the wall clock15:52
charlesseb128, could you please write up how to reproduce that in #1359802 and I will investigate today15:52
seb128charles, how to reproduce? "wake up your phone, look at the clock"15:52
seb128not sure what else to write15:52
seb128charles,15:53
seb128http://paste.ubuntu.com/8319927/15:53
seb128just tried again and got ^15:53
seb128basically "press power button to suspend the krillin, unplug from usb, wait a few minutes, press power button, notice time is off, plug usb cable, adb shell and run commands"15:54
charlesack15:54
charlesI don't understand why it would lag behind like that15:55
charlesit's easier to explain not updating at all15:55
charlesbut how can it lag 3 minutes behind like that?15:55
seb128I'm happy to help getting debug info if you tell me what to try/do15:56
seb128charles, well, it might be "not updating", 3 minutes is about the time I let it on the desk while typing on IRC15:56
seb128hum, just woke it up15:56
seb128it was on :5415:56
seb128when I turned it off at :5315:56
seb128and it should be :5615:56
seb128ok, just turned :5715:57
* seb128 turns off and wait another 5 minutes15:57
charlesseb128, so, maybe I'm not asking the question right:15:57
charles1359802 is about not updating the clock for [1..60] seconds after we wake up from sleep15:57
charlesso if the clock went to sleep at :45 and you woke it up at :50, it might still read :45 for up to 60 seconds15:58
seb128k15:58
=== dandrader|afk is now known as dandrader
seb128that might be what I'm seeing here15:58
charlesso I'm less worried about the size of the offset there (5 minutes) than the time to update (<=1 minute)15:58
charlesseb128, if it "fixes" itself in <=1 minute after wakeup then we're still talking about the known bug in 135980216:01
seb128charles, ok, let's assume it's that and see if some issue is remaining once that's fixed16:01
charlesack16:01
seb128charles, but I had cases some ~10 days ago where the indicator time was right on dbus but the unity ui was not16:02
charlesafter that lands I'll start blaming dednick again16:02
seb128but let's do one issue at tim16:02
seb128e16:02
charlesseb128, there was one fix for that a couple of weeks ago that I think dednick landed already16:02
seb128right16:02
charlesseb128, that was around the same time that the datetime indicator was showing up completely empty16:02
seb128I had that fix for sure16:02
seb128it was like a week after the fix landed16:02
charlesugh16:03
seb128jibel confirmed that16:03
dednicki'm wondering if fixing 1359802 will just hide the other problem by forcing a reconnection or something16:05
dednicki'm sorting out my krillin device now. hopefully will be able to put some logging in to find out what's up.16:07
dednickif i can reproduce it :)16:07
Saviqbug #135980216:09
ubot5bug 1359802 in indicator-datetime (Ubuntu) "header's timestamp can take a minute to update after resume from suspend" [High,In progress] https://launchpad.net/bugs/135980216:09
dednickSaviq: ya, it's possible there are 2 bugs16:11
mzanettibregma: hi, I think we're good to go with this now. I've fixed all of Saviq's concerns: https://code.launchpad.net/~mzanetti/unity/new-key-in-launcher-schema/+merge/23219917:09
mzanettibregma: what do I need to do to get this released?17:09
bregmamzanetti, you just wait until I do the next Unity landing (soon...)17:10
mzanettibregma: ok, cool. thanks. Can you ping me when it happened so I can release the unity8 related changes for it?17:11
bregmamzanetti, sure17:11
mzanetticheers17:11
=== dandrader is now known as dandrader|lunch
=== dandrader|lunch is now known as dandrader
dandradergreyback, still there?18:24
greybackdandrader: yeah18:24
dandradergreyback, For the MirSurfaceItem test in qtmir I'll need to create a QGuiApplication and a QQuickWindow, just to be able to send touch events to it via QTest::touchEvent() (unless I abstract that away, but I would rather not)18:25
dandradergreyback, so is that a problem is qtmir's "make check" has such a "UI" test?18:26
greybackdandrader: probably yes. We want those tests to run on a headless system18:26
greybackdandrader: I wonder what my Mir guys have18:27
dandradergreyback, so I would need that xvfb setup... so much work18:28
greybacka mock mir server that doesn't talk to hardware would do18:28
greybackis this testing Mir stuff? You need the mirserver QPA?18:28
dandradergreyback, did you read my first sentence? :)18:29
greybackdandrader: I don't understand what you're trying to test18:29
dandradergreyback, I think I will just abstract away MirSurfaceItem::touchEvent() for now. enough for me to test the touch sequence validation thingy18:29
dandradergreyback, a scheme similar (but simpler) to what was done for QtEventFeeder18:30
greybackok18:30
dandradergreyback, if you disable an item that is currently receiving a touch sequence18:30
dandradergreyback, that item will never get a QEvent::TouchEnd for that sequence18:30
dandradergreyback, QQuickWindow won't send it18:31
dandradergreyback, sounds like a QT bug, although I wouldn't be surprised if they say that you shouldn't disable a touch owner in the first place18:31
greybackdandrader: /me surprised by that. How does a MouseArea deal with it?18:31
dandrader(this kind of stuff)18:31
dandradergreyback, so I'm adding this touch sequence validation before forwarding touch events to the mir surface18:32
dandradergreyback, so things keep working regardless of whether qt fixes that or not18:32
greybackok, I understand what you're doing at least18:32
greybackam just curious, can MultiPointTouchAreas be confused in a similar fashion?18:33
dandradergreyback, the right question is: how does a client-side QQuickWindow deal with it?18:33
greybackit presumably just waits for the TouchEnd18:34
dandradergreyback, its mouse event emulation gets stuck, just like unity8's QQuickWindow without that qteventfeeder fix18:34
greybackdandrader: could this go in qtubuntu then?18:34
greybacksimilar event processing that you added to qtmir18:34
dandradergreyback, it could. but I chose to put it in MirSurfaceItem. fixed earlier in the flow of events18:35
greybackdandrader: I just think of using qt apps with another mir server - they would potentially exhibit the same problem?18:36
greybackdandrader: it probably should be fixed in MirSurfaceItem yes, as other toolkits may have the same difficulty18:36
dandradergreyback, you could add validation on both sides18:37
greybackdandrader: keep doing what you're doing anyway. Can look at qtubuntu if we actually see a need to fix that18:37
dandradergreyback, the next step, if we have the time, would be to tackle that issue in Qt itself: reporting a bug and proposing a patch18:38
greybackdandrader: right18:38
dandradergreyback, more important than a qtubuntu-side validation imho18:38
greybackand presumably getting Mir to behave better :)18:38
dandradergreyback, that's what racarr is doing if I'm not mistaken18:39
greybackhim and RAOF18:39
=== Malinux_ is now known as Malinux
=== dandrader is now known as dandrader|afk
=== dandrader|afk is now known as dandrader
=== salem_ is now known as _salem

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