/srv/irclogs.ubuntu.com/2014/08/10/#ubuntu-app-devel.txt

ybonAnyone knows what is qmlplugindump and if it's "normal" that it take one CPU at 100% when QtCreator is running? cf http://i.imgur.com/4lUL65E.png11:17
nik90ybon: it is a known bug. you can kill it to stop that11:18
nik90it will restart automatically when required so you wouldn't lose anything by killing it11:19
ybonok, thanks :)11:21
ybonnik90: do you have UbuntuComponent 1.1 on your laptop?11:21
ybon(killed, fans thanks you :) )11:21
nik90yeah I have 1.1 on my utopic vm11:23
yboncool11:23
ybonis the VM in 14.04?11:23
nik90yeah11:23
ybonif yes, do you know that ppa I need to add to upgrade?11:23
nik90to upgrade?11:24
ybonsorry, to have UbuntuComponents 1.111:24
nik90you can't get 1.1 on 14.0411:24
nik90it requires qt 5.3 which won't be backported to 14.0411:24
ybondamn11:25
nik90if you want to stick with 14.04, you can run your apps in the emulator11:25
yboninteresting11:25
yboncan I run that from QtCreator?11:25
nik90yeah11:25
nik90the SDK tools (like the emulator tools, qtcreator) etc are constantly updated to support devs running 14.04 but want to emulate their apps in 14.1011:26
yboncool11:26
popeyybon: bug 128123711:37
ubot5bug 1281237 in Ubuntu UI Toolkit "qmlplugindump hangs at 100% CPU with qtorganizer5-eds" [High,Confirmed] https://launchpad.net/bugs/128123711:37
ybonthanks popey11:37
popeynp11:38
nik90actually that bug only applies when you are trying to build and install ui-toolkit manually11:38
ybonah11:38
ybonI've just ran QtCreator, tbh11:38
nik90which was fixed actually, I am able to build and install now11:38
ybonhumm, I've tried running an emulator, but I only have a black screen atm11:45
ybonwhile if no more stdout on my console11:45
ybonwhich seems to mean it finished11:45
ybonlast line: [  140.460000] systemd-logind[909]: Failed to apply ACLs: Operation not supported11:45
ybonclosed and restarted, but still black11:53
ybonAnyone running on 14.10 on its day to day computer?11:59
* ybon wonder if its not easier to upgrade its laptop at the end12:00
popeyI'm tempted to upgrade my laptop. so far I've kept on 14.0412:06
nik90mzanetti: https://code.launchpad.net/~twstd-dev/ubuntu-clock-app/1350433/+merge/230211 seems to do the trick12:19
nik90mzanetti: the world city list loads in less than 1 sec compared to the original 4-5 secs on the phone12:20
mzanettinik90: didn't test it... still not sure what exactly the big difference is just by reading through it. but if its faster, yay.12:24
mzanettinik90: you sure the times are up to date?12:24
mzanettilooks like data() uses some cached/outdated currentDateTime now12:24
nik90mzanetti: yeah I am testing that atm12:27
nik90mzanetti: the times are correct when the worldcity page is loaded and but it doesn't seem to respect the updateInterval. So it doesn't update anymore. Only way to update is by closing and reopening the page.12:36
mzanettiyeah... what I suspected12:36
mzanettinik90: well, imo you should revert the changes in the data() method12:36
mzanettinik90: they don't improve performance and introduce that bug12:36
nik90ok I will note that on the MP12:37
mzanettinik90: one question: what's the ETA for the new clock app to land?12:40
nik90mzanetti: I have been trying hard to get it done asap. But we are blocked by cmake issues and packaging atm.12:41
nik90mzanetti: technically we have already met around 95% of the design spec that was handed over to us.12:42
nik90so once the packaging stuff is done, we replace it immediately12:42
mzanettinik90: speaking of cmake... I can't build it: /bin/sh: 1: INTLTOOL_MERGE-NOTFOUND: not found12:42
mzanettiah... got it12:43
mzanettido'h. its the old one :D12:43
nik90mzanetti: new or old clock app?12:43
nik90mzanetti: yeah you need intltool package (for translation)12:43
mzanettiwhere's the new one if I want a clean checkout?12:43
nik90lp:ubuntu-clock-app/reboot12:44
mzanettithx12:44
nik90np12:44
mzanettinik90: the new one won't get a stop watch and timer any more?12:46
nik90mzanetti: not for RTM np12:51
nik90no*12:51
mzanettinik90: ack12:51
mzanettinik90: I was just curious... not that I would miss it that much12:51
nik90mzanetti: either way timer won't work properly when the app is suspended since it cannot notify the user when done.12:52
mzanetti...12:52
mzanettinik90: found the issue13:05
mzanettinik90: it's indeed the creation of QTimeZone objects that is slow like hell13:05
mzanettinik90: lp:~mzanetti/ubuntu-clock-app/perf++13:07
nik90wow testing now13:12
mzanettinik90: https://code.launchpad.net/~mzanetti/ubuntu-clock-app/perf++/+merge/23023213:13
ybonogra_ \o/ (re tethering)13:13
mzanettiybon: *applause* :)13:14
mzanettiybon: bluetooth tethering?13:15
nik90mzanetti: USB Tethering for internet13:15
mzanettiawesome13:15
nik90https://lists.launchpad.net/ubuntu-phone/msg09388.html13:15
mzanettireally cool :)13:16
ogra_:)13:16
mzanettinow, if the phone could run a stop watch it would actually become really useful :D13:16
nik90:P13:16
nik90mzanetti: btw on testing on the phone, I get the same performance boost with minimal code change.13:17
mzanettiwhat you mean with mimimal code change?13:17
mzanettinik90: you mean my mp?13:18
mzanettinik90: my measurements say its 20 times faster13:18
mzanetti450ms down to 22ms13:18
nik90yeah I meant compared to the other MP without changing too much of what's implemented, you achieve the 22ms performance boost13:18
mzanettinik90: yeah... it's really just the bad QTimeZone(const QByteArray &timeZoneId) constructor in Qt13:19
mzanettithat one is the slow one and before we were calling it in every data() call, now only when parsing the xml file13:19
nik90ah ok13:19
mzanettinik90: the changes in line 24 and 26 in the diff wouldn't even be required and it would still improve it the same way13:21
* popey hugs mzanetti 13:21
mzanettipopey: :)13:21
mzanettipopey: seen the ISS or what?13:22
popeyIt was more the above conversation, as well as the ISS ☻13:23
ybonAny hint why my emulator would be all black?13:23
popeyNot sure about the app name though ☻13:23
nik90ybon: which image?13:23
ybon17913:24
nik90hmm that ran well for me13:24
ybonon 14.04?13:24
nik90yes13:24
ybonok13:24
ybonnik90: have you run something else than the commands here https://wiki.ubuntu.com/Touch/Emulator#Installing_the_pre-built_emulator ?13:27
nik90no13:27
nik90let me try again now13:28
nik90ybon: ^^13:28
nik90ybon: give me a few minutes since I need to download the emulator again to update it to the latest image.13:29
nik90ybon: I tried it 2 days back and the only issue I had was the app header was not placed correctly and a performance issue13:29
nik90ybon: although images <175 ended in a black screen13:30
ybonah13:31
mzanettinik90: hey, I've pushed once more to the branch. now its down to 1ms14:01
nik90mzanetti: yup its a bit faster now14:04
nik90bah...you cannot run a VM and a Emulator at the same time in the host machine.14:11
nik90You need to stop one of the either14:11
ybonnik90: have you been able to run 179?14:18
nik90ybon: I currently have opened it, it is booting up14:18
nik90I had to close my VM to try it out14:18
ybonoh, ok, now I understand your previous message14:19
nik90ybon: ok it works for me14:19
nik90I tried image #18414:19
nik90ybon: in qtcreator, try creating the emulator and use the devel-proposed channel14:20
ybonhumm,  I don't see where in QtCreator :(14:21
nik90ybon: go to devices tab in the left sidebar14:21
nik90ybon: in the devices tab, there is a "+" button in the bottom which shows a nice gui to create a emulator14:21
nik90no need for terminal commands14:21
ybonok, got it :)14:22
nik90:)14:22
ybonI don't have a "+" but a "create a new emulator" button14:23
ybonseems to be doing something :)14:23
nik90in the log, it will show you the download process %14:24
nik90btw did you choose "DevelProposed" in the dialog14:24
ybonno, I didn't see any dialog :s14:25
ybonnow the image is finished, but I think it's still 17914:25
ybonand if I run it from QtCReator, same black screen14:25
ybonI can just rerun from command line with the channel parameter14:26
nik90it takes a bit ~1 min on my machine14:26
nik90ybon: can you take a screenshot of your devices tab for me.14:26
nik90you might be on a older qtcreator version i think14:26
ybonhttp://i.imgur.com/HAuHSMQ.png14:27
ybonCreating "emulator181" from devel-proposed revision 18114:27
ybon(running from command line :) )14:28
nik90ybon: wow your qtcreator is ancient :P14:30
nik90ybon: check if you have https://launchpad.net/~ubuntu-sdk-team/+archive/ubuntu/ppa14:30
nik90ybon: no idea why u get 181 and I get 18414:31
mzanettinik90: hey, twstddev told me the alarm model would crash when deleting an alarm14:32
mzanettinik90: https://code.launchpad.net/~mzanetti/ubuntu-ui-toolkit/parent-alarms/+merge/23023314:33
nik90mzanetti: was your fix any chance related to fixing https://bugs.launchpad.net/ubuntu-ui-toolkit/+bug/1337405 ?14:34
ubot5Ubuntu bug 1337405 in Ubuntu Clock App reboot "Clock App crashes frequently when UCAlarmModel::clear() is called" [Critical,Triaged]14:34
mzanettinik90: *very* likely14:34
nik90mzanetti: but yes it crashes the clock app occasionally :/14:34
nik90mzanetti: sweet14:34
mzanettinik90: I'm 99.99% sure this fixes it14:34
nik90mzanetti: I will test it out and see how it goes :) thnx for the rapid 2 bug fixes. The latter bug being present for several months now14:35
ybonnik90: thanks, I'm upgrading now :)14:36
mzanettinik90: ouch...14:36
nik90popey: quick question do you hear the audio in the video I attached in https://bugs.launchpad.net/ubuntu-ui-toolkit/+bug/135104814:39
ubot5Ubuntu bug 1351048 in Ubuntu UI Toolkit "Apps are extremely laggy as of emulator image >=165" [Undecided,New]14:39
nik90popey: I cannot seem to unmute the audio in the video playback14:39
nik90mzanetti: during my preliminary testing, I couldn't reproduce the crash however hard I try :P14:47
* mzanetti knocks on wood14:49
mzanettinik90: nah... I'm sure this is it14:50
mzanettihave been running into the exact same issue with the launcher already14:50
nik90:)14:51
popeynik90: yes, i do hear the audio in that video15:08
popey(on my laptop)15:08
nik90popey: ok..weird on my laptop (firefox) it is muted and I cannot unmute it..but anyways rsalvetti should find this helpful. thnx15:09
* nik90 is in a good mood15:09
popeyheh15:15
ybonis there a way to set a CheckBos has readOnly?18:57
ybonCheckBox*18:57
mhall119ybon: all visual componetns extend from QtQuick.item, which has an 'enabled' property, have you tried setting that to False?19:02
mhall119http://developer.ubuntu.com/api/qml/sdk-14.10/QtQuick.Item/#enabled-prop19:02
ybonexcellent mhall119 thanks :)19:05
doflahertydo I need 14.10 on the desktop to get the latest qml api?19:20
nik90doflaherty: yes19:24
nik90doflaherty: or use 14.04+Emulator19:24
nik90doflaherty: atm I use 2 method while remaining on 14.04. The first being with the Emulator. The other being running a 14.10 VirtualBox Machine for coding and running. You can use whichever one works for you19:26
doflahertyok, thanks19:28
=== DanChapman|Weddi is now known as DanChapman
ybonAnyone knows what does that mean, when I try to install an app on device from QtCreator: http://i.imgur.com/oUVhlu2.png?19:51
nik90ybon: you are using the wrong kit19:53
ybonwhat's a kit? :)19:53
ybonI didn't even know I was using a kit at all ;)19:54
nik90go to Tools->Options->Ubuntu and check if you chroots installed for the platform you are trying to create a clickpackage fo19:54
nik90for*19:54
ybonok19:55
nik90ybon: http://developer.ubuntu.com/apps/sdk/tutorials/building-cross-architecture-click-applications/19:55
ybonoh, thanks :)19:56
nik90:)19:56
mzanettinik90: hey20:45
nik90mzanetti: hey20:45
mzanettinik90: is there already a bottom edge component in the sdk?20:45
nik90mzanetti: there is a bottom panel that is used by the music app to show the now playing toolbar20:46
mzanettinik90: no, I'm talking about that thing to pull up a new page20:46
nik90mzanetti: nope the sdk doesn't have it yet20:46
ahayzennik90, is he not asking about the PageWithBottomEdge ?20:46
nik90ahayzen: yes, but it is custom and not part of the sdk20:46
mzanettihmm, ok20:46
nik90mzanetti: You can take it from the address book app20:47
nik90mzanetti: that's what dialer, clock, several other 3rd party apps are using atm20:47
ahayzennik90, the weird thing is that i was http://bazaar.launchpad.net/~phablet-team/dialer-app/trunk/view/head:/src/qml/PageWithBottomEdge.qml20:47
ahayzennik90, but that doesn't exist anymore and i can't see it anywhere in http://bazaar.launchpad.net/~phablet-team/dialer-app/trunk/files/head:/src/qml/20:47
nik90ahayzen, mzanetti: https://bazaar.launchpad.net/~phablet-team/address-book-app/trunk/view/head:/src/imports/Ubuntu/Contacts/PageWithBottomEdge.qml20:48
nik90ahayzen: that's because they implemented it in addressbook and then import Ubuntu.Contacts in other apps20:48
nik90ahayzen: instead of duplicating code20:48
ahayzennik90, ah20:48
ybonhumm, I think I'm lost with the kit thing20:48
* ahayzen is currently hacking around with bottom edge for music-app :)20:48
nik90ybon: how can we help? Where are you lost/20:49
ybonnik90: I'm installed armhf as in the tutorial, but now when I hit ctrl-R it doesn't run anymore on my desktop20:49
ybon(plus I'm not able at the moment to run it neither on my device nor on the emulator)20:50
nik90ybon: ok in the bottom left, you can easily switch kits to run in their appropriate environments20:50
nik90ybon: ok let's say you have a project open.20:50
ybonoh, nice :)20:50
nik90ybon: go to the projects tab in the sidebar and then at the top you should see add kits20:50
ybonIf I put desktop back, I can run it locally again, thanks :)20:51
nik90ybon: here you choose kits according to where you want to run your app20:51
nik90ybon: exactly20:51
ybonthat's great20:51
ybonnow if I want to run in on my device20:51
nik90ybon: the best part is this way of launching apps is consistent among different types of projects20:51
ybon(the emulator is damn slow)20:51
nik90ybon: you then choose the kit that is armhf20:51
ybonso if I put armhg, hitting ctrl-R should run the app on the device, right?20:52
nik90ybon: yup20:52
nik90ahayzen: I finally got multiselect mode for my alarm list working :D20:53
nik90ahayzen: it is now possible to delete multiple alarms in one go20:53
ahayzennik90, sweet :) the listitem actions code for music is currently under review...guess i'll have to add multi-select in the second iteration20:53
ahayzennik90, we do have basic reordering though :)20:53
ybonok, something wrong in my app, then, because I've seen the device having focus, but then it was stuck on the dash20:53
ybonmy app is 20 lines of QML :p20:53
nik90ahayzen: cool. You can borrow the multiselect stuff from addressbook again if you want20:54
ahayzennik90, i probably will do thanks :)20:54
nik90ahayzen: https://code.launchpad.net/~nik90/ubuntu-clock-app/add-multiselection-mode/+merge/23014020:54
nik90ybon: strange20:54
ahayzennik90, just we have loads of 'out of tree' stuff to maintain lol20:54
nik90ybon: do you see the app loading animation?20:54
ybonnope20:54
ybonI see the log in QtCreator without error20:55
ybonAh20:55
ybonwait20:55
ybonnow I see it20:55
nik90ahayzen: I have bottom edge, multiselect, swipe delete and fast scroll as upstream components20:55
ybonbut wow, it's fireworks :p20:55
ybonand bam, crash20:55
nik90ahayzen: although I haven't modified it so a simple copy paste should help20:55
nik90ybon: qtcreator crash?20:55
ybonno, device20:55
nik90oh20:56
ybon20 lines of evil QML, it seems :p20:56
ahayzennik90, yey we have WIP bottom edge (with custom panel state, linkage to our toolbar and reparenting the bottom edge component) ... listitem actions (with custom reorder and a few minor tweaks)20:56
ybonI'm just trying to push an app for debugging the GPS status20:56
nik90ybon: just try a really simple qml app which outputs a string to see if this kit stuff works for you20:57
ybongood idea20:57
ybonlet's just remove everything from my app20:57
ybonwell, let's push that somewhere on the cloud before, just in case :p20:58
ybonOK, I lied, 92 lines of QML: https://github.com/yohanboniface/GPSStatus/blob/master/GPSStatus.qml20:59
ybonnow let's make it two lines and test again :)20:59
nik90hehe21:00
ybonlibust[28253/28257]: Error: Error opening shm /lttng-ust-wait-5-32011 (in get_wait_shm() at lttng-ust-comm.c:886)21:00
ybonring any bell by chance?21:00
nik90nope21:00
ybonhuhu, the device's screen is going totally crazy21:01
yboncrashed again21:01
ybonthere is a kind of nautilus window that appears sometimes on the devices, very weird21:04
ybonthis is what my minimal app looks like: http://pastebin.ubuntu.com/8011106/21:05
nik90ybon: if you are getting a nautilus window then it cannot find the .qml file and is trying to show you the file open dialog :P21:07
ybonah21:07
ybonthat's a good point :)21:07
nik90ybon: may be try running the template project?21:07
ybonmeans that my .desktop is wrong?21:07
ybonright21:07
ybongood news, template project works :)21:09
ybonpath in .desktop was wrong, thanks one more time nik90 :)21:10
ybonbut I'm happy that now I know I to display fireworks on my device21:13
nik90:P21:18
nik90ybon: yw21:18
ybon:)21:20
mzanettipopey: one more coming in :)22:06
mzanettipopey: now supporting london area ;)22:06
mzanettinik90: hey, not sure if twstddev did catch you before he left... He found out you're using a Repeater for the timezone list22:27
nik90mzanetti: yeah I talked to him22:45
mzanettiok22:45
nik90mzanetti: I am using a ListView for the list we are trying to optimize22:45
nik90mzanetti: I am using a repeater only for the world city in the main page22:45
mzanettinik90: ah ok..22:46
mzanettinik90: yeah well, you shouldn't use a repeater there either22:46
nik90mzanetti: true, but I had to22:46
nik90mzanetti: we want to avoid the situation of having a ListView inside a Flickable22:46
mzanettinik90: wait...22:46
mzanettinik90: which file is that?22:47
nik90one sec22:47
nik90mzanetti: https://bazaar.launchpad.net/~ubuntu-clock-dev/ubuntu-clock-app/utopic-3.0/view/head:/app/clock/ClockPage.qml22:47
nik90mzanetti: oh btw I am able to get the responses to http://geoname-lookup.ubuntu.com/?query=Farnborough&release=utopic properly now. Just figuring how to use QVariant to extract and assign correctly :)22:49
mzanettinik90: variant.toMap().value("key").toString()22:49
mzanettifor example22:49
mzanettinik90: where is the list we're trying to optimize?22:50
nik90mzanetti: yes I did that before.but I dont know how to parse each object individually since there are several "keys"22:50
nik90mzanetti: https://bazaar.launchpad.net/~ubuntu-clock-dev/ubuntu-clock-app/utopic-3.0/view/head:/app/worldclock/WorldCityList.qml22:50
mzanettinik90: right... I guess the Repeater in the UserWorldCityList is ok... that only has a few entries anyways, right?22:51
nik90mzanetti: yes, it only houses the cities chosen by the user. so atmost 5-6 I guess22:52
mzanettinik90: ack... Repeater is fine then22:52
nik90yes22:52
mzanettipopey: hey. Do you know whom to bug about this? http://i.imgur.com/hgoxvJy.png :D22:55
nik90mzanetti: if I have a QVariant like http://paste.ubuntu.com/8011834/ which has multiple QVariantList inside it, how do I access the first object and so on?22:59
nik90variant[0] didnt work22:59
mzanettivariant.toList().first()22:59
mzanettivariant.toList().at(5)22:59
nik90ah23:00
mzanettiforeach (const QVariant &entry, variant.toList()) { qDebug() << entry; }23:00

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