/srv/irclogs.ubuntu.com/2015/03/10/#ubuntu-mir.txt

=== 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
=== duflu_ is now known as duflu
=== chihchun_afk is now known as chihchun
=== alan_g is now known as alan_g|lunch
=== chihchun is now known as chihchun_afk
=== alan_g|lunch is now known as alan_g
=== dandrader is now known as dandrader|afk
=== dandrader|afk is now known as dandrader
=== chihchun_afk is now known as chihchun
=== alan_g is now known as alan_g|afk
=== alan_g|afk is now known as alan_g
=== dandrader is now known as dandrader|lunch
racarrYay InputDispatcher on InputSender is working...16:57
racarrthough I have to understand this FD limit in glib_main_loop...16:57
racarrand I guess this requires full stack testing (joy joy)16:57
racarr    static int const max_write_fds{100};16:59
racarr(though its 10 in trunk)16:59
racarrin glib_main_loop_sources.cpp16:59
racarrdoes anyone understand why this is done with a static array?16:59
racarralf_: ^ ?16:59
alf_racarr: trying to remember...17:03
alf_racarr: I think it's so that multiple main loops can handle the signals in a sane way17:09
racarralf_: Ah...I sorta see...I had just realized that must be the purpose of the17:10
racarr"static std::once_flag"17:10
racarr(which is unfortunately breaking test isolation...)17:10
racarror I speculate may be :)17:11
racarrNow my problem is just after a few dozen acceptance tests the same one always fails17:11
racarrbut passes when run in isolation17:11
racarrwith the "Failed to add signal write FD"17:11
racarrexception from glib_main_loop_sources17:12
racarrso the static seems to blame17:12
alf_racarr: isn't the array cleared when the sources are unregistered in each test?17:16
racarralf_: Seemingly not...(commenting out the call once and just clearing it on construction does fix the immediate issue)17:18
racarrI dont really understand whats happening yet though17:18
racarrits possible things are not being properly unregistered17:18
anpokalf_: remember? I ran into something similar and fixed it..17:19
anpokracarr: the idle source may not be executed.. then floats around .. and gets picked up by someone else or worse..17:19
anpokidle source that cleans up on destruction of the main loop17:19
racarrhmm :/17:21
anpokhttps://code.launchpad.net/~mir-team/mir/fix-delayed-sigaction-restore/+merge/24986217:26
anpoknever completed because dispatchable was simpler for my task and because creating a valid test case for the issue was really hard17:27
anpokthe test attached caused all sort of issues inside glib17:27
alf_anpok: so this is a side-effect of the workaround to unref in the idle thread?17:28
alf_anpok: s/idle thread/idle callback/17:28
anpokmaybe17:28
anpokmaybe we have case where the cleanup never happens?17:28
anpokhm or are the fds cleaned up directly, and not together with resetting the sigactions?17:29
anpokhmm but with the fix I only evade the delayed manipulation of sigaction17:31
anpokit does not solve the issue that there is something wrong with the cleanup callback17:32
anpok(or with the library underneath)17:32
alf_racarr: anpok: I don't have enough info to know if the issue you are seeing is the same anpok saw. In any case, if you have an easily reproducible use case, let me know, and I can take a deeper look.17:34
racarralf_: Thanks...im sure ill  be getting back to youtomorrow :)17:34
racarrI have one more input isolated issue which I am going to17:34
racarrclean up first for sanity17:35
anpokracarr: hmm you could try adding some traces that dump the g_main_context, thread id on main loop construction/destruction/signal cleanup17:38
=== alan_g is now known as alan_g|EOD
=== dandrader|lunch is now known as dandrader
=== greyback__ is now known as greyback
=== seb128_ is now known as seb128
robert_ancellWhere is the XMir branch?21:29
mlankhorstrobert_ancell: on fd.org git21:30
robert_ancellmlankhorst, oh hey, still online? :)21:30
mlankhorsthttp://cgit.freedesktop.org/~mlankhorst/xserver/log/21:31
mlankhorstyou should come online sooner next time though, about to sleep21:31
mlankhorstI'm maintaining it there as a bunch of quilt patches21:31
mlankhorstshould probably be moved to a separate branch on top of xorg-server instead21:32
robert_ancellmlankhorst, I assumed you were already off. I was here two hours ago. Is that a good time to talk tomorrow?21:32
mlankhorstare you ever on during mornings?21:32
robert_ancellwhose mornings?21:32
mlankhorst<21:32
mlankhorsterll yours21:33
robert_ancellIt's my morning now21:33
mlankhorstoh australian time?21:33
robert_ancellNew Zealand21:33
mlankhorstahh21:33
robert_ancellmlankhorst, what works best for you, either two hours earlier than now or in about 9.5 hours (not today though)21:35
mlankhorstabout 10 hors from now21:35
robert_ancellOK, I'll try and catch you then in a few days21:35
mlankhorstoke21:35
robert_ancellthanks21:36
=== c74d is now known as Guest95461

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