**** BEGIN LOGGING AT Sun Sep 06 02:59:58 2015 Sep 06 07:18:31 Tofe: I guess the combination of your fix for the path and my increasing of the allowed DB size fixed the issue with Paper Mache app ;) Sep 06 07:18:37 It now launches on latest nightly :D Sep 06 07:24:45 I still have a few apps that break Sep 06 07:25:03 Let me try the "Les Echos" one Sep 06 07:36:22 Tofe: For "Les Echos" it seems that it uses a plugin an we don Sep 06 07:36:27 't support that. Sep 06 07:37:03 For now it might be a good idea to make sure we deal with these properly by simply not trying to run them? These are indicated by "plug-ins": true in the appinfo.json Sep 06 07:37:13 morphis: ^ What are your ideas? Sep 06 07:51:04 For the various radio apps that don't work it seems also to be appinfo.json related Sep 06 07:51:15 They all have "fqsn": "Global:Heart_Network:Heart_London" in there Sep 06 07:51:30 Where fqsn is not in the official HP/Palm specs but does seem to work on legacy somehow? Sep 06 09:01:19 Morning! Sep 06 09:05:26 Tofe: morning Sep 06 09:05:34 Saw my comments above? Sep 06 09:05:41 I'm testing a bunch of more apps now ;) Sep 06 09:05:49 Herrie: That's quite good news, we seem to have reached a point where many apps now run alright Sep 06 09:06:02 Tofe: Yeah Sep 06 09:06:17 We don't support the plugin kind currently.Hence the "Les Echos" doesn't work Sep 06 09:06:27 What's a plugin actually? Sep 06 09:06:30 But it currently breaks other stuff. So it would be good to deal with that more gracefully Sep 06 09:06:48 It's a bit of a hybrid app I think where you have Enyo or Mojo + some compiled stuff Sep 06 09:08:19 " Boolean: Set to True if your application requires the use of hybrid Plugins. Only available in webOS 2.x+ " Sep 06 09:08:25 you mean C++ compiled stuff ? Sep 06 09:08:40 Yeah Sep 06 09:08:53 ah, that can't be good for us... Sep 06 09:09:08 Yeah Sep 06 09:09:40 Because it would use legacy SDK/PDK with Pslm hooks we don't have Sep 06 09:09:57 yuyp, at best Sep 06 09:10:20 at worst, it is just compiled for another arm architecture that we don't support Sep 06 09:10:57 So in it's set to true in appinfo.json we shouldn't try to launch it and even better display a message to user (popup) that it's not supported Sep 06 09:11:42 yes, that's a good idea for now I guess Sep 06 09:11:59 (and maybe for later, also, if there's no good solution to this) Sep 06 09:12:03 Because currently because it doesn't launch it breaks the power menu etc ;) Sep 06 09:12:09 And that's nasty Sep 06 09:12:16 yup Sep 06 09:12:18 Not sure to what extend it would be difficult to get a popup to show Sep 06 09:12:38 LunaAppMgr is on the front line Sep 06 09:12:55 Best to stop before we started anything Sep 06 09:13:37 Yes Sep 06 09:13:57 So LunaAppMgr would get a status from the ApplicationDescription, see that it's an error, and send a message on LS2 to require a popupalert or something Sep 06 09:19:54 Tofe: Yes Sep 06 09:19:57 Something like that Sep 06 09:20:04 Shouldn't be too hard right? Sep 06 09:20:23 You want me to send you the offending IPK to test with? Sep 06 09:32:23 if you wish, otherwise I can just modify an existing appinfo Sep 06 09:43:54 On it's way Sep 06 09:46:11 ok thx Sep 06 09:53:23 Tofe: I guess the other issue we have with apps not launching and breaking stuff is the "onStageReadyTimeout()" kicking in sometimes? Sep 06 09:55:23 Tofe: Found another issue with some app that doesn't want to launch: "Sep 06 05:53:55 mako LunaWebAppManager[1505]: ** (process:1603): WARNING **: isAllowedFileAccess: *** NOT ALLOWING FILE ACCESS *** caller: .media.cryptofs.apps.usr.palm.applications.com.postmedia.touchpaper.starphoenix.index.html target: /media/cryptofs/apps/usr/palm/applications/com.postmedia.touchpaper.ottawaciti Sep 06 09:55:23 zen/index.html" Sep 06 10:00:31 Speaking of which, I'd like to know the rational for the onStageReadyTimeout introduction Sep 06 10:00:33 morphis: ^ Sep 06 10:17:01 Tofe: Above error might be solved with enabling: experimental.preferences.fileAccessFromFileURLsAllowed? Let me see what the apps code tries to do Sep 06 10:18:39 mmh we have to be careful with that one Sep 06 10:18:46 Yeah.... Sep 06 10:18:51 Let me check the app code first Sep 06 10:20:49 Hmmz this also uses custom appinfo.json fields... Sep 06 10:21:06 this.$.advert.setUrl("http://ad.mo.doubleclick.net/dartproxy/mobile.handler?k=" + enyo.appInfo.pmAdSite + "/index;sz=185x50;nk=ccn;pr=" + enyo.appInfo.pmAdPr + ";ck=index;page=index&r=h&t=i&c=n&forecast=1") Sep 06 10:21:25 where pmAdSite and pmAdPr are custom fields in the appinfo.json Sep 06 10:22:41 Already found apps from different devs now that use this Sep 06 10:22:49 Seems it's not really documented though :P Sep 06 10:58:49 nizovn: Nice work on the scroll indicator Sep 06 10:59:18 i just copied it :) Sep 06 11:02:40 but it shows how we can get access to flickable part of webview, if needed Sep 06 11:23:10 nizovn: It's helpful for sure Sep 06 11:59:12 Tofe: I've identified the problem is the call to appinfo.json Sep 06 11:59:18 When I put in the hard values these apps work Sep 06 12:04:14 what do you mean, putting the hard values? Sep 06 12:08:14 Tofe: When I replace the enyo.appinfo.xxx with the actual value from appinfo.json so it doesn't use the enyo.appinfo.xxx calls Sep 06 12:08:40 So this way I'm sure it's the call to enyo.appinfo.xxx which was causing the issue ;) Sep 06 12:09:36 And not something else Sep 06 12:10:06 ah ok :) Sep 06 12:10:22 Seems there are quite some paths to which we need to allow file access Sep 06 12:14:31 At least according to libWebkitLuna.so from legacy Sep 06 12:18:29 But how can we control which paths are allowed/refused? Sep 06 12:18:51 Or our infrastructure already does that, only we never authorize file access in WebView? Sep 06 12:19:07 Not sure Sep 06 12:19:14 I think morphis included some paths somewhere Sep 06 12:19:18 I just don't remember where Sep 06 12:22:43 Tofe: a/8 Sep 06 12:22:51 Oops: http://tinypic.com/r/2s0la3a/8 Sep 06 12:29:05 Tofe: There's this in OWO: https://github.com/openwebos/webappmanager/blob/d5d40487cc28bcf15ed2cc836b78de56920da22f/Src/webbase/SysMgrWebBridge.cpp#l488 Sep 06 12:29:14 Not sure where these paths then come into play though ;) Sep 06 12:29:18 Let me see if I can find somewhere Sep 06 12:33:40 Tofe: Hmmz https://github.com/webOS-ports/luna-webappmanager/blob/7d72fcc377d8175b61ce0bde3d0ed0ce8527bd39/src/webapplication.cpp#L72 Sep 06 12:34:48 ah! Well found! So, we actually do some checks Sep 06 12:38:06 Yeah but it seems they don't work somehow Sep 06 12:42:05 It's called from here https://github.com/webOS-ports/luna-webappmanager/blob/master/src/extensions/palmsystemextension.cpp#L214 Sep 06 12:43:52 Where is that isAllowedFileAccess function actually? Sep 06 12:44:17 Tofe: Dunno Sep 06 12:44:23 Could be it's not in there anywhere Sep 06 12:45:16 Message must come from somewhere Sep 06 12:47:28 I cannot find it :S Sep 06 12:47:34 same here... Sep 06 12:48:10 I checked all teh obvious places Sep 06 12:49:06 Could be the fix needs to be somewhere here: https://github.com/webOS-ports/luna-webappmanager/blob/master/src/qml/ApplicationContainer.qml#L176 Sep 06 12:52:04 I don't understand the (webAppWindow.trustScope === "system") test Sep 06 12:53:40 Ah, is that for webapps ? Sep 06 12:54:00 (well, for limiting their rights) Sep 06 12:55:22 Well it seems we limit certain access to system apps only while I think we should be less strict ;) Sep 06 12:56:10 ok, I understand: system apps are the ones with a local URL (beginning with file://) Sep 06 12:57:12 We are not limiting it, on the contrary, we give it the tools to make further calls Sep 06 12:59:05 Let me send you an IPK that tests easier :P Sep 06 12:59:16 maybe ye Sep 06 12:59:18 s Sep 06 13:02:02 Sent you 2 Sep 06 13:02:15 I guess when you add some debug info here and there you can see where it goes AWOL Sep 06 13:02:48 Reboot brb Sep 06 13:06:12 Back Sep 06 13:08:40 It's true that the new apps are somehow placed at random in the app list... Sep 06 13:09:55 luna::PalmSystemExtension::getResource(const QJsonArray&) QJsonArray(["file:///usr/palm/applications/com.postmedia.touchpaper.ottawacitizen/appinfo.json","const json"]) --> refused Sep 06 13:10:51 getting a resource from its own install path seems reasonable enough... Sep 06 13:13:53 I'd like to add that path in the list of allowed paths Sep 06 13:14:22 Yes Sep 06 13:17:20 mmh mUnprivilegedAppPaths << "/var/usr/palm/applications/"; <-- how can that be right ? Sep 06 13:19:42 Wait, there is something strange... Sep 06 13:19:50 I see ' mPrivilegedAppPaths << "/usr/palm/applications/"; // Palm apps' Sep 06 13:20:33 is the app supposed to be priviledged, here ? Sep 06 13:26:34 Not sure in what path it's installed? Sep 06 13:26:43 usr/palm/applications/com.postmedia.touchpaper.ottawacitizen/ looks odd to me Sep 06 13:26:52 me too Sep 06 13:26:53 It should be something in cryptofs I think? Sep 06 13:27:05 yeah, but it's in usr/palm/apps Sep 06 13:27:25 same for lesechos Sep 06 13:27:30 Hmmz Sep 06 13:27:36 Let me check the IPK Sep 06 13:27:39 and weather-widget Sep 06 13:28:14 You used Preware to install? Sep 06 13:28:18 Or OPKG INSTALL? Sep 06 13:28:21 opkg Sep 06 13:30:26 it's much happier with its resources Sep 06 13:30:39 I think the website has changed its API though Sep 06 13:31:29 but yeah, in the end it should be in cryptofs Sep 06 13:32:01 I use Preware Sep 06 13:32:24 I installed trello app using preware, and it is in cryptofs Sep 06 13:32:29 Yeah Sep 06 13:32:35 My apps are in cryptofs Sep 06 13:32:37 let me redo the install using preware Sep 06 13:32:44 I only have our in usr/palm Sep 06 13:33:23 And my N4 is LOADED with apps using Preware ;) Sep 06 13:36:18 ok, it's in cryptofs Sep 06 13:36:22 and it seems to work Sep 06 13:39:14 Triggering onStageReadyTimeout is a disaster Sep 06 13:42:30 Yeah not sure why that's there and what it does Sep 06 13:47:43 But it breaks other stuff which is not good Sep 06 13:49:08 I'm not sure if the apps are functional: IE API's could be broken, but they should at least still run and not break other stuff in the system Sep 06 13:52:05 I think it's because if we don't call that callback, then we won't be able to visualize/destroy the app Sep 06 13:54:07 I already changed the limit from 100ms to 3s Sep 06 13:55:13 Ideally, we should be able to show the loading card while it's... loading Sep 06 13:57:38 Moreover, it's strange, because it's not even about waiting for the app to load, it's just waiting for the appId to be here Sep 06 14:23:16 Tofe: Yeah ;) I'm sure you'll be able to make it work more properly ;) Sep 06 14:27:14 maybe wrong, but i "remember" that onStageReadyTimeout was used to solve bug where just type was opening as white screen, will see in logs Sep 06 14:45:24 nizovn: apparently it was done at the same time, yes, when reworking card visibility trigger Sep 06 14:48:04 ka6sox/morphis: ping Sep 06 14:48:15 Seems I don't have write access to changelog repo still: https://github.com/webOS-ports/changelog/pull/13 Sep 06 14:50:15 Tofe: ok Sep 06 14:52:31 nizovn: https://github.com/webOS-ports/luna-webappmanager/commit/cd03e00721dd50e9b3e569b72fe6f29784872695 Sep 06 15:11:24 Herrie: are all the recent commits taken into account in meta-webos-ports? Sep 06 15:11:58 My current build is a mess with all the recent changes, and I'd like to refresh it Sep 06 15:40:59 Tofe: I'm keeping track of things manually since morphis' script isn't there yet, but yes should all be there Sep 06 15:41:05 Latest nightly was OK Sep 06 15:41:20 About to run stable now, but cannot because I don't have changelog merge access it seems Sep 06 15:41:43 ok Sep 06 15:42:06 I thought morphis sorted that last month, but I guess not ;) Sep 06 15:42:17 So need someone to merge it for me or give me access ;) Sep 06 15:43:44 I see Sep 06 15:45:10 Currently I'm trying to make so that closing a window won't also close its children dashboards, but so far I'm only getting luna-webappmanager to crash :) Sep 06 15:50:15 Tofe: Ah ;) Sep 06 15:50:22 WEll I'm sure you get there :D Sep 06 16:15:00 Herrie: https://dl.dropboxusercontent.com/u/4679068/luna-next/luna-webappmanager_0.2.0-8%2Bgit2%2Bd458383343-r0.8_armv7a-vfp-neon.ipk <-- with this, the weather main window can be closed safely Sep 06 16:17:04 Corresponding PR: https://github.com/webOS-ports/luna-webappmanager/pull/32 <-- testing needed, I think. I tried many scenarios on N4, but who knows Sep 06 16:29:17 Tofe: Testing now :D Sep 06 16:42:27 Herrie: It seems the Google Maps webapp doesn't work anymore. Sep 06 17:24:55 TOfe: 72ka's Enyo2 app or the one in Preware? Sep 06 17:28:40 The one that we can install in Preware Sep 06 17:37:58 Could be useragent or something Sep 06 17:38:04 Or we call to a wrong API or something Sep 06 18:06:16 Herrie, pong? Sep 06 18:06:34 the changelog repo is used by the autobuilder for reporting Sep 06 18:16:29 ka6sox: I need to merge the changelogs there for each release ;) Sep 06 18:17:01 understood...I'm out today (BBQ) so I can do this tonight or tomorrow morning for me. Sep 06 18:23:22 OK Sep 06 18:23:30 Tofe: I see no regressions in general Sep 06 18:24:43 Herrie: ok; I'm still not very proud of the way I've handled this, maybe morphis could take a look at my PR? Sep 06 18:32:06 If he's around ;) Sep 06 18:32:18 Well it seems to work and doesn't seem to break other things Sep 06 18:32:21 So not too bad Sep 06 18:32:37 I tried PoplaterCE as well (without WiFi connection) to get the dash and it's OK there too :D Sep 06 18:35:26 I think it is a little buggy though Sep 06 18:35:50 When I leave the dash open and relaunch the app it locks up a bit Sep 06 18:36:01 Also the resizing of dash content is not proper it seems Sep 06 22:13:15 Resising of dash content? **** ENDING LOGGING AT Mon Sep 07 02:59:58 2015