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

=== duflu_ is now known as duflu
dufluBack in 30ish06:54
alan_galf_: I've got a workman turning up in the next few minutes - I might be a little late for greyback's meeting08:53
alf_alan_g: ok08:53
alan_ggreyback: : I've got a workman turning up in the next few minutes - I might be a little late for your meeting08:54
greybackalan_g: no worries08:55
=== alan_g is now known as alan_g|afk
=== Cimi_ is now known as Cimi
=== alan_g|afk is now known as alan_g
=== Guest90581 is now known as w00t
xnoxalan_g: alf_: so emulator is mostly working now. There is functional adb and networking. So far it attempts to boot into "mir" mode.10:48
xnoxI've made sure to compile all android container unstripped (so debug symbols are intact)10:48
alf_xnox: I am missing some context here :)10:49
xnoxattempting to start unity8 results in a segmentation fault, trying to run it under gdb only says that stack is corrupt =/10:50
xnoxalf_: so I want to ask for help bringing up mir / any graphical output on the emulator =)10:50
alf_xnox: which emulator is that?10:51
xnoxalf_: sometime back kgunn recommended you or alan_g as UK time people, who can help out with it.10:51
alan_gxnox: what emulator?10:51
xnoxalf_: it's android-emulator packaged to run Ubuntu Touch. So it boots unflipped/read-only system image, with an android container.10:51
xnoxalan_g: alf_: https://wiki.ubuntu.com/Touch/Emulator10:51
xnoxalso i've been posting about on ubuntu-touch.10:52
xnoxit's a QEMU based ARM virtualised machine, running linux-goldfish kernel with android container and everything mostly the same as normal android device.10:52
xnox(apart from well, not displaying mir)10:52
alan_gxnox: so, what happens if you try running e.g. mir_demo_server_basic?10:54
alf_xnox: you can try running Mir on its own to see what's going on10:54
alf_alan_g: You beat me to it! :)10:54
alan_galf_: is it a race?10:55
alf_alan_g: No, but we had a photo-finish nonetheless ;)10:57
xnoxroot@ubuntu-phablet:/# mir_demo_server_basic10:58
xnoxbash: mir_demo_server_basic: command not found10:58
xnox(this is running Ubuntu Touch rootfs, should be similar to mako/maguro tarballs et.al.)10:59
ogra_its in a separate package10:59
alan_gxnox: can you install mir-demos? Or do you need to build it?11:02
xnoxalan_g: i can, but it's very slow. I might repack a tarball and relaunch it.11:03
* alan_g thinks Mir won't work unless it is installed11:04
xnoxsame as before:11:17
xnoxroot@ubuntu-phablet:/# mir_demo_server_basic11:17
xnox__pthread_gettid -211:17
xnoxSegmentation fault11:17
xnoxwhich is similar to running unity8 et. al.11:17
xnoxhttp://paste.ubuntu.com/6340712/11:18
xnoxalan_g: alf_: if you could figure out what's broke, i'd be happy to fix it both in android, ubuntu and emulator. But at the moment i'm not sure what's wrong, as pretty much everything else is working.11:25
greybacka BT like that always makes me suspect hybris11:26
xnoxand i don't usually work on graphics at all.11:26
alan_gdebug symbols might help with the BT11:26
alan_gwhat happens if you try run "mir_demo_server_basic --display-report log"11:27
alan_gThat might give a clue as to how quickly it segfaults11:28
alf_xnox: +1 debug symbols might help with the BT11:28
xnoxalan_g: same output.11:40
xnoxalan_g: so it's something fundamental =/11:40
alan_gxnox: ack11:41
xnoxalan_g: alf_: on android side in logcat i see that it's loading up EGL emulation, there is also GLES_android, GLESv1_CM and GLESv2 available.11:45
alf_xnox: I wonder if running under valgrind could give you more clues11:47
=== dandrader is now known as dandrader|afk
=== dandrader|afk is now known as dandrader
=== greyback is now known as greyback|lunch
=== alan_g is now known as alan_g|lunch
=== greyback|lunch is now known as greyback
=== alan_g|lunch is now known as alan_g
=== dandrader is now known as dandrader|lunch
=== mpt_ is now known as mpt
=== brainwash_ is now known as brainwash
=== dandrader|lunch is now known as dandrader
rsalvetikdub: ping16:29
kdubhello rsalveti16:29
rsalvetikdub: hey, so we were debugging the nexus 7 (tegra 3) issue yesterday, and we basically believe our code path might not be doing what the driver expects us to do16:32
rsalvetithe crash happens in pthread_mutex_lock16:32
kdubrsalveti, 'our code path', meaning in hybris or mir?16:33
rsalvetiand the lock is basically a pointer, unitialized16:33
rsalvetikdub: mir, by the way we're using the hwcomposer/gralloc16:33
rsalvetithe first time it uses that pointer is already when trying the lock16:33
rsalvetiso we believe we might be skipping a call or step that initializes that value internally16:34
kdubrsalveti, i don't know of something that surfaceflinger does that we're skipping16:35
kdubwhich function call into hybris has the problem?16:35
rsalvetikdub: the pthread_mutex_lock16:36
rsalvetikdub: the mutex pointer is not initialized, so just garbage16:36
rsalvetithat's why when we try to access it, it crashes16:36
rsalvetiI'm not sure yet that this is hybris specific at this point16:37
kdubright, but do we know the last function call mir makes?16:37
rsalvetido we have any sort of test cases/tools for hwcomposer/gralloc?16:37
kdubjust the mir tests16:37
=== alan_g is now known as alan_g|afk
kdubmir_demo_standalone_render_to_fb should just drive the display16:38
rsalvetikdub: right, let me see, the crash happens with mir_demo_server16:38
kdubbut it will have the same problem as the server16:38
rsalvetikdub: right16:38
rsalvetikdub: let me try to get a better backtrace16:38
rsalvetikdub: but the issue, iirc, was that it was coming from gralloc16:38
rsalvetiwhich is just a blob, making it harder to get the full trace16:39
kdubright16:39
kdubi mean, it could be some dumb thing like...16:39
kdubon nvidia you have to open {gralloc, fb, hwc} in some specific order16:40
rsalvetikdub: yeah16:40
=== alan_g|afk is now known as alan_g
brainwashhow do I switch to hardware cursor when running xmir?16:45
=== dandrader is now known as dandrader|bbl
kdubi always like how the interface you couldn't quite get right at 6pm makes a lot more sense at 10am the next day17:34
alan_gkdub: that's after you've realised how to write the test. Right?17:35
kdubalan_g, yeah, you still have to decide what sort of things you want the test to test17:45
alan_gkdub: well if you don't know what "works" looks like it is hard to get the interface right17:46
rsalvetikdub: yeah, mir_demo_standalone_render_to_fb crashes the same way17:56
rsalvetikdub: do you have a n7 around?18:47
rsalvetikdub: I'm checking render_to_fb.cpp, but it seems the the buffer itself is null19:12
rsalvetiwhich could be the reason for the mutex garbage content19:13
kdubyes, but when you say buffer, you mean, mir's buffer class?19:18
=== dandrader|bbl is now known as dandrader
rsalvetikdub: crashing in src/server/graphics/android/hwc10_device.cpp -> hwc_device->set(hwc_device.get(), 1, &contents);19:56
kdubrsalveti, hmm20:07
kdubi have to tinker with that then20:07
kdubi'm actually working on improving that part of the code at the moment, maybe i'll find somehting20:07
rsalvetikdub: any ideas which we could try?20:10
kdubrsalveti, perhaps the list that's submitted there 'contents' isn't formed the way the driver expects it20:12
kdubhard to so how its malformed without tinkering with it though20:12
rsalvetikdub: so, when we set HWC_SKIP_LAYER at the hwcompositor layer, it doesn't crash21:09
rsalvetikdub: nothing in the screen, as expected, but the gl path and such is working as expected at least21:10
kdubrsalveti, thats good new news21:20
rsalvetikdub: so it might be something related with the hw layers21:21
kdubrsalveti, yes, it looks like it is21:22

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