/srv/irclogs.ubuntu.com/2013/09/12/#ubuntu-mir.txt

racarrricmm: Got screen blanking working, an early version (needs some cleanup before proposable) is at lp:~robertcarr/mir/test-android-screen-blanking00:06
racarryou can see how it works in examples/demo-shell/window_manager.cpp00:06
racarrcan test (hasnt been tested on gnex) by running mir demo server shell and using any hardware button00:06
racarrwhich will turn the display on and off00:06
RAOFracarr: Hey, is there a way to get libmirclient to dump a bunch of debug info via an environment variable?00:14
racarrRAOF: I think there is MIR_CLIENT_RPC_REPORT=log00:31
RAOFracarr: Ta.00:36
RAOFThat might have less of a timing impact than gdb breakpoints, which is what I'm currently using.00:37
ricmmracarr: nice, any chance it can be proposed today?00:55
tvossRAOF, http://unity.ubuntu.com/mir/component_reports.html00:59
RAOFtvoss: Ah, thanks.01:01
rsalvetikdub: that's fine, mind just opening a bug against libhybris?01:26
rsalvetiwill take care of it tomorrow morning01:26
dufluRAOF: Do you have sufficient hardware to prove bug 1216472 is indeed intel-specific?01:30
ubot5bug 1216472 in XMir "[xmir] [multimonitor] Frames eventually get slightly out of order, look like glitches or typing will feel slow" [Critical,In progress] https://launchpad.net/bugs/121647201:30
RAOFduflu: I think I have a counterexample in my radeon system, to which I've managed to attach my partially broken second LCD.01:32
dufluRAOF: "Counter" as in radeon with two outputs works fine?01:32
RAOFNo, as in radeon with two outputs suffers a similar problem.01:33
dufluUgh01:33
dufluRAOF: I've been trying to avoid a simple and ugly workaround (if damage for any output is empty give it one pixel's worth)01:33
RAOFAlthough that's somewhat masked by what appears to be “mir with fails to send buffers to radeon with two monitors”01:33
RAOFA bug which is apparently timing related, as when I dump logs and attach gdb it no longer appears.01:36
dufluRAOF: Without bypass? :)01:38
RAOFduflu: Works, but exhibits the frame ordering issue.01:38
dufluRAOF: Is it possible the breaking-up of the root window is similarly incompatible with multiple DDXen?01:39
RAOFPossibly?01:40
RAOFHm.01:43
RAOFNot a huge fan of the bug where closing a window will sometimes kill X.01:43
dufluDoesn't Unity8 solve that? (no way to close apps) ;)01:50
RAOFBah. Stupid lttng.01:55
* RAOF lunches01:55
=== chihchun_afk is now known as chihchun
jrryay heisenbug03:34
alf|xmir-develRAOF: duflu: Could some of our problems be caused by xmir creating a mir surface for each output, which for "clone" mode end up at the same area in our virtual space (e.g. both have top-left at 0,0)?04:50
RAOFalf|xmir-devel: That's possible (and I'm pretty sure there's at least one damage-tracking bug in there), but this occurs with non-overlapping outputs, too.04:50
alf|xmir-develRAOF: btw, thanks to Marteen's investigation, we believe that the egl image problems for nested mir are caused by having different dri2 screens for egl and gbm. At least for the nested mir case (i.e. optionally), we need to pass the used gbm_device to platform mir and initialize the egl dri2 using the gbm dri2 setup (liked platform_drm does). Do you see any possible blockers with this approach?05:03
RAOFrobert_ancell: DEB_BUILD_OPTIONS="notest" bzr bd -- -us -uc05:33
RAOFrobert_ancell: DEB_BUILD_OPTIONS="notest parallel=9 nostrip noopt" bzr bd -- -us -uc05:33
duflualf|xmir-devel: I can't yet imagine how it would cause functional problems, but sounds like bug 121674805:39
ubot5bug 1216748 in XMir "XMir display buffer layout sometimes overlaps and disagrees with that shown in xrandr/control-center" [Medium,Triaged] https://launchpad.net/bugs/121674805:40
RAOFalf|xmir-devel: You mean that the nested server's EGL needs to use the same drm fd as the nested server's mir platorm?05:57
alf|xmir-develRAOF: no, it must use the same dri2 screen/implementation as the gbm_device the nested server is using, so that it can share resources proprely (e.g. like the bo image).06:27
RAOFalf|xmir-devel: Can we do that?06:29
alf|xmir-develRAOF: platform_drm seems to be doing exactly that, so it seems possible... although we won't know for sure until we try.06:33
dufluRAOF: This looks related to out of order frames... The DDX is accessing the MirBufferPackage after free(); bug 122429606:50
ubot5bug 1224296 in XMir "XMir: DDX memory use after being freed from libmirclient" [Critical,New] https://launchpad.net/bugs/122429606:50
RAOFThanks for the pointer.06:50
RAOF(Bam, ching!)06:50
dufluRAOF: Does X build with symbols by default? I did not expect "??"06:53
RAOFYou'd need to install xserver-xorg-core-dbg06:53
RAOFAnd the corresponding intel -dbg, too.06:53
hikikoduflu, are you still getting the crash with the drm permission message? in a fresh installation I got it once and then I upgraded and since then I've restarted lightdm more than 20 times and I dont get it07:09
dufluhikiko: Yeah occasionally. As many people do. Seems to be the most popular Mir bug :(07:09
hikikoouf :/ what might happened and I cant reproduce it anymore :S unity compositor + mir are running for sure and I was getting it until 1 hr ago when I upgraded :S :S07:11
dufluRAOF: OK, got full debug symbols. Now doesn't look related to frame order... bug 122429607:12
ubot5bug 1224296 in XMir "Freed memory read in damageDestroyPixmap() from sna_early_close_screen() from xf86CrtcCloseScreen()" [Critical,New] https://launchpad.net/bugs/122429607:12
dufluAlso bug 122161607:12
ubot5bug 1221616 in XMir "xmir_resize() releases a pixmap it does not own, leading to freed memory reads" [Critical,New] https://launchpad.net/bugs/122161607:12
RAOFduflu: Aha. Thanks.07:14
dufluAs it happens, both bugs now look like things ickle was very vaguely referring to a while ago, but failed to explain or pinpoint07:29
* RAOF fixes it, and goes to see if it magically fixes everything07:39
RAOFOh, right.07:46
dufluRAOF: I expect it will *only* make mode setting more stable... ?07:46
RAOFYes, that's a bit silly07:46
mlankhorstor is it?07:47
RAOFmlankhorst: Me DestroyPixmap()ing a Pixmap that I didn't allocate *is* a bit silly, yes :)08:14
mlankhorstdepends, were you allowed to do so?08:16
RAOF...maybe.08:19
robert_ancellbye all, see you in Boston09:19
alan_galf|xmir-devel: Update pushed to https://code.launchpad.net/~alan-griffiths/mir/combine-nested-gbm-and-android/+merge/18505409:24
alf|xmir-develalan_g: thanks, I will check in a bit, my experiments have broken XMir currently :)09:26
alan_galf|xmir-devel: I expect you to learn from your experiments. ;)09:27
mptIs it possible to open a surface without specifying what size it is? (If not, there's no point remembering the size of a surface to restore it next time, like we would for position.)09:43
smspillazmpt: you need to specify the size09:43
mptta09:43
smspillazmpt: also nonzero positions aren't supported (yet) iirc09:44
mptsmspillaz, okay, so Mir has complete control of (absolute) position, while the app has complete control of size.09:44
mpt(Unless it requests a size larger than any display, I guess.)09:45
smspillazmpt: it technically has complete control of both09:46
smspillaz(mir)09:46
mptyeah, hence the brackets :-)09:46
smspillazpart of the reason for using server side buffer allocation was so that we could limit the memory usage of applications09:46
smspillazso its theoretically possible that you could be denied certain sizes09:47
smspillazhowever, I don't know any good reasons other than memory pressure as to why that would be done in practise09:47
duflusmspillaz: I'm /told/ much because that's the way Android does it ... (?)09:48
duflumpt: Clients (apps) have no control over position. Although there is a hint for what monitor to appear on (used by XMir)09:49
* duflu migrates to the laptop09:50
mptsmspillaz, if you close a document that was open on a Cinema Display, then reopen it when the only display is a tiny ThinkPad, Mir shouldn't let it open at its previous size.09:50
smspillazmpt: it doesn't matter, the application makes the request for the buffer size09:52
smspillazthe point I was trying to make is that you may (as an application) request a size of M x N09:53
smspillazbut if you're under memory pressure then you might get something smaller09:53
smspillazI wouldn't imagine there'd be any policy implemented on the display server side to prevent applications from creating big windows otherwise09:53
smspillazgenerally as a display server you should probably just respect what the client wants unless it creates a security or performance problem09:54
mptsmspillaz, I'm writing up the policy right now ... I guess it's window manager level rather than display server level, though.09:54
smspillaz*shrug* I'm not involved with mir's development so I don't care that much09:55
mptThanks for the answers. :-)09:55
smspillazthough I will say that trying to have the window manager control application sizes is a bad idea for multiple reasons09:55
smspillazmostly because the edge cases end up in the window manager and not the individual applications09:56
mptsmspillaz, what I have currently is that the only case, where the window manager will force a smaller size, is where there is no display available large enough to show it at the requested size09:57
smspillazmakes sense09:58
smspillazmpt: it might be worth discussing that with the developers directly though :)09:58
mptFor sure, I only asked the channel in general because tvoss wasn't here. :-)09:59
alan_gmpt: The general answer is that the Mir library provides hooks for the shell to intercept and tailor the requests. And it is the shell that sets the strategy.10:01
mptta10:06
mpttvoss_, have you given any thought to how toolkits will place tooltips close to the screen edge, when they don't know how close the window is to the screen edge?10:20
mpthow close the parent surface is, I mean10:20
tvoss_mpt, not yet, but the idea I have in mind is like: apps provide an anchor point in surface relative coordinates, and unity decides where to put the surface depending on closeness to the edge10:21
mpttvoss_, makes sense.10:23
tvoss_mpt, cool10:24
=== tkamppeter_ is now known as tkamppeter
=== alan_g is now known as alan_g|lunch
=== alan_g|lunch is now known as alan_g
=== didrocks1 is now known as didrocks
=== alex_abreu is now known as alex-abreu
=== dandrader is now known as dandrader|afk
=== dandrader|afk is now known as dandrader
hikikoquestion: in /etc/init.d/ there's a lightdm script that should print some messages, where are these messages printed? I cant see them at syslog + I inserted some echo "foo" >> /tmp/foo but there's no /tmp/foo when I restart lightdm... I didnt find any relevant info in the upstart documentation so far any idea?14:27
=== alan_g is now known as alan_g|tea
alf|xmir-develhikiko: /var/log/lightdm/*14:29
hikikono alf|xmir-devel14:30
hikikoI dont want to get the lightdm log14:30
hikikoI want to get the output of the script that starts the lightdm14:30
hikikoin /etc/init.d14:30
hikikoto see if a signal is send twice14:30
=== alan_g|tea is now known as alan_g
=== mzanetti is now known as mzanetti|food
=== mzanetti|food is now known as mzanetti
kgunnkdub: ping15:40
kdubkgunn, pong15:40
kgunnkdub: hey...gotta request...can you flash the pending image http://cdimage.ubuntu.com/ubuntu-touch/daily-preinstalled/pending/15:40
kgunnthis contains mir, but not on by default15:40
kdubokay, will try15:41
kgunnto turn on....just modify the /etc/environment file...for QT_QPA_PLATFORM=ubuntumirclient15:41
kgunnthen, rename/delete SF15:41
kgunnon nexus415:41
kgunnand see what you see :)15:41
kgunnteam in lexington is claiming its flickering very very bad...but want to know what you see15:42
kgunnkdub: greyback says he does not see this flicker on galaxynexus15:42
kgunnkdub: guys in lexington said they saw it on nexus415:42
kgunnracarr: ^ ...in case you're awake & on :)15:43
kgunnkdub: racarr ... i am trying here....but fear messing something up...(first time i did this...it was stuck at google splash)15:44
kgunnon my second attempt15:47
greybackkgunn: I'm having same problem actually. It's like upstart isn't starting hte user session any more. Did mterry's stuff change that?15:48
kgunngreyback: hmm...so i'm using pending, adb pull etc/environment, modify to QT_QPA_PLATFORM=ubuntumirclient, then adb push, then adb remount, rm /etc/bin/surfaceflinger, reboot16:03
kgunni get stuck at splash every time16:03
greybackkgunn: perfect. I'm getting the same. unity8 isn't being started16:04
greybackkgunn: if you adb in, can run it manually with "GRID_UNIT_PX=18 QT_QPA_PLATFORM=ubuntumirserver unity8"16:05
greybackbut the lenses and indicators are not running either16:05
greybackso it's kinda blank16:06
kgunngreyback: couldn't decipher mterry's response...so is it related ?16:06
kgunndo we need to go whine to asac to get that last piece in?16:06
greybackkgunn: I don't think so. But something has changed, and I've no idea what16:06
kgunngreyback: did you ever get past the splash (....thot you said you saw flicker at some point)16:07
greybackkgunn: well I need someone who understand the upstart situation to help out16:07
kgunngreyback: oh duh...you manually launched16:07
greybackkgunn: I ran it manually with that command. And can launch and switch apps when16:07
greybacks/when/then/16:07
kdubi get 'Library unity-mir not found/loaded "16:08
kgunnkdub: what the what? ^ greyback16:10
greybackkgunn: aha, that was fixed in trunk. As workaround, please install "libunity-mir-dev"16:11
greybackkdub: ^^16:11
dandraderwhere mir log goes by default?16:11
kdub/tmp/16:11
dandraderok, thanks16:12
kdubdandrader, --glog-log-dir can change the directory16:14
kdubgreyback, how do you normally compile unity8 for the phone?16:14
kdubi've been trying in an armhf chroot on and off, never seem to have much luck with that method16:15
dandraderkdub, does logging work as usual even when you run those examples like mir_demo_standalone_input_filter?16:15
greybackkdub: on the device itself. I've also not got chroot working16:15
kdubdandrader, i think it should, haven't tried with that specific example though16:16
greybackkdub: this is closest I've got: https://wiki.ubuntu.com/SimpleSbuild16:16
greybackbut I'm stuck on older kernel without aufs (don't ask), and I need to compile it myself. Never got around to it16:16
kdubgreyback, thanks, i guess i'll try on the phone16:18
kdubgreyback, now i get "ASSERT: "!isEmpty()" in file /usr/include/qt5/QtCore/qlist.h, line 28816:19
kdub"16:19
greybackkdub: no idea how you got that. Please apt-get update everything, then check QT_QPA_PLATFORM=ubuntumirclient in your env16:20
alan_gkdub: re problem I'm seeing with multiwin under nested. If I increase the alpha (to, say, 0xe0) then it works - does that suggest anything to you?16:21
kdubalan_g, that the alpha is being mis-set somewhere16:22
kdubalan_g, it could just be that the alpha in the example has to be turned to opaque16:23
alan_gkdub: I do get show through - so it isn't just treating as opaque16:24
kdubgreyback, still getting that isEmpty() error after the upgrade :/16:28
kdubalan_g, perhaps the example is picking the wrong pixel format?16:30
kdubgreyback, maybe there's a ppa i haven't installed?16:31
greybackkdub: what device are you using? No ppa is necessary16:31
kdubmako16:32
alan_gkdub: It looks right. (And why the different behavior in nested - it ought to be nested code that causes problems).16:32
kdubalan_g, perhaps the incorrect egl configuration is chosen16:33
kdublet me check...16:34
=== dandrader is now known as dandrader|lunch
=== dandrader|lunch is now known as dandrader
kgunnkdub: new image...http://cdimage.ubuntu.com/ubuntu-touch/daily-preinstalled/pending/18:30
kgunngreyback: ^18:30
kgunnracarr: ^18:30
kdubkgunn, is it important to test the image? i was just going to see if i can compile it myself to see the flicker18:31
greybackkgunn: yay18:31
kgunnkdub: nah...keep compiling18:31
kgunni was just pointing it out....it only _might_ be interesting18:32
kgunnit could also be a mess18:32
greybackI'll downloading it now, will let oyu know18:32
* greyback decided not to bother about correct English any more18:32
kgunndude...aren't you irish ??....you're worse than american :)18:33
kdubme fail english? that's unpossible!18:33
kgunnonly american's allowed to butcher english....and not speak any other languages to boot :)18:34
racarr*clinks red white and blue power rings with kgunn and kdub*18:41
racarrAmerica!18:41
kgunnracarr: ....its wonder twins power activate18:43
racarrlol18:43
racarrill test the image18:44
kgunnracarr: http://www.youtube.com/watch?v=ktUx57i63e018:46
kgunnexplains alot about my inner workings ^18:46
kgunn...oh... racarr i just got it... note america.... 'merica!18:50
greybackoh for the love of all that's holy18:51
kgunnhmmm...im still stuck at splash (w.o command line)18:52
greybackme too :(18:52
greybackkdub: and now I get your failure too18:52
kgunnhmmm...it complains on command line for me18:53
kgunnseg fault18:53
greybackand has weird backtrace. http://pastebin.ubuntu.com/6098316/18:55
greybackwtf is happening?!18:55
racarrHow to use bzr18:57
racarrI can't merge trunk int o dpms-support-api without it...removing all of dpms18:57
kdubracarr, that's happened to me before, shortcoming of bzr18:57
kdubi usually just make a patchfile and apply on top :)18:58
racarr:( yeah18:59
racarror you can do reverts18:59
kdubwell, might be a shortcoming of bzr, or a shortcoming of my knowledge of how to use bzr18:59
greybackkdub: try "export QT_SELECT=qt5" and then try shell19:00
greybackno actually, no good either19:01
* greyback needs to EOD19:04
kdubmmk19:06
kgunnkdub: gonna step out for a very late lunch (read as errands)19:16
kgunnlet me know how your build effort concludes19:16
=== sam113101 is now known as sam113101_afk
=== dandrader is now known as dandrader|afk
=== sam113101_afk is now known as sam113101
=== dandrader|afk is now known as dandrader
racarrLunch20:21
kgunnkdub: curious how your build is going ?...went ?21:21
kdubkgunn, still going :) arm compiles21:24
kdubtinkering with the mali604 in the meantime21:25
kgunnooo you must be native compiling21:26
kdubyeah, i had some issues with a qemu/chroot compile (which greyback said he had too)21:26
kdubkgunn, i still get that isEmpty() error from qlist.h with the version i compiled21:49
kgunn:-/21:58
kdubthe mali driver is a bit weird... but got just got a client frame to render!22:44
kgunnkdub: \o/23:51

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