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

RAOFHurray for having next week off. This week is not my most productive ever :/02:02
=== zoktar_ is now known as zoktar
=== csslayer_ is now known as csslayer
hikikohello08:03
hikikoalf__, ping!08:03
tvossalf__, ping08:08
hikikolol I think he has a meeting08:08
alf__hikiko: pong08:10
alf__tvoss: pong08:10
robert_ancelltvoss, ping08:10
robert_ancell(everyone else was doing it)08:10
alf__ping-pong madness :)08:11
hikikolol08:11
tvossman ...08:11
tvossrobert_ancell, pong08:11
hikikook tvoss ask first if you want :D08:11
robert_ancelltvoss, do you know who is maintaining LTT-ng in Ubuntu? If we take a dependency on it I'll do a MIR, but if it's another team I can leave it for them08:11
tvossrobert_ancell, it should be stephane graber for Ubuntu, the kernel team makes sure that our kernels are enabled08:12
tvossrobert_ancell, does that help?08:12
robert_ancelltvoss, thanks, I'll ask him08:12
tvossrobert_ancell, cool, let me know if I can help08:13
alf__hikiko: your turn :)08:21
hikikoalf__, i just merged after a longtime and I wonder what some new things are:08:26
hikikoeg. the internal native display08:26
hikikoand the internal client08:26
alf__hikiko: The internal client is the object in-process "clients" (like e.g. the shell) use to get the EGL handles they need to render08:34
alf__hikiko: The InternalNativeDisplay, is the implementation of MirMesaEGLNativeDisplay (which is what Mesa expects from us) for the in-process clients08:36
alf__hikiko: (this is of course only for the GBM case, Android uses other abstractions internally)08:36
alf__hikiko: (Android uses other abstractions internally = meaning not InternalNativeDisplay)08:37
alf__hikiko: btw, you don't any of this for render_to_fb to work08:39
hikikocool :) so I can leave them for later08:53
hikikoI just need to understand what's going on :)08:54
=== pete-woods1 is now known as pete-woods
=== ubot5` is now known as ubot5
=== mmrazik is now known as mmrazik|afk
=== greyback is now known as greyback|lunch
=== mmrazik|afk is now known as mmrazik
=== pete-woods1 is now known as pete-woods
=== greyback|lunch is now known as greyback
=== olli_ is now known as olli
=== pete-woods is now known as pete-woods|food
=== francisco is now known as Guest4406
kdubhello all, status, working on swapinterval 0 for android, was unsucessful in getting unity next to run15:04
hikikokdub, ping15:09
kdubhello15:09
hikikohello :)15:09
hikikokdub, in my sdl branch I get a compile error in a header file: android_input_manager.h:26 because it is included in the src/server/default_server_configuration.cpp15:10
hikikoshould this file be there or I can just delete the include line?15:11
hikikoI don't do an android build15:11
kdubhikiko, sure ,but the input stack is called 'android' too, its probably needed somewhere in the code15:11
hikikoso the input for the pc-build uses the android_input_manager.h?15:13
kdubyep15:15
hikikokdub, we have an important bug in this header file15:17
hikikowe use the enum Status15:18
hikikobut15:18
hikikoStatus is defined in the Xlib headers15:18
hikikoi mean #define15:18
hikikoin the android build you don't use Xlib15:19
hikikoso you don't get any error15:19
hikikobut in the gbm/sdl15:19
hikikowe have to either remove that header file from the build or use another name for Status15:19
hikikocan I fill a bug report?15:20
alf__hikiko: where does Status come from?15:20
hikikoX11/Xlib.h15:20
alf__hikiko: no I meant from our side15:20
hikikosrc/server/input/android/android_input_manager.h15:21
alf__hikiko: found it in 3rd_party/android-input/android/frameworks/base/services/input/InputDispatcher.h15:21
=== pete-woods|food is now known as pete-woods
alf__hikiko: But why do these too conflict? Why do X headers end up in src/server/default_server_configuration.cpp?15:22
hikikobecause sdl includes the X headers15:23
hikikoand in any case I should include them :)15:23
hikikoeven if I used pure Xlib15:24
alf__hikiko: right, but why do the headers end up included by src/server/default_server_configuration.cpp ? DefaultServerConfiguration shouldn't know anything about the implementation of Platform, Display etc which includes X/SDL headers15:25
alf__status: Continuing lttng experiments/integration, cleaning up unused code15:27
hikikono idea15:27
alf__hikiko: well, that's something to look into then :)15:29
hikikobut I didn't write that file :s I have no idea of its internals why wouldn't we just rename status?15:29
kgunnhikiko: can you not use namespace here to solve your problem?15:33
hikikono kgunn namespaces cannot override the preprocessor definitions15:33
hikikothe preprocessor substitutions happen before the compiler even sees the file15:34
hikikoso Status will be an integer15:34
kgunnhikiko: oh...see that now in scrollback...#define15:34
hikikoI think that maybe I should fill a bug report and send an email to the mailing list, maybe someone can suggest a solution :)15:35
kgunnhikiko: not really the way it works15:36
kgunnhikiko: i think you need to solve the problem & _then_ propose a solution15:36
hikikoI can solve the problem 2 ways but I don't know what I might break in the android build15:36
kgunnhikiko: if you end up with requiring a change to the name of something in mir, create a merge proposal & let it get reviewed15:36
hikikoah ok :)15:37
kgunnhikiko: ah...but that's where testing comes in :)15:37
kgunnhikiko: prove it to yourself15:37
hikikoshould I setup an android environment to test this? I have a nexus galaxy, does mir work there?15:39
alf__hikiko: yes, although I guess as a first step it would be enough to check that everything builds (which you can do without a phone)15:43
alf__hikiko: I am still curious how the X11 headers end up in default_server_configuration.cpp . Where are you including SDL, X11 headers in the code?15:44
hikikoalf__, you mean if that if I choose the android platform in ccmake I can build it in the pc15:44
hikikoonly in sdl/display.cpp, sdl/display.h15:44
kdubhikiko, you can cross compile from the pc15:45
hikikokdub, are there any instructions on how to do it?15:45
alf__hikiko: for building on Android check http://unity.ubuntu.com/mir/building_source_for_android.html15:45
hikikoah cool :D15:46
alf__hikiko: set up the repos/get all the dependencies mentioned there, and at the last step run the ./cross-compile-chroot.sh script15:47
alf__hikiko: are you including sdl/display.h somewhere?15:48
hikikowhere can I get this script from?15:48
alf__hikiko: its in the root directory of the tree15:48
alf__hikiko: (note: check the "cross compile" part of the guide)15:49
greybackkdub: hey, did you succeed in running qml-phone-shell on the phone yesterday?15:49
hikikooh I see alf__ thank you!15:50
kdubgreyback, no, hit a corrupt stack15:50
greybackkdub: strange, want me to investigate anything?15:51
hikikook, I will try to remove the .h first and if I get a break in android I will rename the enum and propose a merge15:51
kdubgreyback, i still haven't ruled out that I set it up wrong somehow, so probably nothing to investigate yet15:51
greybackkdub: ok, well ping me if I can help.15:52
kdubsure, thanks15:52
kgunngreyback: should we get one of Pat's guys to try your instructions ?16:06
greybackkgunn: they're very preliminary, things will get a whole lot easier once platform-api stuff settles down. But I have no objection16:07
kgunnracarr: might join #ubuntu-touch16:15
kgunnrsalveti is going to give mir/unity8 build a whirl16:16
rsalveticool, will give it a try later today (after uds)16:16
alf__hikiko: my suggestion is to find out if you can avoid the naming clash, by finding out why X11 headers end up in default_server_configuration.cpp (and fixing that)16:29
hikikoalf__, that's a solution only if we are 100% sure that we don't want to include X11 headers and android headers together16:36
hikikothe problem is not the default_server_configuration.cpp but16:37
hikikothat we include that android_something.h16:37
hikikoif we include it elsewhere at somepoint16:37
hikikowe ll end up to have the same problem16:37
hikikowhat I think is a better solution16:37
hikikois to not include android header files at all in a pc build16:38
hikiko:s/pc/non-android16:38
greybackkdub: racarr: We plan to have Mir to run as non-root user, right? Can you quickly say why right now we must run it as root?16:41
kdubgreyback, because sf does it, at least on android :)16:42
kdubtbh, haven't tried it non-root on android much16:42
greybackkdub: oh ok then /me gives up :)16:43
greybackkdub: there's so much about this layer I yet don't understand, so I'm full of questions like these.16:44
alf__hikiko: but that's the android input stack which now is mir's input stack for all platforms, we can't disable it16:44
alf__hikiko: for any platform16:44
hikikothat's why I think that I a rename is the best solution16:45
hikikoI'll just rename the enum :)16:45
hikikoand then you can include the file everywhere16:46
alf__hikiko: that will just hide the underlying problem, i.e., that somehow X11 headers get included where they are not supposed to be included16:48
alf__hikiko: I would be all for renaming if we actually needed to include both the input and X11 headers, but that doesn't seem to be the case... we get a spurious X11 header inclusion somehow16:51
hikikoI understand what you mean and it's interesting to find why it happens, my point is that the rename is necessary if we are going to use the android input stack and the X at the same time, we ll end up to have similar conflicts anyway16:56
alf__hikiko: when/if we get that problem, we can fix it then :)17:03
hikikowe have it now17:07
=== mmrazik is now known as mmrazik|afk
racarrUnlikely but possible cause of shell crash17:30
racarrperhaps qtubuntu/platform API were built against mesa EGL headers (seems like hybris is built this way in packaging for example)17:30
racarro we ran in to the same old eglplatform.h nonsense17:31
racarrwhich doesn't matter on 32 bit machines?17:31
racarrnvm17:31
racarrok speculating about this bug is getting me nowhere so im flashing my nexus 417:49
racarrgoogle claims it backs up all my app data anyway ;)17:49
kdubracarr, use clockworkmod backup17:49
racarrkdub: Even better17:50
racarrYou can multiboot nexus 7 but no one wrote it for nexus 417:51
racarrkdub: Oh wait, but this is literally a stock device so I have to oem unlock and clear it to install clockwork right?17:53
racarrthat will be good the second time though17:53
kdubracarr, right17:53
tvosskdub, ping17:54
kdubhey tvoss17:55
tvosskdub, hey, did you have a chance to debug greyback's issue?17:55
kdubno, working on other performance things though17:56
tvosskdub, okay17:56
racarrtvoss: I am working on it17:57
tvossracarr, okay17:57
racarrbut got stuck in a 6 hour diversion of trying to get mir working on nexus 7 again17:57
racarrbut um...17:57
racarrit didn't work :p17:57
racarrso now im in the minor diversion of flashing my nexus 417:57
racarrthe stacktrace is just nonsense so I will need to reproduce it17:58
kgunnracarr: wow...that frightens me off17:59
kgunnre: 6 hr diversion of n717:59
racarrkgunn: Well tbh I didn't get that deep but it was really time consuming18:01
kgunnracarr: did you try to use the upstream or kdubs libhybris18:02
racarrwait I didn't know where kdubs was anymore18:02
racarrbut I tried to use the upstream and tried to backport it myself18:02
racarrthen tried to backport it myself again better18:03
racarrhaha18:03
racarrsame segfault in  um18:03
racarrpthread_mutex_lock all around18:03
racarrwell thats not true, the first time I tried to backport it, it segfaulted very easly in a corrupt stack18:03
racarrthen the upstream version, and my second backport18:03
racarrprint much more debug info about loading android libraries and finding the tegra 318:04
racarrand then segfault in pthread_mutex_lock18:04
tvossracarr, that's a known issue with hybris18:04
tvossracarr, at least for the nvidia driver, it comes down to the fact that nvidia's driver uses a mutex shared across processes18:05
racarrtvoss: https://github.com/libhybris/libhybris/pull/4918:05
racarrthis is what we mean by upstream in this conversation18:05
racarrbut it doesn't work18:05
racarrlibhybris trunk is very different looking from what we are using, so I am guessing18:06
racarrit needs to be backported by something more intelligent than diff and dumbly resolving conflicts18:06
racarrbuilding clang too18:11
racarrcurrently on a phone call from ubuntu, wild18:25
=== mmrazik|afk is now known as mmrazik
racarrnexus 4 seem to overheat in calls18:40
racarrhaha18:40
racarrkdub: Any advice with wireless on nexus 4? It claims to assosciate to my network but no connection (nexus 7 worked with no intervention)18:46
kdubmine worked fine from the ubuntu wireless interface18:47
kdubphablet-network-setup might help too18:47
kdub(just copies your laptop's wireless conf on over to the device)18:47
racarrannnd it magically fixes it18:47
racarrself18:47
racarr:)18:47
racarrI thought mir was running but really surface flinger was just bugging out :(19:32
racarrkdub: ...um...have you ever seen19:34
racarr...inverted? colors19:34
racarrI think this is inverted19:34
racarrits not inverted19:34
racarrwhite is white but orange is purplke19:34
racarrred is blue19:34
racarrok19:34
kgunnusually pink/green19:34
racarrformat mix up19:34
kgunnis when rgb formats get screwed19:35
racarrI think19:35
racarrthis is unity in mir19:35
racarrXD19:35
kgunnmeaning like ubuntu purple/orange ?19:35
racarrwell like19:36
racarrthe youtube icon is blue instead of read19:36
racarrthe background is a deep purple19:36
racarrthe camera icon is perfect almost19:36
racarrfacebook i orange19:36
kgunnoh cool....19:36
kdubsounds like an rb flip19:36
kgunnyep19:36
racarrmm19:36
kgunnbgr rgb19:36
racarrwait so19:36
racarrwhy didnt it crash19:36
racarrI was expecting it to segfault XD19:37
racarrlike greybacks19:37
kgunnif its 888 then the bit sizes are the same19:37
kgunnno worries...just interpretted wrong19:37
kgunnhttp://graphics.github.io/bltsville/19:37
kgunnthis is really common19:37
kgunntried solving with this open project19:38
kgunnactually this one related to it http://graphics.github.io/ocd/19:38
racarrkdub: So if there are things on the screen and ps aux | grep surface gives me nothing19:39
kgunnlots of people get bgr/rgb swapped due to differing spec's/interpretations19:39
racarrI should be pretty confident it's mir XD? I'm trying to confirm19:39
racarrthe right QML phone shell is running, etc.19:39
kgunncan you run dumpsys SurfaceFlinger from the android shell19:39
kgunnthat would tell you if surface flinger is rendering19:39
kdubyeah19:39
racarrdumpsys command not found?19:39
kgunngotta be in the android shell19:40
racarras in19:40
kgunnnot an adb command19:40
racarradb shell19:40
kgunnyep19:40
racarrI don't have it19:40
kgunnhmmm, weird....i don't either19:41
kgunnon my ubuntu device19:41
racarroh19:41
racarrI know how to figure out XD19:41
racarrill run a mir client :p19:42
racarrI do have a tmp/mir_socket so seems pretty promising19:42
racarralso the screen is blue which seems unlikely to be something that surface flinger would do19:42
racarroh cool19:43
racarrit is mir19:43
racarr...um19:43
kgunnso does that mean we've been looking at surfaceflinger this whole time :-/19:43
racarr?19:43
racarrNo.19:43
racarrthe ...um is because19:44
racarrmy whole point here was to figure out why the inproces-shell doesn't run inprocess on the nexus 419:44
racarrbut then it does19:44
kgunn:D19:44
racarrso now I have to find out why it crashes for other people XD19:44
kgunnyou cured it!19:44
racarrand19:44
racarrfigure out how to make19:44
racarrblue19:44
racarrorange19:44
racarrred19:44
racarrsomething19:44
racarrim going to do that first XD19:45
kgunnwondering if that's the Qtubuntu plugin pixel cfg format19:45
kdubi'd look there first19:45
racarrYeah19:45
racarr95% sure that's what it i19:45
kgunnother could be our setting on the hw for color fmt is wrong :)19:46
racarrtrying to find the debian source for the packages gerry poted on chintrap19:46
racarrkgunn: No I would be willing to bet somewhere in19:46
racarractually somewhere in ubuntu_application_api_mirserver19:46
racarrthere is like19:46
racarrpixel_format = argb // TODO: ~racarr lol19:46
kgunn:D19:46
kgunndoh!19:47
racarrah yep there it is19:47
racarr*grin*19:47
* kgunn kinda disturbed "we" took out dumpsys....awfullly useful19:49
racarrhmm19:50
racarrI cant get at the pixel formats from libmirserver easily right now...19:50
racarrneed to pass the buffer allocator through19:50
racarrcomputers sure are fun19:51
racarrwhy is it magically fixed...ugh19:54
racarrmaybe it really was the eglplatform.h nonsense and I don't understand19:54
racarrinteger promotion rules19:54
kdubracarr, might be, i don't think i tinkered with that eglplatform.h fiel19:58
racarrkdub: It's fixed in the PPA now19:58
racarrmy thought is that if the qtubuntu backage was built in pbuilder19:58
racarrit used the mesa headers19:58
kdubi don't know that the android build draws from that ppa19:59
kdubat least the scripts19:59
racarrmm19:59
racarrwell im ust going to try and fix the colors for now and sync up with greyback tomorrow19:59
racarrcross your fingers :)20:08
kgunntoes as well20:09
racarrhey cool the colors are right20:10
racarrfeels really smooth20:11
racarrgesture are all easy to use :)20:11
racarrit's always so anticlimatic20:12
kdubgreat :)20:17
kdubracarr, yeah20:17
tvossracarr, which device?20:19
kgunnracarr: oh don't worry....crazy will arrive20:20
racarrtvoss: Nexus 420:21
racarrwith inprocess mir shell :)20:21
tvossracarr, epic :) video?20:25
racarrtvoss: After lunch. It's not much of a video though because it will look just like the out of process stuff except applications wont work :p20:26
kgunntvoss: like mirco said...strange milestones....we want nothing to change :)20:26
kgunneven tho we are changing20:26
racarrtvoss: A cooler video would have been when r and b were swapped20:27
racarr"Ubuntu Phone: Midnight-ice theme"20:27
kdubmidnight ice blur20:28
kdubthe next big thing i hear ;-)20:28
kgunnoh man....i want that.....mightnight ice blur phone!20:28
racarrmaybe ill get a transfer to marketing20:29
tvossracarr, ack :)20:29
kgunn:D20:30
racarrOk lunch!20:34
kdubthats a good idea20:39
kgunnrobert_ancell: aren't you on baby duty?21:50
robert_ancellkgunn, Not until Tuesday21:51
kgunnrobert_ancell: ok, your mail was just a pre-emptive strike21:51
robert_ancellkgunn, yep21:51
kgunnracarr: kdub & greyback makin' all kinds of progress21:52
kgunnrobert_ancell: they have the inprocess shell working on n421:53
robert_ancellkgunn, nice21:53
racarrgosh the mission is charming :)22:00
racarrWalking around for lunch now includes trees which is a big plus22:00

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