/srv/irclogs.ubuntu.com/2015/02/05/#ubuntu-mir.txt

=== 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
willcookekgunn, imported:  https://code.launchpad.net/~mlankhorst/xmir/xmir09:04
mlankhorstgoodie09:04
kgunn_\o/09:04
kgunn_@vogons ^09:04
kgunn_@unity ^09:04
kgunn_bregma: bschaefer ^09:05
mlankhorstbut please use the git repo :P09:05
willcookemlankhorst, looks like it failed actually:  http://launchpadlibrarian.net/196684280/mlankhorst-xmir-xmir.log09:07
mlankhorst.. :/09:08
mlankhorstbug in bzr import it seems, looks like it can't handle GPG signed releases..09:09
mlankhorstjust use raw git :P09:13
willcookekgunn_, can we do that in the short term?09:17
kgunn_willcooke: what's that ? sorry...in case i disconnected09:18
willcookekgunn_, there seems to be an issue with LP pulling in the Git repo.09:18
kgunn_sure09:18
willcookekgunn_, can we work with it in Git for now?09:19
kgunn_we'll just have to get the packages uploaded manually using the trainguards09:19
willcookeOr we could some kind of manual push in to LP09:19
kgunn_which is simple09:19
willcookeok!09:19
willcookenice09:19
kgunn_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 know09:20
mlankhorstoke09:42
mlankhorstwhen can I expect mir 0.11? :P09:42
mlankhorstor is there a ppa somewhere with the cursor changes?09:43
kgunnmlankhorst: so the ppa i shared, will have all those changes09:44
mlankhorstoke09:44
kgunnmlankhorst: but i think that mirevent2 landed as part of mir0.1109:44
kgunnhowever09:44
kgunnthe qtmir utilization of it is in lag09:44
kgunne.g. we'll test and land that next09:44
mlankhorstoke I'll build 0.11 myself then..09:44
dandraderkgunn, the fix for the silo 0 https://code.launchpad.net/~alan-griffiths/qtmir/port-to-msh-Shell/+merge/247844/comments/61575509:45
kgunnmlankhorst: oh...actually, there is a ppa for testing that has just mir0.1109:45
kgunnnot trunk (i think)09:45
dandraderkgunn, gotta apply this patch to this MP http://paste.ubuntu.com/10069953/09:45
kgunnone sec09:45
kgunndandrader: ack09:45
kgunnmlankhorst: ah yeah...so this silo/ppa09:46
kgunnhttp://people.canonical.com/~platform/citrain_dashboard/#?distro=ubuntu&q=landing-01209:46
kgunnis the testing silo/ppa for mir0.1109:46
mlankhorstoke09:46
mlankhorstand if I use that with unity-system-compositor I get the mouse events?09:46
kgunnmlankhorst: 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
kgunnanpok: ^ right ?09:47
kgunnmlankhorst: difference being that hw cursor is used on desktop, and android doesn't suport hw cursor09:48
alf_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:01
mlankhorstalf_: ask raof..10:02
alf_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:05
mlankhorstfeel free to upload and I'll merge the changes back to the packaging10:06
alf_mlankhorst: upload where?10:07
mlankhorstarchive?10:07
mlankhorstor do you want a review :P10:08
alf_mlankhorst: I don't have ubuntu archive access, if that's what you mean. I could push to a PPA though.10:08
mlankhorstoke then just send me a diff ..10:08
alf_mlankhorst: ok, thanks. I will do so after some wider testing (probably will push to PPA first anyway).10:09
alf_mlankhorst: (after 0.11 is released)10:09
kgunnalan_g: hey mornin' would you mind updating your qtmir branch based on dandrader's feedback ?10:25
kgunnhttps://code.launchpad.net/~alan-griffiths/qtmir/port-to-msh-Shell/+merge/247844/comments/61575510:25
kgunn....we _think_ it's the last thing to change in order to test/rel mir0.1110:25
alan_gkgunn: just compiling it before pushing10:25
kgunnthank you sir10:26
* alan_g wishes there were automated acceptance tests that pick this up.10:27
alan_gkgunn: dandrader - done10:29
kgunncool10:29
mlankhorstalf_: hm do I need a even newer version of mir to kill of the thread mir creates?10:29
kgunnthank you10:29
dandraderalan_g, thanks10:29
mlankhorstI want to kill the thread proxy in Xmir10:29
mlankhorstmakes input handling slightly easier for me..10:30
alf_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
mlankhorstaw..10:32
mlankhorstyeah probably not10:32
alf_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 cases10:33
mlankhorstit probably is10:35
mlankhorstthe 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
mlankhorstit's a lot easier to rework events after that provide-event-fd code is merged10:36
=== alan_g is now known as alan_g|reboot
Saviqhey guys, does that crash ring a bell for you bug #1418456? mardy can't get unity8 to start on an Atom netbook10:55
ubot5bug 1418456 in unity8 (Ubuntu) "unity8 assert failure: *** Error in `unity8': double free or corruption (fasttop): 0xb20055a0 ***" [Medium,New] https://launchpad.net/bugs/141845610:55
ogra_its not only free sowftware but even double free software :P10:56
alan_galf_: you were looking at a heap corruption recently ^10:57
alf_alan_g: doesn't look familiar, it seems that an exception(?) happens and we are unwinding the stack when we get the memory error11:10
alan_galf_: ack11:11
mardyalan_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 away12:01
alf_mardy: could you run unity8 under gdb?12:04
mardyalf_: sure; any specific parameters or env variables to set?12:04
alf_mardy: no params, but type 'catch throw' in gdb before running12:05
alf_mardy: (so it will stop when an exception is thrown)12:05
mlankhorstso why is my touchpad in unity-session-compositor seen as a touch event? :s12:07
mardyalf_: but I should export QT_QPA_PLATFORM=ubuntumirclient, right? Otherwise it seems it's trying to talk to X12:07
mlankhorst 12:08
mardyalf_: or maybe export QT_QPA_PLATFORM=mirserver?12:09
alf_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=mirserver12:10
mardyalf_: anyway, looks like it's quitting immediately, no crashes (but I see a "Gtk-WARNING **: cannot open display:" message (Gtk??)12:11
mardyalf_: ok, let me try with those12:11
alf_mardy: perhaps MIR_SOCKET is different now12:11
mardyalf_: even with those variables, it exits immediately, with that Gtk warning12:13
alf_mardy: oh, are you running USC?12:13
mardyalf_: so, I've been running this commands from a text terminal, after doing a "sudo service lightdm stop"12:14
alf_mardy: so USC has stopped too12:14
alf_mardy: let's go back a step and try with the demo servers only12:15
alf_mardy: Install the mir-demos package (if you don't have it already)12:15
mardyalf_: done12:17
mardyalf_: 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 terminal12:18
alan_gmardy: the mir servers will exit on Ctrl+Alt+BkSp12:23
alan_gOr SIGTERM etc12:24
alan_gIt is easiest if you can get a terminal session from another device - e.g. ssh12:28
greyback_mardy: this is my command to start unity8 on desktop: http://pastebin.ubuntu.com/10072333/12:32
alf_mardy: be careful to run *sudo* mir_demo_server12:33
willcookemlankhorst, so still issues with the pointer in xmir?12:33
mardygreyback_: it still quits immediately, with that Gtk warning12:33
mardyalf_: ah, let me try12:33
mlankhorstseems to right now, but I don't know if a fix has made it in to qtmir yet..12:33
alf_mardy: do you have ssh access to the machine?12:33
mardyalf_: yep12:34
greyback_mardy: that command depends on USC running12:34
mardyalf_: so, with the demo server I get a black screen and a working mouse pointer12:34
mardygreyback_: ok, I'll try that later as soon as we confirm with alf_ that the mir things are working12:34
alf_mardy: ok keep that running and ssh to the machine12:35
mardyalf_: yep, done12:36
alf_mardy: as first test run in ssh "sudo mir_demo_client_egltriangle"12:36
alf_mardy: you should see a rotating triangle on screen12:36
mardyalf_: yes, it works12:37
alf_mardy: ok, stop it (ctrl-c), and run 'sudo mir_demo_server --host /tmp/mir_socket -f /tmp/mir_nested'12:38
mardyalf_: ok, no changes on screen, but the thing is running12:38
alf_mardy: ok, new ssh and run 'sudo mir_demo_client_egltriangle -m /tmp/mir_nested'12:39
mardyalf_: works fine, too12:39
alf_mardy: ok, good, so base mir is working12:40
alf_mardy: now kill every mir related process12:41
alf_mardy: and 'sudo start lightdm'12:41
alf_mardy: that should start usc, and try to run unity8 and fail12:41
alf_mardy: but usc should stay running12:42
willcookeanpok, were you working on the input stuff in qtmir for pointer events etc?12:42
alf_mardy: then ssh and use e.g. greyback's invocation to start unity12:42
mardyalf_: so, I should login using the unity8 session, right?12:42
alf_mardy: actually before you log in do a 'ps -Af | grep unity', does it show anything?12:44
mardyalf_: ops, too late, I already logged in. It shows USC, unity8-dash and a couple of processes related to unity-scopes12:45
alf_mardy: no problem, just wanted to make sure USC wasn't already running12:45
mardyalf_, greyback_: always the same: http://pastebin.ubuntu.com/10072557/12:46
alf_mardy: hmm, let's see where the mir_socket is created at, try 'find /var /tmp /run -name mir_socket'12:48
greyback_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"12:49
=== alan_g is now known as alan_g|lunch
mardyalf_: not found12:49
mardygreyback_: same output as above; so I guess this is due to the missing mir socket12:51
greyback_mardy: yeah, tho am surprised it's not printing an error12:51
alf_mardy: try 'cat /proc/$(pidof unity-system-compositor)/cmdline'12:52
alf_mardy: and 'cat /proc/$(pidof unity-system-compositor)/environ'12:52
alf_mardy: perhaps they will give us a clue12:52
alf_greyback_: The invocation you pasted is for a nested unity8, right?12:53
greyback_alf_: correct12:53
mardyalf_: 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=true12:53
mardyalf_: the second is XDG_SEAT=seat0XDG_VTNR=8PWD=/12:54
greyback_alf_: to test qtmir is working, stop unity-system-compositor, run "DESKTOP_SESSION=unity8-mir QT_QPA_PLATFORM=mirserver qmlscene test.qml"12:54
alf_mardy: ok, so the file you are looking for is12:54
alf_mardy: '/run/lightdm-mir-0'12:55
mardyalf_: yes, it's there, it's a socked owned by root  with 777 permissions12:56
alf_mardy: hmm, but that was already correct in greyback's invocation...12:56
mardygreyback_: should I run your command as root?12:56
greyback_mardy: yes12:57
mardyahh12:57
greyback_sorry, I always forget that12:57
greyback_and yeah, you need ssh access to stop it12:57
mardygreyback_: nope, nothing changed, same output12:58
greyback_mardy: ok that's not expected12:58
greyback_mardy: it crashes right?12:59
greyback_could you grab a backtrace?12:59
mlankhorstI'm not a mir-dev.. but shouldn't input_event_type_to_string handle type_pointer ?12:59
mardygreyback_: no, it looks like a clean exit "[Inferior 1 (process 12590) exited with code 01]"12:59
mardygreyback_: and it's even claiming that your process is inferior ;-)13:00
greyback_:)13:00
mardygreyback_: is that Gtk warning expected?13:00
greyback_mardy: no13:01
alf_greyback_: can we (try) to connect one of the mir demos to usc, to check if at least that part is OK?13:01
greyback_alf_: go for it13:01
mardygreyback_, alf_: do you think that a strace can help?13:01
greyback_mardy: I'm extremely confused, so yeah, give me anything you think of13:01
alf_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:02
greyback_alf_: MIR_SOCKET=$XDG_RUNTIME_DIR/mir_socket \13:03
greyback_MIR_SERVER_PROMPT_FILE=1 \13:03
greyback_MIR_SERVER_HOST_SOCKET=/run/lightdm-mir-0 \13:03
greyback_MIR_SERVER_FILE=$XDG_RUNTIME_DIR/mir_socket \13:03
greyback_MIR_SERVER_NAME=session-0 \13:03
greyback_those should do the trick13:04
mlankhorstwillcooke: https://bugs.launchpad.net/qtmir/+bug/1417650 seems this bug is related?13:04
ubot5Launchpad bug 1417650 in QtMir "Pointer motion and crossing events are missing" [Undecided,In progress]13:04
alf_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 usc13:04
mardygreyback_, alf_: https://launchpadlibrarian.net/196699566/unity8-strace.log13:05
willcookemlankhorst, aha!  So it's being worked on already, right?13:05
willcookeI will speak to kgunn and the guys here shortly....13:05
=== chihchun_afk is now known as chihchun
mlankhorstI'm not sure if it's worked on specifically..13:05
mlankhorstbut lets hope so13:05
mardyalf_: nope: "Can't get connection"13:05
alf_mardy: sudo?13:06
alf_mardy: I noticed in strace that you are running 32-bits (i386), perhaps that could be significant (or not)13:07
mardyalf_: yes, I started it from within a "sudo -i" environment13:08
greyback_mardy: could you run the qmlscene line in gdb, break on gdk_init and backtrace it please13:09
mardyalf_: 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 screen13:09
alf_mardy: ah, right, this is a client -m is the correct switch13:10
willcookemlankhorst, if we need it looking at I can ask13:10
alf_mardy: ok, that's expected, usc doesn't bring it to the foreground13:11
alf_mardy: so the socket works fine13:11
mardygreyback_: so, it doesn't hit gdk_init13:11
greyback_mardy: how about gdk_display_open13:12
mardygreyback_: gtk_init() is hit, instead13:12
greyback_ah13:12
alf_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 bit13:12
mardyalf_: ok, thanks a lot13:13
mardygreyback_: http://paste.ubuntu.com/10072964/13:13
mlankhorstwillcooke: well it looks from the diff like it's useful..13:13
mardygreyback_: I hope there is not a switch based on the CPU architecture in there...13:13
greyback_mardy: there isn't in my code anyway13:14
greyback_mardy: could you muck with /usr/lib/i386-linux-gnu/qt5/plugins/platformthemes/libappmenu-qt5.so to prevent it being loaded?13:14
greyback_tho oddly it is loaded here and unity8 comes up just fine13:16
mardygreyback_: ok, now I get the "double free or corruption"13:18
mardygreyback_: wait, let me try with qmlscene first13:18
mardygreyback_: yep, I get the memory corruption with qmlscene as well13:19
greyback_mardy: backtrace again please13:19
mardygreyback_: http://paste.ubuntu.com/10073018/13:20
mardygreyback_: as you can see I typed "catch throw", but it seems like there was no exception13:20
mlankhorstwillcooke: hm it's probably necessary but not sufficient13:21
mlankhorstafaict13:21
greyback_mardy: could you add the missing symbols?13:21
greyback_that code is more mir's13:22
willcookemlankhorst, just spoke to kgunn and greyback_, someone will get on to this asap.  greyback_ will probably work on it13:24
mlankhorstoke13:26
mlankhorstjust tested and nested mir works as intended13:26
mlankhorstjust unity8 is borked13:27
greyback_mlankhorst: borked how?13:28
willcookemlankhorst, side question:  how's your xmir ppa looking atm?  Good to try on our devices here?13:29
mlankhorstought to?13:30
mlankhorstgreyback_: I don't get pointer events..13:30
mlankhorstmy pointer events get converted to touch events13:30
greyback_mlankhorst: that issue, ok, yeah I'm on it13:30
willcookethanks guys13:32
mlankhorstwillcooke: ppa works fine afaik, I was working on moving to new touch events but it can wait13:32
mardygreyback_, alf_: http://paste.ubuntu.com/10073198/13:32
willcookemlankhorst, ack13:33
greyback_mardy: frame 11 could be very useful, libmirserver28-dbgsym is missing?13:34
=== alan_g|lunch is now known as alan_g
mardygreyback_, alf_: http://paste.ubuntu.com/10073557/13:53
anpokwillcooke: input stuff in unity-system-compositor and mir13:54
willcookeanpok, no worries, I think greyback_ is looking at the issue13:55
greyback_mardy: thanks for the paste, I need alf_ to help you with that14:05
alf_greyback_: mardy: back, looking14:06
alf_mardy: could you run qmlscene with valgrind please?14:07
mardyalf_: ah! I anticipated you :-) I just did it, let me collect the logs :-)14:08
=== marcusto_ is now known as marcustomlinson
mardyalf_: http://paste.ubuntu.com/10073830/14:09
mardyalf_: see the error at the end of the logs: "std::exception::what: Failed to create shared EGL context"14:11
alf_mardy: ah, this is much more helpful, thanks!14:17
alf_mardy: could you please attach this to the bug so it doesn't get lost?14:17
mardyalf_: ok14:17
kgunnracarr: i owe you a beer....disabling n seems to be working14:18
kgunnlike life chaning14:18
kgunnchanging event14:18
mardyalf_: done14:19
alf_mardy: thanks14:20
alf_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:22
alf_mardy: still we need to find out why the context creation fails...14:23
alf_mardy: could you run qmlscene under gdb and additional environment variables MESA_DEBUG=1 and EGL_LOG_LEVEL=debug14:27
mardyalf_: sure14:27
alf_mardy: then in gdb break on _mesa_error()14:27
alf_mardy: before running14:27
racarralan_g: Hey...testing release and running in to some issues I think may originate with the SurfaceConfigurator changes...14:28
alan_gracarr: ok?14:29
racarraha sorry got distracted mid sentence loud room14:29
racarralan_g: OSK hiding got broken somewhere between14:29
racarrthe OSK and the QML the minimized state isn't14:29
racarrsuccessfully applying or being pushed through or some such14:29
racarrjust wondering if you have any ideas :)14:30
duflu_alf_, mardy: Sounds like bug 1408910 :)14:32
ubot5bug 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/140891014:32
* alan_g goes to look at the Q_EMIT surfaceAttributeChanged changes...14:32
racarralan_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 and14:32
racarrthe first time it does show that state changed to showed...and14:33
racarrset_surface_attribute continues being called but14:33
racarrstate never changes again...so it may be uh14:33
racarrthe value of "result" is incorrect or being mangled or some such14:33
dandraderanpok, the env var is GRID_UNIT_PX14:34
alf_duflu_: mardy: ah, indeed14:34
mardyalf_: this is what I get, the _mesa_error() was not hit: http://paste.ubuntu.com/10074123/14:39
alf_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 loaded14:43
alan_gracarr: nothing leaps out at me. Is there an image I can try?14:46
alf_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
ubot5bug 1418486 in mesa (Ubuntu) "Mir Mesa EGL platform leaks memory with every frame" [High,In progress] https://launchpad.net/bugs/141848614:46
duflu_alf_: Yep, OK, standard behaviour14:47
alf_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
racarralan_g: Yeah its showing up in the release PPA http://people.canonical.com/~platform/citrain_dashboard/#?distro=ubuntu&q=landing-01214:48
racarralan_g: The whole issue I guess is...the way the osk hides is it does this animation14:49
duflu_alf_: Yeah, not without LP enhancements, which take decades :) Just using "Mir" is OK14:49
racarrand then it sets the minimize state14:49
racarrand qtmir hides it.14:49
racarrso there is an existing bug where sometimes the animation does not finish14:49
racarr(it mostly seems to show up on n7...)14:49
racarrand hten you will see14:49
racarra little bit of the OSK left over at the bottom14:49
racarrbecause the14:50
racarrwell, the hiding doesnt work14:50
=== marcusto_ is now known as marcustomlinson_
=== marcustomlinson_ is now known as marcustomlinson
racarralan_g: We are seeing it may actually just be the wrong version14:55
racarrof the package in the silo....so14:55
racarrmaybe don't spend any time on it now lol...sorry14:55
alan_gracarr: OK. Keep me informed.14:56
racarralan_g: Thanks :)14:57
racarralan_g: Ah its still broken even with the correct packages :( (featuring the metatype registration)15:54
alan_gracarr: :(15:56
=== marcusto_ is now known as marcustomlinson_
greyback_mlankhorst: lp:~mir-team/qtmir/port-to-event-2.0/ should enable mouse hover - it needs mir 0.11 though16:40
alan_gracarr: 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?16:53
mlankhorstgreyback_: oke, last I tried it was borked, is it fixed now?17:27
mlankhorstgreyback_: I was getting touch events rather than pointer events even with that branch :/17:29
=== chihchun is now known as chihchun_afk

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