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

kdubhmm, none of our top-approved things have landed today01:07
kdubgood morning duflu01:07
duflu_kdub: Hi01:14
duflu_kdub: Same thing happened Friday-to-Monday01:15
racarrunity-mirisnt landingeither01:23
racarralso unity mir doesnt build against dev branch01:23
racarralso the sky is falling.01:23
kdubhttp://www.savagechickens.com/2013/01/jenkins.html01:26
duflu_kdub: I'll land them all manually02:31
=== duflu_ is now known as duflu
=== chihchun_afk is now known as chihchun
dufluBack soon03:17
ogra_RAOF, android uses ueventd ... but in our setup where we run an android container under ubuntu, the ubuntu side has udev and can monitor the events without issue08:49
=== tjaalton_ is now known as tjaalton
=== alan_g is now known as alan_g|afk
=== alan_g|afk is now known as alan_g
=== chihchun is now known as chihchun_afk
=== alan_g is now known as alan_g|lunch
=== dandrader is now known as dandrader|afk
=== dandrader|afk is now known as dandrader
ricmmalf_: ping13:36
alf_ricmm: hey13:36
greybackalf_: pings.push_back(greyback)13:37
ricmmlol13:38
ricmmalf->pings.pop_back()13:38
ricmmI need 5 min13:38
ricmmgreyback: go13:39
greybackalf_: just looking for some high-level advice. I had Qt rendering 1 frame successfully as a Mir compositor. But it crashes around the swapBuffer (DisplayBuffer::post_update) call, with a pretty useless stack trace13:41
greybackalf_: this is the sort of backtrace: http://pastebin.ubuntu.com/6405348/. The __GI_abort suggests to me an exception is being thrown, but I can't catch it in my code.13:43
greybackwhat would you recommend me do? Step through Mir code? Or track the GL calls with apitrace? Suggestions welcome13:44
alf_greyback: Is Mir built with debug symbols?13:44
ricmmso many threads13:44
greybackalf_: I'm using the last release, and dbg symbols are installed13:45
ricmmwhat sits at 0x4178671c?13:46
ricmmI'm gonna go ahead and guess one of the android GL blobs13:46
greybackyep13:47
greybackso that hints to me some bad GL call13:47
alf_greyback: why aren't you developing on the desktop? ;)13:47
greybackalf_: because it seems every time I try, I lock myself out of X completely :)13:48
greybackalf_: should I? Then I'd be using the usual gbm drivers,, which are probably easier to debug, I guess13:49
alf_greyback: That would be my proposal... do you have a laptop you can use as an ssh terminal (or the other way around)?13:50
tvossgreyback, seems to be the snapshotter is waiting ... just a wild guess: could you temporarily disable it?13:52
=== alan_g|lunch is now known as alan_g
greybacktvoss: aye, that was an idea I had too13:52
greybackalf_: yep, ok, I'll do that so13:52
alf_greyback: in case you continue on the phone, ensure you have -dbg symbols/ddeb packages for all major packages in the stack (e.g. stdc++, qt), since on arm not only you don't get symbols, the backtrace is cut short...13:53
alf_tvoss: greyback: FWIW, it's normal for the snapshotter to just wait...13:53
tvossalf_, yup, agreed: as I said, just a wild guess13:54
greybackalf_: ah, that's interesting. I thought short BT was only due to corrupted stack. Nice tip, thanks13:54
ricmmgreyback: I would advise against doing this on the desktop13:54
ricmmgreyback: as it wont be the first platform to use it13:54
greybackricmm: that was my original motivation13:55
ricmmyou know my feelings on these kind of things, and from experience we know where it can take us :)13:55
ricmmalf_: so my question went in another direction14:00
ricmmkdub's investigation of n7 showed that screenshotting is causing it to crash14:00
ricmmfilling the texture from the buffer seems to be blowing everything up, the screen starts to flicker and it stops getting update14:01
ogra_ricmm, screenshotting crashes maguro too ... fwiw14:03
ricmmwhat screenshotting14:03
ricmmthe shell's running apps thing?14:04
ogra_no, taking a screenshot :P14:04
ricmmscreencap on adb?14:04
ogra_ignore, me, we obviously mean different things14:04
ogra_mirfbdump14:05
ricmmgot it14:05
ricmmI dont have that one :)14:05
ogra_its a script from QA :)14:06
ricmmok14:06
ogra_ricmm, http://paste.ubuntu.com/6405471/14:06
ogra_works well on mako ...14:06
alf_ricmm: so, if you disable the glReadPixels() call then everything continues to work ok (apart from getting invalid snapshots)?14:07
ricmmtrying that14:08
ricmmI disabled the whole path14:08
ricmmsec14:08
ricmmalf_: yup, works fine with glReadPixels out14:13
ricmmwell, not fine, but you know what I mean14:13
alf_ricmm: well, that indicates a driver issue, i.e., a glReadPixel call shouldn't mess up the system...14:14
alf_ricmm: what happens if you enable only the GL_RGBA read pixels path?14:15
ricmmalf_: still dies14:20
alf_ricmm: any errors logged after this by the driver (or does glGetError() say something)?14:22
ricmmalf_: no GL errors, no14:36
ricmmseeing something weird tho mmm14:36
ricmmsec14:36
greybackalf_: sorry this sounds stupid, but I'm confused. On my laptop (this machine, has X running), I switch to VT1, run "mir_demo_server_shell&" - the screen does not black out or anything. I expected that it should, no?15:12
alf_greyback: sudo ?15:13
greybackthen I ssh in to kill mir_demo_server_shell, however now all key events don't get to the VT15:13
greybacksudo15:13
greybackdamn15:13
greybackcan we not have things fail if they don't have permission?15:14
=== dandrader is now known as dandrader|lunch
alf_greyback: yes, ideally they would fail but just get you back to a useful VT. There seem to be some failure modes that mess up our tear down.15:15
mterryracarr, hello!  I'm back from an American holiday and am looking again at those issues from the sprint.  Are you still focused on scenegraph?15:20
greybackalf_: even with sudo, it doesn't seem to work. mir_demo_server_shell just locks my machine, and killing it leaves it in unusable state15:22
alf_greyback: what graphics card and driver are you using?15:23
greybackalf_: intel sandybridge15:23
alf_greyback: can you try running with gdb and 'catch throw'?15:25
greybackalf_: ok.15:27
ricmmalf_: this thing is still blowing up, no GL error and nothing from the driver in logcat15:30
ricmmTegra has a bunch of weird issues, this might be one of them15:30
ricmmI know they dont support pbuffers, do we use that anywhere in the screenshotting path?15:30
ricmm1/10 times it works15:30
tvossricmm, sounds racy15:31
ricmmit does15:32
alf_ricmm: yes, on android we create a EGL pbuffer as a dummy surface for the EGL context15:32
ricmmfor the shared based context?15:32
ricmmbase*15:32
alf_ricmm: For all "dummy" context including the shared one so we can make them current. Can you check if "EGL_KHR_surfaceless_context" is supported?15:33
alf_ricmm: one thing you could try is to make all instances of eglMakeCurrent() in android_display.cpp take 'EGL_NO_SURFACE,EGL_NO_SURFACE' instead of the dummy egl surfaces.15:36
alf_ricmm: so basically in AndroidGLContext::make_current() and AndroidDisplay::AndroidDisplay()15:37
ricmmright, will try15:38
ricmmI think it does support surfaceless_ctx15:38
alf_ricmm: ok, if using surfaceless contexts fixes snapshotting it's an easy fix to query the extension at runtime and act accordingly.15:40
kgunnmterry: you're a bit early for racarr ...and he got sidelined by a performance regression, but he was back to working on the autopilot input bug for mir on mir15:42
mterrykgunn, early for racarr?  he lives in UK right?15:44
mterryWell, I can continue my own investigation until he can get back to me15:45
ricmmmterry: CA15:46
mterryricmm, kgunn: aha...  For some reason my memory of the Oakland sprint was that it was in London.  Yikes...15:47
ricmm;15:47
kgunnmterry: haha, yeah...and i'd like you and he to continue that thread15:49
=== ara_ is now known as ara
mterrykgunn, yar, for sure15:49
kgunnMirv: didrocks ...so with ci off, what's the recommended for the mir update to trunk ? manual land ? or just wait?15:50
didrockskgunn: better to wait, as we don't have dailies as well, we can't land it15:58
kgunndidrocks: ack, thot so...just double checking16:01
didrockskgunn: I put Mir on the first thing in the list FYI16:02
ricmmalf_: so it supports it "theoretically"16:03
ricmmbut it blows up the makeCurrent16:03
ricmmso, it really doesnt :)16:03
ricmmtegra is great16:03
greybackalf_: if I ssh into a laptop, can I run mir via ssh? Must it be from a VT?16:07
alf_greyback: you just need to have a VT active and use sudo, but it should work (that's how I do it)16:08
greybackalf_: yeah. It used to work for me a few months back too16:09
greybacksorry, "it" = running from VT. Running from ssh I didn't think would work either16:09
alf_ricmm: I just saw that in android_display.cpp we are requesting a config with just EGL_WINDOW_BIT (no EGL_PBUFFER_BIT). What happens if you add EGL_PBUFFER_BIT (EGL_WINDOW_BIT|EGL_PBUFFER_BIT) ?16:11
alan_ggreyback: if you're running from ssh you need to specify --vt16:19
kdubricmm, alf_ so we're thinking that the nexus 7 doesnt support pbuffers?16:20
ricmmwhats the best way to confirm that? this comes from reading somewhere a comment that said tegra doesnt play nice with pbuffers16:22
ricmmbut I cant find the wording in any official doc16:22
ricmmit certainly doesnt support EGL_KHR_surfaceless_context16:22
kdubi think checking that the config has EGL_PBUFFER_BIT is good... i'll try16:27
ricmmkdub: hmm tried here16:29
ricmmworked the first attempt but exploded with the second app16:29
ricmmchecking again16:29
=== om26er is now known as om26er|food
=== dandrader|lunch is now known as dandrader
=== om26er|food is now known as om26er
=== dandrader is now known as dandrader|afk
kdubalf_, with the screenshotting, should we be using the OES functions? o.O17:25
kdublike, glBindFramebufferOES17:25
alf_kdub: In OpenGL ES 2.0 the framebuffer extensions was merged into core so the suffix was dropped17:28
kdubah, i kinda felt i was missing a data point like that17:29
kdubi just saw sf using all these OES functions to do screencap, but since they were merged, that should be fine17:30
alf_kdub: 18:11 < alf_> ricmm: I just saw that in android_display.cpp we are requesting a config with just EGL_WINDOW_BIT (no EGL_PBUFFER_BIT). What happens if you add EGL_PBUFFER_BIT (EGL_WINDOW_BIT|EGL_PBUFFER_BIT) ?17:35
alf_kdub: since we are creating pbuffers with this config we should ensure we choose a config with EGL_PBUFFER_BIT17:35
alf_kdub: (not sure if it is related with what ricmm is seeing)17:36
* kdub is still trying to configure unity-mir but17:36
kdubricmm said that didn't help17:36
ricmmdoesnt help17:37
ricmmand thats generic enough, it would blow up in other cases17:37
ricmmthis is a tegra-specific thing that has to do with the way we take the screenshot17:37
ricmmworks for SF, not for us17:37
=== dandrader|afk is now known as dandrader
=== alan_g is now known as alan_g|EOD
racarrmicrousb bit the dust18:29
racarrbrb18:29
kgunnracarr: ping20:10
kgunnracarr: was just trying to run the egltriangle demo client per the instructions http://unity.ubuntu.com/mir/using_mir_on_pc.html20:12
kgunnracarr: but remembered we moved the mir socket...not sure how to now20:12
kgunnracarr: oops....nvmd....i just didn't sudo20:13
racarrkgunn: :)20:18
kdubwhat is up with jenkins? i noticed nothing was landing yesterday, but today, everything has landed from yesterday20:29
xnoxit's been down, due to DC move.23:06
xnoxnot sure if it's fully up to speed yet.23:06

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