/srv/irclogs.ubuntu.com/2015/09/14/#ubuntu-mir.txt

duflualf_: Is it possible compositor/renderer destruction no longer has a GL context?... https://bugs.launchpad.net/mir/+bug/148972006:28
ubot5Ubuntu bug 1489720 in Mir "[mako] mir_proving_server crashes on screen rotation" [Undecided,New]06:28
alf_duflu: I am not aware of any change that has affected gl context lifetimes. What does eglGetCurrentContext return?06:33
duflualf_: Don't know. I'm not set up on that device right now06:33
dufluAlthough I will be soon06:34
dufluPoor mako. Batter just went from full to empty in a blink of the eye06:39
dufluI think it was always empty. Because the phone doesn't shut down properly with wily. And even if your force it, it turns itself on again and drains battery06:40
duflualf_: Nope. Context not lost. Everything is sane and in context. Just that glDeleteTextures crashes. Although valgrind reports that android and the graphics driver are full of errors...07:17
dufluMight be able to bisect the issue07:17
=== alan_g is now known as alan_g|lunch
alan_g|lunchalf_: any idea what's going on here? Weirdness in the mesa stack - I've a workaround, but don't understand why it works. https://bugs.launchpad.net/mir/+bug/1495459 (I'm pretty sure camako saw this last week too, but didn't have consistent results.)12:58
ubot5Ubuntu bug 1495459 in Mir "Segmentation fault in MesaBufferIntegration.*" [Undecided,New]12:58
=== alan_g|lunch is now known as alan_g
alf_alan_g: let me see if I can reproduce12:59
alan_ggreyback_: please take a look at https://code.launchpad.net/~alan-griffiths/mir/MirBlob/+merge/269949 (I think it is what you're expecting but also see the discussion.)13:20
greyback_alan_g: on my list, will get to it13:21
alan_ggreyback_: thanks13:21
alf_alan_g: removing config.add_options(x11_displays_option_name, ...) fixes the problem. No idea why.13:33
alan_galf_: yes, I've just discovered removing "boost::program_options::value<std::string>()->default_value(std::string{"1280x1024"})," "fixes the problem too13:34
alan_galf_: This is seriously weird. But likely not mesa weirdness.13:35
alf_alan_g: yes, and in particular it's the default_value() part that triggers the issue13:39
alan_galf_: thanks for confirming that13:40
desrtsrc/platforms/mesa/server/kms/cursor.cpp #includes <drm/drm.h> which doesn't exist on debian.  changing that to <libdrm/drm.h> fixed it for me and also seems to work on ubuntu13:41
anpokdesrt: looking at the current drm package.. libdrm seems to be the install path preferred by libdrm13:51
desrtmaybe that's why debian doesn't have it?13:52
anpokdesrt: hm linux-libc-dev provides the other13:59
desrtanpok: not on debian...14:09
anpokyes we should switch to libdrm14:19
alf_anpok: xf86drm already includes drm.h, so I don't think it's needed at all14:51
=== dandrader_ is now known as dandrader
=== dandrader is now known as dandrader|afk
desrtso, having some issues with mir-on-X11.  anyone can help with that?15:24
desrtkgunn: ^ hi :)15:24
kgunndesrt: yo...yes... camako should be helpful ^15:24
kgunnit's his baby15:24
desrtthat's the name i was looking for.  thanks :)15:24
anpokcamako: knows most about it15:25
kgunnhe'll be happy to see someone putting it through it's paces15:25
desrtcamako: hey... having trouble bringing up drm for x11 because gbm: Last dlopen error: /usr/lib/dri/i965_dri.so: undefined symbol: _glapi_tls_Dispatch15:25
desrteven though this does get defined (in /usr/lib/x86_64-linux-gnu/libglapi.so.0.0.0, which is loaded)15:25
desrtwe've sort of been chasing down one problem after another for the entire morning, and now we find ourselves here, and a bit stuck15:29
desrtfwiw, it works if i LD_PRELOAD that library, but this seems like a bit of a bad solution :)15:30
desrtk.  we're gonna break for lunch.  bbiab.15:34
camakodesrt, I haven't encountered this issue before.16:12
camakodesrt, what do you see when you do ...  ls /dev/dri/16:13
camakocard0  card1  controlD64  controlD65  renderD128  renderD12916:13
camakothis is what I see ^16:13
camakoyou need the render nodes16:13
camakobb after lunch16:14
=== dandrader|afk is now known as dandrader
desrtcamako: we already hit the render node issues and got past that :)16:45
desrtthis is a pure dynamic library problem16:45
desrtbtw: this is debian jessie16:45
=== alan_g is now known as alan_g|EOD
=== tvoss is now known as tvoss|test
=== tvoss|test is now known as tvoss
=== ahayzen_ is now known as ahayzen
camakodesrt, can you run mir with the mesa-kms? I.e. in a vt?18:49
desrtcamako: yes.  this is an x11 problem.18:51
=== dandrader is now known as dandrader|afk
camakodesrt, we shouldn't be using gl, only egl on mir-on-x (and gles is used in the compositor)19:28
desrtit is using egl19:28
camakodesrt, but then why the libglapi related error? Did you build the mir binaries in the debian env yourself?19:29
desrtyes19:30
desrti'm not sure it's really directly related to mir, in fact, since it's rather a problem with the dri drivers that mir tries to load19:30
camakodesrt, yeah.. It's curious that mesa-kms works though. Shouldn't be that different. Can you make mesa-x11 the first platform on the 'platforms' list (like in cmake-gui) and then after building, do a 'make test'?19:33
desrti built with only mesa-x11 this time, fwiw19:33
desrti also disabled tests :)19:34
desrti'll switch that back on again.  gimme a sec.19:34
camakodesrt, let's enable and run them19:34
camakook19:34
desrt(building)19:35
camakodesrt, are you using lp:mir or something else?19:37
desrt*ahem* something else19:37
desrtthe branch i am using is based on 365d58f5c662fb67dcfa352d9dcb07bc9b98783e19:39
camakolol gotcha19:41
=== dandrader|afk is now known as dandrader

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