-
Notifications
You must be signed in to change notification settings - Fork 14
Description
Have taken https://github.com/webosose/test-apps/tree/master/com.webos.app.test.youtube and just replaced:
window.location = "http://www.youtube.com"
with
window.location = "http://svtplay.se"
And modified other strings by just replacing "Youtube" with "SVT Play". Just for testing.
On a RPI4 with webOS OSE 2.5.0 it looks like it very often takes longer than 10s for svtplay.se to load. I can see the following in the journal:
$ grep "Changed:\|timeout\|killApp" journal-svt-does-not-start.txt
Jul 15 09:05:01 raspberrypi4 sam[607]: [I][RunningApp][setLifeStatus][75bf8a7a-5408-453a-bb4b-4451e93b52fd0] Changed: com.luxoft.app.test.svtplay.0 (stop ==> splashing)
Jul 15 09:05:11 raspberrypi4 sam[607]: [I][RunningApp][setLifeStatus][75bf8a7a-5408-453a-bb4b-4451e93b52fd0] Changed: com.luxoft.app.test.svtplay.0 (splashing ==> splashed)
Jul 15 09:05:11 raspberrypi4 sam[607]: [I][RunningApp][setLifeStatus][75bf8a7a-5408-453a-bb4b-4451e93b52fd0] Changed: com.luxoft.app.test.svtplay.0 (splashed ==> launching)
Jul 15 09:05:11 raspberrypi4 sam[607]: [W][RunningApp][onKillingTimer][75bf8a7a-5408-453a-bb4b-4451e93b52fd0] Transition is timeout
Jul 15 09:05:11 raspberrypi4 WebAppMgr[603]: [] [pmlog] WAM LUNA_API {"APP_ID":"com.luxoft.app.test.svtplay.0","API":"killApp"} reason :
Looks like application spends too long (>10s) in "launching" state and is killed in
Line 257 in 8a1443b
| Logger::warning(CLASS_NAME, __FUNCTION__, raw->m_instanceId, "Transition is timeout"); |
If I try to launch the application again soon after it very often succeeds, e.g. the web application only spends 4s in launching state before it goes to foreground state:
Jul 15 09:08:40 raspberrypi4 sam[607]: [I][RunningApp][setLifeStatus][02ca65f6-a470-4b63-aad8-7ad4ffa035800] Changed: com.luxoft.app.test.svtplay.0 (stop ==> splashing)
Jul 15 09:08:40 raspberrypi4 sam[607]: [I][RunningApp][setLifeStatus][02ca65f6-a470-4b63-aad8-7ad4ffa035800] Changed: com.luxoft.app.test.svtplay.0 (splashing ==> splashed)
Jul 15 09:08:40 raspberrypi4 sam[607]: [I][RunningApp][setLifeStatus][02ca65f6-a470-4b63-aad8-7ad4ffa035800] Changed: com.luxoft.app.test.svtplay.0 (splashed ==> launching)
Jul 15 09:08:44 raspberrypi4 sam[607]: [I][RunningApp][setLifeStatus][02ca65f6-a470-4b63-aad8-7ad4ffa035800] Changed: com.luxoft.app.test.svtplay.0 (launching ==> foreground)
Perhaps it loads faster the second time due to web content being cached locally, not sure.
Also not sure that this is something that should be fixed in SAM or in WAM. Or is there e.g. a way to make the web application behave better (say that it should be brought to foreground before loading has finished). Have not found any documentation for how to handle web apps that take a long time to load on https://www.webosose.org yet.