/srv/irclogs.ubuntu.com/2014/12/12/#ubuntu-mir.txt

greyback__racarr_: hey, install cmake-extras - it has the gmock module that qtmir uses00:37
racarr_o00:37
racarr_greyback__: Does that have the EnableCoverageReport stuff that I proposed in another mp too?00:37
greyback__racarr_: yes00:37
racarr_Ah :)00:38
racarr_cool00:38
racarr_greyback__: Thanks :)00:38
greyback__no worries00:38
=== duflu_ is now known as duflu
dufluShould it be possible that clang generates code that yields SIGILL??!10:02
dufluOh, apparently clang does emit this invalid instruction intentionally sometimes. Wonder why gcc works10:04
alan_gtargetting the wrong processor?10:07
Kaleohey guys10:08
duflualan_g: No, it's the right architecture. But apparently clang sometimes uses invalid instructions like an abort()10:08
dufluKaleo: Hello10:08
Kaleois there any difference in MIR's rendering or behaviour whether the phone is plugged on USB or not/charging or not?10:08
dufluKaleo: Not explicitly in Mir but the driver could (and likely would) use a lower power mode on battery alone10:09
Kaleoright10:09
dufluKaleo: You see such things?10:09
Kaleoduflu, one thing I notice for example10:09
Kaleoduflu, is that the lock screen's background sometimes takes time to be displayed10:09
Kaleoduflu, probably for the texture to be uploaded or rendered10:10
Kaleoduflu, only on battery10:10
dufluKaleo: Yeah lower power mode is noticeably slow10:10
dufluIt gets worse... if you're careful with your efficiency then the phone thinks it's in low power mode and can clock down too much, causing stuttering10:11
Kaleoduflu, interesting10:11
dufluIt drives graphics people crazy10:11
Kaleoduflu, can you think of any reliable way to trigger that mode?10:11
dufluKaleo: No, it's driven by how little you stress the GPU10:12
Kaleoduflu, does the low power mode impact CPU perf as well?10:13
dufluKaleo: I think so..?10:13
Kaleok10:13
Kaleoduflu, I believe this all relates to https://bugs.launchpad.net/camera-app/+bug/139843610:13
ubot5Launchpad bug 1398436 in camera-app "Preview frozen after unlocking" [Critical,In progress]10:13
dufluKaleo: There could be other bugs at play in our code, always. I'm reminded of this talk where I think John Carmack discusses the same issue driving him crazy: https://www.youtube.com/watch?v=nqzpAbK9qFk10:14
Kaleoduflu, ok10:15
Kaleoduflu, concretely what happens is that after locking and unlocking the phone the camera app's rendering is not happening for a few seconds10:15
dufluKaleo: Oooh, you don't have framedropping (eglSwapInterval(0)) do you?10:15
Kaleoduflu, I don't have anything outside of the pristine RTM image10:15
dufluKaleo: If a client has set eglSwapInterval(0) (which I think is unlikely) then we do have buffer scheduling bugs that will appear as a freeze10:16
duflu(fixed in Mir 0.10)10:16
Kaleoduflu, is MIR 0.10 in vivid?10:16
dufluKaleo: No, it's future10:16
Kaleoduflu, ok10:16
Kaleoduflu, I don't recall the app setting eglSwapInterval(0)10:17
dufluKaleo: There is one additional bug that will trigger such a freeze, but it's only known to happen in cases that the phone won't trigger10:17
dufluStill, I expect both to be fixed in 0.1010:17
dufluKaleo: I'll grep the camera-app source in case10:19
Kaleoduflu, done that, no match10:20
Kaleoduflu, but there is something more10:20
dufluKaleo: Also, we only know that Android overlays are highly unstable with eglSwapInterval(0). This does not guarantee they're always going to be stable with the default eglSwapInterval(1), just moreso10:20
Kaleoduflu, for the duration of the freeze, the app is not notified it is focused/active (Qt.application.active is still false)10:21
Kaleoduflu, even though the process has been correctly resumed10:21
dufluKaleo: To absolutely verify it's not another overlays bug, try running with env MIR_SERVER_DISABLE_OVERLAYS=true10:23
Kaleoduflu, ok, trying that10:23
duflu... for USC10:23
dufluKaleo: And then I must go for the week ...10:23
KaleoUSC?10:23
dufluKaleo: Only unity-system-compositor will use the hardware overlays10:23
dufluSo the environment needs setting for that10:24
Kaleoduflu, I can set it in /etc/environment no?10:24
dufluKaleo: Yes, but make sure it sticks after rebooting (/proc/<pid>/env)10:24
Kaleoduflu, yep10:24
dufluKaleo: Please also double-check the whole stack of projects to ensure nothing is triggering eglSwapInterval(0)10:26
Kaleoduflu, I grepped it all and only qtubuntu sets it10:26
Kaleoduflu, if an env var is set10:26
duflu... or creating a GL context with zero10:26
Kaleootherwise it defaults to 010:26
Kaleoduflu, bug still happens with MIR_SERVER_DISABLE_OVERLAYS=true10:27
dufluInteresting10:27
dufluKaleo: I think the clock-down power management stuff is a big offender but that will only cause you to miss a frame or two in my experience10:27
Kaleok10:28
* duflu forgets what the kernel features are that stop it from happening. It's something Linux has inherited from Android recently-ish but is not yet widely used10:28
Kaleoduflu, note the rest of unity8 behaves normally during the freeze10:28
Kaleoduflu, everything is fluid and responsive10:28
dufluKaleo: I'm out of ideas10:28
Kaleoduflu, ok10:28
dufluand the work week10:28
Kaleoduflu, thank you10:28
dufluNo worries...10:29
=== greyback__ is now known as greyback
=== dandrader is now known as dandrader|afk
=== dandrader|afk is now known as dandrader
=== vesar_ is now known as vesar
=== dandrader is now known as dandrader|lunch
=== dandrader|lunch is now known as dandrader
=== alan_g is now known as alan_g|EOW

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