**** BEGIN LOGGING AT Fri Nov 27 03:00:53 2015 Nov 27 05:54:55 morning Nov 27 06:09:13 Evening. Nov 27 06:21:43 morning Nov 27 06:29:26 Do I need the very latest image for an app to receive the relaunch signal? Nov 27 06:30:42 DougReeder: having the latest LunaWebAppManager might help yes Nov 27 06:32:03 I’m concerned about whether the signal we’re sending on relaunch is the same as under webos. Nov 27 06:42:03 DougReeder: Latest nightly has updated LunaWebAppManager Nov 27 06:42:30 okay, I’ll install that Nov 27 06:43:59 Tofe: You saw my observations last night about com.palm.app.email and com.palm.app.contacts? Seems both have some timing issues with the frameworks that are being loaded. I.e. App is performing things before all the framework bits are ready so that causes certain functions not to be found. Nov 27 06:44:10 Also posted my observations about what might be wrong with the display bits Nov 27 06:55:16 Tofe: For email see line 115 in: https://bpaste.net/show/bdcdec272b18 Nov 27 06:57:27 For Contacts: https://bpaste.net/show/6f287e8ca56b Nov 27 06:58:29 For relaunching and the Contacts app, I’m observing (using a different app) that onrelaunch is sent but onwebOSRelaunch is not Nov 27 07:00:04 Tofe: And more detailed one for com.palm.app.contacts: https://bpaste.net/show/cada7dacaad1 Nov 27 07:35:01 I'm back now Nov 27 07:35:50 DougReeder: we send Mojo.relaunch(), that's all. The rest is done by webosjs-0.1.0, it's the one that sends onwebOSRelaunch in the Contacts case Nov 27 07:36:14 Herrie: I saw your remarks, I still have to analyze them :) Nov 27 07:36:14 Yeah, I’m finally untangling all that. Nov 27 07:37:12 webos-lib defines Mojo.relaunc() to do one thing, and enyo-webos defines it differently. Nov 27 07:38:25 * DougReeder sighs Nov 27 07:42:10 So, it looks like your PR is the way to move forward. Nov 27 07:43:24 ok, good, I didn't do nonsense :) Nov 27 07:45:28 Tofe, to pull in your PR, do I need to define your repo on github as a remote? Nov 27 07:52:23 DougReeder: if you want to test my code proposal? yes Nov 27 07:52:55 * DougReeder nods Nov 27 07:53:34 Works on my N4 with latest testing Nov 27 07:53:49 great Nov 27 08:01:35 Thanks for tracking this down. Nov 27 08:02:29 I know of onrelaunch and onwebOSRelaunch being used, but didn’t track that down to the different libraries. Nov 27 08:04:38 *knew of* Nov 27 08:24:40 Looks like the implementation of Mojo.relaunch is a bit free for each app developper Nov 27 09:01:04 Tofe: I guess for Enyo 1 apps Mojo.relaunch should work since it's included in the Enyo framework. For Enyo 2 apps we now have 2 implementations it seems. Nov 27 09:01:43 Our apps mainly use Mojo.relaunch but we could update that to use webOSRelaunch I guess Nov 27 09:42:28 Herrie|Veer: no, it's always "Mojo.relaunch" that is used; it's the implementation of that method that varies. Nov 27 10:07:50 Tofe: Hmmz OK. So webos webosjs and webos-lib do an implementation for Mojo.relaunch for Enyo 2 apps? And for Enyo 1 apps it just uses the Enyo 1 framework in /usr/palm/frameworks/enyo?Just trying to get my head around this. Nov 27 10:16:22 It's worse than that: https://github.com/search?p=2&q=%22Mojo.relaunch%22&ref=searchresults&type=Code&utf8=%E2%9C%93 Nov 27 10:17:45 Each app has its little implementation, eventually tweaking a bit (ChineseBirthCalendar uses "applicationrelaunch" ...) Nov 27 10:36:38 Tofe: OK. So will all keep working or.... ? Nov 27 10:47:04 Herrie|Veer: well, we don't need to remove anything so far. Only Contacts had a little bug. Nov 27 10:47:51 Tofe: OK. Nov 27 10:49:10 I need to check com.palm.app.contacts on a QtWebKit image tonight to see what it does there but I'm quite sure that it'll work and it's the sync/async timing of loading frameworks that's the cause of current com.palm.app.email and com.palm.app.contacts is Nov 27 10:49:12 sues Nov 27 13:50:00 Does anyone know how to run webinspector on the VirtualBox? I forgot about it... Nov 27 13:58:17 you mean for the emulator luneos target ? Nov 27 13:58:31 Yeah Nov 27 13:58:50 you have to set a port redirection Nov 27 13:59:14 like for the ssh access Nov 27 14:00:03 ssh is already setup by default Nov 27 14:00:13 in the appliance, yes Nov 27 14:00:39 but you can configure it further, and add another access for the 1122 port Nov 27 14:01:06 Ah there is a 1122 setup too Nov 27 14:01:11 But doesn't work it seems Nov 27 14:01:19 It's called webkit-inspector Nov 27 14:01:28 1122 to 1122 Nov 27 14:01:49 should be ok, that's weird; however I never used in with virtualbox... Nov 27 14:03:25 I suspect the webinspector is not running. Any way to chekc that? Nov 27 14:27:57 Tofe: For the display freeze: Might be as easy as reverting back to OWO function? https://github.com/openwebos/luna-sysmgr/blob/master/Src/base/DisplayManager.cpp#L2636 Nov 27 14:34:18 Herrie|Veer: I'm still not convinced the backlight is involved Nov 27 14:36:22 Tofe: Well this is one of the most obvious things that differs between our luna-sysmgr and owo one. Might be worth the try before digging deeper? Nov 27 14:42:22 maybe Nov 27 14:54:44 Tofe: There are a few more changes in our vs OWO DisplayManager.cpp and handling of display. Quite sure there's a problem somewhere in there... Nov 27 14:55:12 I.e. It gets to a certain state and then we get a lock somehow Nov 27 14:55:55 I can try that lead Nov 27 14:55:57 I guess adding a bit of logging in it will help to track it down Nov 27 14:56:39 I just used a file compare tool to compare both and there were some obvious differences in the handling of the display on/off etc Nov 27 14:57:02 Just my C++ knowledge isn't sufficient to tell anything useful for the rest :P Nov 27 14:59:43 Well, we changed quite a lot of things in the state machine of the display manager Nov 27 15:03:33 Tofe: Yeah but I saw some suspicious bits outside of that Nov 27 15:08:55 ok Nov 27 15:14:31 DisplayManager::backlightOn, DisplayManager::backlightOnCallBack, DisplayManager::backlightOff, DisplayManager::updateCompositorDisplayState, DisplayManager::alert, DisplayManager::displayOn, DisplayManager::displayOnCallback, DisplayManager::displayOff, Nov 27 15:14:31 DisplayManager::displayOffCallback I suspect it's in one of those somewhere :P Nov 27 15:14:50 Adding a ton of logging might give an idea what's happening Nov 27 21:09:18 Herrie, Tofe, in the medium-term, we need to remove functionality from webos-lib that is covered by enyo-webos, such as Mojo.relaunch() / the relaunch signal. **** ENDING LOGGING AT Sat Nov 28 03:00:46 2015