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

RAOFWho'd object to a little helper class for passing std::funcition<> as a function pointer? :)00:00
RAOFOnly slightly terrifying.00:02
=== mibofra is now known as Guest25588
robert_ancellRAOF, did you upload glmark2 directly to https://launchpad.net/~ci-train-ppa-service/+archive/ubuntu/landing-004?02:15
RAOFrobert_ancell: I did, yes.02:17
robert_ancellok, cool02:17
robert_ancellRAOF, and the vivid package goes to the overlay PPA when this landing is accepted?02:18
RAOFYeah, that's my understanding.02:18
robert_ancellRAOF, so I just pushed the updated xmir in xorg-server into this PPA. What does this mean for the git branch for xorg-server?02:19
RAOFrobert_ancell: You should update the wily branch in git. And probably create a vivid-overlay branch, unless you've just uploaded the wily xorg to vivid.02:20
robert_ancellRAOF, well, I can't upload this to wily because we don't have the new Mir there yet02:21
RAOFBut the landing PPA will be syncd to wily...02:21
RAOFMaybe ask tjaalton what he'd like, though.02:21
robert_ancellI was requested to put xorg-server in the landing. Don't know why we need it there..02:25
RAOFI think we bumped client ABI, so it needs a rebuild at least.02:26
robert_ancellyeah, but it would be easier to just do it post hitting wily02:26
RAOFYeah, but then untested code is hitting wily!!!!11111102:28
RAOFAh.02:58
RAOFIt's always helpful when exceptions are silently discarded, and the only visible result is that everything locks up...02:59
RAOF*Of course* wayland buffer stride is in pixels, mir buffer stride is in bytes.03:00
=== chihchun_afk is now known as chihchun
duflu_RAOF: I had a similar issue yesterday. Found a way for my client to make the server segfault but it was hidden. That's a regression of bug 1237332 that Alan intentionally made :(03:48
ubot5bug 1237332 in mir (Ubuntu) "Fatal exceptions raised in a compositing thread have no usable stack trace" [Critical,Fix released] https://launchpad.net/bugs/123733203:48
duflu_Well, related bug03:48
duflu_The problem is the "fix" for bug 1285084. We should not have fixed it at all.03:49
ubot5bug 1285084 in Mir "Exceptions are raised in a compositing thread and not handled" [Undecided,Fix released] https://launchpad.net/bugs/128508403:49
=== duflu_ is now known as duflu
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
anpok_hm could you also upload that for vivid?04:33
anpok_robert_ancell: ^ that = xorg-server04:33
anpok_or is the version different?04:33
robert_ancellanpok_, I have been trying to but it keeps rejecting the upload. I think we have to give it a special version number so it doesn't complain about two versions.04:34
RAOFYeah, you can't upload the same thing to two different series.04:35
=== chihchun is now known as chihchun_afk
robert_ancellok, uploaded as 2:1.17.1-0ubuntu5~vivid04:48
dufluIf only there was a way to make libmirclient8 and libmirclient9 both official at the same time. Then most downstreams would not need updating immediately05:02
dufluYou can have both installed at once. Just not both in the distro at once, kind of, except for the release!=proposed period05:03
* RAOF wants to set fire to GLibMainLoop.05:15
RAOFBut will instead head to the shops.05:15
anpok_hm we still could resurrect the asio loop06:20
RAOFIt's not *that* bad :)06:21
anpok_duflu: scroll down.. there is predictive user input! http://blog.mattbierner.com/stupid-template-tricks-super-template-tetris/06:21
anpok_well .. picking up idle tasks from dead instances..06:22
anpok_provoking fancy invalid instruction crashes ..06:22
RAOFHeh.06:22
anpok_asio only has face palms and odd hand wavings..06:23
anpok_</rant>06:23
dufluasio is a four letter word. But seriously, I've never seen asio do anything worth using in production. It's generally terrible.06:25
dufluWay over-complicated and not even documented in a way that makes it comprehendable06:25
dufluMy first encounter with asio was its regex library (which compiled to multiple megabytes and caused some compilers grief). So I replaced it with something 10kb in size06:26
dufluThus, asio is often and generally a joke06:26
dufluA bad joke people keep telling06:27
RAOFAnyone feel like adding some utility code for turning a std::function into a raw function pointer?06:27
* duflu needs to see the outside world for a little while at least once today06:28
anpok_asio has no regex but .. i guess you mean xpressive .. which is very expressive..06:29
anpok_RAOF: hm how raw?06:29
RAOFanpok_: Passable-to-C raw.06:29
RAOFIt's perfectly possible if you don't mind generating the trampolines.06:29
anpok_so .. void call_it(void*) ?06:29
dufluanpok_: Sorry I meant boost is generally terrible. Asio is part of boost, no?06:29
* RAOF would just *really* like to be able to pass some bound member functions to a C interface.06:30
dufluBut asio is worse than the boost average even06:30
anpok_hm it is simpler if you dont use std::function in between..06:30
RAOFanpok_: Hm. Howso?06:31
anpok_hm .. ok nah doesnt matter much because you have to pass in objects anyhow..06:32
anpok_i just thought you could get away with encoding everything inside the type06:32
RAOFI... don't think so?06:32
=== mibofra is now known as Guest54792
anpok_ah you cannot move it07:02
=== chihchun_afk is now known as chihchun
anpok_RAOF: http://paste.ubuntu.com/11814229/ something like that?07:10
anpok_one could do it fancier if I knew how to extract the signature from a lambda07:11
=== rsalveti_ is now known as rsalveti
anpok_... i.e. avoid the functio.. but on the other hand the c code does not take ownership of the function<..> so the creator needs to keep it alive.. and for that function seems to be a good pick07:12
=== mapreri_ is now known as mapreri
RAOFanpok_: Na, something more like http://paste.ubuntu.com/11814245/07:16
RAOFWas what I was thinking of, but your simpler thing might be enough for what I'm considering.07:18
RAOFAnd involves less runtime codepatching.07:18
anpok_hm but you need the address somwhere.. unless of course if you squeeze the adress of the functio<>  into a symbol with external..07:19
anpok_then it can be a template param..07:19
anpok_*external linkage07:19
RAOFNo, no. It's simple. You have a static thunk with a placeholder guard value; you copy the code into memory your trampoline object owns, adjust the guard value to point to the std::function<> that your trampoline object owns, and then return that :)07:21
anpok_hehe yeah simple07:21
RAOFNot portable, of course, but the number of segmented memory architectures we care about can be counted on the fingers of one fish.07:22
anpok_thats what encoding the address of the function into a template param would do..07:22
anpok_function<>07:22
RAOFHm. How could you do that?07:24
RAOFOr, at least do that in a way that doesn't require a type+external singleton per trampoline?07:25
* RAOF goes to get some fish.07:25
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
anpok_RAOF: http://paste.ubuntu.com/11814351/ .. enough fun..08:02
=== mibofra is now known as Guest66587
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
greyback_anpok_: ping11:57
anpok_pong11:58
greyback_anpok_: hey, need your help testing usc with your mir overrideorientation work. Can you check out lp:~unity-team/unity-system-compositor/toggle-cursor2/ please12:03
greyback_I'm running it, and wanting to test the dbus method12:04
greyback_(install qdbus-qt5)12:04
greyback_ sudo qdbus --system  com.canonical.Unity.Screen / com.canonical.Unity.Screen.overrideOrientation 0 212:05
greyback_is the call I'm using. The first param is the display id, the second is the desired orientation12:05
greyback_anpok_: aha, I'm an idiot12:06
greyback_ignore me12:06
=== 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
=== Guest66587 is now known as mibofra
anpok_greyback_: which channel do you use as a basis for silo-00013:21
greyback_anpok_: rc-proposed13:22
anpok_i guess I have to reflash13:24
anpok_it is just getting hot while showing the logo13:24
ogra_anpok_, MX4 ?13:25
anpok_n413:25
ogra_oh13:25
anpok_i guess it was my fault13:26
anpok_.. dist-upgrade instead of citrain script .. or installing  them individually13:26
ogra_yeah, the citrain script turns off access to the archive13:27
ogra_so you only get PPA contents13:27
ogra_if you do a normal dist-upgrade you will get archive bits along13:27
=== dandrader is now known as dandrader|afk
=== dandrader|afk is now known as dandrader
=== dandrader is now known as dandrader|afk
=== dandrader|afk is now known as dandrader
=== dandrader is now known as dandrader|afk
=== dandrader|afk is now known as dandrader

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