/srv/irclogs.ubuntu.com/2016/03/30/#ubuntu-mir.txt

dufluRAOF: In case you didn't notice, this is yours now :)  https://bugs.launchpad.net/ubuntu/+source/unity-system-compositor/+bug/155354901:09
ubot5`Launchpad bug 1553549 in unity-system-compositor (Ubuntu) "unity-system-compositor crashed with SIGSEGV in get_adjusted_ptr(), when proprietary Nvidia drivers are installed" [High,Confirmed]01:09
RAOFIndeed I noticed.01:13
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
=== faenil_ is now known as faenil
=== marcusto_ is now known as marcustomlinson_
=== marcustomlinson_ is now known as marcustomlinson
suebtgreyback: Just got everything setup and ran gdb again. Unfortunately, there's no useful output :| (at least I think there is no): http://paste.ubuntu.com/15558754/11:00
greybacksuebt: libc6-dbg installed?11:01
greybackbut address at frame 2 does look weird11:02
suebtgreyback: oh no, forget I reflashed it so no... will do, sorry11:02
suebts/forget/forgot11:03
suebtDo I have to run it from inside the ch thing?11:03
greybacksuebt: this is where you need to take care. The chroot is ideal for building code, since you can install all the dependencies without filling up your phone's root filesystem11:04
greybackbut running code inside chroot is less convenient, as it can get in the way. Example, you may not be able to connect to mir, which lives outside the chroot, while you are inside the chroot11:05
greybackso usually I build my stuff in the chroot, then copy/install the built bits into the root filesystem. And then I test outside the chroot11:06
suebtgreyback: Ah, allright okay. But how does the system know that I installed the debug packages in the chroot oO Is a reboot required?11:06
greybackwhich means, you need the dbg symbols outside the chroot too11:06
greybacksuebt: gdb is configured to look for dbg packages in /usr/lib/dbg. As you're inside the chroot, it will not see the dbg packages outside your chroot11:07
suebtoh :| So how can I get them in the rootfs?11:07
suebtor can I tell gdb that I have dbg packages in the chroot?11:08
greybacksuebt: the usual: apt-get install libc6-dbg11:08
greybacksuebt: you can, using the "dir" or directory command11:08
greybackbut I think you'd be safer just installing dbg packages on the rootfs11:08
suebtHuh, okay … but then I will be running out of space again, won't I?11:09
greybacksuebt: that's a danger, yes. But by not having the build packages installed too (instead having them in chroot), you've made that less likely11:10
greybackusually I can manage to install about 300MB of debug packages before I hit that issue11:11
suebtOkay, so I installed libc6 to the rootfs. The same with the mir debug package?11:12
suebts/libc6/libc6-dbg11:12
greybacksuebt: well, try gdb again, see if you get more detail in your stacktrace11:13
greybackif you do, but it stops at something from the  "mirclient" library, then install the mirclient dbg package, and try again11:14
greybackit's a bit iterative11:14
suebtok, thanks for your help. Let me try.11:17
suebtgreyback: okay, here's the lock with libc6-dbg: http://paste.ubuntu.com/15558852/11:23
greybacksuebt: hmm, no improvement. I would try installing the mirclient dbg, just in case.11:28
greybackbut frame 2 has a weird address. Hope something isn't smashing the stack11:29
suebtgreyback: so I'll enable the overlay ppa as I did for the chroot and install it?11:30
greybacksuebt: yep11:30
suebtgreyback ok..11:30
greybacklots of work, eh? :)11:32
suebthah, I'm just bagging it won' t fill up my rootfs again xD11:33
=== chihchun is now known as chihchun_afk
suebtgreyback: http://paste.ubuntu.com/15558908/11:36
suebtmeh /0\11:36
greyback:(11:36
suebtgreyback: What could be the root for this? Could it be a mir problem at all?11:36
suebtor is it more likly a problem with my libraries11:37
greybacksuebt: it's impossible to say with this information. Something between mir & SDL11:37
anpoksdl dynamically loads mirclient11:37
suebtgreyback: Is there anything I could do now?11:38
greybacksuebt: all I can recommend is ensuring you're using the most recent pull of the sdl libraries - I know the mir support was changing a lot recently11:38
greybacksuebt: and bschaefer would be the best guy to ask (he based on west coast US, usually online 8+ hours from now)11:39
suebtHmm … okay. Actually it used to segfault because of missing/obsolete SDL libs before. But then I did the custom build and it no longer segfaulted. Instead I got the message that sdl is missing libsndio.11:39
suebtOnly after including this lib, this segfault we're taling about is happening.11:40
suebtNot sure if that info is relevant11:40
suebtokay11:40
greybackyeah sorry, I'm not the expert on SDL11:41
suebtme even less :D thanks for all your help anyway!11:42
greybackI wish you luck. Thanks for the digging. I hope you learned something anyway11:42
anpoksuebt: can you point me to the source code version of libsdl that you are using?11:42
suebtgreyback: yes! I know now how to install debug packages, have a nice chroot where I can build stuff ... it's great! Thanks so much :)11:43
suebtanpok: yeah sure11:43
suebthttps://github.com/Sturmflut/ubuntu-touch-sdl2-gles2-template I was using this to build my sdl libraries. This is known to work on the phone, that's why I was choosing it.11:44
suebtNot sure if it would help, but I can upload the stuff I have. At least the python stuff seems to be working :)11:45
suebtanpok: Or is a newer version required and I'm wrong?11:46
slvn_suebt,  . ... just reading, I can help if you want to build sdl2 for ubuntu device11:46
slvn_(just sum up your question again ...)11:47
anpokok11:48
suebthi slvn_, I building seems to have worked but the problem above started when I included libsndio which sdl was claiming for. Do you have an idea what could be wrong with that?11:48
anpokhm the sdl archive contains code that loads mir_connection_create_surface_sync11:48
slvn_not sure that sdl claims libsndio  ?!11:48
slvn_is it SDL2 ? not SDL.1.2 ?11:48
anpokand I believe that one only part of libmirclient8 and no longer part of libmirclient911:49
anpokSDL211:49
slvn_ok11:49
suebtone moment, slvn_11:49
suebtslvn_: http://paste.ubuntu.com/15558973/11:50
suebt^ that's what happens without it. FYI: it's about trying to get kivy (https://kivy.org) running.11:50
slvn_yep, but kivy is not sdl2 ...   I have check SDL2 source and there is actually some part about libsndio11:52
suebtokay, I thought it was sdl2 cause of the "sdl2 - ImportError" ...11:53
slvn_ probably it is. since SDL2 contains some code that use libsndio11:54
slvn_in "configure" there are some reference to libsndio11:54
slvn_but, I have checked my partial chroot and I have no libsndio installed11:55
slvn_"find . | grep libsnd"  > ./partial-armhf-chroot/usr/lib/arm-linux-gnueabihf/libsndfile.so.111:56
slvn_don't know wether libsndfile is different of libsndio ...11:56
suebtI haven't seen other apps shipping libsndio as well. Dunno why kivy wants that for sdl2...11:57
slvn_does kivy provides SDL2 libs for ubuntu device ? do you recompile your self ? do you actually need the libsndio ?11:58
suebtNo, it doesn't provide SDL libs for the phone, I compiled them myself. I want to get kivy running, I'm not sure whether libsndio is neccessary, all I know is that it claims for it when I don't have it and that I receive a segfault when I include it :/12:00
slvn_SDL2 can look for various audio back-end and pick the available one. According to the "configure --help", libsndio is set as "default == yes". ...12:05
slvn_from my chroot which is a few month old12:06
slvn_Audio drivers   : disk dummy oss alsa(dynamic) pulse(dynamic) nas(dynamic)12:06
slvn_"checking sndio.h usability... no"12:07
slvn_my SDL2 on ubuntu device has no libsndio I guess12:07
slvn_I think this is *kivy* which try to load libsndio12:08
slvn_"ImportError: libsndio"12:08
slvn_this is python, not sdl2 ?12:08
slvn_maybe ask the channel #SDL2  ?12:08
slvn_maybe ask the channel #SDL ?12:09
=== alan_g is now known as alan_g|lunch
suebtSo, according to the kivy devs it's SDL2 xD Can you show me how you built it withoud sndio?12:13
slvn_suebt, this is my configure line http://paste.ubuntu.com/15559095/12:16
slvn_and the sum up http://paste.ubuntu.com/15559098/12:17
slvn_I think the audio back end is pulse, because  I remember having some issue with it ...12:18
suebtslvn_ hhmmm, this configuration is a bit different to what I used ...12:31
slvn_suebt, for instance ?12:32
suebt--enable-mir-shared --enable-video-mir instead of  --disable-mir-shared12:33
suebtnot sure if that makes a difference tho12:33
slvn_should not matter, this is not related to libsndio12:33
suebtyes...12:33
slvn_I mean "configure script" won't find libsndio with the default chroot I guess12:34
slvn_so SDL2 shouldn't not even try to load lib sdl2 ..12:34
slvn_libsndio12:34
suebtyeah ...12:34
slvn_what is the output of the configure script ? "audio driver ..."12:36
suebtAudio drivers   : disk dummy oss12:41
suebtVideo drivers   : dummy opengl_es2 mir12:41
suebtInput drivers   : linuxev linuxkd12:41
suebtUsing libudev   : YES12:41
suebtUsing dbus      : YES12:41
suebtUsing ibus      : NO12:41
suebtWhat I'm just wondering, kivy wants libSDL2_image, libSDL2_ttf and LibSDL2_mixer as well.12:41
suebtMight it be that those require libsndio?12:41
slvn_no,12:43
slvn_but I have found your issue12:43
slvn_you need more dependencies in your chroot12:44
slvn_in your script "setup-partial-armhf-chroot.sh"12:44
slvn_you need to add some dependencie :12:44
slvn_builddeps+=" libfreetype6-dev libfreetype6 libpng12-dev libjpeg8-dev"12:44
slvn_builddeps+=" libpulse-dev libpulse012:44
slvn_this is probably the reason for I have a different line "Audio drivers"12:45
suebtslvn_: Sorry, what script are you talking about?12:48
slvn_suebt,  I prepare my partial chroot to compile, with a script from mir.  Maybe you did it another way.12:50
slvn_Anyway, you need to have the previous packages installed12:50
slvn_so that the "configuration" of SDL2 is done correctly12:50
suebtAh ok :) Would you mind sharing your script?12:51
=== francisco is now known as Guest87927
slvn_suebt,  there was a little tutorial + files there : https://bugzilla.libsdl.org/show_bug.cgi?id=280512:54
ubot5`bugzilla.libsdl.org bug 2805 in *don't know* "resources to build SDL libs on ARM Ubuntu touch" [Normal,New]12:54
slvn_I will update it12:54
bregmajust out of curiosity, why are you guys trying to build libSDL instead of using the pre-built binaries available in Ubuntu Touch?12:56
suebtslvn_ nice, thanks12:56
suebtbregma: I tried those too. There is the same problem with sndio ...12:57
slvn_suebt, I have updated the previous ticket ..12:59
slvn_bregma, when I was compiling SDL2 there was no pre-built binaries available for ubuntu touch .. I also have a couple of minor patches  ..13:01
suebtslvn_: thanks I'll try it again with your scripts13:01
slvn_the tutorial is from 2014-12-06 ...13:01
slvn_you may have an issue with the "fullscreen" mode, because the status bar is still there ...13:03
slvn_you need to add "MIR_mir_surface_spec_set_state(spec, mir_surface_state_fullscreen);"  after "MIR_mir_surface_spec_set_name(spec, "Mir surface");" in the file "src/video/mir/SDL_mirwindow.c"13:03
bregmaslvn_, ah, right, it was supposed to be available but I guess someone (me) didn't follow through -- it is available in the PPA https://launchpad.net/~mir-team/+archive/ubuntu/staging but I think bschaefer needs to update that, too13:04
=== alan_g|lunch is now known as alan_g
bregmaI'll see if I can poke him to make sure it's up-to-date and available somewhere13:05
suebtslvn_: hah, I'd be happy if I would get this thing running at all /0\13:05
bregmahe'll be online in a couple of hours13:05
bregmahe's the guy who maintains the Mir port13:07
slvn_I found the issue .. https://bugs.launchpad.net/qtmir/+bug/151933813:08
ubot5`Launchpad bug 1519338 in QtMir "API "mir_surface_apply_spec" is not supported in qtmir/u8 " [Medium,Confirmed]13:08
slvn_I have to go away, I be back in 1 hour.++13:09
=== chihchun_afk is now known as chihchun
=== HobGoblin is now known as UukGoblin
=== chihchun is now known as chihchun_afk
=== dandrader_ is now known as dandrader|afk
bschaefersuebt, hey, soo hmm not really sure why that library would cause you issue, you're trying to run a program from the command line for unity8?15:10
bschaeferor do you have your own mir server running?15:10
bschaeferas otherwise you'll get blocked, since you should have a *.desktop file in order to run on U815:10
suebtHey bschaefer, I'm running on the phone!15:11
bschaefersuebt, right, but you're trying to run the application from the command line for U8?15:12
suebtYes.15:12
bschaeferyou need a *.desktop file in order to be approved to run on unity815:12
bschaeferotherwise you'll be blocked and strange things can happen (ie. no window can be created)15:13
bschaefer[CRITICAL          ] [Window      ] Unable to find any valuable Window provider at all!15:13
bschaeferthat seems like the main error to me15:13
suebtOh kay, that would be a very simple solution for this problem.15:13
bschaeferhopefully it is the solution :)15:13
suebtHow can I archieve this?15:13
suebtI mean how do I set the desktop file path when running it?15:13
=== dandrader|afk is now known as dandrader
bschaefersuebt, i usually copy the webbrowser-app.desktop15:14
bschaeferin /usr/share/applications15:14
bschaeferand change the exec path to the path of my binary15:14
bschaeferor a script file15:14
suebtOkay, so I should just start it via the launcher.15:14
bschaefersuebt, the other thing you might want to include is SDL_VIDEODRIVER=mir15:14
bschaefersuebt, yes! Or in the dash15:15
bschaeferonce you get a new *.desktop file up, just search for the name you set in Name=15:15
suebtOkay, I'll try both, thanks!15:15
bschaeferlet me know!15:15
suebtsure :)15:15
bregmaput your custom .desktop file in ~/.local/share/applications15:20
bregmause the "env" command in the Exec= line to set environment variable when running15:21
bschaefersuebt, bregma knows best ^15:21
bregmaif you do not launch using a .desktop file, the Unity 8 Mir server will reject the connection (this prevents thinks like keylogging attacks)15:21
bregmaif you want to launch from the command line instead of the Dash, you will still need a .desktop file and pass it to the ubuntu-app-launch tool15:23
suebtokay, thank you bregma, bschaefer, I'm trying...15:23
suebtI now have the Exec line "Exec=env KIVY_WINDOW=sdl2 SDL_VIDEODRIVER=mir /home/phablet/Documents/mainv3/main".15:23
suebtIt hangs on the startup splash screen. How can I read command line output when starting the app from the dash?15:24
bschaeferIIRC the sys log will let you know if its rejected and you can look in ~/.cache/upstart/<desktop_file_name_log> for more info15:24
bschaefersuebt, check ~/.cache/upstart/ and the name of the desktop file15:24
bschaeferlike legacy application <desktop file name> something like that15:25
suebtAh, thanks bschaefer. Okay, hmm ... the kivy environment variable didn't work this time, was my exec line correct?15:26
bschaefersuebt, i usually just make the Exec line point to a *.sh file :)15:27
suebtwill do :)15:27
bschaeferjust a simple bash script that exports the env15:27
bschaeferthen execs your app15:27
suebt/home/phablet/Documents/mainv3/start.sh: 3: ./main: not found15:32
suebthmm, it won't find my executable from within that script oO15:32
bschaeferwell sounds like the path is off :)15:32
suebtit doesn't work with the absolute path as well -.-15:33
* bschaefer isnt sure though15:34
bschaefersuebt, best bet is to just do exec <full/path/to/main>15:34
* bschaefer internet died15:35
bschaefersuebt, umm you saw the part about full path to main?15:35
suebtyep, thx, one moment15:35
suebtbschaefer: All right, it "works" now (the path is right now), but it crashes with the same error as before: http://paste.ubuntu.com/15560297/15:37
bschaeferwell : [CRITICAL          ] [Window      ] Unable to find any valuable Window provider at all!15:37
bschaeferisnt a good sign :)15:37
suebtyeah :/15:38
* bschaefer seems to keep having internet issues15:45
* bschaefer writes a simple SDL2 app15:45
bschaefersuebt, http://paste.ubuntu.com/15560412/15:55
bschaeferif you can cross compile that for ubuntu touch15:55
bschaeferthen test that works15:55
bschaeferfor Mir15:55
bschaeferon U815:55
suebtAllright, will try bschaefer15:56
bschaeferopps, replace ... that third error with failed to create renderer :)15:56
suebtok15:56
suebtmeh, my chroot seems broken, trying to install libsdl2-dev to it, "E: Unable to correct problems, you have held broken packages."16:02
=== tvoss is now known as tvoss|dinner
bschaefer:(16:03
suebtlet me create a new one16:03
suebtneed to go off now, I let the sdk create a new chroot and will try it as soon as I'm back.16:05
suebts/let/currently letting16:05
bschaefersuebt, ill be around!16:07
suebtgreat :) I'll have some pizza see you in 1-2h16:08
=== alan_g is now known as alan_g|EOD
=== dandrader is now known as dandrader|afk
=== dandrader|afk is now known as dandrader
suebthey, I'm back, having some trouble though18:49
suebtCan't I install libsdl2-dev to my click chroot? It still doesn't works ...18:50
bschaefer:(18:52
suebtHow do you do this?18:52
* bschaefer isnt to good with clicks... i usually just use a pbuilder18:52
bschaeferslvn_, posted this earlier: https://bugzilla.libsdl.org/show_bug.cgi?id=280518:52
ubot5`bugzilla.libsdl.org bug 2805 in *don't know* "resources to build SDL libs on ARM Ubuntu touch" [Normal,New]18:52
suebtOkay, let me try with the includes from the source code-18:52
* bschaefer isnt 100% how helpful that is18:52
suebtc++ noob question how do I tell the compiler where it finds additional includes?18:53
bschaefer-I18:54
bschaefer-I/path/to/includes18:54
suebtah right, thx18:54
slvn_suebt,  the scripts from the SDL2 ticked should work pretty fine ... I spent hours to update them in order to make minimal user action18:55
bschaefernp18:55
suebtslvn_ I tried it but it failed for me :| it was missing something, I gave up in the end :/18:56
slvn_well I use it, and got +10 apps published ... if you report the error I may help you ... though it should be better to use the official package ..18:58
suebtlet me try again.19:05
suebtslvn_ it says: "gpg-error, gpg could not been executed (is it installed?)" (translated)19:19
suebt*gpgv http://paste.ubuntu.com/15562381/19:21
slvn_suebt,   "sudo apt-get install gpgv"  ?!19:36
slvn_you need to install this tool ..19:36

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