**** BEGIN LOGGING AT Wed Aug 03 02:59:58 2016 Aug 03 04:48:57 I tried a fresh install of the latest testing build, and creating the file /var/luna/preferences/first-use-profile-created just before the final button tap in First Use, and apps would quit before completely launching. Aug 03 04:49:44 Creating it just after First Use exits ppears to have positive results. On second boot, the contacts linker appears to have run. Aug 03 05:32:09 DougReeder: Hmmz interesting. I'm quite sure FirstUse sets a flag in a file somewhere, but from memory that was a different file altogether. Will have a look in a bit. Could be we need to set 2 or adjust the timing a bit. Aug 03 05:32:39 * DougReeder_ nods Aug 03 05:40:55 DougReeder: https://github.com/webOS-ports/org.webosports.app.firstuse/blob/master/plugin/plugin.cpp#l36 Aug 03 05:41:01 That's a different file indeed Aug 03 05:48:50 Let me scan legacy doctor to see what it does there Aug 03 06:37:23 DougReeder_, Herrie: the place to look isn't FirstUse, it's the js service I pointed to Aug 03 06:38:21 It gets launched after FirstUse by our LunaAppManager Aug 03 06:38:43 The FirstUse app only set the run-first-use flag, not the other one Aug 03 06:42:49 Tofe: The strange thing is we do have an "Open webOS"-account in accounts that must have gotten created somehow? Aug 03 07:05:35 Well, there is a failure somewhere, that's pretty sure Aug 03 07:07:03 It should even be reproduceable by hand quite easily Aug 03 07:07:35 https://github.com/webOS-ports/luna-appmanager/blob/master/Src/base/BootManager.cpp#L209 Aug 03 07:18:22 It could be that the JS service is NodeJS and not 100% working with NodeJS 4.x + Aug 03 07:18:38 That's my best guess... I.e. it using something that was deprecated Aug 03 07:27:20 In what repo is com.palm.service.accounts ? Aug 03 07:29:32 I think app-services Aug 03 07:29:45 Yup Aug 03 07:48:10 Tofe: It could just be that the last bit for setting the flag doesn't work in NodeJS 4. Aug 03 07:48:14 Since rest seems fine... Aug 03 07:48:49 The function at the bottom of handlers/create-local-account.js Aug 03 07:49:25 well, we won't know until we start it manually and look at the logs Aug 03 07:49:48 Tofe: Yeah I guess so.... Aug 03 07:50:06 Well we could add some logging, run firstuse and see what appears in the log Aug 03 07:50:42 The Open webOS account exists, I can confirm the account with com.palm.palmfrofile as templateId exists Aug 03 07:51:03 I saw that when querying for some of the IM accounts Aug 03 07:51:09 I think we just need to call the same LS2 as LunaAppManager Aug 03 07:52:13 ah no, we also need to delete the account Aug 03 07:52:33 Tofe: I'm downloading latest emu, which should be clean Aug 03 07:52:39 I'll do some checks there Aug 03 07:53:17 I have one ready for testing, but it's at home of course :) Aug 03 07:53:52 I should have time in a bit :P Aug 03 07:57:04 OK initial test: When I freshly start qemu with FirstUse I get empty results for com.palm.service.accounts/listAccounts Aug 03 07:57:43 After FirstUse is finished it has accounts in there Aug 03 07:58:24 ran-first-use is in /var/luna/preferences Aug 03 08:01:00 Ah there we have a clue... Aug 03 08:01:10 pathLib.existsSync is not a function! Aug 03 08:01:22 Just like I expected :P Aug 03 08:06:13 Seems we should use accessSync or statSync instead Aug 03 08:06:27 Tofe: You might know better which of the 2 :P Aug 03 08:07:07 statSync, I'd say Aug 03 08:07:17 but let me read the doc a bit before Aug 03 08:08:58 https://github.com/nodejs/node/pull/114 says it's accessSync Aug 03 08:12:43 Let me try that Aug 03 08:13:01 I'm cross checking image for other references to existsSync just in case Aug 03 08:13:59 Just be careful, it has to be use with try/catch Aug 03 08:15:29 And frankly, we could simplify the code and do only an openSync whether the file exists or not Aug 03 08:16:15 Anyway this code is only called when there is no account Aug 03 08:16:23 s/is/was/ Aug 03 08:17:28 seems /usr/palm/frameworks/mojoloader.js uses existsSync as well Aug 03 08:17:37 ah, not good... Aug 03 08:19:11 So far that seems the only one but search still running Aug 03 08:19:46 ok Aug 03 08:19:52 Are there are more :P Aug 03 08:20:03 I can propose a PR for accounts Aug 03 08:20:09 Not a lot though Aug 03 08:20:59 Based on what I've read we should be OK with statSync for our accounts case Aug 03 08:21:35 both are alright, but in the accounts case I don't even see the need for testing the existence of the file Aug 03 08:22:04 Tofe: Yeah we should just write and empty one right? Aug 03 08:22:11 yes Aug 03 08:22:41 Others are in /usr/palm/services/jsservicelaunccher/bootstrap-node.js Aug 03 08:23:13 And in /usr/palm/services/org.webosports.service.devmode/DevModeAssistant.js Aug 03 08:23:39 And some in usr/palm/services/downloadmanager as well..... Aug 03 08:23:52 But those should be less critical for now Aug 03 08:25:26 https://github.com/webOS-ports/app-services/pull/5 should work Aug 03 08:28:00 Yup I got a first-use-profile-created file now :D Aug 03 08:29:04 great! Aug 03 08:29:23 also we shouldn't forget about the missing directory for contacts.linker Aug 03 08:29:45 though I'm not sure where that can be addressed Aug 03 08:29:47 Tofe: That was fixed already I think :P Aug 03 08:30:06 oh, ok Aug 03 08:30:37 then there is a chance that your AIM/ICQ will suddently appear ;) Aug 03 08:30:39 See my commit 255b4b3 on 18th of July Aug 03 08:30:54 +contacts Aug 03 08:31:14 Tofe: Well there's still some bits missing from legacy Aug 03 08:31:31 Not a lot though Aug 03 08:31:43 ok Aug 03 08:32:32 There were some activities in legacy chatthreader related to IM which we don't have yet Aug 03 08:33:33 Total code is 30KB.... So not that big :P Aug 03 08:33:44 :) Aug 03 08:34:13 Anyway I think we uncovered some a potentially quite impacting bug Aug 03 08:34:14 We have the 'newmessageassistant' which takes care of the threading which is 11kb on legacy :P Aug 03 08:34:19 -some Aug 03 08:34:22 Tofe: Yeah Aug 03 08:34:34 It might solve quite a few things Aug 03 08:34:42 Especially when we patch the others too Aug 03 08:34:50 yup Aug 03 08:35:20 can you open a quick issue with the list of existsSync occurrences? Aug 03 08:36:08 It seems we need to check for exists too Aug 03 08:36:16 Since that's deprecated too Aug 03 08:36:25 Will make it now. Aug 03 08:38:28 ok great Aug 03 08:44:50 1169 is for the existsSync :P Aug 03 08:45:04 perfect Aug 03 08:45:35 Linked to the lines in repos so should save you time to figure that out :P Aug 03 08:47:19 yes, that'll help! Aug 03 08:47:43 Some aren't where you'd expect them :P Aug 03 09:02:21 Seems there are only a few fs.exists Aug 03 09:02:29 Let me add those as well Aug 03 09:06:00 4 more it seems Aug 03 12:50:56 DougReeder: Contact linker issue is solved :) New nightly is running :) Aug 03 12:55:05 I think we'll have a great august release :) Aug 03 13:01:15 Yeah quite some small & quite critical things have been solved :D Aug 03 14:18:05 Feniksa: ping Aug 03 14:18:28 Ah he's gone somewhere :s Aug 03 14:24:19 Tofe: ping Aug 03 14:42:44 Herrie|Pre3: pong Aug 03 14:46:23 Tofe: It seems the configurator doesn't like my legacy 3.0.5 activities JSON files Aug 03 14:46:33 Just it doesn't really tell me what it doesn't like :P Aug 03 14:47:10 It tells me unexpected char at 1:649 but that's not very helpful... Aug 03 14:47:20 jsonlint.com says they're fine :P Aug 03 14:48:30 try changing the verbosity of the log with "PmLogCtl set Configurator debug" Aug 03 14:50:59 Ah that gives a lot more info thnx Aug 03 14:51:15 yes, that's how I found the first use issue Aug 03 15:42:19 OK getting a LOAD of errors now, but at least they make some sense :P Aug 03 15:42:41 Seems we have a different index in com.palm.message:1 compared to legacy Aug 03 15:50:05 Ok that bit should be sorted now let's see Aug 03 16:00:33 OK those are gone :D Aug 03 16:03:36 I guess I can retest legacy Messaging now when I'm home in a bit :) Aug 03 16:34:05 :) Aug 03 17:04:14 We'd still need to rewrite a few things it seems, since it wasn't open sourced, but it seems small tasks :P Aug 03 17:06:03 Just Garfonso added some additional bits to his chatthreader to indicate if the message processed before that wasn't in legacy, so I needed to add that in a few places Aug 03 17:16:01 I Aug 03 17:16:11 'm documenting everything, so we have a good place to start from Aug 03 17:32:29 Hmmz still not much luck, still stuck @ same point :S Aug 03 18:24:03 seems i'm ready with initial backend for usb storage connection to PC (mtp) Aug 03 18:24:05 i Aug 03 18:24:13 i'm going to pr this soon Aug 03 18:24:26 but need someone's help for gui part Aug 03 18:40:42 nizovn: We need GUI for that? Aug 03 18:41:23 i think we need to adjust dialog that appears on usb connection Aug 03 18:42:08 nizovn: There is none currently Aug 03 18:42:19 That was killed quite some time ago Aug 03 18:42:36 it works for me Aug 03 18:42:42 I think it was disabled in OWO because it wasn't compatible with nyx if memory serves me right Aug 03 18:42:51 storaged I think it was called Aug 03 18:43:16 Herrie: yup, could you please fork storaged? Aug 03 18:44:07 nizovn: Done Aug 03 18:44:26 ok, thanks Aug 03 18:44:42 I thought we already had some USB mode that was different from MSM (some standard Android (MTP?) stuff), but it didn't work properly due to mounts? Aug 03 18:45:07 Tofe: The issue with imlibpurpleservice MIGHT actually be the DBUS_SESSION stuff Aug 03 18:45:26 nizovn: Let me make a webOS-ports/master branch Aug 03 18:45:55 nizovn: OK also done Aug 03 18:46:32 Herrie: yes, we have mtp-server, but it doesn't work Aug 03 18:46:51 Anyway GUI stuff can be sorted Aug 03 18:46:59 We can adjust the legacy one if needed Aug 03 18:47:13 ok Aug 03 18:48:35 Should be in systemui I think Aug 03 18:49:05 Yup: https://github.com/webOS-ports/luna-systemui/tree/webOS-ports/master/app/StoragedAlerts Aug 03 18:49:06 yes, it works once com.palm.storage is running Aug 03 18:51:44 Herrie: you mean, a systemd service declaration issue? Aug 03 18:52:11 (I think there's something to put in to have the dbus session stuff) Aug 03 19:16:13 Tofe: Yeah the bit we discussed a while ago Aug 03 19:16:17 Your manual stuff worked Aug 03 19:16:23 Should check the logs Aug 03 19:16:27 And try that Aug 03 19:18:39 Tofe: Can you review https://github.com/webOS-ports/storaged/pull/1 ? Aug 03 19:18:56 And https://github.com/webOS-ports/mtp-server/pull/1/files ? Aug 03 19:29:40 one moment Aug 03 19:31:47 seems fine Aug 03 19:54:01 Tofe: also https://github.com/webOS-ports/nyx-modules/pull/6 Aug 03 19:54:11 more PR's to come tomorrow Aug 03 19:57:02 nizovn: it already works on a device? Aug 03 19:57:24 yes Aug 03 19:57:31 ok great :) Aug 03 19:58:53 well, that last PR seems ok too; the call to systemctl via a system call is a bit unusual, but that's all. I guess going through DBus would have been quite difficult Aug 03 20:01:22 ok **** ENDING LOGGING AT Thu Aug 04 02:59:58 2016