/srv/irclogs.ubuntu.com/2014/10/06/#ubuntu-mir.txt

dufluOh, that's fun. Just got a double-free in a Mir demo for the first time08:40
alan_gcurious.08:44
duflualan_g: I also (happily) discovered that loading a Mir server till it drops to 30 FPS has nothing to do with either CPU usage or compositor render time (because both are low, as expected).08:48
dufluWe have something being overloaded without overloading the CPU or GPU08:48
dufluHmm, happens very quickly when double buffered. Sounds again like something in the stack is holding buffers too long08:50
alan_gIs this on both driver stacks or just the phone?08:53
duflualan_g: Only the desktop I'm playing with right now. But if it is buffer-holding or some other non-power-consuming roadblock then it could apply to both08:56
dufluI'm glad I found that, because my quad-core i7 should not reasonably be dropping back to 30Hz that quickly. It has to be a bug08:57
dufluI'm clearly not running out of power08:57
alan_gduflu: ack. It has to be contention of some sort.08:57
* duflu suspects we're someone holding two buffers for the frame duration instead of 0 or 108:58
duflu*we're somehow08:58
dufluLysdexic keyboard TWF08:59
* alan_g wonders why DefaultInputConfiguration09:40
duflualf__: Here's a fun one :) ... https://bugs.launchpad.net/mir/+bug/137785309:53
ubot5Ubuntu bug 1377853 in Mir "Nested Mir server crashes on exit ("corrupted double-linked list")" [High,New]09:53
dufluMight be the new Mesa to blame actually09:53
alf__duflu: ack, I will take a look09:54
anpokalan_g: why it still exists?10:15
alan_ganpok: why it was ever perpetrated too10:16
dufluOne step forward, two steps back.10:17
dufluBut that was only Monday10:17
anpokalan_g: it would otherwise spill ugly droidinput adapter code into serverconfiguration..10:17
* duflu runs off10:17
alan_gIt is the cause of LL635-645 in https://code.launchpad.net/~alan-griffiths/mir/fix-libmirserver-symbols/+merge/237101 (where overriding the_event_hub() is all that is really needed)10:17
anpokthat is the case now10:17
anpokbefore it had a lot of more pieces it stiched together10:18
alan_ganpok: I know you have cleaned it up a lot10:18
anpokalan_g: but I also dislike the consequence (even though it is better than before)10:19
alan_gBut it is still ugly10:19
anpokwe have odd items inside the configuration class we only need to support the implementation details of the android input reading and dispatching10:19
alan_ganpok: sure. And we have problems with DefaultSeverConfiguration too. (From the API/ABI stability front)10:21
anpokwhich is only relevant now because we expose that.. if we wouldnt.. i wouldnt care..10:21
anpokyes10:21
alan_gIf it were all neat it would be easy to tidy up. ;)10:22
anpokhehe10:22
alan_ganpok: alf__ - do either of you feel a need to review this before I TA? https://code.launchpad.net/~alan-griffiths/mir/fix-libmirserver-symbols/+merge/23710110:42
alf__alan_g: Feel free to TA, unless you strongly feel that we should take a look.10:47
alan_galf__: Thanks. I don't feel a need for your approval on this one.10:49
mardyhi! Is there a way to know if a given PID has a mir connection open (what I need to know, is if I can open a trust session having this PID as initiator)?11:10
alan_gmardy: as a prompt provider? Or as a shell?11:15
alan_gThe shell could iterate over all sessions looking for the PID. But why would it matter if there's a connection open?11:16
mardyalan_g: asa  prompt provider11:16
alan_gmardy: not through a Mir API11:17
mardyalan_g: would mir_connection_create_prompt_session_sync() return NULL if the initiator pid does not have a mir connection open?11:17
alan_gmardy: IIRC it ought to return an error object. I.e. mir_prompt_session_is_valid will return false11:20
* alan_g can't see a test for that scenario but thinks there should be one.11:23
mardyalan_g: thanks11:24
alan_gyw And thanks for highlighting a gap in our test coverage.11:26
=== alan_g is now known as alan_g|lunch
=== alan_g|lunch is now known as alan_g
=== dandrader is now known as dandrader|afk
=== dandrader|afk is now known as dandrader
alan_gmardy: While I (and dednick) think mir_connection_create_prompt_session_sync() should fail as I described, the current code doesn't (it creates a prompt session and then silently doesn't add the non-existent participant to it - ugh!)14:19
=== cyphermox_ is now known as cyphermox
=== mhall119_ is now known as mhall119
=== dandrader_ is now known as dandrader|lunch
=== alan_g is now known as alan_g|EOD

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