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

DalekSecAnything else I can do?00:12
c74d3What security issues in X's design does Mir fix? (And, are there any security issues in Mir's design?)00:35
tmpRAOFThe way that X clients can do whatever they want to each other, up to and including snoop all keyboard input.00:44
tmpRAOFThere aren't any security issues in Mir's design that we've identified :)00:45
c74d3Thanks. In Mir, keyboard/mouse/etc. input will... only ever go to the focused window?01:00
dufluc74d3: No... "focus" refers to things that don't have coordinates (key presses) everything else goes wherever you're pointing01:01
dufluThat said, we haven't implemented everything yet so you might see missing features01:01
c74d3But a program can't know about a mouse-click unless it's the one whose window is being clicked on?01:02
dufluc74d3: That or it owned the start of a gesture (clicked in window and dragged outside of). Also note we need and haven't yet implemented grabs01:03
dufluGrabs allow a window to own the mouse01:03
c74d3Okay, thanks.01:03
* tmpRAOF notes that “grabs” are probably the wrong term, as they're easily confused with X11's (multiple) grab concept(s).01:04
duflutmpRAOF: Perhaps01:04
c74d3Oh, "grabs" as in "the program grabs the mouse", not "the mouse-pointer grabs something".01:04
dufluc74d3: Yes01:04
c74d3Can programs read other programs' output, e.g. for screen-captures (or, on the other side, stealing passwords etc.)?01:07
tmpRAOFNo01:07
tmpRAOF*: in general.01:08
* duflu is reminded he doesn't know how screencast's security works (or should work)01:11
tmpRAOFIt's shell-mediated01:12
duflutmpRAOF: Oh, I hadn't seen that invite from Thomas ;)01:13
tmpRAOF:(01:13
tmpRAOF:)01:13
c74d3"shell-mediated" -- The "shell" (which is like a window manager?) can approve or deny each screen-capture request, possibly after asking the user?01:17
duflu_tmpRAOF: Did you lose internets last night too?01:18
tmpRAOFduflu_: I don't think so?01:19
tmpRAOFc74d3: Correct. The “shell” could also be called the desktop-environment. Mir doesn't have the same display server/window manager split that X has.01:20
duflu_This is a good thing. I found myself looking at Weston code last week for the first time and there are some horrible implications for what Wayland expects each compositor to re-implement01:21
c74d3"desktop-environment", like KDE? With a file-management GUI, a system-settings GUI, etc.?01:22
duflu_c74d3: Yes01:22
duflu_That said, Mir should not discount Wayland. We've got a lot of selling/improving to do to support other shells01:23
c74d3Mir requires a desktop environment?01:24
c74d3Does a Mir shell need to include file-management etc. GUIs, or could it merely be equivalent to a X window manager?01:25
DalekSecduflu_: Oh heya.01:26
=== duflu_ is now known as duflu
tmpRAOFc74d3: Mir is a library you use to build desktop environments, mostly.01:26
dufluDalekSec: Hello...01:26
DalekSechttp://sigma.unit193.net/lightdm/unity-system-compositor.log was the log for 0.11.0 on the hardware affected (still) by bug 1212753.01:27
ubot5bug 1212753 in mir (Ubuntu) "[i865] unity-system-compositor fails to start: Failed to choose ARGB EGL config" [Medium,Fix released] https://launchpad.net/bugs/121275301:27
tmpRAOFc74d3: In roughly the same way that Wayland is an RPC mechanism + default protocol specification for a display-server-desktop-environment thingy.01:27
c74d3tmpRAOF: hm, thanks.01:28
dufluDalekSec: Thanks. I thought I was being a bit optimistic on that one. What chipset/GPU?01:31
DalekSechttp://paste.openstack.org/show/ilFEYLp8qY75dkGm4Px5/01:31
dufluDalekSec: Hmm i845 is even older than that of the first reporter... :)01:32
dufluDalekSec: In that case, can you please open a new bug?  https://bugs.launchpad.net/mir/+filebug01:33
DalekSecGenerally looks like the same error...01:34
dufluDalekSec: Yes, but things get messy if we declare them fixed and reopen. I would reopen if someone with i865 also says "not fixed"01:39
dufluBugs are free. Please log them :)01:39
DalekSecBah...01:39
DalekSecduflu: Just to be clear, this is xmir on Xubuntu/Xfce, not "native" mir.01:40
dufluDalekSec: It's still Mir under XMir. The "native" part isn't really important there...01:41
DalekSecMhmm, just figured I'd note. :)01:41
dufluDalekSec: Obviously in the long term we all want to use shells that are closer to the hardware... that's faster and less resource hungry01:43
DalekSecAnything besides chip, release, mirver, and error log?01:44
tmpRAOFunity-system-compositor is absolutely “native Mir”; we're writing a library that should support such things, not just Unity8's QML :)01:44
dufluDalekSec: Nope, that's enough thanks01:45
DalekSeclp 142057401:45
ubot5Launchpad bug 1420574 in Mir "[i845] unity-system-compositor fails to start: Failed to choose ARGB EGL config" [Undecided,New] https://launchpad.net/bugs/142057401:45
dufluDalekSec: Ta muchly01:45
DalekSecduflu: Sure.  I'll stick around too in case you need anything else. :)01:46
DalekSecCheers from the Xubuntu team!01:46
dufluDalekSec: Oh, one important question: Can you run OpenGL (mesa) demos on this system using native X/Xfce? If so, what are the GL renderer strings reported?01:47
duflu(glxinfo | grep OpenGL)01:48
DalekSecI'm back into the installed system, 14.10, but yes it works: OpenGL renderer string: Mesa DRI Intel(R) 845G x86/MMX/SSE201:49
dufluDalekSec: Can you please run "glxinfo | grep OpenGL" and paste the output in the bug? The key thing is to prove that Mesa supports your system (and therefore Mir should too)01:50
DalekSecDone.01:52
DalekSec...Just as long as I don't have to show FPS. >_>01:53
tmpRAOF:P01:55
DalekSecAnywho, I believe that's enough of that for now.  See you another day.01:58
dufluDalekSec: Thanks. We're eager to make Mir work everywhere01:59
DalekSecBit surprised honestly, based on how dated this is.01:59
dufluDalekSec: Well, it's not a Canonical priority but something I'd like to achieve on a weekend at least02:25
DalekSecFrom 14.10, I take it "es2_info: es2_info.c:158: make_x_window: Assertion `num_configs > 0' failed." is a Very Bad Thing™?02:26
dufluDalekSec: Yeah that's a good explanation02:27
dufluDalekSec: I think I could write a renderer that will work for you and Mir in OpenGL 1.x but Unity8 will never support it.02:28
DalekSecI'm asking before posting as I'm not on 15.04, though don't believe that'd make a difference.02:28
DalekSecduflu: Not to be rude, but I never plan to use unity8. :)02:28
dufluDalekSec: Fair statement. You're not alone and we hope there are other shells02:28
DalekSecOthers might, but I can't see anyone on this old a card 1. Trying to use unity.  2. Keeping it for much longer.02:28
DalekSecAnywho, I'll post.02:29
dufluDalekSec: I like the challenge. The key point is whether introducing Mir alienates any/many existing Ubuntu users. Presently that's "yes"02:29
DalekSecduflu: Hah!  Awesome. :)02:30
DalekSecduflu: Oh, and xfwm4's compositor is off in all the 14.10 output. :303:18
dufluDalekSec: OK, I don't think that matters. First we need Mir to start, then XMir (or Unity8 or whatever) ...03:19
DalekSecYeah, glxinfo isn't different, just might be good to mention.03:20
tmpRAOFduflu: unity-system-compositor as it currently stands doesn't really need GL at all; (at this point) we could entirely drop that requirement.03:24
duflutmpRAOF: Yeah fair point and I've been hoping to do so03:24
dufluJust that a native DRM compositor right now would only support fullscreen03:25
tmpRAOFWhich is fine, because system compositor.03:25
tmpRAOFIn the current state of affairs we don't actually *composite* at any point.03:25
tmpRAOFWe just multiplex.03:26
duflutmpRAOF: I like to have such separations in code because it's a nice design sanity test for anyone making changes in future03:26
duflutmpRAOF: Well, proving server does composite (antialiasing and blending)03:27
duflu"compose"?03:27
tmpRAOFYeah, absolutely. But DalekSec doesn't need proving server to run; they need unity-system-compositor to run :)03:27
dufluI think the verb is "composite"03:27
duflutmpRAOF: Absolutely03:28
dufluAlthough both look feasible03:28
dufluAlso, Gerry said he had done the change himself a while back. Not that many changes required to switch to full OpenGL03:29
dufluThe hard part is how to maintain it03:29
tmpRAOFOh, I thought you were thinking of switching to non-GL rather than just switching out GLES in favour of GL.03:30
duflutmpRAOF: Both eventually03:30
dufluSupport all the things03:30
tmpRAOFYay! Benchmarking different locking approaches in add-multiplexing-dispatchable leads to me discovering a bug!04:35
tmpRAOFAlso, cache invalidation :(04:39
=== chihchun_afk is now known as chihchun
* Mirv gets highlighted on "mirver"06:24
DalekSecHah, nice.06:28
=== chihchun is now known as chihchun_afk
dufluMirv: Sorry, shouldn't happen often07:49
dufluGood morning BTW07:49
mlankhorstalf_: ping..08:05
mlankhorstah nm I'll just remove the client_lib.h08:16
alf_mlankhorst: pong08:22
mlankhorstalf_: http://paste.debian.net/145453/ -- next time test you actually don't need libmirclient-dev please. :P08:23
alf_mlankhorst: ah, right, sorry for that08:24
=== chihchun_afk is now known as chihchun
anpokalf_: so far I only looked at one of the intermittently failing test cases.. but there the scenario is somehow related to lp:140148809:24
anpokthe main thread gets terminated in g_main_context_iteration when before one or two source handles from previous runs got cleaned up inside the event reading thread during its first iteration09:29
anpoki will try a different approach there..09:32
duflualf_: Found a fun regression: Clients consume double framerate if within 50-100 pixels of the shared screen edge (not even touching it)09:34
dufluNow bisecting09:34
alf_duflu: interesting09:34
dufluHmm, that could be the shadow extents. I think someone added that09:35
alf_anpok: ENOCONTEXT09:35
anpok:)09:48
anpokalf_: i am creating a second glib main loop instance and this messes things up09:49
anpokalf_: the signal handlers get unistalled due to the signal source cleanup happening in a later test run10:07
alan_ganpok: alf_ - any thoughts on port-window-management-example-to-current-input-API or WindowManager-is-an-EventFilter? (If not I'll TA)10:08
anpokalan_g: just looking at that ..10:10
alf_alan_g: Haven't had time to look into them yet, but if you got sufficient feedback, feel free to TA.10:14
dufluclose(mayhem);10:44
mlankhorstwhy does _mir_display_is_valid in the mesa patch use dlopen(NULL); to get a handle for dlsym, instead of dlsym(RTLD_DEFAULT) ?11:31
=== marcusto_ is now known as marcustomlinson
tsdgeosAlbertA2: do you have a ppa/silo with the qtubuntu/port-to-mirclient and dependent branches?12:10
tsdgeosi tried compiling them on my own and now i don't get unity812:11
tsdgeosprobably a bit too early for him12:11
=== dandrader is now known as dandrader|afk
kgunntsdgeos: yeah, in a couple of hours.... i assume you mean this branch12:41
kgunnhttps://code.launchpad.net/~mir-team/qtubuntu/use-mir-surface-types12:41
kgunnyeah, not even up for review12:41
mlankhorstgreyback: hmm.. are applications expected to only create a single mir_surface?12:54
greybackmlankhorst: qtmir doesn't support multiple surface apps yet12:54
greybackI'm working on it12:55
mlankhorstahh12:55
mlankhorstthat explains it.. Xmir with -windowed shouldn't have a window created right away12:55
=== dandrader|afk is now known as dandrader
mlankhorsthuh?13:22
mlankhorstwhy do I get mir_pointer_input_event_action_enter on mouse up, and mir_pointer_input_event_action_leave on mouse down?13:22
mlankhorstoh I misunderstood..13:24
mlankhorstit's hover_enter/leave :/13:25
mlankhorsthow is that a good name?13:28
tsdgeoskgunn: AlbertA2: no i meant https://code.launchpad.net/~mir-team/qtubuntu/port-to-mirclient/+merge/24516413:42
AlbertA2tsdgeos: kgunn: ok I'll address your feedback. I'll get started on a silo with papi/qtubuntu14:28
tsdgeosAlbertA2: actually i got it running now, i messed up before so there's no immediate need for me to try it14:29
=== chihchun is now known as chihchun_afk
=== dandrader is now known as dandrader|lunch
alan_garg8pah15:45
=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
=== alf__ is now known as alf_
=== dandrader|lunch is now known as dandrader
=== alan_g is now known as alan_g|EOD
=== seb128_ is now known as seb128
=== willcooke_ is now known as willcooke
=== dandrader is now known as dandrader|afk
mterryHeyo!  Does anyone here know anything about xmir crashing when chromium is launched in vivid?20:29
mlankhorststill happens?20:30
mlankhorstis that on desktop or arm?20:30
mlankhorstmterry: You probably need to install more of the ubuntu-desktop to get it to work, not sure what exactly :/20:39
mterrymlankhorst, desktop20:39
mlankhorstmterry: it was working for me, do you have ubuntu-desktop installed?20:40
mterrymlankhorst, filed bug 1420959, not sure how helpful20:40
ubot5bug 1420959 in xorg-server (Ubuntu) "xmir crashes when launching chromium" [Undecided,New] https://launchpad.net/bugs/142095920:40
mterrymlankhorst, yes20:40
mlankhorstoh.. that version20:40
mlankhorstln -svf Xmir /usr/bin/Xorg20:41
mterry!20:41
mlankhorstbut there's no correct input support so you might need to use old xorg for now20:41
mterrymlankhorst, I don't have /usr/bin/Xmir20:42
mterrymlankhorst, I thought xmir didn't need manual intervention like that?20:42
mlankhorstoh wait I thought you were using my ppa20:43
mlankhorstthere's 2 xmir's, one takes over Xorg, other one is standalone20:43
mlankhorstbrb20:43
mterrymlankhorst, no not using your ppa, just vivid packages20:45
mterrymlankhorst, I thought we had this more or less working (we have preview images and such, eh?).  So I figured it was just an everyday bug rather than a misconfigured xmir20:46
mterrymlankhorst, but I'd love to have a workaround if you have suspicions on why the crash happens20:46
mlankhorstmterry: unity mode is just a workaround :P20:57
mterrymlankhorst, you mean unity7 in xmir is just a workaround?20:57
mlankhorstI don't think it was ever particularly useful, just as stopgap until mir gets better20:57
mterrymlankhorst, sure...  but I'd like it as a way to run unity-system-compositor while I test a mir-based lightdm greeter20:58
mlankhorstah :P20:58
mterrymlankhorst, while also running my desktop20:58
mterrymlankhorst, so for my use case, it'd be lovely20:58
mlankhorstif you can enable hw cursors in unity-system-compositor..20:58
mterrymlankhorst, I just don't like not being able to run chromium...20:59
mterrymlankhorst, I have a cursor I can see20:59
mlankhorstyou could use Xmir-sa from my ppa20:59
mlankhorstbut it relies on mir to render a cursor20:59
mlankhorstand it's limited by everything mir supports :P20:59
mterrymlankhorst, what's the distinction for that package?20:59
mlankhorststandalone21:00
mlankhorstit's still part of xserver-xorg-xmir though21:00
mterrymlankhorst, I guess I don't understand what standalone means in this context21:00
mlankhorstit's not a module to Xorg, but a full Xserver21:01
mterrymlankhorst, oh huh21:01
mterrymlankhorst, is that the future, or an experiment?21:01
mlankhorstlatter, hopefully turning into the former when mir gains more features..21:02
mlankhorstright now Xorg+mir works because it doesn't rely on anything from mir except as a means to swap the front buffer21:03
mterrymlankhorst, well.  Do you think it might work well enough for my usecase?21:04
mlankhorstperhaps21:05
mlankhorstI don't draw sw cursors in Xmir-standalone right now21:06
mterrymlankhorst, so I've installed dbg packages to try to get a better stacktrace for that bug / see what's happening.  But even with those installed, the backtrace in the logfile is bare-bones.  But it doesn't leave anything in /var/crash either.  How do I get a core dump from X?21:13
=== dandrader|afk is now known as dandrader
mterrymlankhorst, hrm yeah.  I tried running a pure Mir session (unity8) and got no cursor21:51
mterrymlankhorst, presumably if I had a touch screen, it would do something?21:52
mterryOr maybe input is just busted in Mir right now on the desktop21:52
mterrymlankhorst, OK, I've decided to just live with no chromium.  But I do want to test this hardware cursor.  In xmir,  I now see two cursors.  Do you know how to disable the sw one?22:11

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