/srv/irclogs.ubuntu.com/2013/08/16/#ubuntu-mir.txt

RAOFMan, our session mediator is the cacheline killer.00:04
RAOFIt appears to service each request on a different CPU.00:04
racarrRAOF: We are threading geniuses00:09
RAOFWe should probably cut back on that :)00:10
RAOFBut what are we threading geniuses *through*?00:10
RAOFThe eye of a needle?00:10
RAOFThe eye of a camel?00:10
RAOFInquiring minds want to know!00:10
racarrhaha00:11
RAOFI'm pretty sure we could trim a fair bit of fat from our RPC code.00:40
RAOFWait. Are we sure we're reading from the socket in order? I seem to get multiple request messages interleaved.02:23
dufluRAOF: Surely that's something protobuf deals with?02:28
RAOFNo, protobuf is purely encoding.02:28
RAOFIt doesn't have anything to do with actually shipping the encoded bytes anywhere; that's all us.02:28
dufluRAOF: I do recall coming across documentation which said protobuf waits for all the bytes to reform a message. You can't just peak at headers etc02:29
RAOFWe *do* peek at the headers :)02:29
RAOFOr, rather, we encode the size of the message as a header and then send that + the message.02:30
dufluRAOF: That's odd, because when I wanted to "peek" I found protobuf disallowed it02:30
RAOFOh, I don't think you can peek at a bit of a protobuf message.02:30
RAOFBut we wrap the protobuf message in a tiny extra protocol (ie: two byte msg size, followed by protobuf msg)02:31
dufluRAOF: Yes, both statements are true. Different layers02:31
RAOFIncidentally, the drm auth message is surprisingly big; it's 19 bytes.02:32
RAOFSorry, 26 bytes.02:32
RAOFPresumably we're actually sending the string "drm_auth_magic" over the wire.02:32
RAOFWhich seems totally unnecessary, but whatever.02:32
dufluRAOF: Yeah I had two branches that removed that. One I think got proposed, and rejected. At least I could never measure any performance benefit in removing it02:33
RAOFYeah, it's not going to be a big performance problem.02:34
RAOFIt's just something we could trivially not do.02:34
dufluRAOF: Actually, I think it was something like 1% CPU of something02:34
RAOFWe additionally copy all the messages at least once more than I think is necessary.02:34
dufluRAOF: How performant are local sockets known to be?02:35
RAOF(We copy from the message into a buffer, then write that buffer to the socket)02:35
RAOFlocal sockets should be pretty good; to get better we'd need to do shared memory, I believe.02:35
RAOFUrgh. Couldn't we just appropriate Wayland's IPC mechanism? That's really nice ☺02:46
RAOFBah. For all that we use threads, mirclient is pretty terribly unthreadsafe.02:53
dufluRAOF: Does wayland use sockets?02:53
RAOFYes02:53
RAOFIn fact, I *think* it's unsafe to call any function from mirclient in more than one thread.02:54
RAOF(Because anything that writes to the mir socket does so in a thread unsafe way, so you can't call anything that could send a message from more than one thread at once)02:55
dufluRAOF: I'm fairly confident the thread safety aspects of libmirclient are now solved (recently in r827). Except bug 1194384 remains02:55
ubot5bug 1194384 in Mir "Mir client callbacks are not thread-safe" [Medium,Triaged] https://launchpad.net/bugs/119438402:55
RAOFAh, yes. We've got a big-old mutex around every call in MirConnection.03:00
RAOFOh, no. Not around configure_display03:01
dufluRAOF: Heh, well it was right at the time. I can't check everyone's changes since all the time03:03
dufluRAOF: In other news, alf tells me that my bypass+radeon problems were just the old kernel I have here. It works in saucy, which means saucy can bypass intel+nouveau+radeon. I will do final testing before EOD03:07
RAOFWoot!03:08
dufluMight have to add a kernel version check :/03:08
dufluBecause slightly slower is better than corruption or crashes03:08
dufluAnd spurious bug reports03:09
olli_morning RAOF03:38
RAOFolli_: Good morning03:39
olli_thx for doing the call last night03:40
olli_was well perceived :)03:40
olli_do you have any good update on bug 120493903:40
RAOFAh, good.03:40
ubot5bug 1204939 in Mir "Unity doesn't start on ATI test machine (Mir fails to respond to drm_auth_magic request)" [Critical,Triaged] https://launchpad.net/bugs/120493903:40
RAOFNo.03:40
RAOFI have a variety of things that it's *not*, and *maybe* it's a threadsafety issue in our IPC code.03:41
RAOFBut I'll hopefully get another debug dump from a jenkins run later today when Didier's up, and then I'll hand off to alan_g03:42
dufluolli_, I am putting bypass on pause for the day and looking into the possibly-related bug too03:42
olli_RAOF, do we have any other way to reproduce?03:43
olli_w/o didrocks03:43
olli_duflu, thx, I saw the note in the bug03:43
olli_I'd really like to get this unblocked prior to the weekend (which is in a few hours for you lucky guys ;)03:44
RAOFolli_: As far as I can tell, the Jenkins ati box is the only one that reproduces.03:44
olli_RAOF, sure, but you suggest you need didrocks to access it03:44
* duflu wonders if headlessness helps03:44
RAOFolli_: Ah, I see what you mean.03:44
RAOFDidier has done all the jenkins futzing for all of my previous debugging romps. I'm not sure what actually needs to be done to put the machine in the necessary state.03:45
olli_RAOF, yeah, I don't think this is anything that would help today to speed things up but maybe somehting to consider for the next bug on his system (i.e. get access)03:47
olli_RAOF, he might actually be out03:48
olli_he was out for sure on Thu03:48
olli_not sure if he is also taking Fri off03:48
olli_RAOF, duflu, everybody, mind sending me & didrocks an update via mail before you EOW? we have a few interested parties that are curious if&when we can enable autolanding again03:49
RAOFolli_: Sure.03:49
dufluYep03:49
olli_thx guys03:49
* duflu is struggling to reproduce said bug now03:50
olli_sounds like a tough nut to crack03:50
RAOFduflu: You're trying the valgrind bug?04:00
RAOFduflu: Because I think the drm_auth_magic failure in that requires you to run one of the previous, failing tests first.04:02
dufluRAOF: I'm doing exactly the same as yesterday, on multiple machines which had the bug yesterday. I shall have to bisect....04:03
RAOFHah! Surprise!04:04
RAOFHuh. The apple magic touchpad kernel panics my Galago after a couple of seconds' use.04:25
* duflu pretends he wasn't the last person to touch that kernel driver04:39
dufluActually, I probably wasn't04:40
RAOFDear OOM killer: where did my 16GB of RAM go? Did you really have to kill Xorg?04:59
dufluThere's a SysRq combo for that05:04
* duflu -> lunch05:04
tvoss_good morning05:12
tvoss_olli_, ping05:14
olli_tvoss_, wassup05:15
=== olli_ is now known as olli
RAOFMornang all.05:18
tvoss_RAOF, hey there :)05:19
tvoss_hmmm, I want a Mir logo and have it printed @http://www.unixstickers.com/05:25
RAOFHm. Why is whoopsie cycling between 1GB and 4GB resident size?05:28
duflutvoss_: I want a better Mir logo too. Right now we only have examples/mir_image.h05:29
tvoss_duflu, yeah05:33
duflutvoss_, I was thinking about designs just yesterday :)05:33
tvoss_duflu, I was thinking if we should name the different threads in Mir to make htop output more readable05:33
tvoss_duflu, we could have something similar to the unity logo05:33
duflutvoss_, I hope better than the Unity logo05:34
dufluSomething the quality of the logo on https://launchpad.net/compiz, but obviously completely different05:35
RAOFtvoss_: Oh, yes please! Sensible names for threads!05:37
* duflu would rather more careful design of threads. But has also suggested some names: https://bugs.launchpad.net/mir/+bug/119438405:39
ubot5Launchpad bug 1194384 in Mir "Mir client callbacks are not thread-safe" [Medium,Triaged]05:39
tvoss_duflu, I was more thinking about a pthread_setname_np call05:42
duflutvoss_: Yes should work: pthread_setname_np(t.native_handle(), "foo");05:44
tvoss_duflu, I'm a bit worried about _np (not posix)? :)05:44
duflutvoss_: Or more generally explicitly depending on pthread, which we don't thanks to C++1105:45
=== chihchun_afk is now known as chihchun
duflutvoss_: P.S. Lenovo released BIOS 1.39 for X220 with CPU microcode update. I'm not sure, but it feels like power and fan usage is lower05:55
tvoss_duflu, woot :) time to get out my bios flash usb stick :)05:55
smartboyhwtvoss_, I didn't realize that you guys have a logo:P05:56
duflusmartboyhw: Not really. Just the image from mir_demo_{client_accelerated,standalone_render_surfaces}05:57
* smartboyhw thought you guys can just ask from Canonical Design Team, weird05:57
tvoss_smartboyhw, well, yes, but they are quite busy these days :)06:01
smartboyhwtvoss_, oh:(06:01
smartboyhwBTW, any easy Mir bugs to fix? :P06:01
tvoss_smartboyhw, let me have a look06:05
tvoss_RAOF, duflu what's the status of https://bugs.launchpad.net/mir/+bug/110275706:06
tvoss_?06:06
ubot5Launchpad bug 1102757 in Mir "System compositor children receive all input events" [High,In progress]06:06
duflutvoss_: No idea. I don't have a dev env for USC. Never needed to yet06:07
dufluMaybe I could reproduce it with regular Mir and test Robert's branch...06:07
RAOFtvoss_: Blocked on https://code.launchpad.net/~robertcarr/mir/client-focus-notifications06:08
RAOFtvoss_: Plus I need to hook up the XMir bit to relinquish input once that's done.06:08
tvoss_RAOF, ack06:08
tvoss_RAOF, is that the same issues that prints passwords in clear text onto the terminal06:09
tvoss_?06:09
RAOFNo; *that* issue should be fixed, I think.06:09
RAOFThis is the issue that mirrors passwords across all the logged-in sessions :)06:09
* duflu tests06:10
duflutvoss_: I can't reproduce any stray text going to other VTs. At least not any more now I'm updated06:11
tvoss_RAOF, ack and thx06:11
dufluRAOF, alf__: Anyone know the exact commit of the famous "DMA-buf" fix?06:22
alf__duflu: sorry, no06:34
RAOFNot me, either.06:35
alf__RAOF: Hi! Yesterday I was spiking per-session modesetting, and I found that trying to apply the display config from within the display config change handler in the client caused the client to hang. Is this going to be an issue for the XMir use case?06:37
RAOFalf__: No; I have to proxy everything from the handler to the X main loop anyway.06:37
alf__RAOF: ok, then we can leave the thread issue for later06:38
RAOFOh, that reminds me.06:38
* RAOF pushes mutex fix for display config setting06:38
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
dholbachgood morning06:50
RAOFalf__: The way to actually set a mode is to set the current_mode member of the config struct, right?06:52
alf__RAOF: yes06:59
alf__RAOF: to the index of the wanted mode in the modes array06:59
RAOFCool, ta.06:59
RAOFalf__: Oh, and setting ‘used = 0’ should turn the display off?07:07
alf__RAOF: well, not use it, which right now means just leaving there whatever was on screen before, but yes it should ideally turn it off07:08
RAOFI ask this merely because the kms way of dealing with this appears to be ‘set the mode, connecting it to 0 outputs’.07:09
* duflu reboots to try for some more hardware testing07:09
RAOFAlso, I'll want to make DPMS work, too.07:10
RAOFHm. That actually needs a different API though, doesn't it? We don't actually want to unset the mode, we want to turn off the monitor.07:11
alf__RAOF: different api from our side?07:12
RAOFYeah, maybe.07:12
alf__RAOF: why isn't !used enough?07:13
RAOFFor XMir I can actually just fake it by not adjusting the root window etc but unsetting the monitor.07:13
RAOFalf__: Because we need to be able to distinguish between ‘turning off a monitor, but keeping it logically present’ and ‘turning off a monitor and rearranging the desktop to support the new geometry’07:14
RAOFAs I say, I can fake that at the XMir level; maybe we can do the same at the Unity8 level.07:15
alf__RAOF: I am not sure I see the problem... Can yous set an output to !used and arrange the others as if the output existed at some point in the virtual space?07:17
alf__RAOF: (for the first case you describe)07:18
RAOFalf__: Yes, ish - the responses to a client querying the display state should be different, though. In the DPMS case the display is logically enabled (so, for example, it's fine to put windows on it). In the actually-off case the display is gone, and you need to do things like move all the windows that were on it somewhere else, etc.07:19
RAOFIt basically means I'll be keeping some shadow display configuration in XMir that isn't quite the same as the display configuration that unity-system-compositor has; we'd likewise need to do the same for Unity807:21
alf__RAOF: got it07:26
RAOFBah. Why do we return "" for no error?07:37
RAOFRather than, say, returning NULL. Which is more idiomatic to check for.07:38
duflualf__, It appears I will not be able to test radeon on saucy --> bug 121297707:49
ubot5bug 1212977 in Ubuntu "saucy daily-live images are unbootable on Dell Optiplex 990; stuck in BusyBox shell" [Undecided,New] https://launchpad.net/bugs/121297707:49
alf__duflu: ok, just ping me if you need any radeon tests07:51
duflumlankhorst: Can you think of a nicer way to detect the DMA-buf fix from userland, than comparing kernel versions?08:23
dufluRAOF: Can I get driver name from a drm fd?08:31
=== dholbach_ is now known as dholbach
dufluAh, drmGetVersion perhaps08:31
RAOFduflu: Yup. Are you after the kernel driver name or the mesa driver name?08:39
dufluRAOF: Either will do I guess08:39
dufluJust trying to figure out how/when the DRM version changed08:39
RAOFdrmVersion will get the kernel name, which is fine.08:40
RAOFWon't get you a useful version number, though :)08:40
dufluRAOF: Has it changed at all recently?08:40
RAOFThe version number? I don't think so.08:41
dufluI have to run. Sorry to leave you without much progress on the bugs...09:15
alan_galf__: Do you want any more eyes on https://code.launchpad.net/~afrantzis/mir/session-events/+merge/180312? Or shall I top-approve?09:20
alf__alan_g: I am OK, feel free to top-approve09:21
mzanettihey, should mir_demo_server and mir_demo_client work on the Nexus 4?09:24
mzanettiThe screen just stays black here09:24
alan_gmzanetti: they were working last time I looked (admittedly not this week). You are starting a mir_demo_client too?09:27
mzanettialan_g: yes09:27
greybackalan_g: mzanetti is the second person with this problem. tsdgeos has it too09:28
alan_ggreyback: mzanetti has a bug been logged?09:29
tsdgeoshttps://bugs.launchpad.net/mir/+bug/121169409:29
ubot5Launchpad bug 1211694 in Mir "Black screen on Nexus4" [Undecided,Confirmed]09:29
* alan_g hooks up N4 to try it out09:35
mzanettialan_g: thanks :)09:47
=== chihchun is now known as chihchun_afk
mzanettialan_g: I tried the exact same steps on a galaxy nexus. works fine there. so its really something on the Nexus 4.10:25
mzanettialan_g: does it work for you?10:25
alan_gmzanetti: had to recharge N4 to use it. Still checking things with the image that's on it before reflashig10:27
mzanettiok10:27
=== chihchun_afk is now known as chihchun
alan_gOld and current mir versions works fine on the old image, reflashing...10:39
=== chihchun is now known as chihchun_afk
alan_galf__: Any ideas what might cause this? https://bugs.launchpad.net/mir/+bug/1211694/comments/411:38
ubot5Launchpad bug 1211694 in Mir "Black screen on Nexus4" [Critical,Confirmed]11:38
alf__alan_g: no, but I can pick up the investigation in an hour or so11:42
alan_galf__: OK, I'll be off to lunch shortly - if I hit inspiration before then I'll let you know.11:44
=== alan_g is now known as alan_g|lunch
=== dholbach_ is now known as dholbach
greybackHi folks, I reported this bug: https://bugs.launchpad.net/mir/+bug/1213047, but trying to use "apport-collect 1213047" returns no useful data, just the message "Package mir not installed and no hook available, ignoring"12:36
ubot5Launchpad bug 1213047 in mir (Ubuntu) "[xmir] gnome-screenshot only gets black image" [Undecided,New]12:36
smartboyhwgreyback, because you should pick a binary package to report I think12:36
greybacksmartboyhw: yep, specifying a binary package helped, but a hook would be much more convenient for other users12:39
=== alan_g|lunch is now known as alan_g
ricmmalan_g: ping13:49
alan_gricmm: Hello13:49
ricmmmorning o/, tvoss/racarr sent me to you for something13:50
smartboyhwtvoss_, hey, I asked if there's anything easy-peasy to fix and you didn't answer:P13:50
ricmmI need to pass from server to clients a Lifecycle event to trigger a higher level callback in the platform-api (clients)13:50
ricmmrobert suggested using an interface like the under used for handle_display_config_change()13:50
ricmms/under/one13:50
tvoss_smartboyhw, sorry, got lost on the pile of things I'm doing right now13:51
tvoss_smartboyhw, but I don't remember something off the top of my head13:51
ricmmbut then there is also the general MirEvent with MirEventDelegate which I could extend with a new type of MirEvent13:51
ricmmwhat would you consider the best approach? my event right now just needs to pass a uint32 to identify the callback to issue13:51
ricmmlater, it might have a couple more members13:51
ricmmone of those members might be a data stream, so protobuf bytes13:52
ricmmMirEvent might be a bit weak if I need to pass a stream to the client at some point13:53
alan_gricmm: I have to look at how that stuff works to give a decent answer13:54
ricmmah, who would be better to ask then? kevin?13:55
ricmmit was tvoss who suggested to ping you, robert actually asked me to try with the handle_() interface first13:55
=== dholbach_ is now known as dholbach
alan_gThere have been several versions (so I'm not sure what happens ATM) - I think duflu, racarr and kdub have worked on it.13:57
ricmmok, ill follow roberts advise13:58
Saviqracarr, ping13:58
ricmmit just felt a bit overkill as the DisplayConfiguration class is rather large and complex, creates a quite nice protobuf message13:58
ricmmmine is just a single-member struct at the moment, with 2 more possible13:59
ricmmill give it a shot and pass it for review13:59
ricmmSaviq: too early for him13:59
Saviqricmm, I know, just hoping for him to pong as soon as he's back ;)14:00
alan_gricmm: OK, if you're happy with that. (tvoss is remembering earlier in the project when I could track all the code changes.)14:03
ricmmalan_g: k, thanks for the help14:05
racarrMorning15:00
racarrricmm: Saviq: pre pong. I will be back and awwake for real in 10 min though15:01
Saviqracarr, will be there!15:02
Saviqor here, actually15:03
racarrSaviq: ok back15:13
Saviqracarr, so, about https://bugs.launchpad.net/mir/+bug/121169415:14
ubot5Launchpad bug 1211694 in Mir "Black screen on Nexus4" [Critical,Confirmed]15:14
Saviqracarr, can we help debug in any way?15:14
Saviqracarr, like give you ssh access to a device?15:14
Saviqracarr, did you try just flashing the latest cdimage-touch image and then the mir image?15:14
Saviqor just upgrading from the mir PPA if applicable?15:15
racarrSaviq: Oh sure. Uh no I did not try the mir image I just tried the PPA yesterday which was uninstallable15:15
racarrI tried building it15:15
racarrall15:15
racarrin it worked though15:15
racarrso I haven't been able to make any progress15:15
racarrmaybe SSH access to a device would be good15:15
Saviqtsdgeos, would you be able to get racarr a broken device with ssh access?15:15
Saviqtsdgeos, broken as in "black screen on nexus4"15:16
tsdgeosi guess yes15:16
tsdgeoslet me try15:16
Saviqracarr, sure, maybe something just requires rebuilding15:16
racarrWell15:16
racarrMaybe if it'scdimage + mir image15:16
Saviqracarr, but we don't know what that might be15:16
racarrthen I should try again (I only tried PPA)15:16
racarrand I will be able to reproduce it15:16
Saviqracarr, that would be best, yeah, you know how to get that?15:16
racarrSaviq: tsdgeos Ok so one thing to check15:17
racarris if the PPA is uninstallable15:17
racarrdoes that mean the image has the wrong packages too?15:17
Saviqracarr, it wouldn't build15:18
racarrby the PPA is uninstallable I mean dependency issues15:18
Saviqracarr, if you mean like unresolvable dependencies15:18
racarrforce uninstall of unity815:18
Saviqracarr, and that seems to be the case indeed http://s-jenkins:8080/job/ubuntu-touch-phablet-image-saucy-mir/?15:18
racarrwell15:18
racarrit has a version fight15:18
racarrbut not unresolved15:18
Saviqracarr, so the last image built is from yesterday morning15:19
Saviqracarr, which built fine15:19
Saviq(last mir image, that is)15:19
racarrgrr qalab vpn is broken15:20
racarrSaviq: I don't understand how it could build succesfully becuse15:20
racarrfresh install, then add phablet ppa15:20
racarrdoesn't work as of yesterday15:21
Saviqracarr, yesterday morning15:21
Saviqracarr, as in 6am UTC15:21
Saviqracarr, vpn works for me15:21
racarr*starts flashing phone*15:27
olli_racarr, needless to say, but this issue is starting to block more and more ppl and us in landing u8/mir... so pls work your magic :)15:33
* olli_ hand racarr a triple espresso 15:34
tsdgeosracarr: did the ssh work now?15:36
racarrolli_: It seems to have become the fun of the day!15:38
racarrI just need to get to reproduce it15:38
racarrtsdgeos: Still no route eto host15:39
tsdgeosweird, was working for Saviq 5 min ago :-/15:40
tsdgeosSaviq: does it work for you now?15:40
racarrtsdgeos: I am flashing a new image now with --wipe, then will try mir image instead of ppa15:40
racarrand it seems like that must reproduce it because15:40
tsdgeosoka15:41
Saviqracarr, tsdgeos +1, works15:41
racarrall nexus 4 are the same15:41
racarrReally? Why can't I ssh :(15:41
tsdgeosracarr: try again15:41
tsdgeos?15:41
racarroh there we go yeah15:41
racarrtsdgeos: sshed in and poking around..not totally obvious yet15:50
racarrby not totally obvious I mean totally unobvious lol15:50
racarrtsdgeos: I am installing the mir-demos package15:50
racarrjust as a friendly I am installing packages on your phone warning XD15:50
tsdgeosracarr: sure, all yours15:51
tsdgeosjust try not to hack on the rest of the network if possible :D15:51
racarrok I am getting a strange error but I wonder15:51
racarrif it might be because I'm on ssh15:52
racarrtsdgeos: Wait was that do or don't15:52
racarrhack the rest of the network15:52
racarr:p15:52
racarrtsdgeos: http://pastebin.ubuntu.com/5993217/15:52
tsdgeoserrr wait15:53
tsdgeosis that the Nexus10 or the Nexus415:53
racarrok surface flinger15:53
racarris running right now15:53
racarras well15:53
racarris it the wrong device lol?15:53
tsdgeosno it's the nexus415:53
tsdgeosracarr: no it's the correct device15:53
tsdgeosi just was not trying to do any mir anymore15:53
tsdgeosso i went back to a working non mir image15:53
tsdgeosso yes, surface flinger is there15:54
racarrtsdgeos: Oh ok15:55
racarrin that case I just broke surface flinger15:55
racarrum I cant run mir_demo_server_shell still is the thing15:55
racarrI guess some sort of weird device node permissions15:55
racarreven as root15:55
racarrsame no permission exception15:55
racarrca you try running it locally? do you get that exception?15:56
tsdgeoslet me see15:56
tsdgeosyeah, can't15:57
tsdgeosnever got that15:57
tsdgeosreboot maybe?15:57
racarrYeah lets try it16:00
racarrlemme know when its back16:00
tsdgeosracarr: back16:02
racarrtsdgeos: Is there anything onscreen?16:05
tsdgeosnope16:05
tsdgeosblackness16:05
tsdgeoswell greyness16:05
racarrreally thats too bad because its totally rendering at 60 fps lol16:05
tsdgeos:/16:06
racarrtsdgeos: Still nothing?16:07
tsdgeosnope16:07
tsdgeosnow it got blacker16:08
racarrmm killed the mir server16:08
racarrugh I wish we had the render_to_fb demo16:09
racarrit seems though like16:09
racarrbringing up the display is working16:09
racarrclient is connecting fine, perhaps even16:09
racarrbufferallocation, etc is working fine16:09
racarrwell it is16:09
racarrbut then16:09
racarropengl just isnt producing16:09
racarrany results16:09
racarrI forget which16:11
racarrpartition is the mir image? i.e. ho do I flash it16:11
racarrsystem, data...seems like system :p16:11
racarrricmm: ^?16:11
racarrok I think it is lashing now via bootloader thing16:17
racarrI am going to go walk around the block16:17
racarrHYPPPPPPPPEr16:17
racarrI dont have a black screen16:18
racarrso it cant have flashed very well :(16:18
tsdgeos:/16:18
racarrok no its just autodeploy.zip16:18
racarrdoesnt work anymore16:18
racarradb sideload it is!16:19
tsdgeosracarr: if yuo want i can tell you what i do16:19
racarrerr...it doesn't work16:19
racarrtsdgeos: Yes! perfect16:19
racarrits just adb flash system/data *.zip right16:20
racarrbut Ic an't remember if it's system or data16:20
tsdgeosracarr: http://paste.ubuntu.com/5993332/16:21
tsdgeosthis is not even using the unity-mir image anymore16:21
tsdgeossince that image i just the regular image + the ppas16:21
tsdgeosor so i've been told16:21
tsdgeosa reboot may be in order somewhere in the middle16:21
racarr:( I feel like that's just what I did16:21
racarryesterday16:22
racarrmaybe it's something silly like we have a color format bug16:22
racarrand nexus 4s made in october of 2012 return BGRA instead of RGBA as the first format16:22
racarrlol16:22
racarrI don't even know!16:22
racarrok, back in 1016:23
ricmmracarr: data partition16:23
ricmmtsdgeos: can you get someone else to try?16:23
ricmmchicken has a nexus 416:23
tsdgeosricmm: mzanetti tried doing extractly the same on the nexus4 and on the gnexus16:24
tsdgeoscan confirm the gnexus works and the nexus4 not16:24
* mzanetti confirms16:24
tsdgeosas written in the bug16:24
ricmmso what the hell is going on with robert's n416:24
ricmmwhat is the *exact same thing*16:24
ricmmupdating from the ppa? or installing the image16:25
tsdgeosricmm: the exact thing is doing the same on both devices16:25
tsdgeosricmm: you'll have to ask him what he did16:25
ricmmoh I meant the exact same thing from your device to his16:27
ricmmI know what exact same thing means :)16:27
mzanettiricmm: http://paste.ubuntu.com/5993351/16:27
mzanettiricmm: did exactly the same steps on a GNexus and a Nexus416:27
ricmmok16:28
ricmmwhat version of mir do you have on the n416:28
* mzanetti boots the Nexus 416:28
olli_alan_g, is usc in lp:mir?16:29
alan_golli_: no16:29
mzanettiricmm: Installed: 0.0.9+13.10.20130813-0ubuntu116:29
mzanettithis is mir-demos. need any other packages?16:30
alan_golli_: lp:unity-system-compositor16:30
olli_alan_g, thx!16:31
Saviqtsdgeos, racarr, gtg, will be back later this evening if you have any updates16:32
racarrah stretching my legs felt good16:33
racarrwasnt olli saying something about how instead of fixing the nexus 4 I should walk to the ocean...16:33
racarr:p16:33
racarrok16:34
racarrmir image produces a black screen of death...16:34
tsdgeosracarr: i need to do some real life stuff, my phone's still connected, if you reboot it, it ought to come back with the same ip...16:35
tsdgeosbe back in two hours if nothing happens16:35
racarrtsdgeos: Cheers. Thanks :)16:37
racarrhopefully ill figre it out16:37
ricmmracarr: maybe something changed permissions-wise16:38
ricmmat the udev level, in the container16:38
ricmmcan you strace the server? it might be failing to acquire something16:38
ricmmsilently16:38
racarrricmm: Seems like it must be...16:38
racarroh good idea!16:38
racarrbut still this doesn't make any sense16:39
racarrbecause the matrix looks like16:39
racarrtsdgeos: Building mir on latest image (fails), adding ppa on latest image (fails), using mir image (fails)16:39
racarrwhere for me it's building mir on latest image (suceeds), adding PPA (suceeds), using mir image (fails)16:40
racarrlol so many errors16:41
racarrthe linking setup on phablet seems to be werid16:41
racarrits looking for every library in like16:41
racarrten directories with weird numbers16:41
racarrbefore finding them16:41
racarrin /usr/ilb16:41
racarrioctl(13, 0xc0f86d87, 0xbef5fef0)       = -1 ENOMEM (Cannot allocate memory)16:45
racarrwritev(8, [{"\6", 1}, {"hwcomposer\0", 11}, {"Failed to call ioctl MSMFB_OVERL"..., 66}], 3) = 7816:45
racarrwritev(8, [{"\6", 1}, {"hwcomposer\0", 11}, {"init: Failed to setup primary ba"..., 40}], 3) = 5216:45
racarrwritev(8, [{"\4", 1}, {"hwcomposer\0", 11}, {"Initializing Qualcomm Hardware C"..., 40}], 3) = 5216:45
racarrwritev(8, [{"\4", 1}, {"hwcomposer\0", 11}, {"MDP version: 440\0", 17}], 3) = 2916:45
racarrthat doesn't look great16:45
ricmmracarr: indeed, compare with your working scenario16:45
ricmmcleaning lady about to mop the whole house, so will be away for a bit16:46
ricmmlunch16:46
racarrOk, see you soon16:48
racarrhave to figure out a way to get my working scenario without iping back and forth all day lol16:48
racarrwiping16:48
=== alan_g is now known as alan_g|EOD
olli_alf__, ping17:21
tvoss_ricmm, racarr ping20:46
=== bschaefer_ is now known as bschaefer
ricmmtvoss_: sup20:50
tvoss_ricmm, just wanted to check if I can help with the nexus4 issue?20:50
ricmmtvoss_: oh, well not sure how far rob got20:51
ricmmI dont have a nexus4 and im knee-deep into the mir work20:52
tvoss_ricmm, ack20:52
ricmmso no idea where we stand20:52
tvoss_ricmm, ack20:52
tvoss_will wait for racarr to come back then20:52
ricmmok20:52
racarrtvoss_: Oh Ive been here sorry21:03
racarrit didn't sho up as a ping21:03
racarrtvoss_: so I'm actively 'making progress' at discovering facts21:04
racarrbut I can't make anything consistent out of what I have igured out so far21:04
tvoss_racarr, mind walking me through what you are uncovering?21:04
racarrtvoss_: Ok. So, yesterday, just building mir and the stack on a clean nexus 4 I flashed worked21:05
racarrlikewise this morningm it worked, but once you install the mir image, it breaks21:05
racarreverything seems to run21:05
racarrbut things are just black21:06
racarrerr, ok so I mentioned all those details about the stack because21:06
racarrtsdgeos built it on a normal image and it seemed to not ork21:06
racarranyway, so things are all black, no errors or anything21:06
racarrbut there is this suspiscious result from strace on mir_demo_server21:07
racarr16:46 < racarr> ioctl(13, 0xc0f86d87, 0xbef5fef0)       = -1 ENOMEM (Cannot allocate  memory)21:07
racarr16:46 < racarr> writev(8, [{"\6", 1}, {"hwcomposer\0", 11}, {"Failed to call ioctl  MSMFB_OVERL"..., 66}], 3) = 7821:07
racarr16:46 < racarr> writev(8, [{"\6", 1}, {"hwcomposer\0", 11}, {"init: Failed to setup  primary ba"..., 40}], 3) = 5221:07
racarr16:46 < racarr> writev(8, [{"\4", 1}, {"hwcomposer\0", 11}, {"Initializing Qualcomm  Hardware C"..., 40}], 3) = 5221:07
racarr16:46 < racarr> writev(8, [{"\4", 1}, {"hwcomposer\0", 11}, {"MDP version: 440\0",  17}], 3) = 2921:07
racarrtvoss_: So then I built mir21:08
racarrsame results, but different strace errors interestingly enough21:08
racarrhttp://pastebin.ubuntu.com/5994179/21:08
racarrthere is this error on ioctl to fd 821:09
racarrwhich, as ar as I can tell from the strace logs is21:09
racarr /dev/socket/property_service21:09
racarrso, something has gone wrong with udev (except it doesn't seem to be udev) or apparmor (Except I unloaded apparmor) or permissions (except as root)21:10
racarrso I am guessing it is some sort of LXC environemtn thing I don't understand yet21:10
racarrwhat im currently doing is21:10
racarr55% through building mir on hat I expect to be a working nexus 4 image21:10
racarrso I can21:10
racarrcompare the strace logs21:10
racarranyway though my leading theories are weird permissions on video devices, or this /dev/socket/property_service21:11
racarrbut, again, it's not a "permission" so there is some other system coming in to play21:11
racarror, I as wondering if the ENOMEM could have been meaningful21:11
racarri.e. there was some restriction on the size of processes mapped address space through some system limit21:12
racarrand mapping the framebuffer isn't working21:12
racarrthat seems21:12
racarrabsurd21:12
racarrso im basically just waiting on the build right now21:12
tvoss_racarr, ack21:12
racarrtvoss_: Oh I guess the other thing21:14
racarris buffer swapping definitely works, the hwole IPC layer, input, everyone thinks they are happy21:14
racarrand the integration-tests pass, so OpenGL really renders21:14
racarrso either 1. The Framebuffer is broken or 2. GL is broken on the server side21:14
racarrbut everything else is pretty much ruled out21:15
racarrthere was some weirdness21:15
racarrabout clients sometimes21:15
racarrgetting reduced FPC21:15
racarri.e. when I as testing clients it as either21:15
racarr60 fps21:15
racarr30 fps21:15
racarror 1-2 fps21:15
racarrwe use the HWC for vblank symbols21:16
racarrso it seems tied in21:16
racarrbut very strange21:16
tvoss_hmmm ...21:19
racarrtvoss_: One way or another the spinning triangle will come back ;)21:25
tvoss_racarr, yeah, we need it ...21:26
tvoss_it all started with it :)21:26
racarrtvoss_: It's so anticlimatic sometimes because it was so gradual XD21:29
racarrif you had asked me back in copenhagen what things would have been like, when it was finally time to land mir on the phone21:29
tvoss_racarr, indeed :)21:29
racarrI feel like I was imagining like fireworks, peace on earth21:29
racarrgoodill to all men, etc21:29
racarrbut, it just sort of happens eventually21:30
racarrXD21:30
racarrand everything else is still the same21:30
racarrI got pretty stressed about all of it for a while ;)21:30
tvoss_racarr, that's the beauty of it :) it just happens21:33
racarrtvoss_: XD ok my build finished21:37
racarrthe one that was supposed to ork like it did this morning, i.e. flashing the latest image and building trunk21:37
racarrERROR: /home/phablet/src/trunk/src/server/graphics/android/android_framebuffer_window.cpp(75): Throw in function virtual void* mir::graphics::android::AndroidFramebufferWindow::android_display_egl_config(EGLDisplay) const21:37
racarrDynamic exception type: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<std::runtime_error> >21:37
racarrstd::exception::what: could not select EGL config for use with framebuffer21:37
tvoss_racarr, that's just weird ...21:38
racarrok and integration-tests fail all over21:38
tvoss_did libhardware change?21:39
racarrwell test_accelerated_render hangs21:40
racarrseems like21:40
racarrit must have somewhere21:40
racarror21:40
racarrsome permissions are causing things to fail21:40
racarrinside libhardare21:40
racarrstraceee21:40
racarrexcept network doesn't work anymore and I can't install strace....XD21:42
racarrreboot fixed it21:43
racarr*rambles*21:43
racarrok also21:44
racarrafter reboot21:44
racarrI don't get that EGL confic21:45
racarrg21:45
racarrexception anymore21:45
racarrbut nothing on screen21:45
racarrit's this21:45
racarrioctl(8, 0xc0f86d87, 0xbee5c110)        = -1 ENOMEM (Cannot allocate memory)21:45
racarragain21:45
racarroh the ENOMEM isn't on the properties_service it's21:46
racarropen("/dev/graphics/fb0", O_RDWR|O_LARGEFILE) = 821:46
racarrok so21:47
racarrwritev(3, [{"\6", 1}, {"hwcomposer\0", 11}, {"Failed to call ioctl MSMFB_OVERL"..., 66}], 3) = 7821:47
racarris the error for this ENOMEM and it matches up in dmesg to this thing [  102.204578] msmfb_overlay_set: ioctl failed, rc=-1221:47
tvoss_racarr, right, seems like a memory limitation is hit21:48
racarrtvoss_: https://jira.cyanogenmod.org/browse/CYAN-126021:50
racarrhow obscure21:50
racarrnot exactly21:50
racarrbut close21:50
racarrwell the errors are exactly but why does using disk encryption trigger it in cyanogen mod21:50
racarrand it being friday trigger it on ubuntu touch :p21:51
racarrtvoss_: Is there an easy way to build Android.mk stuff from isnide the chroot or something21:52
racarrI want to try this liboverlay21:52
racarrok its a worthwile test to see i things worked unsynced without21:54
racarrHWC to21:54
racarrnarrow EGL out of the possibilities21:54
ricmmtvoss_: this problem isnt hit on surface flinger21:56
ricmmmir only21:56
ricmmso it has to be some sort of permissions thing21:56
ricmmcheck lxc-android-config for the udev rules21:57
ricmmmaybe something changed recently21:57
racarrlxc-android-config that is21:57
racarrexactly hat I was looking for earlier but didnt know what it was :)21:57
ricmmhttps://code.launchpad.net/~ubuntu-branches/ubuntu/saucy/lxc-android-config/saucy-proposed21:58
ricmmshit22:01
ricmmwhere did my client library code go22:01
ricmm:(22:01
racarrnon HWC mode doesn't get anything22:03
racarron the screen either22:03
racarrexcept no apparent errors in strace and FPS is unbound22:03
racarrcan't find any lxc-android-config things yet but exploring22:06
tvoss_ricmm, did we upgrade anything in the android side of things? I do see adjusted permissions for certain devices22:07
ricmmim not aware of any updates22:08
ricmmogra is the best one to ask about those22:08
racarrogra_: Ping if you happen to come by :)22:09
racarrthe only perhaps relevant ulimit is max locked memory       (kbytes, -l) 6422:16
racarrwhat sort of access control things are there besides22:16
racarrposix permissions, apparmor, limits, and LXC22:17
racarrandroid magic?22:17
racarrthis time the whole phone crashed :(22:18

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