=== chihchun is now known as chihchun_afk === chihchun_afk is now known as chihchun === chihchun is now known as chihchun_afk === marcust__ is now known as marcustomlinson === chihchun_afk is now known as chihchun === chihchun is now known as chihchun_afk === chihchun_afk is now known as chihchun === chihchun is now known as chihchun_afk [09:04] kgunn, imported: https://code.launchpad.net/~mlankhorst/xmir/xmir [09:04] goodie [09:04] \o/ [09:04] @vogons ^ [09:04] @unity ^ [09:05] bregma: bschaefer ^ [09:05] but please use the git repo :P [09:07] mlankhorst, looks like it failed actually: http://launchpadlibrarian.net/196684280/mlankhorst-xmir-xmir.log [09:08] .. :/ [09:09] bug in bzr import it seems, looks like it can't handle GPG signed releases.. [09:13] just use raw git :P [09:17] kgunn_, can we do that in the short term? [09:18] willcooke: what's that ? sorry...in case i disconnected [09:18] kgunn_, there seems to be an issue with LP pulling in the Git repo. [09:18] sure [09:19] kgunn_, can we work with it in Git for now? [09:19] we'll just have to get the packages uploaded manually using the trainguards [09:19] Or we could some kind of manual push in to LP [09:19] which is simple [09:19] ok! [09:19] nice [09:20] yeah...so mlankhorst if you have a new set of packages that you'd say is ready to be put into a ppa & part of our demo lemme know [09:42] oke [09:42] when can I expect mir 0.11? :P [09:43] or is there a ppa somewhere with the cursor changes? [09:44] mlankhorst: so the ppa i shared, will have all those changes [09:44] oke [09:44] mlankhorst: but i think that mirevent2 landed as part of mir0.11 [09:44] however [09:44] the qtmir utilization of it is in lag [09:44] e.g. we'll test and land that next [09:44] oke I'll build 0.11 myself then.. [09:45] kgunn, the fix for the silo 0 https://code.launchpad.net/~alan-griffiths/qtmir/port-to-msh-Shell/+merge/247844/comments/615755 [09:45] mlankhorst: oh...actually, there is a ppa for testing that has just mir0.11 [09:45] not trunk (i think) [09:45] kgunn, gotta apply this patch to this MP http://paste.ubuntu.com/10069953/ [09:45] one sec [09:45] dandrader: ack [09:46] mlankhorst: ah yeah...so this silo/ppa [09:46] http://people.canonical.com/~platform/citrain_dashboard/#?distro=ubuntu&q=landing-012 [09:46] is the testing silo/ppa for mir0.11 [09:46] oke [09:46] and if I use that with unity-system-compositor I get the mouse events? [09:47] mlankhorst: mmm....on desktop yeah i thikn you just get it....on andrdoid devices, you have to use the u-s-c that's in the ppa for the demo (vivid silo 0) [09:47] anpok: ^ right ? [09:48] mlankhorst: difference being that hw cursor is used on desktop, and android doesn't suport hw cursor [10:01] mlankhorst: Hi! If I have a patch for the mesa mir egl backend, what's the best way to propose? Diff against ubuntu branch on debian git, debdiff, some other way? [10:02] alf_: ask raof.. [10:05] mlankhorst: OK, forget I mentioned the mesa mir egl detail :) I mean in general, how would do you prefer me to propose a package update for mesa. [10:06] feel free to upload and I'll merge the changes back to the packaging [10:07] mlankhorst: upload where? [10:07] archive? [10:08] or do you want a review :P [10:08] mlankhorst: I don't have ubuntu archive access, if that's what you mean. I could push to a PPA though. [10:08] oke then just send me a diff .. [10:09] mlankhorst: ok, thanks. I will do so after some wider testing (probably will push to PPA first anyway). [10:09] mlankhorst: (after 0.11 is released) [10:25] alan_g: hey mornin' would you mind updating your qtmir branch based on dandrader's feedback ? [10:25] https://code.launchpad.net/~alan-griffiths/qtmir/port-to-msh-Shell/+merge/247844/comments/615755 [10:25] ....we _think_ it's the last thing to change in order to test/rel mir0.11 [10:25] kgunn: just compiling it before pushing [10:26] thank you sir [10:27] * alan_g wishes there were automated acceptance tests that pick this up. [10:29] kgunn: dandrader - done [10:29] cool [10:29] alf_: hm do I need a even newer version of mir to kill of the thread mir creates? [10:29] thank you [10:29] alan_g, thanks [10:29] I want to kill the thread proxy in Xmir [10:30] makes input handling slightly easier for me.. [10:32] mlankhorst: It's now my turn to tell you 'ask RAOF' :) But assuming what you want is an event fd, that didn't make it into 0.11 AFAICT. [10:32] aw.. [10:32] yeah probably not [10:33] mlankhorst: https://code.launchpad.net/~raof/mir/provide-event-fd/+merge/247794 , in case you want to check if this is good enough for your use cases [10:35] it probably is [10:36] the main thing I worry about is if my hack that copies the full event will hold until mir advanced enough for that one.. [10:36] it's a lot easier to rework events after that provide-event-fd code is merged === alan_g is now known as alan_g|reboot [10:55] hey guys, does that crash ring a bell for you bug #1418456? mardy can't get unity8 to start on an Atom netbook [10:55] bug 1418456 in unity8 (Ubuntu) "unity8 assert failure: *** Error in `unity8': double free or corruption (fasttop): 0xb20055a0 ***" [Medium,New] https://launchpad.net/bugs/1418456 [10:56] its not only free sowftware but even double free software :P [10:57] alf_: you were looking at a heap corruption recently ^ [11:10] alan_g: doesn't look familiar, it seems that an exception(?) happens and we are unwinding the stack when we get the memory error [11:11] alf_: ack [12:01] alan_g, alf_: I've that machine running, if you want feel free to ask me more questions for debugging, I can give you the results right away [12:04] mardy: could you run unity8 under gdb? [12:04] alf_: sure; any specific parameters or env variables to set? [12:05] mardy: no params, but type 'catch throw' in gdb before running [12:05] mardy: (so it will stop when an exception is thrown) [12:07] so why is my touchpad in unity-session-compositor seen as a touch event? :s [12:07] alf_: but I should export QT_QPA_PLATFORM=ubuntumirclient, right? Otherwise it seems it's trying to talk to X [12:08] [12:09] alf_: or maybe export QT_QPA_PLATFORM=mirserver? [12:10] mardy: I haven't tried in a while but unity8 env. variables I used for manual invocation are: MIR_SERVER_NAME=session-0 MIR_SOCKET=/run/mir_socket QT_QPA_PLATFORM=mirserver [12:11] alf_: anyway, looks like it's quitting immediately, no crashes (but I see a "Gtk-WARNING **: cannot open display:" message (Gtk??) [12:11] alf_: ok, let me try with those [12:11] mardy: perhaps MIR_SOCKET is different now [12:13] alf_: even with those variables, it exits immediately, with that Gtk warning [12:13] mardy: oh, are you running USC? [12:14] alf_: so, I've been running this commands from a text terminal, after doing a "sudo service lightdm stop" [12:14] mardy: so USC has stopped too [12:15] mardy: let's go back a step and try with the demo servers only [12:15] mardy: Install the mir-demos package (if you don't have it already) [12:17] alf_: done [12:18] alf_: I even tried the mir_demo_server before, but it took control of the terminal and I didn't know how to quit or switch to another terminal [12:23] mardy: the mir servers will exit on Ctrl+Alt+BkSp [12:24] Or SIGTERM etc [12:28] It is easiest if you can get a terminal session from another device - e.g. ssh [12:32] mardy: this is my command to start unity8 on desktop: http://pastebin.ubuntu.com/10072333/ [12:33] mardy: be careful to run *sudo* mir_demo_server [12:33] mlankhorst, so still issues with the pointer in xmir? [12:33] greyback_: it still quits immediately, with that Gtk warning [12:33] alf_: ah, let me try [12:33] seems to right now, but I don't know if a fix has made it in to qtmir yet.. [12:33] mardy: do you have ssh access to the machine? [12:34] alf_: yep [12:34] mardy: that command depends on USC running [12:34] alf_: so, with the demo server I get a black screen and a working mouse pointer [12:34] greyback_: ok, I'll try that later as soon as we confirm with alf_ that the mir things are working [12:35] mardy: ok keep that running and ssh to the machine [12:36] alf_: yep, done [12:36] mardy: as first test run in ssh "sudo mir_demo_client_egltriangle" [12:36] mardy: you should see a rotating triangle on screen [12:37] alf_: yes, it works [12:38] mardy: ok, stop it (ctrl-c), and run 'sudo mir_demo_server --host /tmp/mir_socket -f /tmp/mir_nested' [12:38] alf_: ok, no changes on screen, but the thing is running [12:39] mardy: ok, new ssh and run 'sudo mir_demo_client_egltriangle -m /tmp/mir_nested' [12:39] alf_: works fine, too [12:40] mardy: ok, good, so base mir is working [12:41] mardy: now kill every mir related process [12:41] mardy: and 'sudo start lightdm' [12:41] mardy: that should start usc, and try to run unity8 and fail [12:42] mardy: but usc should stay running [12:42] anpok, were you working on the input stuff in qtmir for pointer events etc? [12:42] mardy: then ssh and use e.g. greyback's invocation to start unity [12:42] alf_: so, I should login using the unity8 session, right? [12:44] mardy: actually before you log in do a 'ps -Af | grep unity', does it show anything? [12:45] alf_: ops, too late, I already logged in. It shows USC, unity8-dash and a couple of processes related to unity-scopes [12:45] mardy: no problem, just wanted to make sure USC wasn't already running [12:46] alf_, greyback_: always the same: http://pastebin.ubuntu.com/10072557/ [12:48] mardy: hmm, let's see where the mir_socket is created at, try 'find /var /tmp /run -name mir_socket' [12:49] mardy: could you put 'import QtQuick 2.2; Rectangle{ color: "blue" }' into a test.qml file, and do the above command, but replacing /usr/bin/unity8 with "qmlscene test.qml" === alan_g is now known as alan_g|lunch [12:49] alf_: not found [12:51] greyback_: same output as above; so I guess this is due to the missing mir socket [12:51] mardy: yeah, tho am surprised it's not printing an error [12:52] mardy: try 'cat /proc/$(pidof unity-system-compositor)/cmdline' [12:52] mardy: and 'cat /proc/$(pidof unity-system-compositor)/environ' [12:52] mardy: perhaps they will give us a clue [12:53] greyback_: The invocation you pasted is for a nested unity8, right? [12:53] alf_: correct [12:53] alf_: the first says /usr/sbin/unity-system-compositor--disable-inactivity-policy=true--on-fatal-error-abort--file/run/lightdm-mir-0--from-dm-fd12--to-dm-fd21--vt8--enable-hardware-cursor=true [12:54] alf_: the second is XDG_SEAT=seat0XDG_VTNR=8PWD=/ [12:54] alf_: to test qtmir is working, stop unity-system-compositor, run "DESKTOP_SESSION=unity8-mir QT_QPA_PLATFORM=mirserver qmlscene test.qml" [12:54] mardy: ok, so the file you are looking for is [12:55] mardy: '/run/lightdm-mir-0' [12:56] alf_: yes, it's there, it's a socked owned by root with 777 permissions [12:56] mardy: hmm, but that was already correct in greyback's invocation... [12:56] greyback_: should I run your command as root? [12:57] mardy: yes [12:57] ahh [12:57] sorry, I always forget that [12:57] and yeah, you need ssh access to stop it [12:58] greyback_: nope, nothing changed, same output [12:58] mardy: ok that's not expected [12:59] mardy: it crashes right? [12:59] could you grab a backtrace? [12:59] I'm not a mir-dev.. but shouldn't input_event_type_to_string handle type_pointer ? [12:59] greyback_: no, it looks like a clean exit "[Inferior 1 (process 12590) exited with code 01]" [13:00] greyback_: and it's even claiming that your process is inferior ;-) [13:00] :) [13:00] greyback_: is that Gtk warning expected? [13:01] mardy: no [13:01] greyback_: can we (try) to connect one of the mir demos to usc, to check if at least that part is OK? [13:01] alf_: go for it [13:01] greyback_, alf_: do you think that a strace can help? [13:01] mardy: I'm extremely confused, so yeah, give me anything you think of [13:02] greyback_: Well, it was mostly a question of how to make USC accept it? What environment should we set? MIR_SERVER_NAME=session-0 DESKTOP_SESSION=unity8-mir ? [13:03] alf_: MIR_SOCKET=$XDG_RUNTIME_DIR/mir_socket \ [13:03] MIR_SERVER_PROMPT_FILE=1 \ [13:03] MIR_SERVER_HOST_SOCKET=/run/lightdm-mir-0 \ [13:03] MIR_SERVER_FILE=$XDG_RUNTIME_DIR/mir_socket \ [13:03] MIR_SERVER_NAME=session-0 \ [13:04] those should do the trick [13:04] willcooke: https://bugs.launchpad.net/qtmir/+bug/1417650 seems this bug is related? [13:04] Launchpad bug 1417650 in QtMir "Pointer motion and crossing events are missing" [Undecided,In progress] [13:04] mardy: when you are done strace-ing, you could try 'mir_demo_client_egltriangle' with the environment greyback pasted above to see if at least the demo client can connect to usc [13:05] greyback_, alf_: https://launchpadlibrarian.net/196699566/unity8-strace.log [13:05] mlankhorst, aha! So it's being worked on already, right? [13:05] I will speak to kgunn and the guys here shortly.... === chihchun_afk is now known as chihchun [13:05] I'm not sure if it's worked on specifically.. [13:05] but lets hope so [13:05] alf_: nope: "Can't get connection" [13:06] mardy: sudo? [13:07] mardy: I noticed in strace that you are running 32-bits (i386), perhaps that could be significant (or not) [13:08] alf_: yes, I started it from within a "sudo -i" environment [13:09] mardy: could you run the qmlscene line in gdb, break on gdk_init and backtrace it please [13:09] alf_: if I add the "-m /run/lightdm-mir-0" option to the egltriangle test, then it connects and apparently runs, though nothing is visible on screen [13:10] mardy: ah, right, this is a client -m is the correct switch [13:10] mlankhorst, if we need it looking at I can ask [13:11] mardy: ok, that's expected, usc doesn't bring it to the foreground [13:11] mardy: so the socket works fine [13:11] greyback_: so, it doesn't hit gdk_init [13:12] mardy: how about gdk_display_open [13:12] greyback_: gtk_init() is hit, instead [13:12] ah [13:12] mardy: I leave you in greyback_'s capable hands for now (he is more familiar with the qt/unity8 side of things anyway), got to get some lunch, be back in a bit [13:13] alf_: ok, thanks a lot [13:13] greyback_: http://paste.ubuntu.com/10072964/ [13:13] willcooke: well it looks from the diff like it's useful.. [13:13] greyback_: I hope there is not a switch based on the CPU architecture in there... [13:14] mardy: there isn't in my code anyway [13:14] mardy: could you muck with /usr/lib/i386-linux-gnu/qt5/plugins/platformthemes/libappmenu-qt5.so to prevent it being loaded? [13:16] tho oddly it is loaded here and unity8 comes up just fine [13:18] greyback_: ok, now I get the "double free or corruption" [13:18] greyback_: wait, let me try with qmlscene first [13:19] greyback_: yep, I get the memory corruption with qmlscene as well [13:19] mardy: backtrace again please [13:20] greyback_: http://paste.ubuntu.com/10073018/ [13:20] greyback_: as you can see I typed "catch throw", but it seems like there was no exception [13:21] willcooke: hm it's probably necessary but not sufficient [13:21] afaict [13:21] mardy: could you add the missing symbols? [13:22] that code is more mir's [13:24] mlankhorst, just spoke to kgunn and greyback_, someone will get on to this asap. greyback_ will probably work on it [13:26] oke [13:26] just tested and nested mir works as intended [13:27] just unity8 is borked [13:28] mlankhorst: borked how? [13:29] mlankhorst, side question: how's your xmir ppa looking atm? Good to try on our devices here? [13:30] ought to? [13:30] greyback_: I don't get pointer events.. [13:30] my pointer events get converted to touch events [13:30] mlankhorst: that issue, ok, yeah I'm on it [13:32] thanks guys [13:32] willcooke: ppa works fine afaik, I was working on moving to new touch events but it can wait [13:32] greyback_, alf_: http://paste.ubuntu.com/10073198/ [13:33] mlankhorst, ack [13:34] mardy: frame 11 could be very useful, libmirserver28-dbgsym is missing? === alan_g|lunch is now known as alan_g [13:53] greyback_, alf_: http://paste.ubuntu.com/10073557/ [13:54] willcooke: input stuff in unity-system-compositor and mir [13:55] anpok, no worries, I think greyback_ is looking at the issue [14:05] mardy: thanks for the paste, I need alf_ to help you with that [14:06] greyback_: mardy: back, looking [14:07] mardy: could you run qmlscene with valgrind please? [14:08] alf_: ah! I anticipated you :-) I just did it, let me collect the logs :-) === marcusto_ is now known as marcustomlinson [14:09] alf_: http://paste.ubuntu.com/10073830/ [14:11] alf_: see the error at the end of the logs: "std::exception::what: Failed to create shared EGL context" [14:17] mardy: ah, this is much more helpful, thanks! [14:17] mardy: could you please attach this to the bug so it doesn't get lost? [14:17] alf_: ok [14:18] racarr: i owe you a beer....disabling n seems to be working [14:18] like life chaning [14:18] changing event [14:19] alf_: done [14:20] mardy: thanks [14:22] mardy: greyback_: So, the root cause of the bug is the exception "std::exception::what: Failed to create shared EGL context". This causes the stack to unwind and releases objects in a way that causes memory errors, but that's secondary, only a side effect. I will work on fixing the effect, probably the problem is in our Mesa code. [14:23] mardy: still we need to find out why the context creation fails... [14:27] mardy: could you run qmlscene under gdb and additional environment variables MESA_DEBUG=1 and EGL_LOG_LEVEL=debug [14:27] alf_: sure [14:27] mardy: then in gdb break on _mesa_error() [14:27] mardy: before running [14:28] alan_g: Hey...testing release and running in to some issues I think may originate with the SurfaceConfigurator changes... [14:29] racarr: ok? [14:29] aha sorry got distracted mid sentence loud room [14:29] alan_g: OSK hiding got broken somewhere between [14:29] the OSK and the QML the minimized state isn't [14:29] successfully applying or being pushed through or some such [14:30] just wondering if you have any ideas :) [14:32] alf_, mardy: Sounds like bug 1408910 :) [14:32] bug 1408910 in unity8 (Ubuntu) "Ubuntu Desktop Next fails to start; just black screen and mouse pointer (unity8.log: std::exception::what: Failed to create shared EGL context)" [Critical,Confirmed] https://launchpad.net/bugs/1408910 [14:32] * alan_g goes to look at the Q_EMIT surfaceAttributeChanged changes... [14:32] alan_g: I haven't verified it entirely because Im still getting debug symbols...but we added some print in the QML side on the input method element and [14:33] the first time it does show that state changed to showed...and [14:33] set_surface_attribute continues being called but [14:33] state never changes again...so it may be uh [14:33] the value of "result" is incorrect or being mangled or some such [14:34] anpok, the env var is GRID_UNIT_PX [14:34] duflu_: mardy: ah, indeed [14:39] alf_: this is what I get, the _mesa_error() was not hit: http://paste.ubuntu.com/10074123/ [14:43] mardy: ok, please try setting the breakpoint after you have run the program once in gdb and then re-run, sometimes BPs don't work correctly if the symbols is not loaded [14:46] racarr: nothing leaps out at me. Is there an image I can try? [14:46] duflu_: bug 1418486, I will re-add mir, because although it's strictly not code in the Mir codebase, it's still the "Mir project" and I want it to show in the bug list for Mir. I will remove it when done. [14:46] bug 1418486 in mesa (Ubuntu) "Mir Mesa EGL platform leaks memory with every frame" [High,In progress] https://launchpad.net/bugs/1418486 [14:47] alf_: Yep, OK, standard behaviour [14:48] duflu_: I wonder if there is a better way to express the relationship of the two projects in LP... Perhaps have a "Mir project" meta-project? Anyway... [14:48] alan_g: Yeah its showing up in the release PPA http://people.canonical.com/~platform/citrain_dashboard/#?distro=ubuntu&q=landing-012 [14:49] alan_g: The whole issue I guess is...the way the osk hides is it does this animation [14:49] alf_: Yeah, not without LP enhancements, which take decades :) Just using "Mir" is OK [14:49] and then it sets the minimize state [14:49] and qtmir hides it. [14:49] so there is an existing bug where sometimes the animation does not finish [14:49] (it mostly seems to show up on n7...) [14:49] and hten you will see [14:49] a little bit of the OSK left over at the bottom [14:50] because the [14:50] well, the hiding doesnt work === marcusto_ is now known as marcustomlinson_ === marcustomlinson_ is now known as marcustomlinson [14:55] alan_g: We are seeing it may actually just be the wrong version [14:55] of the package in the silo....so [14:55] maybe don't spend any time on it now lol...sorry [14:56] racarr: OK. Keep me informed. [14:57] alan_g: Thanks :) [15:54] alan_g: Ah its still broken even with the correct packages :( (featuring the metatype registration) [15:56] racarr: :( === marcusto_ is now known as marcustomlinson_ [16:40] mlankhorst: lp:~mir-team/qtmir/port-to-event-2.0/ should enable mouse hover - it needs mir 0.11 though [16:53] racarr: I'm still not sure what your saying is going wrong. Is the server is getting the state change notification at set_surface_attribute() but not publishing the surfaceAttributeChanged event? Or is the there something not happening client side? [17:27] greyback_: oke, last I tried it was borked, is it fixed now? [17:29] greyback_: I was getting touch events rather than pointer events even with that branch :/ === chihchun is now known as chihchun_afk